home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 5
/
CD_Magazyn_EXEC_nr_5.iso
/
Programy
/
Muzyczne
/
stonefree2.lha
/
Install-StoneTracker
< prev
next >
Wrap
Text File
|
1995-12-18
|
12KB
|
488 lines
; $VER: StoneTracker Install 1.26 (18 dec 1995) by Lavaire Michael
;
; Installation script for StoneTracker (disk version)
; (c) Copyright 1995 Emmanuel Marty & Michael Lavaire
;
;------------------------
; Languages
;------------------------
(if (= @language "français")
(
(set #BadKick
"Système v2.04 minimum."
)
(set #InsListMsg
"Sélectionner les éléments que vous désirez installer."
)
(set #InsDevMsg
"Désirez-vous installer les documents développeur ?"
)
(set #StoneDir-Msg (cat
"Sélectionnez le répertoire de destination du StoneTracker. "
"Aucun autre répertoire ne sera ajouté."
))
(set #StonePref-Msg (cat
"Sélectionnez le répertoire de destination du fichier de "
"configuration du StoneTracker."
))
(set #StoneLocale-Msg (cat
"Sélectionnez le répertoire de destination de la localisation "
"en français du StoneTracker"
))
(set #StoneLib-Msg (cat
"Sélectionnez le répertoire de destination de la library "
"StonePlayer."
))
(set #StoneDocs-Msg (cat
"Sélectionnez le répertoire de destination de la documentation "
"du StoneTracker."
))
(set #StoneExam-Msg (cat
"Sélectionnez le répertoire de destination des modules d'exemple "
"du StoneTracker. Aucun autre répertoire ne sera ajouté."
))
(set #PlayStoneDest-Msg
"Sélectionnez le répertoire de destination de PlayStone."
)
(set #DeliStoneDest-Msg
"Sélectionnez le répertoire de destination de DeliStone."
)
(set #EagleStoneDest-Msg
"Sélectionnez le répertoire de destination d'EagleStone."
)
(set #Includes-Msg
"Sélectionnez le répertoire de destination des includes assembleur."
)
(set #DevDocs-Msg (cat
"Sélectionnez le répertoire de destination de la documentation "
"de la StonePlayer library."
))
(set #BinPlayers-Msg (cat
"Sélectionnez le répertoire de destination des players binaires "
"StonePlayer."
))
(set #BinTrailers-Msg (cat
"Sélectionnez le répertoire de destination des mires binaires "
"StoneTracker."
))
(set #CExample-Msg (cat
"Sélectionnez le répertoire de destination des exemples "
"d'utilisation du player en 'C'."
))
(set #CInclude-Msg
"Sélectionnez le répertoire de destination des includes 'C'."
)
(set #CLib-Msg (cat
"Sélectionnez le répertoire de destination de la "
"bibliothèque linkée pour le 'C'."
))
(set #InstDoc-Msg
"Documentation"
)
(set #InstMus-Msg
"Musiques d'exemple"
)
(set #InstBinPlayers-Msg
"Players binaires"
)
(set #InstTrailers-Msg
"Mires"
)
(set #InstCMat-Msg
"Docs 'C'"
)
(set #InstCExamples-Msg
"Exemples C"
)
(set #InstCIncludes-Msg
"Includes C"
)
(set #InstCLib-Msg
"Bibliothèque C"
)
(set #WorkingInstall
"Installation en cours ..."
)
)
(
(set #BadKick
"Kickstart 2.04 required."
)
(set #InsListMsg
"Select elements to be installed."
)
(set #InsDevMsg
"Would you like to install developer material ?"
)
(set #StoneDir-Msg (cat
"Select StoneTracker destination directory. "
"No directory will be created."
))
(set #StonePref-Msg (cat
"Select StoneTracker configuration file "
"destination directory."
))
(set #StoneLocale-Msg (cat
"Select StoneTracker french locale file "
"destination directory."
))
(set #StoneLib-Msg
"Select StonePlayer library destination directory."
)
(set #StoneDocs-Msg
"Select StoneTracker documentation destination directory."
)
(set #StoneExam-Msg (cat
"Select StoneTracker example modules destination directory. "
"No directory will be created."
))
(set #PlayStoneDest-Msg
"Select PlayStone destination directory."
)
(set #DeliStoneDest-Msg
"Select DeliStone destination directory."
)
(set #EagleStoneDest-Msg
"Select EagleStone destination directory."
)
(set #Includes-Msg
"Select assembler include files destination directory."
)
(set #DevDocs-Msg (cat
"Select StonePlayer library documentation files "
"destination directory."
))
(set #BinPlayers-Msg
"Select StonePlayer binary players destination directory."
)
(set #BinTrailers-Msg
"Select StoneTracker binary trailers destination directory."
)
(set #CExample-Msg
"Select 'C' player programming examples destination directory."
)
(set #CInclude-Msg
"Select 'C' includes destination directory."
)
(set #CLib-Msg
"Select 'C' linked library destination directory."
)
(set #InstDoc-Msg
"Documentation"
)
(set #InstMus-Msg
"Example musics"
)
(set #InstBinPlayers-Msg
"Binary players"
)
(set #InstTrailers-Msg
"Trailers"
)
(set #InstCMat-Msg
"'C' material"
)
(set #InstCExamples-Msg
"C Examples"
)
(set #InstCIncludes-Msg
"C Includes"
)
(set #InstCLib-Msg
"C Linked Library"
)
(set #WorkingInstall
"Installation in progress ..."
)
))
;--------------------
; Intro
;--------------------
(if (< (/ (getversion) 65536) 37) (abort #BadKick))
(welcome)
;----------------------
; Options
;----------------------
(set InstList (askoptions
(prompt #InsListMsg)
(help @askoptions-help)
(choices #InstDoc-Msg #InstMus-Msg "PlayStone" "DeliStone" "EagleStone")
))
(set InstDevs (askbool
(prompt #InsDevMsg)
(help @askchoice-help)
(default 0)
))
(If InstDevs
( (set InstDevsList (askoptions
(prompt #InsListMsg)
(help @askoptions-help)
(choices "Includes" "AutoDocs" #InstBinPlayers-Msg #InstTrailers-Msg #InstCMat-Msg)
))
(If (in InstDevsList 4)
( (set InstCDevsList (askoptions
(prompt #InsListMsg)
(help @askoptions-help)
(choices #InstCExamples-Msg #InstCIncludes-Msg #InstCLib-Msg)
))
))
)
( (set InstDevsList 0)
(set InstCDevsList 0)
))
;------------------------
; Dest Dirs
;------------------------
(set DestStone (askdir
(prompt #StoneDir-Msg)
(help @askdir-help)
(default "WORK:")
))
(set @default-dest DestStone)
(set DestPref (askdir
(prompt #StonePref-Msg)
(help @askdir-help)
(default "ENVARC:")
))
(set DestLocale (askdir
(prompt #StoneLocale-Msg)
(help @askdir-help)
(default "LOCALE:Catalogs/français")
))
(set DestLib (askdir
(prompt #StoneLib-Msg)
(help @askdir-help)
(default "LIBS:")
))
(if (in InstList 0)
(set DestDocs (askdir
(prompt #StoneDocs-Msg)
(help @askdir-help)
(default DestStone)
))
(set DestDocs "")
)
(if (in InstList 1)
(set DestExam (askdir
(prompt #StoneExam-Msg)
(help @askdir-help)
(default DestStone)
))
(set DestExam "ST-00:")
)
(if (in InstList 2)
(set DestPlayStone (askdir
(prompt #PlayStoneDest-Msg)
(help @askdir-help)
(default DestStone)
))
)
(if (in InstList 3) (
(if (exists "ENV:DELICONFIG" (noreq) ) (
(set DestDeliStone (getenv "DELICONFIG"))
(set DestDeliStone (pathonly DestDeliStone))
(set DestDeliStone (tackon DestDeliStone "DeliPlayers"))
(if (NOT (exists DestDeliStone (noreq))) (set DestDeliStone "RAM:"))
) (set DestDeliStone "WORK:")
)
(set DestDeliStone (askdir
(prompt #DeliStoneDest-Msg)
(help @askdir-help)
(default DestDeliStone)
))
))
(if (in InstList 4)
(set DestEagleStone (askdir
(prompt #EagleStoneDest-Msg)
(help @askdir-help)
(default "WORK:")
))
)
(if (in InstDevsList 0)
(set DestIncludes (askdir
(prompt #Includes-Msg)
(help @askdir-help)
(default "INCLUDE:")
))
)
(if (in InstDevsList 1)
(set DestDevDocs (askdir
(prompt #DevDocs-Msg)
(help @askdir-help)
(default "AUTODOCS:")
))
)
(if (in InstDevsList 2)
(set DestBinPlayers (askdir
(prompt #BinPlayers-Msg)
(help @askdir-help)
(default "INCLUDE:")
))
)
(if (in InstDevsList 3)
(set DestBinTrailers (askdir
(prompt #BinTrailers-Msg)
(help @askdir-help)
(default "INCLUDE:")
))
)
(if (in InstCDevsList 0)
(set DestCExamples (askdir
(prompt #CExample-Msg)
(help @askdir-help)
(default "WORK:")
))
)
(if (in InstCDevsList 1)
(set DestCIncludes (askdir
(prompt #CInclude-Msg)
(help @askdir-help)
(default "INCLUDE:")
))
)
(if (in InstCDevsList 2)
(set DestCLib (askdir
(prompt #CLib-Msg)
(help @askdir-help)
(default "LIB:")
))
)
;-------------------------
; Installation
;-------------------------
(working #WorkingInstall)
(copyfiles (source "StoneTracker.Disk1:StoneTracker") (dest DestStone) (infos))
(copyfiles (source "StoneTracker.Disk1:Prefs/Env-Archive/StoneTracker.Prefs") (dest "T:"))
(textfile (dest "ENV:StoneTracker.Prefs")
(include "T:StoneTracker.Prefs")
(append "AppIcon \"")
(append (tackon DestStone "StoneTracker.Info"))
(append "\"\nModulePath \"")
(append DestExam)
(append "\"\n")
(append "Multiview \"RUN <>NIL: SYS:Utilities/MultiView <>CON:////MultiView/AUTO/WAIT/CLOSE ")
(append (tackon DestDocs "%s"))
(append "\"\n")
)
(copyfiles (source "ENV:StoneTracker.Prefs") (dest DestPref))
(delete ("T:StoneTracker.Prefs"))
(copyfiles (source "StoneTracker.Disk1:Locale/catalogs/Français/StoneTracker.Catalog") (dest DestLocale))
(copyfiles (source "StoneTracker.Disk1:Libs/StonePlayer.Library") (dest DestLib))
(copyfiles (source "StoneTracker.Disk1:Libs/StonePacker.Library") (dest DestLib))
(copylib (source "StoneTracker.Disk1:Libs/ReqTools.Library") (dest DestLib))
(if (in InstList 1)
(copyfiles (source "StoneTracker.Disk2:Modules") (dest DestExam) (files) (all))
)
(copyfiles (source "StoneTracker.Disk2:StoneEx") (dest "T:"))
(makedir "T:Stone")
(if (<> (OR (OR (in InstList 2) (in InstList 3)) (in InstList 4)) 0) (
(run "T:StoneEx >Nil: file StoneTracker.Disk2:Externals.LHS to T:Stone")
(if (in InstList 2) (
(copyfiles (source "T:Stone/PlayStone") (dest DestPlayStone))
(copyfiles (source "T:Stone/PlayStone.catalog") (dest DestLocale))
))
(if (in InstList 3) (copyfiles (source "T:Stone/DeliStone") (dest DestDeliStone)))
(if (in InstList 4) (copyfiles (source "T:Stone/EagleStone") (dest DestEagleStone)))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(if (in InstDevsList 0) (
(run "T:StoneEx >Nil: file StoneTracker.Disk2:Includes.LHS to T:Stone")
(copyfiles (source "T:Stone") (dest DestIncludes) (files) (all))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(if (in InstDevsList 1) (
(run "T:StoneEx >Nil: file StoneTracker.Disk2:Docs.LHS to T:Stone")
(copyfiles (source "T:Stone") (dest DestDevDocs) (files) (all))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(if (in InstDevsList 2) (
(run "T:StoneEx >Nil: file StoneTracker.Disk2:Players.LHS to T:Stone")
(copyfiles (source "T:Stone") (dest DestBinPlayers) (files) (all))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(if (<> (OR (in InstCDevsList 0) (in InstCDevsList 1)) 0) (
(run "T:StoneEx >Nil: file StoneTracker.Disk2:CDev.LHS to T:Stone")
(if (in InstCDevsList 0) (copyfiles (source "T:Stone") (dest DestCExamples) (pattern "CPlay#?") (infos)))
(if (in InstCDevsList 1) (
(if (NOT (exists (tackon DestCIncludes "clib") (noreq))) (makedir (tackon DestCIncludes "clib")))
(if (NOT (exists (tackon DestCIncludes "libraries") (noreq))) (makedir (tackon DestCIncludes "libraries")))
(if (NOT (exists (tackon DestCIncludes "pragmas") (noreq))) (makedir (tackon DestCIncludes "pragmas")))
(if (NOT (exists (tackon DestCIncludes "proto") (noreq))) (makedir (tackon DestCIncludes "proto")))
(copyfiles (source "T:Stone/StonePlayer_protos.h") (dest (tackon DestCIncludes "clib")) )
(copyfiles (source "T:Stone/StonePlayer_Lib.h") (dest (tackon DestCIncludes "libraries")) (newname "StonePlayer.h"))
(copyfiles (source "T:Stone/StonePlayer_pragmas.h") (dest (tackon DestCIncludes "pragmas")) )
(copyfiles (source "T:Stone/StonePlayer_proto.h") (dest (tackon DestCIncludes "proto")) (newname "StonePlayer.h"))
))
(if (in InstCDevsList 2) (copyfiles (source "T:Stone/StonePlayer.lib") (dest DestCLib) ))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(if (in InstList 0) (
(copyfiles (source "StoneTracker.Disk3:StoneTracker.Guide") (dest DestDocs) (infos))
(copyfiles (source "StoneTracker.Disk3:StoneTracker_E.Guide") (dest DestDocs) (infos))
))
(if (in InstDevsList 3) (
(run "T:StoneEx >Nil: file StoneTracker.Disk3:Trailers.LHS to T:Stone")
(copyfiles (source "T:Stone") (dest DestBinTrailers) (files) (all))
(foreach ("T:Stone") ("#?") (delete (tackon "T:Stone" @each-name)))
))
(delete "T:StoneEx")
(delete "T:Stone")