MozillaFirefox/create-tar.sh
changeset 993 c360e9aac24a
parent 992 b2ba34e0dc10
child 995 37c56dbf929f
equal deleted inserted replaced
985:038d048a3940 993:c360e9aac24a
     5 # "moz_source_stamp": "c1de04f39fa956cfce83f6065b0e709369215ed5"
     5 # "moz_source_stamp": "c1de04f39fa956cfce83f6065b0e709369215ed5"
     6 # http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/l10n_changesets.txt
     6 # http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/l10n_changesets.txt
     7 
     7 
     8 CHANNEL="beta"
     8 CHANNEL="beta"
     9 BRANCH="releases/mozilla-$CHANNEL"
     9 BRANCH="releases/mozilla-$CHANNEL"
    10 RELEASE_TAG="FIREFOX_55_0b13_RELEASE"
    10 RELEASE_TAG="FIREFOX_56_0b12_RELEASE"  # 55.0.3 build2
    11 VERSION="54.99"
    11 VERSION="55.99"
    12 
    12 
    13 # mozilla
    13 # mozilla
    14 if [ -d mozilla ]; then
    14 if [ -d mozilla ]; then
    15   pushd mozilla
    15   pushd mozilla
    16   _repourl=$(hg paths)
    16   _repourl=$(hg paths)
    38 echo -n "REV=" > ../source-stamp.txt
    38 echo -n "REV=" > ../source-stamp.txt
    39 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    39 hg -R . parent --template="{node|short}\n" >> ../source-stamp.txt
    40 echo -n "REPO=" >> ../source-stamp.txt
    40 echo -n "REPO=" >> ../source-stamp.txt
    41 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
    41 hg showconfig paths.default 2>/dev/null | head -n1 | sed -e "s/^ssh:/http:/" >> ../source-stamp.txt
    42 popd
    42 popd
       
    43 
       
    44 # use parallel compression, if available
       
    45 compression='-J'
       
    46 pixz -h > /dev/null 2>&1
       
    47 if (($? != 127)); then
       
    48   compression='-Ipixz'
       
    49 fi
       
    50 
    43 echo "creating archive..."
    51 echo "creating archive..."
    44 tar cJf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    52 tar $compression -cf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    45 
    53 
    46 # l10n
    54 # l10n
    47 echo "fetching locales..."
    55 echo "fetching locales..."
    48 test ! -d l10n && mkdir l10n
    56 test ! -d l10n && mkdir l10n
    49 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    57 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    58       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
    66       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
    59       ;;
    67       ;;
    60   esac
    68   esac
    61 done
    69 done
    62 echo "creating l10n archive..."
    70 echo "creating l10n archive..."
    63 tar cJf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    71 tar $compression -cf l10n-$VERSION.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
    64 
    72 
    65 # compare-locales
    73 # compare-locales
    66 echo "creating compare-locales"
    74 echo "creating compare-locales"
    67 hg clone http://hg.mozilla.org/build/compare-locales
    75 hg clone http://hg.mozilla.org/build/compare-locales
    68 tar cJf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
    76 tar $compression -cf compare-locales.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg compare-locales
    69 
    77