mirror of
https://github.com/reactos/project-tools-archive.git
synced 2024-11-26 21:30:26 +00:00
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:
parent
b251fa66db
commit
719a5d20d2
20
test_links.sh
Executable file
20
test_links.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user