MozillaFirefox/create-tar.sh
branchfirefox46
changeset 909 c6717354928b
parent 906 7e9a2b678bba
child 914 20bd16d68ed2
--- a/MozillaFirefox/create-tar.sh	Sun Jan 24 13:40:23 2016 +0100
+++ b/MozillaFirefox/create-tar.sh	Thu Apr 28 17:08:03 2016 +0200
@@ -1,9 +1,14 @@
 #!/bin/bash
 
-CHANNEL="beta"
+# TODO
+# http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/linux-x86_64/en-US/firefox-46.0.json
+# "moz_source_stamp": "078baf501b55eaa47f3b189fda4dd28dae1fa257"
+# http://ftp.mozilla.org/pub/firefox/candidates/46.0-candidates/build5/l10n_changesets.txt
+
+CHANNEL="release"
 BRANCH="releases/mozilla-$CHANNEL"
-RELEASE_TAG="FIREFOX_44_0b9_RELEASE"
-VERSION="43.99"
+RELEASE_TAG="078baf501b55eaa47f3b189fda4dd28dae1fa257"
+VERSION="46.0"
 
 # mozilla
 if [ -d mozilla ]; then
@@ -46,9 +51,11 @@
     ja-JP-mac|en-US)
       ;;
     *)
-      echo "fetching $locale ..."
+      echo "reading changeset information for $locale"
+      _changeset=$(grep ^$locale l10n_changesets.txt | awk '{ print $2; }')
+      echo "fetching $locale changeset $_changeset ..."
       hg clone http://hg.mozilla.org/releases/l10n/mozilla-$CHANNEL/$locale l10n/$locale
-      [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $RELEASE_TAG
+      [ "$RELEASE_TAG" == "default" ] || hg -R l10n/$locale up -C -r $_changeset
       ;;
   esac
 done