medit/moo/mooedit/syntax/check.sh

16 lines
337 B
Bash
Raw Normal View History

#!/bin/sh
2006-03-07 00:50:54 -08:00
langs="c.lang diff.lang latex.lang misc.lang make.lang ms.lang python.lang python-console.lang sh.lang xml.lang sci.lang gap.lang scheme.lang"
styles="garnacho.styles gvim.styles"
files="$langs $styles"
if [ $1 ]; then
files=$*
fi
for file in $files; do
if ! xmllint --valid --noout $file ; then
exit 1
fi
done