diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/get_langs.sh | 9 |
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} |