mozilla-xulrunner22/create-tar.sh
changeset 250 51fbca12da9a
parent 249 7298a2e37ba3
child 255 62f6c0581849
equal deleted inserted replaced
249:7298a2e37ba3 250:51fbca12da9a
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 BRANCH="releases/mozilla-2.0"
     3 BRANCH="mozilla-central"
     4 RELEASE_TAG="FIREFOX_4_0rc2_RELEASE"
     4 RELEASE_TAG="default"
     5 VERSION="2.0.0"
     5 VERSION="2.2a"
     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
    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/releases/l10n-mozilla-2.0/$locale l10n/$locale
    21       hg clone http://hg.mozilla.org/releases/l10n-mozilla-central/$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