Browse Source

Add generated comment to readme.md

master
Nils 5 years ago
parent
commit
f467219976
  1. 2
      template/documentation/build.py
  2. 3
      template/documentation/readme.template

2
template/documentation/build.py

@ -23,6 +23,7 @@ import subprocess
from os import getcwd
import os.path
assert os.path.exists(os.path.join(getcwd(), __file__)), (getcwd(), __file__)
import datetime
#Readme
@ -30,6 +31,7 @@ assert os.path.exists(os.path.join(getcwd(), __file__)), (getcwd(), __file__)
with open("readme.template", "r") as r:
template_readme = r.read()
template_readme = template_readme.replace("<date>", datetime.now().isoformat())
template_readme = template_readme.replace("<name>", METADATA["name"])
template_readme = template_readme.replace("<version>", METADATA["version"])
template_readme = template_readme.replace("<shortname>", METADATA["shortName"])

3
template/documentation/readme.template

@ -1,3 +1,6 @@
[//]: # (Generated <date>. Changes belong into template/documentation/readme.template)
#<name>
Program version <version>

Loading…
Cancel
Save