blob: ca0a53fb9ec6e7da4be3d21a95bdad8184a56ed0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
IN_DIR=input
OUT_DIR=output
EXP_DIR=expected
if [ -z "$1" ] ; then
FILES=*.txt
else
FILES=$1
fi
for IN_F in $IN_DIR/$FILES ; do
BASE=`basename $IN_F`
if [ $BASE == "tutorial.txt" -o $BASE == "reference.txt" ] ; then
continue
fi
F_BASE=${BASE/.txt}
python rst2docpy.py $IN_F $OUT_DIR/$F_BASE.tex
diff -s -u $EXP_DIR/$F_BASE.tex $OUT_DIR/$F_BASE.tex
done
|