diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2015-03-09 21:16:36 +0100 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2015-03-09 21:16:36 +0100 |
commit | 5a5a0acd3b2fc94993ca5e207004492fff839b51 (patch) | |
tree | b1a02dcd9397421bb442c84b20f410689817869f | |
parent | 717dbae2661a93548cde0ddfc9146784f29a89c1 (diff) |
Download translations in parallel
-rwxr-xr-x[-rw-r--r--] | makeicecat | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/makeicecat b/makeicecat index 75809c7..eb378cb 100644..100755 --- a/makeicecat +++ b/makeicecat @@ -89,19 +89,25 @@ mv compare-locales $SOURCEDIR/python/ mkdir l10n cd l10n + + +echo Downloading translations in parallel while read line;do - line=$(echo $line |cut -d' ' -f1) - #[ $line = "es-ES" ] || continue - [ $line = "en-US" ] && continue - hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$line - cd $line + hg clone http://hg.mozilla.org/releases/l10n/mozilla-release/$line > /dev/null & +done < ../$SOURCEDIR/browser/locales/shipped-locales + +wait +echo Done downloading translations in parallel + +for dir in *; do + cd $dir hg checkout FIREFOX_31_0esr_RELEASE || true hg checkout FIREFOX_${FFMAJOR}_${FFMINOR}_${FFSUB}esr_RELEASE || true - mkdir -p $line/browser/chrome/browser/preferences - touch $line/browser/chrome/browser/preferences/advanced-scripts.dtd + mkdir -p browser/chrome/browser/preferences + touch browser/chrome/browser/preferences/advanced-scripts.dtd rm -rf .hg* cd .. -done < ../$SOURCEDIR/browser/locales/shipped-locales +done cd .. mv l10n $SOURCEDIR |