Add a tool to automatically check rapps links for dead links.

As Google seems not to like wget spider mode, Miranda link check always fails (whereas the file exists).

svn path=/trunk/; revision=1346
This commit is contained in:
Pierre Schweitzer 2011-12-07 21:28:53 +00:00
parent b251fa66db
commit 719a5d20d2

20
test_links.sh Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
#
# Quick rapps links checker
# Copyright 2011 Pierre Schweitzer <pierre@reactos.org>
#
# Released under GNU GPL v2 or any later version.
rm all_links.txt 1>&2 2>/dev/null
cat *.txt > all_links.txt
while read line
do
link=`echo $line | grep "URLDownload" | tr -d '\n' | tr -d '\r' | awk '{print $3}'`
if [ ! -z "$link" ]; then
echo "Testing $link..."
wget --spider --force-html $link
fi
done < "all_links.txt"
rm all_links.txt