| 1 |
#!/bin/sh |
| 2 |
############################################################################# |
| 3 |
## |
| 4 |
#W make_doc make Radiroot Package documentation Andreas Distler |
| 5 |
## |
| 6 |
## This shell script uses TeX, BibTeX and MakeIndex to build the .dvi, Adobe |
| 7 |
## PDF, PostScript (commented out) and HTML (provided you have tth and |
| 8 |
## etc/convert.pl) documentation for the Radiroot Package. |
| 9 |
## |
| 10 |
|
| •11 |
export GAP_CONVERT_DATE="April 2014" |
| 12 |
TEXARG="\\def\\GAPDATE{$GAP_CONVERT_DATE}\input" |
| 13 |
|
| 14 |
echo "TeXing documentation" |
| 15 |
# TeX the manual |
| •16 |
echo tex $TEXARG manual |
| •17 |
tex $TEXARG manual |
| 18 |
# ... and build its bibliography (uncomment if there is no `manual.bib') |
| 19 |
bibtex manual |
| 20 |
# TeX the manual again to incorporate the ToC ... and build the index |
| •21 |
tex $TEXARG manual; /usr/share/gap/etc/manualindex manual |
| 22 |
# Finally TeX the manual again to get cross-references right |
| •23 |
tex $TEXARG manual |
| 24 |
# Create the PostScript version (uncomment next line, if needed) |
| 25 |
#dvips -D300 manual -o |
| 26 |
# Create PDF version |
| •27 |
pdftex $TEXARG manual; pdftex $TEXARG manual |
| 28 |
|
| 29 |
# The HTML version of the manual |
| 30 |
mkdir -p ../htm |
| 31 |
echo "Creating HTML documentation" |
| •32 |
GAP_CONVERT_DATE="March 2022" /usr/share/gap/etc/convert.pl -t -c -u -n Radiroot . ../htm |
| 33 |
|
| 34 |
############################################################################# |
| 35 |
## |
| 36 |
#E |