diff --git a/docs/jargon-org.txt b/docs/jargon-org.txt index 7a1b5a2..9f6cbb9 100644 --- a/docs/jargon-org.txt +++ b/docs/jargon-org.txt @@ -17,6 +17,10 @@ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". +* Generated + +This file last generated Tuesday, 17 May 2016 05:59PM UTC + * Glossary ** ( *** (TM) diff --git a/docs/jargon.1.gz b/docs/jargon.1.gz index e1027b7..f0acbf5 100644 Binary files a/docs/jargon.1.gz and b/docs/jargon.1.gz differ diff --git a/docs/jargon.html b/docs/jargon.html index a21b5b6..7928068 100644 --- a/docs/jargon.html +++ b/docs/jargon.html @@ -15,6 +15,11 @@ with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". +

+

Generated

+

+This file last generated Tuesday, 17 May 2016 05:59PM UTC +

Glossary

(

diff --git a/makeJargon.py b/makeJargon.py index 0e8c45f..645d551 100755 --- a/makeJargon.py +++ b/makeJargon.py @@ -1,6 +1,7 @@ -import os -import string import operator +import os +import datetime +import string import time def jargonParseEntry(filename): @@ -75,6 +76,13 @@ def saveLicense(fp, year, publishername): fp.write("A copy of the license is included in the section entitled \"GNU\n") fp.write("Free Documentation License\".\n\n") + +def saveGenerated(fp): + """saves the last-generated timestamp""" + utcnow = datetime.datetime.utcnow().strftime("%A, %d %B %Y %I:%M%p UTC") + fp.write("This file last generated " + utcnow + "\n\n") + + def jargonWithDefinitions(text, definitions, isHtml): result = '' prevpos = 0 @@ -114,6 +122,9 @@ def jargonToManpage(manpageFilename, entries, version, publishername): fp.write(".SH LICENSE\n\n") saveLicense(fp, year, publishername) + fp.write(".SH GENERATED\n\n") + saveGenerated(fp) + for entry in entries: title = entry[0] text = entry[1] @@ -152,6 +163,9 @@ def jargonToOrgMode(orgFilename, entries, version, publishername): fp.write("* License\n\n") saveLicense(fp, year, publishername) + fp.write("* Generated\n\n") + saveGenerated(fp) + fp.write("* Glossary\n") subsection = '' @@ -193,6 +207,10 @@ def jargonToHTML(htmlFilename, entries, version, publishername): fp.write("

\n") saveLicense(fp, year, publishername) fp.write("

\n") + fp.write("

Generated

\n") + fp.write("

\n") + saveGenerated(fp) + fp.write("

\n") fp.write("

Glossary

\n") subsection = ''