MozillaFirefox/create-tar.sh
branchfirefox58
changeset 1028 4ce2b699562f
parent 1026 963c89cda54b
child 1031 4b419fce88dc
equal deleted inserted replaced
1027:7071f6ebfda6 1028:4ce2b699562f
     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="release"
     8 CHANNEL="release"
     9 BRANCH="releases/mozilla-$CHANNEL"
     9 BRANCH="releases/mozilla-$CHANNEL"
    10 RELEASE_TAG="40755aa80f41ee6df8995ae44044caf7a024b128"
    10 RELEASE_TAG="FIREFOX_58_0_1_RELEASE"
    11 VERSION="58.0"
    11 VERSION="58.0.1"
    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)
    52 tar $compression -cf 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
    53 
    53 
    54 # l10n
    54 # l10n
    55 echo "fetching locales..."
    55 echo "fetching locales..."
    56 test ! -d l10n && mkdir l10n
    56 test ! -d l10n && mkdir l10n
    57 for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
    57 for locale in $(awk '{ print $1; }' l10n_changesets.txt); do
    58   case $locale in
    58   case $locale in
    59     ja-JP-mac|en-US)
    59     ja-JP-mac|en-US)
    60       ;;
    60       ;;
    61     *)
    61     *)
    62       echo "reading changeset information for $locale"
    62       echo "reading changeset information for $locale"
    63       _changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }')
    63       _changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }')
    64       echo "fetching $locale changeset $_changeset ..."
    64       echo "fetching $locale changeset $_changeset ..."
    65       hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
    65       hg clone http://hg.mozilla.org/l10n-central/$locale l10n/$locale
    66       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
    66       [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
    67       ;;
    67       ;;
    68   esac
    68   esac
    69 done
    69 done
    70 echo "creating l10n archive..."
    70 echo "creating l10n archive..."