project-tools-archive/test_links.sh
Pierre Schweitzer 719a5d20d2 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
2011-12-07 21:28:53 +00:00

21 lines
449 B
Bash
Executable File

#!/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