", "rev" revs[rev])
link["href"] = "#rev" revs[rev]
split(messages[rev - 1], lines, /\034/)
cmsg["class"] = "cmsg"
print ""
xml("time", fix_date(dates[rev - 1]))
xml("a", revs[rev], link)
printf(" ")
xml("span", lines[1], cmsg)
print "
"
if (length(lines[2]) > 1) {
xml("p", lines[2])
}
print ""
diff(revs[rev], revs[rev - 1])
print "
"
print " "
}
/^Working file/ {
file = $3
xml("title", "Revision-History of the File " file)
print ""
print ""
xml("h1", "Revision-History of the File " file)
rev_i = 0
}
/^revision/ {
revs[++rev_i] = $2
getline metadata
getline message
sub(/^Summary: */, "", message)
message = message "\034"
while ((getline line) > 0 && !(line ~ /^-+$/)) {
message = message "\n" line
}
messages[rev_i] = message
split(metadata, a, " ")
dates[rev_i] = a[2] " " a[3]
sub(/;$/, "", dates[rev_i])
if (rev_i > 1) {
diff_to_html(rev_i)
}
}
BEGIN {
print ""
print ""
print ""
print "