@@ -224,15 +224,15 @@ def main():
224224 if arch == "amd64" :
225225 create_makefile64 (makefile , m32 )
226226 fix_makefile (makefile )
227- shutil .copy (r"crypto\buildinf.h" , r"crypto\buildinf_%s.h" % arch )
228- shutil .copy (r"crypto\opensslconf.h" , r"crypto\opensslconf_%s.h" % arch )
227+ shutil .copy2 (r"crypto\buildinf.h" , r"crypto\buildinf_%s.h" % arch )
228+ shutil .copy2 (r"crypto\opensslconf.h" , r"crypto\opensslconf_%s.h" % arch )
229229
230230 # If the assembler files don't exist in tmpXX, copy them there
231231 if not os .path .exists ("tmp" + dirsuffix ):
232232 os .mkdir ("tmp" + dirsuffix )
233233 for f in os .listdir ("asm" + dirsuffix ):
234234 if not f .endswith (".asm" ): continue
235- shutil .copy (r"asm%s\%s" % (dirsuffix , f ), "tmp" + dirsuffix )
235+ shutil .copy2 (r"asm%s\%s" % (dirsuffix , f ), "tmp" + dirsuffix )
236236
237237 # Now run make.
238238 if arch == "amd64" :
@@ -241,8 +241,8 @@ def main():
241241 print ("ml64 assembler has failed." )
242242 sys .exit (rc )
243243
244- shutil .copy (r"crypto\buildinf_%s.h" % arch , r"crypto\buildinf.h" )
245- shutil .copy (r"crypto\opensslconf_%s.h" % arch , r"crypto\opensslconf.h" )
244+ shutil .copy2 (r"crypto\buildinf_%s.h" % arch , r"crypto\buildinf.h" )
245+ shutil .copy2 (r"crypto\opensslconf_%s.h" % arch , r"crypto\opensslconf.h" )
246246
247247 #makeCommand = "nmake /nologo PERL=\"%s\" -f \"%s\"" %(perl, makefile)
248248 makeCommand = "nmake /nologo -f \" %s\" " % makefile
0 commit comments