File: make_doc

package info (click to toggle)
gap-design 1.7%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 440 kB
  • sloc: makefile: 22; sh: 18
file content (48 lines) | stat: -rwxr-xr-x 1,391 bytes parent folder | download | duplicates (3)
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
47
48
#!/bin/sh
#############################################################################
##
#W  make_doc          make Example Package documentation          Greg Gamble
##
## Slightly modified by Leonard Soicher for use with DESIGN.
##
#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 Adobe PDF
##  and HTML (provided you have tth and gap packages are installed)
##  documentation.
##

GAPDATADIR=/usr/share/gap

TEXINPUTS=$GAPDATADIR/etc:${TEXINPUTS}
export TEXINPUTS

PDFTEX='/usr/bin/pdftex -no-shell-escape -interaction batchmode'
BIBTEX=/usr/bin/bibtex
GAPMANUALINDEX=$GAPDATADIR/etc/manualindex
GAPCONVERT=$GAPDATADIR/etc/convert.pl

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
$GAPMANUALINDEX 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"
$GAPCONVERT -t -c -n design . ../htm

#############################################################################
##
#E