From 350675db307ad5f3c86fa7b51da3632fc6df0a1a Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 12 Nov 2012 00:35:44 +0100 Subject: ignore translations when checking www.debian.org --- bin/webcheck_url.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'bin/webcheck_url.sh') diff --git a/bin/webcheck_url.sh b/bin/webcheck_url.sh index 537ee90c..321a50be 100755 --- a/bin/webcheck_url.sh +++ b/bin/webcheck_url.sh @@ -33,11 +33,22 @@ if [ "${1: -1}" = "/" ] ; then fi # -# $2 can only by used to ignore pattern atm +# $2 can only by used to ignore patterns atm # if [ "$2" != "" ] ; then PARAMS="$PARAMS $(for i in $2 ; do echo -n " -y $i" ; done)" fi + +# +# ignore a a lot more patterns (=all translations) when checking www.debian.org +# +if [ "${2:0-21}" = "http://www.debian.org" ] ; then + TRANSLATIONS=$(curl www.debian.org 2>/dev/null|grep index|grep lang=|cut -d "." -f2) + for LANG in $TRANSLATIONS ; do + PARAMS="$PARAMS -y $LANG.html" + done +fi + # # actually run webcheck # -- cgit v1.2.3-54-g00ecf