From 24782b89907ab36fb5aef3a17584f4c10f1e2690 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Thu, 20 Jun 2019 18:04:30 -0400 Subject: 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. --- boot | 3 +++ 1 file changed, 3 insertions(+) (limited to 'boot') diff --git a/boot b/boot index fc5dd29336..04dec14314 100755 --- a/boot +++ b/boot @@ -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( -- cgit v1.2.1