Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'commands/helpers')
-rwxr-xr-xcommands/helpers/build-snapshot7
1 files changed, 3 insertions, 4 deletions
diff --git a/commands/helpers/build-snapshot b/commands/helpers/build-snapshot
index ce749bf..92077de 100755
--- a/commands/helpers/build-snapshot
+++ b/commands/helpers/build-snapshot
@@ -8,9 +8,10 @@ if [ "$#" -eq 0 ]; then
exit 1
fi
-destdir=$1
-filename=sugar-build-`date +%Y%m%d-%H%M%S.tar`
+destdir=`dirname $1`
+filename=`basename $1`
+mkdir -p $destdir
ln -s `pwd` $destdir/sugar-build
cd $destdir
@@ -64,5 +65,3 @@ tar rh -f $filename $runshellscript $runsugarscript
rm -rf sugar-build
xz $filename
-
-echo $destdir/$filename.xz