#!/bin/bash echo Cleaning up build tree rm -rf build test mkdir -p build test cd build echo Unpacking WEB sources tar xfz ../web-7.2a.tar.gz echo Unpacking WEB2C sources tar xfz ../web2c-7.2b.tar.gz mv web2c-7.2 texk echo Unpacking pdfTeX sources tar xfz ../pdftexsrc.tgz echo Applying TIFF inclusion support patch cd texk/web2c patch -p1 <../../../pdfTeX-0.12r-tiff.patch cd ../.. echo Configuring the source tree ./configure --datadir=/usr/local/teTeX/share echo Building pdfTeX, pdfeTeX and ttf2afm cd texk/web2c make pdftex pdfetex ttf2afm echo Dumping formats cp pdftex pdftex.pool pdfetex pdfetex.pool ttf2afm ../../../test export TEXMF=/usr/local/teTeX/share/texmf export TEXMFCNF=/usr/local/teTeX/share/texmf/web2c/ cd ../../../test cp ../texmf.cnf . ./pdftex -ini -fmt=pdftex plain \\dump ./pdfetex -ini -efmt=pdfetex plain \\dump