ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/build_utils/vstamp.py
(Generate patch)

Comparing ray/build_utils/vstamp.py (file contents):
Revision 1.1 by schorsch, Sun Jul 4 12:08:47 2004 UTC vs.
Revision 1.2 by schorsch, Mon Jan 8 13:38:37 2018 UTC

# Line 1 | Line 1
1 + from __future__ import division, print_function, unicode_literals
2  
3   import getpass
4   import socket
4 import string
5   import time
6  
7   # create a version stamp
8   def build_version_c(target, source, env):
9          s = open (str(source[0]), 'r')
10 <        radver = string.strip (s.readline ())
10 >        radver = s.readline().strip()
11          s.close()
12          date = time.ctime (time.time())
13          user = getpass.getuser()
# Line 17 | Line 17 | def build_version_c(target, source, env):
17                  'char VersionID[]="%s lastmod %s by %s on %s";\n' %
18                  (radver, date, user, sysname))
19          t.close()
20 +
21 + # vi: set ts=4 sw=4 :
22  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines