MozillaFirefox/create-tar.sh
changeset 306 e6df4625c730
parent 294 5330447b83a3
child 311 861ec6217558
equal deleted inserted replaced
297:7af5d6a0c962 306:e6df4625c730
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 BRANCH="releases/mozilla-aurora"
     3 BRANCH="releases/mozilla-beta"
     4 RELEASE_TAG="default"
     4 RELEASE_TAG="FIREFOX_7_0b1_RELEASE"
     5 VERSION="6.99"
     5 VERSION="6.99"
     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
    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-aurora/$locale l10n/$locale
    26       hg clone http://hg.mozilla.org/releases/l10n/mozilla-beta/$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