home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-11-05 | 3.1 KB | 105 lines | [TEXT/MPWi] |
- # S A D E I N S T A L L A T I O N S C R I P T
- #
- # Copyright Apple Computer, Inc. 1990 - All rights reserved.
- #
- #
- # This script is used to install either SADE 1.0, 1.1, 1.2b3 or 1.3a2 from
- # the E.T.O. #2 distribution compact disk into a folder called "SADE Folder"
- # on the destination hard disk.
- #
- # Options: None
- #
- # This script makes use of the following Shell variables:
- #
- # {CDVolume} - the name of the CD Distribution volume
- #
- # {SystemFolder} - the path to the folder containing the currently active System
- #
- # {DestVolume} - the name of the volume from which the Installer was launched
- #
- # {SADEOption} - a flag used to indicate which version of SADE to install
- #
- # {MPWSource} - the path to the various MPW and SADE versions
- #
-
-
- If "{SADEOption}" == 1 ### install SADE 1.0
- set Source "{MPWSource}MPW 3.0:SADE 1.0:"
- Else If "{SADEOption}" == 2 ### install SADE 1.1
- set Source "{MPWSource}MPW 3.1:SADE 1.1:"
- Else If "{SADEOption}" == 3 ### install SADE 1.2b3
- set Source "{MPWSource}MPW QR2:SADE 1.2b2:"
- Else If "{SADEOption}" == 4 ### install SADE 1.3a2
- set Source "{MPWSource}MPW PQR2:SADE 1.3a2:"
- Else
- Exit 1
- End
-
-
- ### First, copy SADE's Multifinder and DA Handler into the System Folder
-
- ### See if MultiFinder already exists, if so, rename it to "MultiFinder.Old"
-
- if "`Exists -f "{SystemFolder}MultiFinder"`"
-
- If "`Exists -f "{SystemFolder}MultiFinder.Old"`"
- Delete -y "{SystemFolder}MultiFinder.Old"
- End
-
- Rename -y "{SystemFolder}MultiFinder" "{SystemFolder}MultiFinder.Old"
- End
-
- Duplicate -y "{Source}Multifinder" "{SystemFolder}MultiFinder"
-
-
- ### See if DA Handler already exists, if so, rename it to "DA Handler.Old"
-
- If "`Exists -f "{Source}DA Handler"`" ### doesn't exist in SADE 1.0
-
- If "`Exists -f "{SystemFolder}DA Handler"`"
- If "`Exists -f "{SystemFolder}DA Handler.Old"`"
- Delete -y "{SystemFolder}DA Handler.Old"
- End
-
- Rename -y "{SystemFolder}DA Handler" "{SystemFolder}DA Handler.Old"
- End
-
- Duplicate -y "{Source}DA Handler" "{SystemFolder}DA Handler"
- End
-
- ### Now, copy the rest of the stuff
-
- ### See if a folder called "SADE Folder" already exists,
- ### if so, rename it to "SADE Folder.Old"
-
- if "`Exists -d "{DestVolume}SADE Folder"`"
-
- If "`Exists -f "{DestVolume}SADE Folder.Old"`"
- Delete -y "{DestVolume}SADE Folder.Old"
- End
-
- Rename -y "{DestVolume}SADE Folder" "{DestVolume}SADE Folder.Old"
- End
-
- NewFolder "{DestVolume}SADE Folder"
-
- Duplicate -y "{Source}SADE:SADE" "{DestVolume}SADE Folder:SADE"
- Duplicate -y "{Source}SADE:SADE.Help" "{DestVolume}SADE Folder:SADE.Help"
- Duplicate -y "{Source}SADE:SADE New User Worksheet" "{DestVolume}SADE Folder:SADE New User Worksheet"
- Duplicate -y "{Source}SADE:SysErrs.Err" "{DestVolume}SADE Folder:SysErrs.Err"
- Duplicate -y "{Source}SADE:SADEUserStartup" "{DestVolume}SADE Folder:SADEUserStartup"
- Duplicate -y "{Source}SADE:SADEStartUp" "{DestVolume}SADE Folder:SADEStartUp"
- Duplicate -y "{Source}SADEScripts:" "{DestVolume}SADE Folder:SADEScripts:"
-
- ### Special Case for SADE 1.0 - New 'LIB' tool required
-
- If "{SADEOption}" == 1
-
- if "`Exists -d "{DestVolume}MPW Folder"`"
- Duplicate -y "{Source}Tools:Lib" "{DestVolume}MPW Folder:Tools:Lib"
- End
- End
-
- ### That's It!
-
- Exit 0