Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
12173 | bpr | 1 | clean=$1 |
2 | configdir=. |
||
3 | outputdir=tmp |
||
4 | mkdir -p $outputdir |
||
5 | validator="$configdir/w3c-validator.py" |
||
6 | cleanup="$configdir/validator_clean.pl --option=$clean" |
||
7 | rm -f $outputdir/html.log |
||
8 | mod=devel/wimsdev/help~teacher~program.fr |
||
9 | for job in `ls ../../public_html/modules/$mod/fr`; do |
||
10 | job=`basename $job .phtml` ; |
||
11 | message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&job=$job" -nv -O test.html ; |
||
12 | $validator test.html 2>&1;` |
||
13 | if [ "$message" ] ; then |
||
14 | echo -e "$job\n$message\n" >> $outputdir/html.log; |
||
15 | fi; |
||
16 | $cleanup --dir=$outputdir |
||
17 | done |
||
18 | |||
19 | exit |