test.sh 436 Bytes
#!/bin/sh

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

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