repo.or.cz
/
docutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Doctree Documentation: Remove trailing semi-colon from parameter entity names.
[docutils.git]
/
sandbox
/
verse-writer
/
runtest
blob
43686623a714ddcaf3bc27d90859a8030a118ad2
1
#!/bin/sh
2
3
IN_DIR
=
input
4
OUT_DIR
=
output
5
EXP_DIR
=
expected
6
7
if
[
-z
"
$1
"
] ;
then
8
FILES
=*
.txt
9
else
10
FILES
=
$1
11
fi
12
13
if
[ !
-d
$OUT_DIR
] ;
then
14
mkdir
$OUT_DIR
15
fi
16
17
CMD
=
"python rst2verse.py"
18
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
25
fi
26
done