xulrunner/create-tar.sh
changeset 340 aabcc7895695
parent 337 cf16b6560dd1
child 349 d395d0c3ac12
equal deleted inserted replaced
338:5b3e3dc8fb40 340:aabcc7895695
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 BRANCH="releases/mozilla-release"
     3 CHANNEL="beta"
     4 RELEASE_TAG="FIREFOX_7_0_1_RELEASE"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 VERSION="7.0.1"
     5 RELEASE_TAG="FIREFOX_8_0b1_RELEASE"
       
     6 VERSION="7.99"
     6 
     7 
     7 # mozilla
     8 # mozilla
     8 hg clone http://hg.mozilla.org/$BRANCH mozilla
     9 hg clone http://hg.mozilla.org/$BRANCH mozilla
     9 pushd mozilla
    10 pushd mozilla
    10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    11 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    21 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    22 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    22   case $locale in
    23   case $locale in
    23     ja-JP-mac|en-US)
    24     ja-JP-mac|en-US)
    24       ;;
    25       ;;
    25     *)
    26     *)
    26       hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale
    27       hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
    27       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    28       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    28       ;;
    29       ;;
    29   esac
    30   esac
    30 done
    31 done
    31 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    32 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n