MozillaFirefox/create-tar.sh
changeset 699 f810fbe5fece
parent 696 c2baa065e3cd
child 703 c4aab80e472f
child 704 72225e57f863
equal deleted inserted replaced
697:0118161f4c11 699:f810fbe5fece
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 CHANNEL="beta"
     3 CHANNEL="release"
     4 BRANCH="releases/mozilla-$CHANNEL"
     4 BRANCH="releases/mozilla-$CHANNEL"
     5 RELEASE_TAG="FIREFOX_27_0b4_RELEASE"
     5 RELEASE_TAG="FIREFOX_27_0_RELEASE"
     6 VERSION="26.99"
     6 VERSION="27.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 firefox-$VERSION-source.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    39 tar cJf firefox-$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
    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