1N/A#
1N/A# hal-fdi-validate.sh : Validate one or more fdi(4) files
1N/A#
1N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
1N/A# Use is subject to license terms.
1N/A#
1N/A# Licensed under the Academic Free License version 2.1
1N/A#
1N/A# ident "%Z%%M% %I% %E% SMI"
1N/A#
1N/A
1N/Ausage() {
1N/A echo "Usage: hal-fdi-validate [-f dtd] file [file ...]"
1N/A exit 1
1N/A}
1N/A
1N/Aif [ "$1" = "-f" ]; then
1N/A if [ "foo$2" != "foo" ] ; then
1N/A DTD="$2"
1N/A shift 2
1N/A else
1N/A usage
1N/A fi
1N/Aelse
1N/A DTD="/usr/share/lib/xml/dtd/fdi.dtd.1"
1N/Afi
1N/A
1N/Aif [ $# -eq 0 ]; then
1N/A usage
1N/Afi
1N/A
1N/Axmllint --noout --dtdvalid $DTD $*