test.sh
458 Bytes
#!/bin/sh
FILES=${@:-"odt"}
GLOBIGNORE="*-orig.*"
# ./odt2tei.py -d test odt/{2_066_000005112.odt,2_077_000005200.odt,8_23-KomOswiaty.odt}
./odt2tei.py -d test -v "$VERBOSE" test/md/{2_066_000005112.md,2_077_000005200.md,8_23-KomOswiaty.md}
cd test/clean
if [ "$1" == "-a" ]; then
for md in *.md; do
cp $md $(basename $md .md)-orig.md
done
else
for md in *.md; do
orig=$(basename $md .md)-orig.md
echo "### Check $md..."
diff $orig $md
done
fi