1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-22 14:33:51 +00:00
8bitworkshop/scripts/sync-production.sh

11 lines
416 B
Bash
Raw Normal View History

2018-07-26 15:50:20 +00:00
#!/bin/sh
. ./scripts/env.sh
DESTPATH=$RSYNC_PATH/
echo "Upload HEAD to production? [Press Enter]"
read
2018-07-26 16:44:09 +00:00
git ls-files -z | rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules -ril -e "ssh -p 2222" --files-from - -0 . $DESTPATH
2018-07-26 15:50:20 +00:00
git archive --format tar.gz --prefix 8bitworkshop- HEAD tools/ > release/8bitworkshop-tools.tgz
2018-07-26 16:44:09 +00:00
#rsync --stats -rilvz -e "ssh -p 2222" ./mame $DESTPATH/
2018-07-26 15:50:20 +00:00
echo "Done."