mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
23 lines
394 B
Python
Executable file
23 lines
394 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import sys
|
|
|
|
build_id = open(sys.argv[2], 'w')
|
|
|
|
build_id.write(
|
|
"""// This file was generated by gen_buildid.py
|
|
// Do not edit
|
|
|
|
#include "common/const.h"
|
|
|
|
namespace consts {
|
|
|
|
const char * buildTime = __TIME__;
|
|
const char * buildDate = __DATE__;
|
|
const int buildId = %s;
|
|
}
|
|
""" % sys.argv[1])
|
|
|
|
build_id.close()
|
|
|
|
# tail -n 1 ChangeLog | sed "s/^.* 1\.\([0-9]*\).*$/\1/"
|