view core-javascript/make-release.sh @ 192:615e2cff66b4 javascript-exercises

Comment out production of svn output in make-release.sh.
author jf3243
date Mon, 21 Nov 2011 17:02:25 +0000
parents 117c345a9de5
children
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'


# Comment out because getting error
# answers/.svn' containing working copy admin area is missing
    # http://stackoverflow.com/questions/5991640/svn-analog-of-hgs-addremove
#    svn status | grep "^\?" | gawk '{print $2}' | xargs -r svn add
#    svn status | grep "^\!" | gawk '{print $2}' | xargs -r svn remove
#    svn commit -m "Dummy message"

    hg push
    git push origin master
)


cp ${JSDB} ${TGT}