mozilla-xulrunner192/create-tar.sh
changeset 4 523b1d92948c
child 18 c4da314d7975
equal deleted inserted replaced
3:59d55eb6eecb 4:523b1d92948c
       
     1 #!/bin/bash
       
     2 
       
     3 RELEASE_TAG="FIREFOX_3_6b4_RELEASE"
       
     4 VERSION="1.9.2b4"
       
     5 
       
     6 # mozilla
       
     7 hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla
       
     8 pushd mozilla
       
     9 hg update -r $RELEASE_TAG
       
    10 popd
       
    11 tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
       
    12 
       
    13 # l10n
       
    14 test ! -d l10n && mkdir l10n
       
    15 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
       
    16   case $locale in 
       
    17     ja-JP-mac|en-US)
       
    18       ;;
       
    19     *)
       
    20       hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale
       
    21       hg -R l10n/$locale up -C -r $RELEASE_TAG
       
    22       ;;
       
    23   esac
       
    24 done
       
    25 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
       
    26