summaryrefslogtreecommitdiff
path: root/libraries/gen_contents_index
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-09-20 20:15:13 +0000
committerIan Lynagh <igloo@earth.li>2010-09-20 20:15:13 +0000
commita22548125be4853556a9d93b66d72199fbf28db8 (patch)
tree77af9a2ac805fecfd030e95b4e44816eedea78ba /libraries/gen_contents_index
parent295e7569c4793d210afbd05b42c81571b170baa9 (diff)
downloadhaskell-a22548125be4853556a9d93b66d72199fbf28db8.tar.gz
Tweak gen_contents_index now dph may not be there
Diffstat (limited to 'libraries/gen_contents_index')
-rw-r--r--libraries/gen_contents_index9
1 files changed, 6 insertions, 3 deletions
diff --git a/libraries/gen_contents_index b/libraries/gen_contents_index
index dbeb872744..1d8306416c 100644
--- a/libraries/gen_contents_index
+++ b/libraries/gen_contents_index
@@ -7,9 +7,12 @@ HADDOCK_ARGS=
case $* in
--inplace)
HADDOCK=../inplace/bin/haddock
- HADDOCK_FILES1=`ls -1 */dist-install/doc/html/*/*.haddock | sort`
- HADDOCK_FILES2=`ls -1 dph/*/dist-install/doc/html/*/*.haddock | sort`
- HADDOCK_FILES="$HADDOCK_FILES1 $HADDOCK_FILES2"
+ HADDOCK_FILES=`ls -1 */dist-install/doc/html/*/*.haddock | sort`
+ if [ -d dph ]
+ then
+ DPH_HADDOCK_FILES=`ls -1 dph/*/dist-install/doc/html/*/*.haddock | sort`
+ HADDOCK_FILES="$HADDOCK_FILES $DPH_HADDOCK_FILES"
+ fi
for HADDOCK_FILE in $HADDOCK_FILES
do
LIBPATH=`echo "$HADDOCK_FILE" | sed 's#/dist-install.*##'`