mirror of
https://github.com/reactos/project-tools-archive.git
synced 2024-11-26 21:30:26 +00:00
719a5d20d2
As Google seems not to like wget spider mode, Miranda link check always fails (whereas the file exists). svn path=/trunk/; revision=1346
21 lines
449 B
Bash
Executable File
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
|