mozilla-xulrunner193/create-tar.sh
changeset 99 e7df24b73a40
parent 97 ee36c2f92f55
child 100 f224b7faa82f
equal deleted inserted replaced
97:ee36c2f92f55 99:e7df24b73a40
     1 #!/bin/bash
       
     2 
       
     3 BRANCH="mozilla-central"
       
     4 RELEASE_TAG="default"
       
     5 VERSION="2.0b"
       
     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/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