xulrunner/create-tar.sh
branchfirefox38
changeset 876 e893bdc9bf06
parent 670 0b1f7ee785d3
child 877 946a110f020d
equal deleted inserted replaced
874:255a6c12c85f 876:e893bdc9bf06
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 CHANNEL="release"
     3 CHANNEL="esr31"
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="FIREFOX_24_0_RELEASE"
     5 RELEASE_TAG="FIREFOX_31_8_0esr_RELEASE"
     6 VERSION="24.0"
     6 VERSION="31.8.0"
     7 
     7 
     8 # mozilla
     8 # mozilla
     9 if [ -d mozilla ]; then
     9 if [ -d mozilla ]; then
    10   pushd mozilla
    10   pushd mozilla
    11   _repourl=$(hg paths)
    11   _repourl=$(hg paths)
    34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    34 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    35 echo -n "REPO=" >> ../source-stamp.txt
    35 echo -n "REPO=" >> ../source-stamp.txt
    36 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
    36 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
    37 popd
    37 popd
    38 echo "creating archive..."
    38 echo "creating archive..."
    39 tar cjf xulrunner-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    39 tar cJf xulrunner-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    40 
    40 
    41 # l10n
    41 # l10n
    42 echo "fetching locales..."
    42 echo "fetching locales..."
    43 test ! -d l10n && mkdir l10n
    43 test ! -d l10n && mkdir l10n
    44 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    44 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    45   case $locale in
    45   case $locale in
    46     ja-JP-mac|en-US)
    46     ja-JP-mac|en-US)
    47       ;;
    47       ;;
    48     *)
    48     *)
    49       echo "fetching $locale ..."
    49       echo "fetching $locale ..."
    50       hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
    50       hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$locale l10n/$locale
    51       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    51       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
    52       ;;
    52       ;;
    53   esac
    53   esac
    54 done
    54 done
    55 echo "creating l10n archive..."
    55 echo "creating l10n archive..."
    56 tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    56 tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    57 
    57 
    58 # compare-locales
    58 # compare-locales
    59 echo "creating compare-locales"
    59 echo "creating compare-locales"
    60 hg clone http://hg.mozilla.org/build/compare-locales
    60 hg clone http://hg.mozilla.org/build/compare-locales
    61 tar cjf compare-locales.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
    61 tar cJf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
    62 
    62