summaryrefslogtreecommitdiff
path: root/hadrian/src/Rules/BinaryDist.hs
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2022-03-03 13:52:03 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-03-07 14:06:16 -0500
commit5b35ca58d94d07751ef2f810686f588ce9c0878a (patch)
treea9445b8802aed1cd46548cae5d3d33176dccd5fe /hadrian/src/Rules/BinaryDist.hs
parent7bfae2ee0e9548f489c52c0e3f4688a9ae83b12b (diff)
downloadhaskell-5b35ca58d94d07751ef2f810686f588ce9c0878a.tar.gz
Fix gen_contents_index logic for hadrian bindist
Diffstat (limited to 'hadrian/src/Rules/BinaryDist.hs')
-rw-r--r--hadrian/src/Rules/BinaryDist.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/hadrian/src/Rules/BinaryDist.hs b/hadrian/src/Rules/BinaryDist.hs
index a6693a75f3..f07c455e38 100644
--- a/hadrian/src/Rules/BinaryDist.hs
+++ b/hadrian/src/Rules/BinaryDist.hs
@@ -227,6 +227,9 @@ bindistRules = do
-- included in the bindist in the past (part of the problem in #18669).
whenM (liftIO (IO.doesDirectoryExist (root -/- "docs"))) $ do
copyDirectory (root -/- "docs") bindistFilesDir
+ copyFile ("libraries" -/- "prologue.txt") (bindistFilesDir -/- "docs-utils" -/- "prologue.txt")
+ copyFile ("libraries" -/- "gen_contents_index") (bindistFilesDir -/- "docs-utils" -/- "gen_contents_index" )
+
when windowsHost $ do
copyDirectory (root -/- "mingw") bindistFilesDir
-- we use that opportunity to delete the .stamp file that we use