test.sh 309 Bytes
#!/bin/sh

FILES=${@:-"odt/sejm-2rp/17_186_000033839.odt"}
OUTPUT=output/tei
python odt2tei.py $FILES

for folder in $OUTPUT/*; do
	if [ -d $OUTPUT.orig/$folder ]; then
		echo $folder
		diff -r $OUTPUT.orig $OUTPUT
	fi
done > output.diff
if [ -s output.diff ]; then
	cat output.diff
else
	rm -f output.diff
fi