MozillaFirefox/create-tar.sh
changeset 262 b680975515e0
child 263 64adf7ca3005
equal deleted inserted replaced
261:9e089fa4054b 262:b680975515e0
       
     1 #!/bin/bash
       
     2 
       
     3 BRANCH="mozilla-central"
       
     4 RELEASE_TAG="default"
       
     5 VERSION="4.2a"
       
     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 firefox-$VERSION-source.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/l10n-central/$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