Cleanups on js-precompiled (#3738)

* Cleanups on js-precompiled

* Combined

* Adjust based on Pr comments
This commit is contained in:
Jaco Greeff 2016-12-07 21:38:28 +01:00 committed by Arkadiy Paronyan
parent 9e8d90b5ba
commit 5f1021822d

View File

@ -34,11 +34,16 @@ git fetch origin 2>$GITLOG
git checkout -b $BRANCH
echo "*** Committing compiled files for $UTCDATE"
mv build ../build.new
git pull origin/$BRANCH -X ours --commit -m "$UTCDATE [merge]"
git rm build/*
git commit -m "$UTCDATE [rm]"
mv -f ../build.new/* build/
rm -rf ../build.new
git add .
git commit -m "$UTCDATE"
echo "*** Merging remote"
git merge origin/$BRANCH -X ours --commit -m "$UTCDATE [release]"
git push origin HEAD:refs/heads/$BRANCH 2>$GITLOG
PRECOMPILED_HASH=`git rev-parse HEAD`