From e192a667d1bf1430520f74654ec9ba768b505dcb Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sun, 25 Nov 2012 14:46:07 +0000 Subject: Change the root dir to sugar-snapshot --- (limited to 'commands/helpers') 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 -- cgit v0.9.1