From 875a127d60d60d232d231dd710a60fd6465d8405 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Fri, 21 Dec 2018 15:50:54 -0600 Subject: [PATCH] archive.sh --- Makefile | 6 ------ scripts/archive.sh | 17 +++++++++++++++++ tss | 2 +- 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100755 scripts/archive.sh diff --git a/Makefile b/Makefile index 76295009..800eb7a3 100644 --- a/Makefile +++ b/Makefile @@ -15,12 +15,6 @@ check: lint: gjslint -r src -# https://github.com/Kentzo/git-archive-all -archive: - mkdir -p release - git-archive-all --prefix 8bitworkshop-latest/ release/8bitworkshop-latest.zip - git archive --prefix 8bitworkshop- -o release/8bitworkshop-tools.zip HEAD tools - web: ifconfig | grep inet diff --git a/scripts/archive.sh b/scripts/archive.sh new file mode 100755 index 00000000..430875e1 --- /dev/null +++ b/scripts/archive.sh @@ -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 diff --git a/tss b/tss index 61a1691a..d630ddcb 160000 --- a/tss +++ b/tss @@ -1 +1 @@ -Subproject commit 61a1691a1de05dca3b694bf603db49ffbaf572cf +Subproject commit d630ddcb29d74a178cde043d74188fac35d6a21f