summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-08 19:48:26 +0100
committerIan Lynagh <igloo@earth.li>2011-04-08 21:10:00 +0100
commit159fdb19228cfb04c3fd871ab3f41f8ef7984b58 (patch)
treead380550da54ac4388384485ff796e951c5d241a /libraries/gen_contents_index
parente7f04c3b08e13c4db266afaa8899a4a84f489478 (diff)
downloadhaskell-159fdb19228cfb04c3fd871ab3f41f8ef7984b58.tar.gz
gen_contents_index: Improve parsing of packages file
We are now more lenient in parsing the packages file, and we don't use any GNUisms. Based on a patch from Matthias Kilian.
Diffstat (limited to 'libraries/gen_contents_index')
-rw-r--r--libraries/gen_contents_index2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index
index fcf30e3ce8..04209fdb8f 100644
--- a/libraries/gen_contents_index
+++ b/libraries/gen_contents_index
@@ -7,7 +7,7 @@ HADDOCK_ARGS=
case $* in
--inplace)
HADDOCK=../inplace/bin/haddock
- for LIB in `grep '^libraries/[^ ]\+ \+- \+[^ ]\+ \+[^ ]\+ \+[^ ]\+' ../packages | sed -e 's#libraries/##' -e 's/ .*//'`
+ for LIB in `grep '^libraries/[^ ]* *- ' ../packages | sed -e 's#libraries/##' -e 's/ .*//'`
do
HADDOCK_FILE="$LIB/dist-install/doc/html/$LIB/$LIB.haddock"
if [ -f "$HADDOCK_FILE" ]