summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-12 02:23:01 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-12 02:23:01 +0100
commitffca164c4a6288cf6344ef83d82a4f20cb388c7d (patch)
treeab5004e0c882d309415ab75b14c3e247bc201ed2
parentd9375ffa4ce19ce4d69bd66d6b1e0d3ff48082a4 (diff)
downloadjenkins.debian.net-ffca164c4a6288cf6344ef83d82a4f20cb388c7d.tar.xz
hardcode languages used on www.debian.org instead of using curl and grep
-rwxr-xr-xbin/webcheck_url.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh
index f8cdfdad..fee02ba1 100755
--- a/bin/webcheck_url.sh
+++ b/bin/webcheck_url.sh
@@ -43,7 +43,9 @@ fi
# ignore some extra patterns (=all translations) when checking www.debian.org
#
if [ "${URL:0:21}" = "http://www.debian.org" ] ; then
- TRANSLATIONS=$(curl www.debian.org 2>/dev/null|grep index|grep lang=|cut -d "." -f2)
+ # originly was TRANSLATIONS=$(curl www.debian.org 2>/dev/null|grep index|grep lang=|cut -d "." -f2)
+ # but then I had to add some and then some more... so I reached to the conclusion to hardcode them all
+ TRANSLATIONS="ar bg ca cs da de el es eo fa fr ko hy hr id it he lt hu nl ja nb pl pt ro ru sk fi sv ta tr uk zh-cn zh-hk zh-tw ml vi"
for LANG in $TRANSLATIONS pt_BR zh_CN zh_HK zh_TW ; do
PARAMS="$PARAMS -y \.${LANG}\.html -y html\.${LANG} -y \.${LANG}\.txt -y \.txt\.${LANG} -y \.${LANG}\.pdf -y \.pdf\.${LANG}"
done