Fix: docutils/__init__.py __version_info__ must be changed manually
[docutils.git] / sandbox / paultremblay / other / test_rsttoxml.sh
blob5ec5710c566080a151b2b70ed8e222c2fee4498e
1 set -e -u
2 TEST_DIR=/Users/cejohnsonlouisville/Documents/docutils/trunk/sandbox/paultremblay/functional
3 rst_files=`find ${TEST_DIR} -name '*txt'`
4 for rst_file in $rst_files
5 do
6 echo $rst_file
7 rsttoxml.py $rst_file | xmlformat.pl > my_rst.xml
8 rst2xml.py --no-xml-declaration --no-doctype --no-generator --trim-footnote-reference-space $rst_file | xmlformat.pl > standard_rst.xml
9 diff my_rst.xml standard_rst.xml
10 done
13 TEST_DIR=/Users/cejohnsonlouisville/Documents/docutils/trunk/sandbox/paultremblay/test_files/
14 rst_files=`ls ${TEST_DIR}/*rst`
15 for rst_file in $rst_files
17 echo $rst_file
18 rsttoxml.py $rst_file | xmlformat.pl > my_rst.xml
19 rst2xml.py --no-xml-declaration --no-doctype --no-generator --trim-footnote-reference-space $rst_file | xmlformat.pl > standard_rst.xml
20 diff my_rst.xml standard_rst.xml
21 done