3
# Full build for Apple Macintosh Programmer's Workshop (MPW).
5
# This is an executable MPW script which creates various
6
# utilities, sets up the MPW makefiles and runs the builds.
7
# This script should be run at the top level TIFF directory with:
10
# :contrib:mac-mpw:BUILD.mpw
12
# NOTE: The full build requires that MPW have at least 6 MB
13
# allocated to it to compile the CCITT Fax codec tables. To
14
# deactivate CCITT compression edit the file :contrib:mac:libtiff.make
15
# first and follow the directions for disabling Fax decoding.
17
# All TIFF tools are built as MPW tools, executable from the
18
# MPW shell or other compatible tool server.
20
# Written by: Niles Ritter (ndr@tazboy.jpl.nasa.gov).
23
echo "############# Full Scratch Build for MPW #############"
25
# Create the ascii->mpw translation tool; this is used to
26
# convert standard ASCII files into ones using the special
27
# MPW characters, which don't live comfortably in unix tar files.
29
echo "######## Creating ASCII->MPW translator ########"
30
set contrib ':contrib:mac-mpw:'
32
createmake -tool mactrans mactrans.c > dev:null
33
make -f mactrans.make | streamedit -e "/CSANELib/||/Math/||/ToolLibs/ del" > mactrans.bld
34
execute mactrans.bld > dev:null
35
delete -y mactrans.make mactrans.bld mactrans.c.o || set status 0
36
directory ::: #An mpw trick for going up two levels
38
# Create the top-level Makefile and run it
39
echo "######## Creating Makefile ########"
40
catenate {contrib}top.make | {contrib}mactrans > Makefile
42
echo "######## Running Makefile ########"
45
echo "############# MPW Build Complete #############"