diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-06-20 18:04:30 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-07-09 22:56:18 -0400 |
commit | 24782b89907ab36fb5aef3a17584f4c10f1e2690 (patch) | |
tree | b0d55f9b146f33fc901aa10b166a647aeded0c0e /boot | |
parent | 0472f0f6a92395d478e9644c0dbd12948518099f (diff) | |
download | haskell-24782b89907ab36fb5aef3a17584f4c10f1e2690.tar.gz |
Deduplicate "unique subdir" code between GHC and Cabal
The code, including the generated module with the version, is now in
ghc-boot. Config.hs reexports stuff as needed, ghc-pkg doesn't need any
tricks at all.
Diffstat (limited to 'boot')
-rwxr-xr-x | boot | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -126,6 +126,9 @@ def boot_pkgs(): top = os.path.join(*['..'] * len(os.path.normpath(package).split(os.path.sep))) ghc_mk = os.path.join(package, 'ghc.mk') + if os.path.exists(ghc_mk): + print('Skipping %s which already exists' % ghc_mk) + continue print('Creating %s' % ghc_mk) with open(ghc_mk, 'w') as f: f.write(dedent( |