diff options
author | nirbheek <nirbheek@6618de09-9924-0410-a474-e320b3795f1b> | 2009-07-02 07:25:54 +0000 |
---|---|---|
committer | nirbheek <nirbheek@6618de09-9924-0410-a474-e320b3795f1b> | 2009-07-02 07:25:54 +0000 |
commit | 3a33ea97c290487254f375696d2e47bfb9f094ed (patch) | |
tree | 3b928d70042450583049575f16746fc41bba728d /scripts | |
parent | Script for getting supported language packs for a firefox release (diff) | |
download | mozilla-3a33ea97c290487254f375696d2e47bfb9f094ed.tar.gz mozilla-3a33ea97c290487254f375696d2e47bfb9f094ed.tar.bz2 mozilla-3a33ea97c290487254f375696d2e47bfb9f094ed.zip |
Fix get_langs.sh to handle en and en-US
git-svn-id: svn://overlays.gentoo.org/proj/mozilla@228 6618de09-9924-0410-a474-e320b3795f1b
Diffstat (limited to 'scripts')
-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} |