summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-10-13 19:25:48 +0000
committerIan Lynagh <igloo@earth.li>2008-10-13 19:25:48 +0000
commit8c17464792ffb151907bfbff52242361ac84701a (patch)
tree709d6da2437e4497ecb70c1b211d8e2735cf1913 /libraries/gen_contents_index
parent2f591deaf56c0361334c1fa1081d50bd9fb58883 (diff)
downloadhaskell-8c17464792ffb151907bfbff52242361ac84701a.tar.gz
Tweak gen_contents_index
It now works again after it has been installed, as well as while it is in a source tree. After it's been installed it filters out the ghc package, as that currently swamps everything else in the index.
Diffstat (limited to 'libraries/gen_contents_index')
-rw-r--r--libraries/gen_contents_index6
1 files changed, 4 insertions, 2 deletions
diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index
index 8129bebd41..db84b1d2d2 100644
--- a/libraries/gen_contents_index
+++ b/libraries/gen_contents_index
@@ -2,16 +2,18 @@
set -e
-HADDOCK=../utils/haddock/install-inplace/bin/haddock
HADDOCK_ARGS=
NAMES=
case $* in
--inplace)
+ HADDOCK=../utils/haddock/install-inplace/bin/haddock
HADDOCK_FILES=`ls -1 */dist/doc/html/*/*.haddock | sort`
;;
*)
- HADDOCK_FILES=`ls -1 */*.haddock | sort`
+ HADDOCK=../../../../bin/haddock
+ # We don't want the GHC API to swamp the index
+ HADDOCK_FILES=`ls -1 */*.haddock | grep -v "ghc/" | sort`
;;
esac