#!/bin/sh if [ "$#" -ne 2 ] then echo "Usage: $0 " exit 1 fi GHC_COMMANDS="$1" LIBDIR="$2" cat <<'EOF' .\" .\" This is a generated file. Changes might get clobbered. Edit at own's risk. .\" .TH GHC 1 "2002-10-25" "Glasgow FP Suite" "Glasgow Haskell Compiler" .SH NAME GHC \- the Glasgow Haskell Compiler .SH SYNOPSIS EOF STARTED=0 for GHC_COMMAND in $GHC_COMMANDS do if [ "$STARTED" -ne 0 ] then echo ".br" fi STARTED=1 cat < .SH FILES EOF echo ".I $LIBDIR" cat <<'EOF' .SH COPYRIGHT Copyright 2002, The University Court of the University of Glasgow. .br All rights reserved. .SH AUTHOR This manual page was generated from the XML documentation of GHC with blood, sweat, tears and a breaks-if-you-look-at-it-the-wrong-way XSL stylesheet originally written by Michael Weber <michaelw@debian.org> for the Debian GNU/Linux system (but may be used by others). .\" End .SS .SS .nh .hy .SH .SH .TP .rj [] \fB \fP \fI \fP \f(CR \fP EOF