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:22:01 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-25 14:22:01 (GMT)
commit279c01bc8df66bf879d0633c0844fbc125b6e382 (patch)
tree3401949d521de743215b7bf457f16dedae494799 /commands/helpers
parent26302ce44039a55a460e2f969d517e7cd02f1cf7 (diff)
Require a SNAPSHOT_FILENAME
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