Doctree Documentation: Remove trailing semi-colon from parameter entity names.
[docutils.git] / sandbox / verse-writer / runtest
blob43686623a714ddcaf3bc27d90859a8030a118ad2
1 #!/bin/sh
3 IN_DIR=input
4 OUT_DIR=output
5 EXP_DIR=expected
7 if [ -z "$1" ] ; then
8 FILES=*.txt
9 else
10 FILES=$1
13 if [ ! -d $OUT_DIR ] ; then
14 mkdir $OUT_DIR
17 CMD="python rst2verse.py"
19 for IN_F in $IN_DIR/$FILES ; do
20 BASE=`basename $IN_F`
21 F_BASE=${BASE/.txt}
22 $CMD $IN_F $OUT_DIR/$F_BASE.tex
23 if [ $? -eq 0 ] ; then
24 diff -s -u $EXP_DIR/$F_BASE.tex $OUT_DIR/$F_BASE.tex
26 done