From c68186491d3570faa9cbfa3991563fba8ae0820a Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 17 Jun 2010 22:40:35 +0530 Subject: scripts/get_langs.sh: Allow langs of any product to be fetched --- scripts/get_langs.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts') 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} " 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} -- cgit v1.2.3-65-gdbad