docs-common/bin doctype,NONE,1.1
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Thu Jan 19 17:30:14 UTC 2006
Author: jtr
Update of /cvs/docs/docs-common/bin
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31510/bin
Added Files:
doctype
Log Message:
Moved from "packaging/" to "bin/" directory.
--- NEW FILE doctype ---
#!/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"}'
More information about the Fedora-docs-commits
mailing list