MozillaFirefox/create-tar.sh
branchfirefox60
changeset 1047 847ae61baab6
parent 1046 75893a3d8fbe
child 1048 a6a2360bc1bd
equal deleted inserted replaced
1046:75893a3d8fbe 1047:847ae61baab6
     3 # TODO
     3 # TODO
     4 # http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/linux-x86_64/en-US/firefox-48.0.json
     4 # http://ftp.mozilla.org/pub/firefox/candidates/48.0-candidates/build2/linux-x86_64/en-US/firefox-48.0.json
     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="release"
     9 BRANCH="releases/mozilla-$CHANNEL"
     9 BRANCH="releases/mozilla-$CHANNEL"
    10 RELEASE_TAG="FIREFOX_60_0b16_RELEASE"
    10 RELEASE_TAG="ea4f3168c604994f051644b467aad92723448d12"
    11 VERSION="59.99"
    11 VERSION="60.0"
    12 
    12 
    13 # check required tools
    13 # check required tools
    14 test -x /usr/bin/hg || ( echo "hg missing: execute zypper in mercurial"; exit 5 )
    14 test -x /usr/bin/hg || ( echo "hg missing: execute zypper in mercurial"; exit 5 )
    15 test -x /usr/bin/jq || ( echo "jq missing: execute zypper in jq"; exit 5 )
    15 test -x /usr/bin/jq || ( echo "jq missing: execute zypper in jq"; exit 5 )
    16 
    16 
    52 if (($? != 127)); then
    52 if (($? != 127)); then
    53   compression='-Ipixz'
    53   compression='-Ipixz'
    54 fi
    54 fi
    55 
    55 
    56 echo "creating archive..."
    56 echo "creating archive..."
    57 tar $compression -cf firefox-$VERSION-source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    57 tar $compression -cf firefox-$VERSION.source.tar.xz --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
    58 
    58 
    59 # l10n
    59 # l10n
    60 echo "fetching locales..."
    60 echo "fetching locales..."
    61 test ! -d l10n && mkdir l10n
    61 test ! -d l10n && mkdir l10n
    62 jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' mozilla/browser/locales/l10n-changesets.json | \
    62 jq -r 'to_entries[]| "\(.key) \(.value|.revision)"' mozilla/browser/locales/l10n-changesets.json | \