Changeset 41e871f in mainline for tools/config.py
- Timestamp:
- 2013-09-14T15:40:11Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7b7f5e
- Parents:
- 279f90f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/config.py
r279f90f r41e871f 363 363 def create_output(mkname, mcname, config, rules): 364 364 "Create output configuration" 365 366 timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) 365 366 timestamp_unix = int(time.time()) 367 timestamp = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(timestamp_unix)) 367 368 368 369 sys.stderr.write("Fetching current revision identifier ... ") … … 423 424 outmc.write('#define REVISION %s\n' % revision) 424 425 defs += ' "-DREVISION=%s"' % revision 426 427 outmk.write('TIMESTAMP_UNIX = %d\n' % timestamp_unix) 428 outmc.write('#define TIMESTAMP_UNIX %d\n' % timestamp_unix) 429 defs += ' "-DTIMESTAMP_UNIX=%d"\n' % timestamp_unix 425 430 426 431 outmk.write('TIMESTAMP = %s\n' % timestamp)
Note:
See TracChangeset
for help on using the changeset viewer.