Mercurial > js4py
view core-javascript/make-release.sh @ 175:95b7bba41665 javascript-exercises
Add push of git and hg to build of release javascript-exercises.
| author | jf3243 |
|---|---|
| date | Mon, 14 Nov 2011 11:59:52 +0000 |
| parents | 00d706ad9ba2 |
| children | 117c345a9de5 |
line wrap: on
line source
#!/bin/sh # Make release of exercises in local/javascript-exercises. Run from # the core-javascript folder (for now). set -u LOCAL=../local TMP=${LOCAL}/javascript-exercises-tmp SRC=${TMP}/core-javascript/javascript-exercises TGT=${LOCAL}/javascript-exercises JSDB=javascript-exercises/jsdb.exe rm -rf ${TMP} hg archive -I javascript-exercises ${TMP} find ${SRC} rm -rf ${TGT}/* # But not hgignore etc cp -rv ${SRC}/* ${TGT}/ ( cd ${TGT} || (echo 'Error' && exit) hg addremove hg commit -m 'Dummy message' git add . git commit -a -m 'Dummy message' hg push git push origin master ) cp ${JSDB} ${TGT}
