home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Spanish Scene 4
/
SpanishScene4.iso
/
Programas
/
DavidBarbion_Ind
/
backclock_V232c.lha
/
BackClock
/
Install
next >
Wrap
Text File
|
1999-06-16
|
4KB
|
152 lines
;/* install script version 1.4
; * $VER: BCInstall 1.4 (16-06-99)
; */
(set #inst_text "BackClock Installation on Hard Disk")
(set #prog "backclock")
(set #rtlib "rtracker.library")
(set @appname "BackClock")
(set #gosrc 1)
(set #gobootup 1)
(set #defpathprefs "sys:prefs/")
(set #libs_src "libs")
(set #libs_dst "libs:")
(set #destdir_prompt "Where do you want to install BackClock\nA drawer will be created.")
(set #destdirprefs "Where do you want to install BackClock preferences.")
(set #destdir (askdir
(prompt #destdir_prompt)
(help @askdir-help)
(default "Work:")
)
)
(set @default-dest (tackon #destdir "BackClock"))
(if (not (exists (@default-dest)))
(makedir @default-dest (infos))
)
(copylib
(prompt "Updating rtracker.library")
(source (tackon #libs_src #rtlib))
(dest #libs_dst)
(help @copylib-help)
(confirm expert)
)
(if (>= @user-level 1)
(set #gobootup
(askbool
(prompt "Do you want to run BackClock each startup ?")
(help "If you answer yes, then BackClock will be copied to SYS:WBStartup.")
)
)
)
(set #sourcepath @default-dest)
(if (>= @user-level 1)
(set #defpathprefs (askdir
(prompt #destdirprefs)
(help "Please choose where to place the preferences utility.")
(default #defpathprefs)
)
)
)
(if (>= @user-level 1)
(if (askbool
(prompt "Do you want to install sources ?")
(help "This will install the sources of the program in the directory sources./")
)
(
;install sources
(set #gosrc 1)
(if (= 2 @user-level)
(
(set #sourcepath (askdir
(prompt "Where do you want to install sources codes ?\nA drawer called sources will be created there.")
(help "You have to choose where the sources be placed.")
(default @default-dest)
)
)
)
)
)
; don't install sources
(set #gosrc 0)
)
)
(set #catalog
(askchoice
(prompt "Select your desired guide file")
(help "If you know english then choose english\nIf you know german then choose german")
(choices "English" "German")
(default 0)
)
)
(if (= 1 #gosrc)
((if (not (exists (tackon #sourcepath "sources")))
(makedir (tackon #sourcepath "sources"))
)
)
)
(copyfiles
(prompt "Copying Main file")
(help "Copy the executable and the icon of the main file in the path you choosed")
(source "bin/")
(dest @default-dest)
(all)
)
(copyfiles
(prompt "Copying preferences program")
(help "Copy the preferences executable and the icon file in the path you choosed")
(source "prefs/")
(dest #defpathprefs)
(all)
)
(if (= #catalog 0)
(copyfiles
(prompt "Cpying documentation")
(help "Copy the documentation in the path you choosed")
(source "docs/backclockE.guide")
(newname "backclock.guide")
(dest @default-dest)
(infos)
)
)
(if (= #catalog 1)
(copyfiles
(prompt "Cpying documentation")
(help "Copy the documentation in the path you choosed")
(source "docs/backclockD.guide")
(newname "backclock.guide")
(dest @default-dest)
(infos)
)
)
(if (= 1 #gobootup)
(copyfiles
(prompt "Copying to WBStartup")
(help "Copy the executable file to wbstartup\nThis will run BackClock each reboot.")
(source "bin/backclock")
(dest "SYS:WBstartup/")
(infos)
)
)
(if (= 1 #gosrc)
(copyfiles
(prompt "Copying sources")
(help "Copy the sources in C in the the path you choosed")
(source "sources/")
(dest (tackon #sourcepath "sources"))
(all)
)
)