From fa322e8488e1bdefc075397aee8fd76f79042731 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 24 Feb 2016 18:59:33 +0000 Subject: [PATCH] Auto-create a sensible version file. Copy the vector dir so we can put it in there rather than creating files in the main vector dir. --- scripts/package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/package.sh b/scripts/package.sh index e1f5f3c3..73a1c511 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -6,9 +6,10 @@ version=`git describe --dirty --tags || echo unknown` npm run build mkdir -p packages -ln -s vector vector-$version +cp -r vector vector-$version +echo $version > vector-$version/version tar chvzf packages/vector-$version.tar.gz vector-$version -rm vector-$version +rm -r vector-$version echo echo "Packaged packages/vector-$version.tar.gz"