| 66 | |
| 67 | |
| 68 | def copy_includes(makefile, suffix): |
| 69 | dir = 'inc'+suffix+'\\openssl' |
| 70 | try: |
| 71 | os.makedirs(dir) |
| 72 | except OSError: |
| 73 | if not os.path.isdir(dir): |
| 74 | raise |
| 75 | copy_if_different = r'$(PERL) $(SRC_D)\util\copy-if-different.pl' |
| 76 | with open(makefile) as fin: |
| 77 | for line in fin: |
| 78 | if copy_if_different in line: |
| 79 | perl, script, src, dest = line.split() |
| 80 | if not '$(INCO_D)' in dest: |
| 81 | continue |
| 82 | # We're in the root of the source tree |
| 83 | src = src.replace('$(SRC_D)', '.').strip('"') |
| 84 | dest = dest.strip('"').replace('$(INCO_D)', dir) |
| 85 | print('copying', src, 'to', dest) |
| 86 | copy(src, dest) |
| 87 | |
| 88 | |
| 89 | def run_configure(configure, do_script): |