Subversion Repositories wimsdev

Rev

Rev 16249 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16249 Rev 16352
Line 66... Line 66...
66
  author=`grep "author" $moddir/$mod/INDEX | sed -e "s/author=//g"`
66
  author=`grep "author" $moddir/$mod/INDEX | sed -e "s/author=//g"`
67
  email=`grep "\baddress" $moddir/$mod/INDEX | sed -e "s/address=//g"`
67
  email=`grep "\baddress" $moddir/$mod/INDEX | sed -e "s/address=//g"`
68
  category=`grep category $moddir/$mod/INDEX | sed -e "s/category=//g"`
68
  category=`grep category $moddir/$mod/INDEX | sed -e "s/category=//g"`
69
  message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod" -nv -O  test_intro.html ; $validator test_intro.html  2>&1; `
69
  message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod" -nv -O  test_intro.html ; $validator test_intro.html  2>&1; `
70
  if [ "$message" ] ; then
70
  if [ "$message" ] ; then
71
    echo -e "$author\t$email\tmodule=$mod\tintro\n$message END\n" > $outputdir/html.log ;
71
    echo -e "BEGIN $author\t$email\tmodule=$mod\tintro\n$message END\n" > $outputdir/html.log ;
72
  fi
72
  fi
73
  if [ "$category" = "document" ] ; then
73
  if [ "$category" = "document" ] ; then
74
    lblock=`ls $moddir/$mod/doc/1/*.def` ;
74
    lblock=`ls $moddir/$mod/doc/1/*.def` ;
75
    for bl in $lblock ; do
75
    for bl in $lblock ; do
76
#####doc=1
76
#####doc=1
77
      block=`basename $bl .def`
77
      block=`basename $bl .def`
78
      message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&doc=1&block=$block&job=read" -nv -O  test.html ; $validator test.html  2>&1; `
78
      message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&doc=1&block=$block&job=read" -nv -O  test.html ; $validator test.html  2>&1; `
79
     # session=`grep -e "$forsession\s*[[:alnum:]]" test.html | sed -e "s/The server is under debug mode. Your session: //g" | sed -e "s|. <br />||g" sed -e "s| ||g"` ;
79
     # session=`grep -e "$forsession\s*[[:alnum:]]" test.html | sed -e "s/The server is under debug mode. Your session: //g" | sed -e "s|. <br />||g" sed -e "s| ||g"` ;
80
      if [ "$message" ] ; then
80
      if [ "$message" ] ; then
81
       echo -e "$author\t$email\tmodule=$mod block=$block\n$message END\n" >> $outputdir/html.log ;
81
       echo -e "BEGIN $author\t$email\tmodule=$mod block=$block\n$message END\n" >> $outputdir/html.log ;
82
      fi ;
82
      fi ;
83
      mathml=`grep "$searchmathml" test.html` ;
83
      mathml=`grep "$searchmathml" test.html` ;
84
      if [ "$mathml" ] ; then
84
      if [ "$mathml" ] ; then
85
       echo -e "$author\t$email\tmodule=$mod block=$block\t$mathml\n" >> $outputdir/mathml.log
85
       echo -e "$author\t$email\tmodule=$mod block=$block\t$mathml\n" >> $outputdir/mathml.log
86
      fi
86
      fi
Line 130... Line 130...
130
    for exo in $lexo ; do
130
    for exo in $lexo ; do
131
     message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&$motexo=$exo&cmd=new" -nv -O  test.html ; $validator test.html  2>&1 ;`
131
     message=`wget "http://127.0.0.1/wims/wims.cgi?module=$mod&$motexo=$exo&cmd=new" -nv -O  test.html ; $validator test.html  2>&1 ;`
132
     session=`grep -e "$forsession\s*[[:alnum:]]" test.html | sed -e "s/The server is under debug mode. Your session: //g" | sed -e "s|. <br />||g" | sed -e "s| ||g"` ;
132
     session=`grep -e "$forsession\s*[[:alnum:]]" test.html | sed -e "s/The server is under debug mode. Your session: //g" | sed -e "s|. <br />||g" | sed -e "s| ||g"` ;
133
 
133
 
134
     if [ "$message" ] ; then
134
     if [ "$message" ] ; then
135
       echo -e "$author\t$email\tmodule=$mod&$motexo=$exo\n$message END\n" >> $outputdir/html.log ;
135
       echo -e "BEGIN $author\t$email\tmodule=$mod&$motexo=$exo\n$message END\n" >> $outputdir/html.log ;
136
     fi ;
136
     fi ;
137
     ## inutile d'utiliser tidy
137
     ## inutile d'utiliser tidy
138
     mathml=`grep "$searchmathml" test.html` ;
138
     mathml=`grep "$searchmathml" test.html` ;
139
      if [ "$mathml" ] ; then
139
      if [ "$mathml" ] ; then
140
       echo -e "$author\t$email\tmodule=$mod&$motexo=$exo\t$mathml\n" >> $outputdir/mathml.log
140
       echo -e "$author\t$email\tmodule=$mod&$motexo=$exo\t$mathml\n" >> $outputdir/mathml.log