xulrunner/create-tar.sh
branchfirefox24
changeset 670 0b1f7ee785d3
parent 595 31f273919032
child 678 d0329e10d68c
child 793 a08cc1ab27af
child 876 e893bdc9bf06
child 879 3b986c9dbc5f
equal deleted inserted replaced
669:4b65b5cfd428 670:0b1f7ee785d3
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 CHANNEL="beta"
     3 CHANNEL="release"
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="FIREFOX_18_0b2_RELEASE"
     5 RELEASE_TAG="FIREFOX_24_0_RELEASE"
     6 VERSION="17.99"
     6 VERSION="24.0"
     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
       
    30 hg update --check
    12 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    31 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    13 # get repo and source stamp
    32 # get repo and source stamp
    14 echo -n "REV=" > ../source-stamp.txt
    33 echo -n "REV=" > ../source-stamp.txt
    15 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    16 echo -n "REPO=" >> ../source-stamp.txt
    35 echo -n "REPO=" >> ../source-stamp.txt