MozillaFirefox/create-tar.sh
changeset 272 adc2b9141ad5
parent 265 f9de3817b442
child 277 37db3d6540b8
equal deleted inserted replaced
271:0cb54f456d88 272:adc2b9141ad5
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 BRANCH="mozilla-aurora"
     3 BRANCH="mozilla-beta"
     4 RELEASE_TAG="default"
     4 RELEASE_TAG="FIREFOX_5_0b2_RELEASE"
     5 VERSION="4.99"
     5 VERSION="4.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
    16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    17   case $locale in
    17   case $locale in
    18     ja-JP-mac|en-US)
    18     ja-JP-mac|en-US)
    19       ;;
    19       ;;
    20     *)
    20     *)
    21       hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale
    21       hg clone http://hg.mozilla.org/releases/l10n/mozilla-beta/$locale l10n/$locale
    22       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    22       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    23       ;;
    23       ;;
    24   esac
    24   esac
    25 done
    25 done
    26 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    26 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n