Skip to content

Commit a59f963

Browse files
committed
Fix prepare_ssl.py script
Builds using prepared sources that had Perl available anyway were broken by the previous fix to this script (oops).
1 parent 7cc28b6 commit a59f963

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PCbuild/prepare_ssl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def fix_makefile(makefile):
115115
"""
116116
if not os.path.isfile(makefile):
117117
return
118+
copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl'
118119
with open(makefile) as fin:
119120
lines = fin.readlines()
120121
with open(makefile, 'w') as fout:
@@ -132,9 +133,8 @@ def fix_makefile(makefile):
132133
if noalgo not in line:
133134
line = line + noalgo
134135
line = line + '\n'
135-
if r'$(SRC_D)\util\copy-if-different.pl' in line:
136-
line = line.replace(r'$(SRC_D)\util\copy-if-different.pl',
137-
'copy /Y')
136+
if copy_if_different in line:
137+
line = line.replace(copy_if_different, 'copy /Y')
138138
fout.write(line)
139139

140140
def run_configure(configure, do_script):

0 commit comments

Comments
 (0)