From ffca164c4a6288cf6344ef83d82a4f20cb388c7d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 02:23:01 +0100 Subject: hardcode languages used on www.debian.org instead of using curl and grep --- bin/webcheck_url.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2