MozillaFirefox/create-tar.sh
changeset 659 fa96cf6ffd14
parent 653 38c67b6b2f37
child 661 aac91d5705b1
equal deleted inserted replaced
653:38c67b6b2f37 659:fa96cf6ffd14
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 CHANNEL="aurora"
     3 CHANNEL="aurora"
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="default"
     5 RELEASE_TAG="default"
     6 VERSION="22.98"
     6 VERSION="23.98"
     7 
     7 
     8 # mozilla
     8 # mozilla
     9 if [ -d mozilla ]; then
     9 if [ -d mozilla ]; then
    10   pushd mozilla
    10   pushd mozilla
    11   _repourl=$(hg paths)
    11   _repourl=$(hg paths)
    25 if [ ! -d mozilla ]; then
    25 if [ ! -d mozilla ]; then
    26   echo "cloning new $BRANCH..."
    26   echo "cloning new $BRANCH..."
    27   hg clone http://hg.mozilla.org/$BRANCH mozilla
    27   hg clone http://hg.mozilla.org/$BRANCH mozilla
    28 fi
    28 fi
    29 pushd mozilla
    29 pushd mozilla
       
    30 hg update --check
    30 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    31 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    31 # get repo and source stamp
    32 # get repo and source stamp
    32 echo -n "REV=" > ../source-stamp.txt
    33 echo -n "REV=" > ../source-stamp.txt
    33 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    34 echo -n "REPO=" >> ../source-stamp.txt
    35 echo -n "REPO=" >> ../source-stamp.txt