Build TeX-gpcΒΆ

TeX-gpc is Wolfgang Helbig’s port of TeX to the GNU Pascal Compiler. When you run the script misc/build-tex-gpc it will build a copy of initex-gpc and exercise it (in a trivial manner). This will take about 6 seconds.

You’ll have to have done the downloads first, of course.

#!/bin/sh

set -u

# The directories we will use.
BIN=bin-gpc
TMP=tmp-gpc

# All other paths are relative to $TMP (and $BIN).

TANGLE_P=../downloads/tex-gpc/tangle.p
TANGLE=../$BIN/tangle-gpc

INITEX=../$BIN/initex-gpc

TEX_WEB=../downloads/tex/tex.web
INITEX_CH=../downloads/tex-gpc/tex.ch
INITEX_P=../$TMP/tex.p
TEX_POOL=../$BIN/TeXformats/tex.pool


# Set up the directories.
rm -rf $BIN
mkdir -p $BIN/TeXformats
rm -rf $TMP
mkdir -p $TMP


(
    cd $TMP

    echo "Compiling tangle"
    gpc $TANGLE_P -o $TANGLE

    $TANGLE $TEX_WEB $INITEX_CH $INITEX_P $TEX_POOL

    echo "Compiling initex"
    gpc --automake -Wno-warnings $INITEX_P -o $INITEX

    echo "To create tex, need to change $INITEX_CH."

)

rm -rf $TMP                     # Empty the tmp directory.

# Run the newly created initex.
(
    cd $BIN
    echo '\dump' | $INITEX
    cat texput.log
)

Project Versions

Previous topic

Download

Next topic

Toy problem

This Page