Skip to content

Instantly share code, notes, and snippets.

@retornam
Forked from m8ttyB/locales.sh
Created October 26, 2012 21:04
Show Gist options
  • Save retornam/3961494 to your computer and use it in GitHub Desktop.
Save retornam/3961494 to your computer and use it in GitHub Desktop.
for testing the stub installer (curling ftw)
#!/bin/bash
locales=(en-US ach af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko ku lg lij lt lv mai mk ml mn mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE sw ta ta-LK te th tr uk vi zh-CN zh-TW zu)
#products=(firefox-beta-stub firefox-aurora-latest firefox-beta-latest firefox-nightly-latest)
products=(firefox-16.0.2 firefox-16.0.2-TESTING)
#locales=(en-US fr de lg)
platforms=(win linux linux64 osx)
for product in "${products[@]}"
do
for locale in "${locales[@]}"
do
for platform in "${platforms[@]}"
do
echo "product: $product, local: $l, platform: $p"
for i in {1..500}; do curl -v "https://download.mozilla.org/?product=${product}&os=${platform}&lang=${locale}" 2>&1 | grep Location; done | sort | uniq -c
done
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment