From: arno Date: Fri, 7 Aug 2009 14:57:49 +0000 (+0200) Subject: reset openlayers directory to its original state at the end of build.sh X-Git-Tag: v0.2~7 X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=commitdiff_plain;h=bf5384b48ad82e3487329bb7987bd5a49d4bf330 reset openlayers directory to its original state at the end of build.sh --- diff --git a/build.sh b/build.sh index 6cfb069..3932ab1 100755 --- a/build.sh +++ b/build.sh @@ -66,3 +66,7 @@ cd $BUILDDIR tar -pczf ${PROJNAME}_${PROJVERS}.tar.gz ${PROJNAME}-${PROJVERS} zip -r ${PROJNAME}_${PROJVERS}.zip ${PROJNAME}-${PROJVERS} cd .. + +if [ -d .git/ ] && which git > /dev/null; then + git checkout openlayers +fi