GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#!/bin/sh
#############################################################################
##
#W make_doc make FGA Package documentation Christian Sievers
##
## 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 FGA Package.
##
## This is nearly identical to Greg Gamble's make_doc to make the
## Example Package documentation.
##
[ -L GAPROOT ] || { echo GAPROOT link missing; exit 1; }
echo "TeXing documentation"
# TeX the manual
tex 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
tex manual; GAPROOT/doc/manualindex manual
# Finally TeX the manual again to get cross-references right
tex 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"
GAPROOT/etc/convert.pl -t -c -n FGA . ../htm
#############################################################################
##
#E