Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/helpers
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-25 14:46:07 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-25 14:46:07 (GMT)
commite192a667d1bf1430520f74654ec9ba768b505dcb (patch)
tree0497a6edfe609be3c90fa0114d21290a4d8efb39 /commands/helpers
parent279c01bc8df66bf879d0633c0844fbc125b6e382 (diff)
Change the root dir to sugar-snapshot
Diffstat (limited to 'commands/helpers')
-rwxr-xr-xcommands/helpers/build-snapshot50
1 files changed, 25 insertions, 25 deletions
diff --git a/commands/helpers/build-snapshot b/commands/helpers/build-snapshot
index 92077de..84b1150 100755
--- a/commands/helpers/build-snapshot
+++ b/commands/helpers/build-snapshot
@@ -10,35 +10,35 @@ fi
destdir=`dirname $1`
filename=`basename $1`
+rootdir=sugar-snapshot
mkdir -p $destdir
-ln -s `pwd` $destdir/sugar-build
+ln -s `pwd` $destdir/$rootdir
cd $destdir
tar chf $filename \
- sugar-build/config \
- sugar-build/devbot \
- sugar-build/install \
- sugar-build/commands/helpers/bashrc \
- sugar-build/commands/helpers/find-free-display \
- sugar-build/commands/helpers/list-outputs \
- sugar-build/commands/helpers/ubuntu-tweaks \
- sugar-build/commands/helpers/xinitrc \
- sugar-build/commands/helpers/xephyr-window \
- sugar-build/commands/helpers/get-screen-dpi \
- sugar-build/commands/helpers/run-with-keyring \
- sugar-build/commands/check-system \
- sugar-build/commands/run-command \
- sugar-build/commands/common.py \
- sugar-build/commands/run \
- sugar-build/commands/shell
-
-rm sugar-build
-
-mkdir sugar-build
-
-runsugarscript=sugar-build/run-sugar.sh
+ $rootdir/config \
+ $rootdir/devbot \
+ $rootdir/install \
+ $rootdir/commands/helpers/bashrc \
+ $rootdir/commands/helpers/find-free-display \
+ $rootdir/commands/helpers/list-outputs \
+ $rootdir/commands/helpers/ubuntu-tweaks \
+ $rootdir/commands/helpers/xinitrc \
+ $rootdir/commands/helpers/xephyr-window \
+ $rootdir/commands/helpers/get-screen-dpi \
+ $rootdir/commands/helpers/run-with-keyring \
+ $rootdir/commands/check-system \
+ $rootdir/commands/run-command \
+ $rootdir/commands/common.py \
+ $rootdir/commands/run \
+ $rootdir/commands/shell
+
+rm $rootdir
+mkdir $rootdir
+
+runsugarscript=$rootdir/run-sugar.sh
cat > $runsugarscript << "EOF"
#!/bin/sh
@@ -49,7 +49,7 @@ EOF
chmod +x $runsugarscript
-runshellscript=sugar-build/run-shell.sh
+runshellscript=$rootdir/run-shell.sh
cat > $runshellscript << "EOF"
#!/bin/sh
@@ -62,6 +62,6 @@ chmod +x $runshellscript
tar rh -f $filename $runshellscript $runsugarscript
-rm -rf sugar-build
+rm -rf $rootdir
xz $filename