mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-04-20 15:16:38 +00:00
archive.sh
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
# https://github.com/Kentzo/git-archive-all
|
||||
# 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
|
||||
|
||||
# copy to remote
|
||||
. ./scripts/env.sh
|
||||
DESTPATH=$RSYNC_PATH/release/
|
||||
rsync -rv --progress --stats -e "ssh -p 2222" release/*.zip $DESTPATH
|
||||
|
||||
# remove symlink
|
||||
rm $PREFIX
|
||||
Reference in New Issue
Block a user