freebsd-ports/security/vuxml/files/tidy.sh
Jacques Vidrine a0b833d3a4 Correct usage message for tidy.sh.
Submitted by:	Frankye Fattarelli <frankye@ipv5.net>
2004-04-01 22:41:02 +00:00

18 lines
387 B
Bash

#! /bin/sh
tidy_file="$1"
vuxml_file="$2"
if [ -z "${vuxml_file}" -o -z "${tidy_file}" ]; then
exec >&2
echo "Usage: tidy.sh /path/to/tidy.xsl /path/to/vuxml/document"
exit 1
fi
X=`/usr/bin/which xsltproc`
if [ -z "$X" ]; then
exec >&2
echo "Could not find \`xsltproc\'."
echo "Install ports/textproc/libxslt."
exit 1
fi
xsltproc --novalid "${tidy_file}" "${vuxml_file}"