Rev 12173 | Details | Compare with Previous | 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 |
||
14585 | bpr | 9 | mod=help/teacher/program.fr |
12173 | bpr | 10 | for job in `ls ../../public_html/modules/$mod/fr`; do |
11 | job=`basename $job .phtml` ; |
||
12 | message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&job=$job" -nv -O test.html ; |
||
13 | $validator test.html 2>&1;` |
||
14 | if [ "$message" ] ; then |
||
15 | echo -e "$job\n$message\n" >> $outputdir/html.log; |
||
16 | fi; |
||
17 | $cleanup --dir=$outputdir |
||
18 | done |
||
19 | |||
20 | exit |