Back to index

radiance  4R0+20100331
Functions
build_utils.vstamp Namespace Reference

Functions

def build_version_c

Function Documentation

def build_utils.vstamp.build_version_c (   target,
  source,
  env 
)

Definition at line 8 of file vstamp.py.

00008 
00009 def build_version_c(target, source, env):
00010        s = open (str(source[0]), 'r')
00011        radver = string.strip (s.readline ())
00012        s.close()
00013        date = time.ctime (time.time())
00014        user = getpass.getuser()
00015        sysname = socket.gethostname()
00016        t = open (str(target[0]), 'w')
00017        t.write (
00018               'char VersionID[]="%s lastmod %s by %s on %s";\n' %
00019               (radver, date, user, sysname))
00020        t.close()
00021