7 HADDOCK_FILES=`ls -1 */dist/doc/html/*/*.haddock | sort`
9 HADDOCK_FILES=`ls -1 */*.haddock | sort`
12 # Automagically create the prologue for the combined index via a
13 # header, the package prologues (in alphabetical order of the
14 # packages) and a footer.
16 cat libraries-header.txt
18 # Hack to find out if we're in a build tree or installed docs
19 for HADDOCK_FILE in $HADDOCK_FILES
21 NAME=`echo "$HADDOCK_FILE" | sed "s#/.*##"`
22 if [ "$NAME" != haskell98 ]
25 grep -v '^ *$$' "$NAME"/prologue.txt
27 HADDOCK_ARGS="$HADDOCK_ARGS --read-interface=$NAME,$HADDOCK_FILE"
30 cat libraries-footer.txt
34 # Now create the combined contents and index pages
35 haddock --gen-index --gen-contents -o . \
36 -t "Haskell Hierarchical Libraries" \
40 # Unhandled Windows help stuff?:
42 #libraries.HxS : libraries.txt
46 # ( cd $(HTML_DIR) && if Hxcomp -p libraries.HxC -o ../$@ ; then false ; else true ; fi ) || true
48 #libraries.chm : libraries.txt
51 # --html-help=mshelp \
52 # ( cd $(HTML_DIR) && if hhc libraries.hhp ; then false ; else true ; fi && mv libraries.chm .. ) || true