File: test_links.bash

package info (click to toggle)
yasat 526-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 920 kB
  • sloc: sh: 4,723; makefile: 47
file content (15 lines) | stat: -rwxr-xr-x 482 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
grep -ri 'http://' * | grep -v .svn | sed 's,http://,\nhttp://,g' | grep ^http | cut -d\  -f1 |\
	grep -viE 'www.gnu.org/licenses|yasat.sourceforge.net|fsf.org|your-proxy:8080|sf.net/yasat/yasat|www.gnu.org/philosophy/why-not-lgpl' |\
	grep -viE 'downloads.sourceforge.net/project/yasat|ftp.jp.debian.org/debian-non-US' \
	| sed 's,</a>,,' | cut -d\" -f1 |
while read line
do
	wget -q $line -O plop
	echo "test $line"
	if [ $? -ne 0 ] ; then
		echo "PAS BON"
	fi
done