xulrunner/create-tar.sh
branchesr10
changeset 377 5d721a09f33e
parent 373 db704efaedab
child 385 6e576750d898
equal deleted inserted replaced
375:d75cd0dac058 377:5d721a09f33e
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 CHANNEL="release"
     3 CHANNEL="esr10"
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="FIREFOX_10_0_RELEASE"
     5 RELEASE_TAG="FIREFOX_10_0esr_RELEASE"
     6 VERSION="10.0"
     6 VERSION="10.0"
     7 
     7 
     8 # mozilla
     8 # mozilla
     9 hg clone http://hg.mozilla.org/$BRANCH mozilla
     9 hg clone http://hg.mozilla.org/$BRANCH mozilla
    10 pushd mozilla
    10 pushd mozilla
    22 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
    23   case $locale in
    23   case $locale in
    24     ja-JP-mac|en-US)
    24     ja-JP-mac|en-US)
    25       ;;
    25       ;;
    26     *)
    26     *)
    27       hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
    27       hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale
    28       [ "$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
    29       ;;
    29       ;;
    30   esac
    30   esac
    31 done
    31 done
    32 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