xulrunner/create-tar.sh
branchfirefox7
changeset 334 1256d8842872
parent 325 f5966ab369fb
child 337 cf16b6560dd1
equal deleted inserted replaced
333:747f09b514d8 334:1256d8842872
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 BRANCH="releases/mozilla-beta"
     3 BRANCH="releases/mozilla-release"
     4 RELEASE_TAG="FIREFOX_7_0b5_RELEASE"
     4 RELEASE_TAG="FIREFOX_7_0_RELEASE"
     5 VERSION="6.99"
     5 VERSION="7.0"
     6 
     6 
     7 # mozilla
     7 # mozilla
     8 hg clone http://hg.mozilla.org/$BRANCH mozilla
     8 hg clone http://hg.mozilla.org/$BRANCH mozilla
     9 pushd mozilla
     9 pushd mozilla
    10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
    21 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    21 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    22   case $locale in
    22   case $locale in
    23     ja-JP-mac|en-US)
    23     ja-JP-mac|en-US)
    24       ;;
    24       ;;
    25     *)
    25     *)
    26       hg clone http://hg.mozilla.org/releases/l10n/mozilla-beta/$locale l10n/$locale
    26       hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale
    27       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    27       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    28       ;;
    28       ;;
    29   esac
    29   esac
    30 done
    30 done
    31 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    31 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n