Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: 2008-06-01
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (34 sloc) 0.954 kB
#!/bin/sh
set -e
HADDOCK_ARGS=
NAMES=
case $* in
--inplace)
HADDOCK_FILES=`ls -1 */dist/doc/html/*/*.haddock | sort`
;;
*)
HADDOCK_FILES=`ls -1 */*.haddock | sort`
;;
esac
for HADDOCK_FILE in $HADDOCK_FILES
do
NAME=`echo "$HADDOCK_FILE" | sed 's#/.*##'`
HADDOCK_ARGS="$HADDOCK_ARGS --read-interface=$NAME,$HADDOCK_FILE"
NAMES="$NAMES $NAME"
done
# Now create the combined contents and index pages
haddock --gen-index --gen-contents -o . \
-t "Haskell Hierarchical Libraries" \
$HADDOCK_ARGS
# Unhandled Windows help stuff?:
#libraries.HxS : libraries.txt
# haddock ...
# -k libraries
# --html-help=mshelp2
# ( cd $(HTML_DIR) && if Hxcomp -p libraries.HxC -o ../$@ ; then false ; else true ; fi ) || true
#
#libraries.chm : libraries.txt
# haddock ...
# -k libraries \
# --html-help=mshelp \
# ( cd $(HTML_DIR) && if hhc libraries.hhp ; then false ; else true ; fi && mv libraries.chm .. ) || true
Jump to Line
Something went wrong with that request. Please try again.