; This will install SetBuffers onto your Hard Drive
; Script by Stephen J.Smith AUSTEX SOFTWARE 1995 v1.1
;
; Installer and Installer project icon
; (c) Copyright 1991-93 Commodore-Amiga, Inc.  All Rights Reserved.
; Reproduced and distributed under license from Commodore.
;
; INSTALLER SOFTWARE IS PROVIDED "AS-IS" AND SUBJECT TO CHANGE;
; NO WARRANTIES ARE MADE.  ALL USE IS AT YOUR OWN RISK.  NO LIABILITY
; OR RESPONSIBILITY IS ASSUMED.    
;
(set source_dir (if (= 1 (exists @icon))
		    (pathonly (expandpath @icon))
		  (expandpath @icon))
)

(set docs_source_dir ( tackon source_dir "Documents" )
)

(set dest_dir
	(tackon
	(askdir
		(prompt "SetBuffers v1.26\nCopyright (C) 1995 AUSTEX SOFTWARE\nWhere do you want to install the SetBuffers drawer?")
		(help @askdir-help)
		(default "SYS:")
	)
	"SetBuffers")
)
;
; Now copy the SetBuffers program proper.
;
(copyfiles
	(prompt "Copying SetBuffers.")
	(help @copyfiles-help)
	(source source_dir)
	(pattern "SetBuffers#?")
	(infos)
	(files)
	(dest dest_dir)
	(confirm)
)
;
; Now copy the SetBuffers Documentation
;
(copyfiles
	(prompt "Copying SetBuffers Documentation.")
	(help @copyfiles-help)
	(source docs_source_dir)
	(infos)
	(pattern "#?")
	(dest (tackon dest_dir "Documents"))
	(confirm)
)
;
; Obtain the destination for the axtools library. (Default LIBS:)
;
(set destlib
	(askdir
		(prompt "Where do you want to install\n the axtools library?")
		(help @askdir-help)
		(default "LIBS:")
	)
)
;
; Now copy the axtools library required by the SetBuffers
; program. The installer will check version numbers of the
; library for the possibility of copying over a newer version.
;
(copylib
	(prompt "Copying axtools library.")
	(help @copylib-help)
	(source "LIBS/axtools.library")
	(dest destlib)
	(confirm)
)
; And we're finished...
