File: make_doc

package info (click to toggle)
gap-aclib 1.3.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 836 kB
  • sloc: makefile: 110; sh: 17
file content (32 lines) | stat: -rwxr-xr-x 789 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
#!/bin/sh
set -e

DEFAULT_GAPPATH=/usr/share/gap

if test -z "$1"; then
  GAPPATH=${DEFAULT_GAPPATH}; echo "Using ${DEFAULT_GAPPATH} as default GAP path";
else
  GAPPATH=$1;
fi


echo "TeXing documentation"
# TeX the manual and build its bibliography
tex manual; bibtex manual
# TeX the manual again to incorporate the ToC ... and build the index
tex manual; $GAPPATH/etc/manualindex manual
# Finally TeX the manual again to get cross-references right
tex manual
# Create the .pdf version
pdftex manual; pdftex manual

# The HTML version of the manual
rm -rf ../htm
mkdir ../htm
echo "Creating HTML documentation"
export GAP_CONVERT_DATE="January 2020"
$GAPPATH/etc/convert.pl -i -u -c -n aclib . ../htm

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