From 159fdb19228cfb04c3fd871ab3f41f8ef7984b58 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 8 Apr 2011 19:48:26 +0100 Subject: [PATCH] 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. --- libraries/gen_contents_index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index index fcf30e3..04209fd 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" ] -- 1.7.10.4