diff -r 4b65b5cfd428 -r 0b1f7ee785d3 xulrunner/create-tar.sh --- a/xulrunner/create-tar.sh Wed Sep 18 16:26:48 2013 +0200 +++ b/xulrunner/create-tar.sh Sat Sep 28 13:21:55 2013 +0200 @@ -1,14 +1,33 @@ #!/bin/bash -CHANNEL="beta" +CHANNEL="release" BRANCH="releases/mozilla-$CHANNEL" -RELEASE_TAG="FIREFOX_18_0b2_RELEASE" -VERSION="17.99" +RELEASE_TAG="FIREFOX_24_0_RELEASE" +VERSION="24.0" # mozilla -echo "cloning $BRANCH..." -hg clone http://hg.mozilla.org/$BRANCH mozilla +if [ -d mozilla ]; then + pushd mozilla + _repourl=$(hg paths) + case "$_repourl" in + *$BRANCH*) + echo "updating previous tree" + hg pull + popd + ;; + * ) + echo "removing obsolete tree" + popd + rm -rf mozilla + ;; + esac +fi +if [ ! -d mozilla ]; then + echo "cloning new $BRANCH..." + hg clone http://hg.mozilla.org/$BRANCH mozilla +fi pushd mozilla +hg update --check [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG # get repo and source stamp echo -n "REV=" > ../source-stamp.txt