summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-12 00:35:44 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-12 00:35:44 +0100
commit350675db307ad5f3c86fa7b51da3632fc6df0a1a (patch)
treeb0690416ed9c7f4e18ce6d871db41e6854f41c1e /bin
parentf6df15b97a41ff4cb3e9836744935731d3dcffa0 (diff)
downloadjenkins.debian.net-350675db307ad5f3c86fa7b51da3632fc6df0a1a.tar.xz
ignore translations when checking www.debian.org
Diffstat (limited to 'bin')
-rwxr-xr-xbin/webcheck_url.sh13
1 files changed, 12 insertions, 1 deletions
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
#