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