summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorAdam Sandberg Ericsson <adam@sandbergericsson.se>2020-12-21 09:07:44 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-22 22:10:45 -0500
commit53fb345d4fb4c06f6f5450b206250eec24578d8b (patch)
treeda0cf4cdb083ba7118b620e4db24f014bf9ff933 /distrib
parent553c59ca5581bcba79ea7d9672cffd438905d846 (diff)
downloadhaskell-53fb345d4fb4c06f6f5450b206250eec24578d8b.tar.gz
mkDocs: fix extraction of Win32 docs from hadrian bindist
Diffstat (limited to 'distrib')
-rwxr-xr-xdistrib/mkDocs/mkDocs8
1 files changed, 6 insertions, 2 deletions
diff --git a/distrib/mkDocs/mkDocs b/distrib/mkDocs/mkDocs
index 3cbfec5695..9008a5ca9f 100755
--- a/distrib/mkDocs/mkDocs
+++ b/distrib/mkDocs/mkDocs
@@ -28,12 +28,16 @@ cd linux
make install
cd ..
[ "$NO_CLEAN" -eq 0 ] && rm -r linux
+
tar -Jxf "$WINDOWS_BINDIST"
mv ghc* windows
cd inst/share/doc/ghc*/html/libraries
-mv ../../../../../../windows/doc/html/libraries/Win32-* . || \ # make binary distribution
- mv ../../../../../../windows/docs/html/libraries/Win32 . || \ # hadrian binary distribution
+
+# try extracting the make bindist docs and then the hadrian bindist docs
+mv ../../../../../../windows/doc/html/libraries/Win32-* . || \
+ mv ../../../../../../windows/docs/html/libraries/Win32 . || \
die "failed to find the Win32 package documentation"
+
sh gen_contents_index
cd ..
for i in haddock libraries users_guide