1999-11-29 09:08:19 -08:00
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Installing Objective Caml on a Macintosh with MPW ###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This file describes how to install and recompile Objective Caml
|
|
|
|
|
# in the MPW environment under MacOS 7, 8, 9. For MacOS X, see
|
|
|
|
|
# the instructions for Unix machines in the file INSTALL.
|
|
|
|
|
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# PREREQUISITES
|
1999-11-29 09:08:19 -08:00
|
|
|
|
|
2001-03-07 11:42:25 -08:00
|
|
|
|
# You need MPW 3.5 (with MrC) and Universal Interfaces version 3.3.2
|
1999-11-29 09:08:19 -08:00
|
|
|
|
# You need WASTE version 1.3
|
1997-11-13 06:23:53 -08:00
|
|
|
|
#
|
1999-02-27 13:50:47 -08:00
|
|
|
|
# MPW is available from Apple's FTP site at:
|
1998-07-04 09:51:51 -07:00
|
|
|
|
# <ftp://ftp.apple.com/devworld/Tool_Chest/Core_Mac_OS_Tools/MPW_etc./>
|
1996-11-02 09:55:06 -08:00
|
|
|
|
#
|
1999-11-29 09:08:19 -08:00
|
|
|
|
# WASTE 1.3 is available from:
|
2000-04-05 11:30:22 -07:00
|
|
|
|
# <ftp://ftp.boingo.com/dan/WASTE/>
|
1999-11-29 09:08:19 -08:00
|
|
|
|
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# INSTALLATION INSTRUCTIONS
|
|
|
|
|
#
|
|
|
|
|
# To install Objective Caml in your MPW environment, follow this script.
|
|
|
|
|
# Read the comments and execute the commands. If you run the commands
|
|
|
|
|
# without changing anything, you'll get a reasonable default configuration.
|
|
|
|
|
|
2001-07-12 06:37:35 -07:00
|
|
|
|
# Before you start, you must put the WASTE 1.3 distribution folder
|
1999-11-29 09:08:19 -08:00
|
|
|
|
# into the :maccaml:WASTE: folder.
|
|
|
|
|
|
2001-03-07 11:42:25 -08:00
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# Go to the directory where you found this file.
|
|
|
|
|
|
|
|
|
|
Directory "`echo "{active}" | streamedit -e '1 replace /[<5B>:]*<2A>/ ""'`"
|
|
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
|
# Set the O'Caml configuration files.
|
|
|
|
|
|
|
|
|
|
Duplicate -y :config:s-MacOS.h :config:s.h
|
|
|
|
|
Duplicate -y :config:m-MacOS.h :config:m.h
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# Copy some useful scripts to your Commands directory.
|
|
|
|
|
# DoMake is absolutely needed for installation
|
|
|
|
|
# Characters is only needed by the executable error messages
|
|
|
|
|
|
2000-03-01 05:01:44 -08:00
|
|
|
|
Duplicate :tools:DoMake :tools:Characters "{MPW}User Commands:"
|
|
|
|
|
|
|
|
|
|
# NOTE: if you have MakeDepend from a previous version of O'Caml, you
|
|
|
|
|
# must remove it from "{MPW}User Commands:". It is not needed any more
|
|
|
|
|
# since MPW 3.5 has a MakeDepend command.
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
|
1999-11-29 09:08:19 -08:00
|
|
|
|
# Build the WASTE libraries:
|
|
|
|
|
|
|
|
|
|
Directory ":maccaml:WASTE:WASTE 1.3 Distribution:"
|
2001-07-12 06:37:35 -07:00
|
|
|
|
DoMake -f ::Makefile WASTELib.x <20><> "{worksheet}"
|
1999-11-29 09:08:19 -08:00
|
|
|
|
Directory ::::
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# Edit ":config:config.Mac" to change the configuration.
|
|
|
|
|
# (mostly, the destination folders for installation)
|
|
|
|
|
|
|
|
|
|
Open :config:config.Mac
|
|
|
|
|
|
|
|
|
|
# Set the configuration variables.
|
|
|
|
|
|
|
|
|
|
Execute :config:config.Mac
|
|
|
|
|
|
|
|
|
|
# O'Caml needs an environment variable to find its library files.
|
|
|
|
|
# (the value is taken from the configuration variables)
|
|
|
|
|
|
|
|
|
|
Set -e CAMLLIB "{LIBDIR}"
|
|
|
|
|
|
|
|
|
|
# Make it persistent.
|
|
|
|
|
|
1999-11-29 09:08:19 -08:00
|
|
|
|
Set CAMLLIB > "{MPW}Startup Items:OCaml"
|
|
|
|
|
|
1996-11-02 09:55:06 -08:00
|
|
|
|
# Now you're all set. Build the files and install everything.
|
|
|
|
|
# For more explanations on these steps, see the file INSTALL.
|
|
|
|
|
|
1999-11-29 09:08:19 -08:00
|
|
|
|
begin
|
|
|
|
|
DoMake world
|
|
|
|
|
DoMake bootstrap
|
|
|
|
|
DoMake install
|
|
|
|
|
end <20><> "{worksheet}"
|
|
|
|
|
|
|
|
|
|
# If you want syntax coloring in MPW Shell, use ResEdit to copy the
|
|
|
|
|
# resources from :tools:keywords into the shell.
|