summaryrefslogtreecommitdiffstats
path: root/libtoprammer/chips/microchip8/makeSip6.py
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2013-10-14 23:12:43 +0200
committerMichael Buesch <m@bues.ch>2013-10-14 23:12:43 +0200
commit1f517231b7fccc50fb1f76dfa267b7975f293d24 (patch)
treeeeb97d352cf37418059273e22d2441bffefbac03 /libtoprammer/chips/microchip8/makeSip6.py
parent143a86ed89699d7bd3d3cb68cd5e500f03f2f0d5 (diff)
downloadtoprammer-1f517231b7fccc50fb1f76dfa267b7975f293d24.tar.xz
toprammer-1f517231b7fccc50fb1f76dfa267b7975f293d24.zip
microchip: Add header to autogenerated files.
Signed-off-by: Michael Buesch <m@bues.ch>
Diffstat (limited to 'libtoprammer/chips/microchip8/makeSip6.py')
-rwxr-xr-xlibtoprammer/chips/microchip8/makeSip6.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/libtoprammer/chips/microchip8/makeSip6.py b/libtoprammer/chips/microchip8/makeSip6.py
index 0abf7ba..838be90 100755
--- a/libtoprammer/chips/microchip8/makeSip6.py
+++ b/libtoprammer/chips/microchip8/makeSip6.py
@@ -59,6 +59,10 @@ def makeSip():
for item in dMCU.items():
fin = open("{}{}.py".format(item[0], item[1]))
fout = open("{}sip6.py".format(item[0]), 'w')
+ fout.write("#\n")
+ fout.write("# THIS FILE WAS AUTOGENERATED BY makeSip6.py\n")
+ fout.write("# Do not edit this file manually. All changes will be lost.\n")
+ fout.write("#\n\n")
for line in fin:
fout.write(substitute(line, "{}".format(item[1]), "sip6"))
fout.close()
bues.ch cgit interface