MozillaFirefox/create-tar.sh
changeset 1031 4b419fce88dc
parent 1028 4ce2b699562f
child 1032 8220ea23b47d
equal deleted inserted replaced
1024:d14085eee2b2 1031:4b419fce88dc
     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_58_0b15_RELEASE"
    10 RELEASE_TAG="73ef186ad51ac2c4fc27b1f149fcc94355fe7dc6"
    11 VERSION="57.99"
    11 VERSION="58.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)
    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..."