mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2026-04-20 15:16:38 +00:00
moved some development files to meta/ directory, updated sync script
This commit is contained in:
@@ -9,18 +9,11 @@ if [ "$VERSION" == "" ]; then
|
||||
fi
|
||||
DESTPATH=$RSYNC_PATH/v$VERSION
|
||||
DEVPATH=/var/www/html/8bitworkshop.com/dev
|
||||
TMPDIR=./tmp/$VERSION
|
||||
grep -H "var VERSION" web/redir.html
|
||||
grep -H "var VERSION" web/projects/projects.js
|
||||
echo "Upload version $VERSION to production?"
|
||||
read
|
||||
echo "Listing submodules..."
|
||||
SUBMODS=`git submodule | cut -d ' ' -f 3`
|
||||
echo "Extracting to $TMPDIR..."
|
||||
rm -fr $TMPDIR
|
||||
mkdir -p $TMPDIR
|
||||
git archive $VERSION | tar x -C $TMPDIR
|
||||
make dist
|
||||
echo "Copying to $DESTPATH..."
|
||||
rsync --stats --exclude '.*' --exclude 'scripts/*' --exclude=node_modules --copy-dest=$DEVPATH -rilz --chmod=a+rx -e "ssh" $TMPDIR/ $SUBMODS $DESTPATH
|
||||
rsync --stats -rilvz --chmod=a+rx -e "ssh" --copy-dest=$DEVPATH ./gen config.js $DESTPATH/
|
||||
rsync --stats -riltz --chmod=a+rx -e "ssh" ./tmp/dist/ config.js $DESTPATH/
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user