MozillaFirefox/create-tar.sh
changeset 646 a3eaf3bb0cc9
parent 645 a9f3d5963cc0
child 647 9d8bdcdd4d2a
equal deleted inserted replaced
645:a9f3d5963cc0 646:a3eaf3bb0cc9
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="FIREFOX_21_0b2_RELEASE"
     5 RELEASE_TAG="FIREFOX_21_0b2_RELEASE"
     6 VERSION="20.99"
     6 VERSION="20.99"
     7 
     7 
     8 # mozilla
     8 # mozilla
     9 echo "cloning $BRANCH..."
     9 if [ -d mozilla ]; then
    10 hg clone http://hg.mozilla.org/$BRANCH mozilla
    10   pushd mozilla
       
    11   _repourl=$(hg paths)
       
    12   case "$_repourl" in
       
    13     *$BRANCH*)
       
    14       echo "updating previous tree"
       
    15       hg pull
       
    16       popd
       
    17       ;;
       
    18     * )
       
    19       echo "removing obsolete tree"
       
    20       popd
       
    21       rm -rf mozilla
       
    22       ;;
       
    23   esac
       
    24 fi
       
    25 if [ ! -d mozilla ]; then
       
    26   echo "cloning new $BRANCH..."
       
    27   hg clone http://hg.mozilla.org/$BRANCH mozilla
       
    28 fi
    11 pushd mozilla
    29 pushd mozilla
    12 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    30 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    13 # get repo and source stamp
    31 # get repo and source stamp
    14 echo -n "REV=" > ../source-stamp.txt
    32 echo -n "REV=" > ../source-stamp.txt
    15 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    33 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt