Blame view

test.sh 436 Bytes
Michał Rudolf authored
1
2
#!/bin/sh
Michał Rudolf authored
3
FILES=${@:-"odt/sejm-2rp/17_186_000033839.odt odt/sejm-2rp/18_139_000034574.odt odt/sejm-2rp/25_002_000051142.odt"}
Michał Rudolf authored
4
5
OUTPUT=output/tei
python odt2tei.py $FILES
Michał Rudolf authored
6
Michał Rudolf authored
7
for folder in $OUTPUT/*; do
Michał Rudolf authored
8
9
10
11
	subfolder=$(basename $folder)
	if [ -d $OUTPUT.orig/$subfolder ]; then
		echo $subfolder
		diff -r $OUTPUT.orig/$subfolder $OUTPUT/$subfolder
Michał Rudolf authored
12
13
14
15
	fi
done > output.diff
if [ -s output.diff ]; then
	cat output.diff
Michał Rudolf authored
16
else
Michał Rudolf authored
17
	rm -f output.diff
Michał Rudolf authored
18
fi