view doc/manual/buildguide.sh @ 6:607e3be6bad8

Adjust to the moving target called the C++ standard. Apparently nowadays it's not allowed to define an explicit copy constructor but not an assignment operator. Consequently, defining the explicit copy constructor in terms of the implicit/automatic assignment operator for general convenience no longer works. Add assignment operators. Caution: not tested with the IBM compiler, but there's no particular reason it shouldn't work.
author David A. Holland
date Mon, 30 May 2022 23:46:22 -0400
parents bebb2ba69e1d
children
line wrap: on
line source

#!/bin/sh
# buildguide.sh - build the AG manual
# usage: path-to-doc/manual/buildguide.sh

# "usersguide.ind}" is required to work around a bug in latex
# that still exists as recently as teTeX 3.0.

SRCDIR=`dirname "$0"`

TEXINPUTS=".:${SRCDIR}:"
export TEXINPUTS

trap cleanup INT
cleanup() {
    rm -f usersguide.pdf
    exit 1
}

touch usersguide.ind
rm -f 'usersguide.ind}'
ln -s 'usersguide.ind' 'usersguide.ind}'

dolatex() {
    echo '        [LATEX]   usersguide.tex'
    #pdflatex "$SRCDIR/usersguide.tex"
    pdflatex "\\newcommand{\\nohtml}{1}\\input{$SRCDIR/usersguide.tex}"
}

dolatex
dolatex

echo '        [INDEX]   usersguide.idx'
makeindex usersguide.idx

dolatex
dolatex

rm -f 'usersguide.ind}'