mozilla-xulrunner193/create-tar.sh
changeset 76 93fb7400b957
parent 67 a05eb1c8699f
child 78 e0271a18500f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-xulrunner193/create-tar.sh	Fri May 21 14:18:47 2010 +0200
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+RELEASE_TAG="FIREFOX_3_6_4_RELEASE"
+VERSION="1.9.2.4"
+
+# mozilla
+hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 mozilla
+pushd mozilla
+hg update -r $RELEASE_TAG
+popd
+tar cjf xulrunner-source-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg --exclude=CVS mozilla
+
+# l10n
+test ! -d l10n && mkdir l10n
+for locale in $(awk '{ print $1; }' mozilla/browser/locales/shipped-locales); do
+  case $locale in 
+    ja-JP-mac|en-US)
+      ;;
+    *)
+      hg clone http://hg.mozilla.org/releases/l10n-mozilla-1.9.2/$locale l10n/$locale
+      hg -R l10n/$locale up -C -r $RELEASE_TAG
+      ;;
+  esac
+done
+tar cjf l10n-$VERSION.tar.bz2 --exclude=.hgtags --exclude=.hgignore --exclude=.hg l10n
+