Update of /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp
In directory sc8-pr-cvs1:/tmp/cvs-serv10733
Modified Files:
bulkstamp.py verstamp.py
Log Message:
Pass is_dll around correctly in an attempt to make version stampting
work on our .exe's - it didn't help, but this seems correct anyway :)
Index: bulkstamp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp/bulkstamp.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** bulkstamp.py 4 Jul 2003 12:14:30 -0000 1.5
--- bulkstamp.py 24 Oct 2003 07:06:24 -0000 1.6
***************
*** 59,67 ****
if base[-2:]=='_d':
name = base[:-2] + ext
! is_dll = 1 ### do something real, someday
if descriptions.has_key(os.path.normcase(name)):
desc = descriptions[os.path.normcase(name)]
try:
! verstamp.stamp(vars, pathname, desc)
numStamped = numStamped + 1
except win32api.error, (hr, func, desc):
--- 59,67 ----
if base[-2:]=='_d':
name = base[:-2] + ext
! is_dll = ext.lower() != ".exe"
if descriptions.has_key(os.path.normcase(name)):
desc = descriptions[os.path.normcase(name)]
try:
! verstamp.stamp(vars, pathname, desc, is_dll=is_dll)
numStamped = numStamped + 1
except win32api.error, (hr, func, desc):
Index: verstamp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp/verstamp.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** verstamp.py 3 Apr 2000 11:39:20 -0000 1.3
--- verstamp.py 24 Oct 2003 07:06:25 -0000 1.4
***************
*** 129,133 ****
return addlen(result)
! def stamp(vars, pathname, desc, verbose=0, is_dll=1):
# For some reason, the API functions report success if the file is open
# but doesnt work! Try and open the file for writing, just to see if it is
--- 129,133 ----
return addlen(result)
! def stamp(vars, pathname, desc, verbose=0, debug=0, is_dll=1):
# For some reason, the API functions report success if the file is open
# but doesnt work! Try and open the file for writing, just to see if it is
***************
*** 171,175 ****
'Translation' : struct.pack('hh', 0x409, 1200),
}
! vs = VS_VERSION_INFO(maj, min, sub, build, sdata, vdata)
h = BeginUpdateResource(pathname, 0)
--- 171,175 ----
'Translation' : struct.pack('hh', 0x409, 1200),
}
! vs = VS_VERSION_INFO(maj, min, sub, build, sdata, vdata, debug, is_dll)
h = BeginUpdateResource(pathname, 0)
|