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.

This commit is contained in:
David Baker 2016-02-24 18:59:33 +00:00
parent 874123bbfa
commit fa322e8488
1 changed files with 3 additions and 2 deletions
scripts

View File

@ -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"