Supported misnamed platform names for the nhb12 and nhb12b.
[goodfet] / firmware / gen_builddate_h
1 #!/usr/bin/env python
2
3 import sys
4 import datetime
5
6 def main():
7         fout = open("include/builddate.h", "w+")
8         print >> fout, "#ifndef BUILDDATE_H"
9         print >> fout, "#define BUILDDATE_H"
10         print >> fout, "char const * const build_date=\"%s\";" % datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
11         print >> fout, "#endif"
12         fout.close()
13         return 0
14
15 if __name__ == "__main__":
16         sys.exit(main())