#!/bin/sh

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib

# argument checking
if [ ${#} -ne "2" ]; then
        echo "Usage: ${0} <word document> <html output file>"
        exit 1
fi

which wvWare >/dev/null 2>&1
if [ ${?} -ne "0" ]; then
    echo "Could not find required program 'wvWare'"
    exit 1
fi

wvWare -x ${libdir}/wv/wvHtml.xml "${1}" > "${2}"
