diff --git a/shell_scripts/wiki_link_checking b/shell_scripts/wiki_link_checking index a6650a0..ce50692 100755 --- a/shell_scripts/wiki_link_checking +++ b/shell_scripts/wiki_link_checking @@ -1,7 +1,10 @@ #! /usr/bin/env bash + # http://fabien.benetou.fr/Wiki/ToDo#Maintenance # TODO +# add incremental option to use with batch # generalize for other URLs + if [ $# -lt 1 ] then echo "Check page per page against dead links for PmWiki" @@ -11,6 +14,10 @@ fi PATH=$1 NOW_EPOCH=$(date +"%s") URL=http://fabien.benetou.fr/ + +# get the last link checked +# if last or none start from link 1 + 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