dmake: do not set MAKEFLAGS=k
[unleashed/tickless.git] / usr / src / cmd / hal / tools / hal-fdi-validate.sh
blob280c30bf346acc789cc57f3ee1cc09c68eb07d9e
2 # hal-fdi-validate.sh : Validate one or more fdi(4) files
4 # Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5 # Use is subject to license terms.
7 # Licensed under the Academic Free License version 2.1
9 # ident "%Z%%M% %I% %E% SMI"
12 usage() {
13 echo "Usage: hal-fdi-validate [-f dtd] file [file ...]"
14 exit 1
17 if [ "$1" = "-f" ]; then
18 if [ "foo$2" != "foo" ] ; then
19 DTD="$2"
20 shift 2
21 else
22 usage
24 else
25 DTD="/usr/share/lib/xml/dtd/fdi.dtd.1"
28 if [ $# -eq 0 ]; then
29 usage
32 xmllint --noout --dtdvalid $DTD $*