1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
#!/bin/sh
#############################################################################
##
#W make_doc make Example Package documentation Greg Gamble
##
## Slightly modified by Leonard Soicher for use with GRAPE.
##
#H $Id: make_doc,v 4.1 2001/10/07 02:37:40 gap Exp $
##
## This shell script uses TeX, BibTeX and MakeIndex to build the .dvi, Adobe
## PDF, PostScript (commented out) and HTML (provided you have tth and
## etc/convert.pl) documentation for the Example Package.
##
set -e
GAPDATADIR=/usr/share/gap
TEXINPUTS=$GAPDATADIR/etc:${TEXINPUTS}
export TEXINPUTS
PDFTEX='/usr/bin/pdftex -no-shell-escape -interaction batchmode'
echo "TeXing documentation"
# TeX the manual
$PDFTEX manual
# ... and build its bibliography (uncomment if there is a `manual.bib')
bibtex manual
# TeX the manual again to incorporate the ToC ... and build the index
$PDFTEX manual
$GAPDATADIR/etc/manualindex manual
# Finally TeX the manual again to get cross-references right
$PDFTEX manual
# Create the PostScript version (uncomment next line, if needed)
#dvips -D300 manual -o
# Create PDF version
$PDFTEX manual
$PDFTEX manual
# The HTML version of the manual
mkdir -p ../htm
echo "Creating HTML documentation"
$GAPDATADIR/etc/convert.pl -s -t -c -n grape . ../htm
#############################################################################
##
#E
|