#
# ToolboxToDiskImage
#
# This script copies the toolbox files to the indicated disk images.
#
# Written by Steven Glass    13 Dec 88
# Modified by Steven Glass	 10 Jan 89
#
#
# 10 Mar 89		Steven Glass
#
# Changed names to 5.0
#
# 11/27/89	Mensch
# Changed names and added 3rd disk...
#
#############################################################################
########################################
#
# Set the destination
#
########################################
IF "{2}" == ""
	set Dest "A2CE_Sources:System Disk 6.0"
	set DestSD "A2CE_Sources:System Disk 6.0:Install:"
	set DestST1 "A2CE_Sources:System Disk 6.0:SystemTools1:"
	set DestST2 "A2CE_Sources:System Disk 6.0:SystemTools2:"
	set SynthLab "A2CE_Sources:System Disk 6.0:SynthLab:"
ELSE
	# First we make sure the directory name ends in a colon.
	IF "{2}" !~ /[:]/
		set 2 "{2}":
	END
	set Dest "{2}"
	set DestSD "{2}"Install:
	set DestST1 "{2}"SystemTools1:
	set DestST2 "{2}"SystemTools2:
	set SynthLab "{2}"SynthLab:
END

########################################
#
# Set the source
#
########################################
IF "{1}" == ""
	set Src "work:gstoolbox:"
ELSE
	# First we make sure the directory name ends in a colon.
	IF "{1}" !~ /[:]/
		set 1 {1}:
	END
	SET Src {1}
END


########################################
#
# Now do the copying.
#
########################################
echo "# Copying Toolbox objects from {Src} to {Dest}."


unset exit
set echo on
# Copies the appropriate files to A2CE_Sources
#
duplicate -d -Y	"{Src}"WindMgr:tool014							"{DestSD}"system:tools:Tool014 
duplicate -d -Y	"{Src}"MenuMgr:Tool015							"{DestSD}"system:tools:Tool015
duplicate -d -Y	"{Src}"ControlMgr:Tool016						"{DestSD}"system:tools:Tool016
duplicate -d -Y	"{Src}"QDAux:Tool018							"{DestSD}"system:tools:Tool018
duplicate -d -Y	"{Src}"PrintMgr:Tool019							"{DestSD}"system:tools:Tool019
duplicate -d -Y	"{Src}"LineEdit:Tool020							"{DestSD}"system:tools:Tool020
duplicate -d -Y	"{Src}"DialogMgr:Tool021						"{DestSD}"system:tools:Tool021
duplicate -d -Y	"{Src}"Scrap:Tool022							"{DestSD}"system:tools:Tool022
duplicate -d -Y	"{Src}"StdFile:Tool023							"{DestSD}"system:tools:Tool023
duplicate -d -Y	"{Src}"NoteSynth:Tool025						"{DestST1}"system:tools:Tool025
duplicate -d -Y	"{Src}"NoteSeq:Tool026							"{DestST1}"system:tools:Tool026
duplicate -d -Y	"{Src}"FontMgr:Tool027							"{DestSD}"system:tools:Tool027
duplicate -d -Y	"{Src}"ListMgr:Tool028							"{DestSD}"system:tools:Tool028
duplicate -d -Y	"{Src}"ACE:Tool029								"{DestST1}"system:tools:Tool029
duplicate -d -Y	"{Src}"ResourceMgr:Resource.Mgr					"{DestSD}"system:system.setup:Resource.Mgr 
duplicate -Y	"{Src}"Sys.Resources:SYS.RESOURCES				"{DestSD}"system:system.setup:Sys.Resources
duplicate -d -Y	"{Src}"Midi:miditools:Tool032					"{DestST1}"system:tools:Tool032
duplicate -d -Y	"{Src}"videomix:Tool033							"{DestST2}"system:tools:Tool033
duplicate -d -Y	"{Src}"textedit:Tool034							"{DestSD}"system:tools:Tool034
duplicate -d -Y	"{Src}"midisynth:Tool035						"{SynthLab}"Tool035
#duplicate -d -Y	"{Src}"FredWorld:Tool037						"{DestST1}"system:tools:Tool037
duplicate -d -Y	"{Src}"MediaCtlTool:Tool038						"{DestST2}"system:tools:Tool038


# Drivers
#
duplicate -d -Y	"{Src}"PrinterDrivers:LW:LaserWriter			"{DestST2}"system:drivers:LaserWriter
duplicate -d -Y	"{Src}"PrinterDrivers:New.IW:ImageWriter		"{DestST1}"system:drivers:ImageWriter
duplicate -d -Y	"{Src}"PrinterDrivers:LQ:ImageWriter.LQ			"{DestST1}"system:drivers:ImageWriter.LQ
duplicate -d -Y	"{Src}"PrinterDrivers:Tabasco:StyleWriter		"{DestST1}"system:drivers:StyleWriter
duplicate -d -Y	"{Src}"PrinterDrivers:Epson:Epson				"{DestST1}"system:drivers:Epson
duplicate -d -Y	"{Src}"PrinterDrivers:Printer:Printer			"{DestST1}"system:drivers:Printer
duplicate -d -Y	"{Src}"PrinterDrivers:Modem:Modem				"{DestST1}"system:drivers:Modem
duplicate -d -Y	"{Src}"PrinterDrivers:AppleTalk:AppleTalk		"{DestST2}"system:drivers:AppleTalk
duplicate -d -Y	"{Src}"PrinterDrivers:GraphiCard:Parallel.Card	"{DestST1}"system:drivers:Parallel.Card
duplicate -d -Y	"{Src}"PrinterDrivers:IWEM:IWEM					"{DestST2}"system:drivers:IWEM


duplicate -d -Y	"{Src}"Midi:Drivers:apple.midi:apple.midi		"{DestST1}"system:drivers:Apple.Midi
duplicate -d -Y	"{Src}"Midi:Drivers:card6850.midi:card6850.midi	"{DestST1}"system:drivers:Card6850.MIDI

# System patch
#
duplicate -d -Y	"{Src}"patch:setup:tool.setup					"{DestSD}"system:system.setup:Tool.Setup
duplicate -d -Y	"{Src}"patch:patch2:ts2							"{DestSD}"system:system.setup:TS2
duplicate -d -Y	"{Src}"patch:patch3:ts3							"{DestSD}"system:system.setup:TS3

unset echo
set exit 1