Updated script to include a header

v0.27.3
Andreas Huggel 21 years ago
parent ec30a12368
commit a622c2c552

@ -1,18 +1,28 @@
################################################################################ ################################################################################
# File tags.awk # File : tags.awk
# Brief Awk script to convert a taglist to XML format used in the # Version : $Name: $ $Revision: 1.3 $
# documentation. # Author(s): Andreas Huggel (ahu) <ahuggel@gmx.net>
# $ taglist [make [model]] | awk -f tags.awk > tags.xml # History : 07-Feb-04, ahu: created
# Version $Name: $ $Revision: 1.2 $ #
# Author Andreas Huggel (ahu) # Description:
# <a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a> # Awk script to convert a taglist to XML format used in the documentation.
# Date 07-Feb-04, ahu: created # $ taglist [SectionName] | awk -f tags.awk > tags.xml
################################################################################ ################################################################################
BEGIN { BEGIN {
FS = ", " FS = ", "
print "<?xml version = '1.0'?>"; print "<?xml version = '1.0'?>";
print "<?xml-stylesheet type=\"text/xsl\" href=\"tags.xsl\"?>"; print "<?xml-stylesheet type=\"text/xsl\" href=\"tags.xsl\"?>";
print "<TAGLIST>"
print "<HEADER>"
print "<title>XYZ MakerNote Tags defined in Exiv2</title>"
print "<text>"
print "<p>Tags found in the MakerNote of images taken with XYZ cameras. These tags "
print "are defined by Exiv2 in accordance with <a href=\"makernote.html#RX\">[X]</a>.</p>"
print "<p>Click on a column header to sort the table.</p>"
print "</text>"
print "</HEADER>"
print "<ROWSET>" print "<ROWSET>"
} }
@ -29,4 +39,5 @@ BEGIN {
END { END {
print "</ROWSET>" print "</ROWSET>"
print "</TAGLIST>"
} }

Loading…
Cancel
Save