mozilla-xulrunner22/create-tar.sh
changeset 249 7298a2e37ba3
parent 239 99a267a3f1d3
child 250 51fbca12da9a
equal deleted inserted replaced
247:71521dfedb0b 249:7298a2e37ba3
       
     1 #!/bin/bash
       
     2 
       
     3 BRANCH="releases/mozilla-2.0"
       
     4 RELEASE_TAG="FIREFOX_4_0rc2_RELEASE"
       
     5 VERSION="2.0.0"
       
     6 
       
     7 # mozilla
       
     8 hg clone http://hg.mozilla.org/$BRANCH mozilla
       
     9 pushd mozilla
       
    10 [ "$RELEASE_TAG" == "default" ] || hg update -r $RELEASE_TAG
       
    11 popd
       
    12 tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
       
    13 
       
    14 # l10n
       
    15 test ! -d l10n && mkdir l10n
       
    16 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
       
    17   case $locale in
       
    18     ja-JP-mac|en-US)
       
    19       ;;
       
    20     *)
       
    21       hg clone http://hg.mozilla.org/releases/l10n-mozilla-2.0/$locale l10n/$locale
       
    22       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
       
    23       ;;
       
    24   esac
       
    25 done
       
    26 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
       
    27 
       
    28 # compare-locales
       
    29 hg clone http://hg.mozilla.org/build/compare-locales
       
    30 tar cjf compare-locales.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
       
    31