From d3cac31c2f697df05b6383cee7e6e4f79487b667 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Sun, 21 Feb 2021 13:31:24 -0600 Subject: [PATCH] updated archive.sh script --- scripts/archive.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/archive.sh b/scripts/archive.sh index 778edae9..da8f4436 100755 --- a/scripts/archive.sh +++ b/scripts/archive.sh @@ -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