diff options
author | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-19 17:30:06 +0000 |
---|---|---|
committer | Tommy Reynolds <Tommy.Reynolds@MegaCoder.com> | 2006-01-19 17:30:06 +0000 |
commit | 46b7eac1c5a54b23d50c94ac5094618bf0ad6ecc (patch) | |
tree | 72a9905e31fbf7c8c93464d7efa1034fef6c0cad /bin | |
parent | b99ca8ab2cca37cf6ccda45ee61da2bac73381cf (diff) | |
download | fedora-doc-utils-46b7eac1c5a54b23d50c94ac5094618bf0ad6ecc.tar.gz fedora-doc-utils-46b7eac1c5a54b23d50c94ac5094618bf0ad6ecc.tar.xz fedora-doc-utils-46b7eac1c5a54b23d50c94ac5094618bf0ad6ecc.zip |
Moved from "packaging/" to "bin/" directory.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/doctype | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/doctype b/bin/doctype new file mode 100755 index 0000000..a10441f --- /dev/null +++ b/bin/doctype @@ -0,0 +1,14 @@ +#!/bin/sh +######################################################################## +# Script to print the document type, without needing the XML document +# to validate. Get the document type from the first argument to the +# <!DOCTYPE> element, which should be either "book" or "article". +# +# Use it like this: +# doctype file.xml +# +# If you know the XML file WILL VALIDATE, you may use the "doctype.xsl" +# script instead. If not, use this one +######################################################################## +egrep '^[[:space:]]*<!DOCTYPE' $* | +awk '{print $2 "info"}' |