aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@gentoo.org>2010-06-17 22:40:35 +0530
committerNirbheek Chauhan <nirbheek@gentoo.org>2010-06-17 22:41:26 +0530
commitc68186491d3570faa9cbfa3991563fba8ae0820a (patch)
tree1d09f78b6b3b47c8f31b7f0b8db9bed64be970ef /scripts
parentfirefox, xulrunner: Betas get lang packs but no source releases (diff)
downloadmozilla-c68186491d3570faa9cbfa3991563fba8ae0820a.tar.gz
mozilla-c68186491d3570faa9cbfa3991563fba8ae0820a.tar.bz2
mozilla-c68186491d3570faa9cbfa3991563fba8ae0820a.zip
scripts/get_langs.sh: Allow langs of any product to be fetched
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get_langs.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh
index 1de1c7c4..6f1b072d 100755
--- a/scripts/get_langs.sh
+++ b/scripts/get_langs.sh
@@ -1,13 +1,14 @@
#!/bin/sh
-if test -z "${1}"; then
- echo "Usage: ${0} FF_VER"
+if test -z "${2}"; then
+ echo "Usage: ${0} <product> <version>"
exit 1
fi
INBUILT_LANGS="en en-US"
-VER="${1}"
-MIRROR_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${VER}/linux-i686/xpi/"
+PRODUCT="${1}"
+VER="${2}"
+MIRROR_URI="http://releases.mozilla.org/pub/mozilla.org/${PRODUCT}/releases/${VER}/linux-i686/xpi/"
XPI_LANGS=$(wget -q "${MIRROR_URI}" -O - | grep -o '[a-zA-Z-]\+\.xpi' | uniq | sed 's/\.xpi//')
LANGS=$(echo ${INBUILT_LANGS} ${XPI_LANGS} | tr " " "\n" | sort -d)
echo ${LANGS}