You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
558 B
20 lines
558 B
14 years ago
|
#!/bin/sh
|
||
|
# http://fabien.benetou.fr/Wiki/ToDo#Maintenance
|
||
|
# TODO
|
||
|
# generalize for other URLs
|
||
|
if [ $# -lt 1 ]
|
||
|
then
|
||
|
echo "Check page per page against dead links for PmWiki"
|
||
|
echo "usage: $0 PmWiki_path"
|
||
|
exit
|
||
|
fi
|
||
|
PATH=$1
|
||
|
NOW_EPOCH=$(date +"%s")
|
||
|
URL=http://fabien.benetou.fr/
|
||
|
for PAGE in $(ls $1/wiki.d/* | grep -v PmWiki. | grep -v Site | sed "s/.*wiki\.d\///" | tr "." "/")
|
||
|
do
|
||
|
checklink -s $URL/$PAGE > $PATH/pub/checking/$(echo $PAGE|tr "/" ".").check
|
||
|
# using the Perl W3C-checklink
|
||
|
## should fail if not installed and suggest the CPAN command
|
||
|
done;
|