diff options
Diffstat (limited to 'scripts/get_langs.sh')
-rwxr-xr-x | scripts/get_langs.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/get_langs.sh b/scripts/get_langs.sh index 0ac2fbfa..1de1c7c4 100755 --- a/scripts/get_langs.sh +++ b/scripts/get_langs.sh @@ -5,6 +5,9 @@ if test -z "${1}"; then 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/" -echo $(wget -q "${MIRROR_URI}" -O - | grep -o '[a-zA-Z-]\+\.xpi' | uniq | sed 's/\.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} |