summaryrefslogblamecommitdiffstats
path: root/thml2osis/xslt/tests/update_test.sh
blob: 12f2c175e10f93ba570635e6a20956c14c37138a (plain) (tree)


















                                                                     
#!/bin/bash

if [ $# -ne 1 ]
then
    echo "Usage: update_test.sh testname"
    exit 1
fi

TESTNAME=$1
TESTTHML=${TESTNAME}.thml
TESTOSISFLAT=${TESTNAME}.osis.flat

if [ ! -f $TESTTHML ]
then
    echo "Test $TESTNAME does not exist."
    exit 1
fi

xsltproc --novalid ../thml2osis.xslt $TESTTHML | xml2 > $TESTOSISFLAT