]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/contrib/mac-mpw/BUILD.mpw
guarding agains NULL
[wxWidgets.git] / src / tiff / contrib / mac-mpw / BUILD.mpw
1 # BUILD.mpw:
2 #
3 # Full build for Apple Macintosh Programmer's Workshop (MPW).
4 #
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:
8 #
9 # directory :::
10 # :contrib:mac-mpw:BUILD.mpw
11 #
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.
16 #
17 # All TIFF tools are built as MPW tools, executable from the
18 # MPW shell or other compatible tool server.
19 #
20 # Written by: Niles Ritter (ndr@tazboy.jpl.nasa.gov).
21 #
22
23 echo "############# Full Scratch Build for MPW #############"
24
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.
28 #
29 echo "######## Creating ASCII->MPW translator ########"
30 set contrib ':contrib:mac-mpw:'
31 directory {contrib}
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
37
38 # Create the top-level Makefile and run it
39 echo "######## Creating Makefile ########"
40 catenate {contrib}top.make | {contrib}mactrans > Makefile
41
42 echo "######## Running Makefile ########"
43 make > build.mpw
44 execute build.mpw
45 echo "############# MPW Build Complete #############"
46 exit 0
47