updated archive.sh script

This commit is contained in:
Steven Hugg 2021-02-21 13:31:24 -06:00
parent cd10deafc2
commit d3cac31c2f
1 changed files with 6 additions and 9 deletions

View File

@ -2,16 +2,13 @@
# build archives
export VERSION=`git tag | tail -1`
export PREFIX=8bitworkshop-$VERSION
echo Creating $PREFIX
ln -fs . $PREFIX
git-archive-all --prefix $PREFIX release/$PREFIX.zip
zip -9r release/$PREFIX.zip $PREFIX/gen
#git archive --prefix 8bitworkshop- -o release/8bitworkshop-tools.zip HEAD tools
echo "Run make dist first!"
mv tmp/dist tmp/$PREFIX
cd tmp
zip -9rf ../release/$PREFIX.zip $PREFIX
cd ..
# copy to remote
. ./scripts/env.sh
DESTPATH=$RSYNC_PATH/release/
echo "Copy to $DESTPATH"
rsync -rv --progress --stats -e "ssh" release/*.zip $DESTPATH
# remove symlink
rm $PREFIX