Changeset 0c2d9bb in mainline for tools/config.py


Ignore:
Timestamp:
2013-12-25T22:54:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b51cf2c
Parents:
f7a33de (diff), ac36aed (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/config.py

    rf7a33de r0c2d9bb  
    363363def create_output(mkname, mcname, config, rules):
    364364        "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))
    367368       
    368369        sys.stderr.write("Fetching current revision identifier ... ")
     
    423424                outmc.write('#define REVISION %s\n' % revision)
    424425                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
    425430       
    426431        outmk.write('TIMESTAMP = %s\n' % timestamp)
Note: See TracChangeset for help on using the changeset viewer.