home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
util
/
misc
/
VMM_V3_3.lha
/
VMM
/
InstallVMM
/
Español
< prev
next >
Wrap
Text File
|
1995-12-16
|
14KB
|
416 lines
; VMM Installer script by Martin Apel
; Installation script for VMM 3.3
(set @app-name "VMM")
(welcome " Bienvenido a la instalación de VMM\n\n"
" Memoria Virtual para Amigas con MMU\n\n"
" Copyright 1993-95 de Martin Apel\n"
" Traducción española de Dimas Caparrós\n"
" dimas@maze.mazanet.es ó 2:343/119.76\n\n"
"Novazto instala todo escepto los ficheros de desarrolladores.\n"
"Avanzado instala todo sin confirmación.\n"
"Experto instala todo con confirmación para todo.\n")
(if (= 0 @user-level) ; then
(set install_level %000111)
;else
(set install_level (askoptions (prompt "¿Qué quiere instalar?")
(help @askoptions-help)
(choices "VMM" "Iconoss" "Documentos" "Fichero de Desarrolladores" "Herramientas" "ARexx scripts")))
)
(set def_help "\n\nSi necesita más ayuda, mire en el manual \"VMM.guide\"\n\n")
(set my_level @user-level)
(user 2)
(set vmmdest
;get destination directory for "VMM"
(askdir (prompt "Seleccione el directorio donde quiere poner el ejecutable de VMM (y las herramientas).")
(help "Debe ser un directorio donde pueda acceder fácilmente a VMM"
"desde el Workbench o el CLI/Shell." def_help
@askdir-help)
(default @default-dest)
(disk)
)
)
(user my_level)
(set copy_vmm (BITAND %000001 install_level))
(set copy_icons (BITAND %000010 install_level))
(set copy_docs (BITAND %000100 install_level))
(set copy_dev (BITAND %001000 install_level))
(set copy_tools (BITAND %010000 install_level))
(set copy_rexx (BITAND %100000 install_level))
; Copy VMM files
(if copy_vmm
(
(set @default-dest vmmdest)
(set vmmtacked (tackon vmmdest "VMM"))
; ask, if we want to overwrite the old VMM if it exists
(set overwrite 1)
(if (exists "L:VMM-Handler")
(
(set old_version (getversion "l:VMM-Handler"))
(set old_ver (/ old_version 65536))
(set old_rev (- old_version (* old_ver 65536)))
(set new_version (getversion "/l/VMM-Handler_4K"))
(set new_ver (/ new_version 65536))
(set new_rev (- new_version (* new_ver 65536)))
(set overwrite (askbool (prompt "\nTiene VMM "
old_ver "." old_rev " ya instalado."
".\n¿Quiere borrarlo por VMM "
new_ver "." new_rev " ?\n")
(help def_help @askbool-help)
(default 1)
(choices "Si" "No"))
)
)
)
(if overwrite
(
; detect the pagesize (4K or 8K)
(set pagesize (run "/tools/ShowPageSize"))
(select pagesize
(abort "Error interno en el Script de instalación")
((set info_string "Un tamaño de página de 4K se puede usar en su sistema")
(set default_choice 0))
((set info_string "Un tamaño de página de 8K se puede usar en su sistema")
(set default_choice 1))
((set info_string "Se puede usar un tamaño de página de 4K u 8K en su sistema")
(set default_choice 0))
)
(set my_choice (askchoice (prompt "\nElija un tamaño de página:\n\n"
info_string ".\n")
(help def_help @askchoice-help)
(choices "4K pagesize" "8K pagesize")
(default default_choice))
)
(select my_choice
(set sizestr "4K")
(set sizestr "8K")
)
; copy the new VMM file to the destination directory
(if copy_icons
; then
(copyfiles (prompt ("\nCopiando VMM a %s." vmmdest))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/")
(choices "VMM")
(dest vmmdest)
(infos)
(confirm)
)
; else
(copyfiles (prompt ("\nCopiando VMM a %s." vmmdest))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/")
(choices "VMM")
(dest vmmdest)
(confirm)
)
)
; copy the catalog for VMM
; not used in english version, because English is built in
(copyfiles (prompt "\nCopiando VMM.catalog a LOCALE:catalogs/español.")
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/catalogs/español/VMM.catalog")
(dest "LOCALE:catalogs/español")
(confirm)
)
; copy the new VMM-Handler file to l: and rename it as "VMM-Handler"
(set handler_name (cat "/l/VMM-Handler_" sizestr))
(copyfiles (prompt "\nCopiando VMM-Handler a l:.")
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source handler_name)
(dest "l:")
(newname "VMM-Handler")
(confirm)
)
; copy the catalog for the VMM-handler
; not used in english version, because English is built in
(copyfiles (prompt "\nCopiando VMM-Handler.catalog a LOCALE:catalogs/español.")
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/catalogs/english/VMM-Handler.catalog")
(dest "LOCALE:catalogs/español")
(confirm)
)
)
)
; ask, if we want to overwrite the old preferences file
; default: do overwrite preferences file
(set overwrite 1)
(if (exists "envarc:VMM.prefs")
(if (= 0 (askbool (prompt "\nYa tenia grabadas unas preferencias.\n¿Quiere reescribirlas?\n\n")
(help "Si no las sobreescribe serán convertidas en el próximo paso." @askbool-help)
(default 0)
(choices "Si" "No")))
(set overwrite 0)
)
)
(if overwrite
(
; copy the new preferences file to env: and envarc:
(copyfiles (prompt ("\nCopiando VMM.prefs a env:\n"))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/env/VMM.prefs")
(dest "env:")
(confirm)
)
(copyfiles (prompt ("\nCopiando VMM.prefs a envarc:\n"))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/env/VMM.prefs")
(dest "envarc:")
(confirm)
)
)
; else
(if (= 1 (askbool (prompt "El formato de las preferencias ha cambiado desde la versión V2.1\n¿Quiere convertirlas al nuevo formato?"
(help def_help @askbool-help)
(default 1)
(choices "Si" "No"))))
(run "/tools/ConvVMMCfg")
)
)
)
)
; Copy docs
(if copy_docs
(
;get destination directory for "VMM.guide"
(set doc_dir (tackon vmmdest "doc"))
(if (AND (= 0 @user-level) (NOT (exists doc_dir)))
; then
(makedir doc_dir (infos))
)
(set vmmdocs
(askdir (prompt "Seleccione el directorio donde quiere poner\nlos manuales y las guías.")
(help "Debería ser un directorio donde pone normalmente las guías.\n\n"
def_help @askdir-help)
(default doc_dir)
(newpath)
(disk)
)
)
(if copy_dev
(if copy_icons
; then
(copyfiles (prompt ("\nCopiando manuales..."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/doc")
(choices "VMM.guide" "VMM_Rexx.guide" "VMMTools.guide" "VMM_lib.doc")
(dest vmmdocs)
(infos)
(confirm)
)
; else
(copyfiles (prompt ("\nCopiando manuales..."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/doc")
(choices "VMM.guide" "VMM_Rexx.guide" "VMMTools.guide" "VMM_lib.doc")
(dest vmmdocs)
(confirm)
)
)
; else
(if copy_icons
; then
(copyfiles (prompt ("\nCopiando VMM.guide a " vmmdocs "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/doc")
(choices "VMM.guide" "VMM_Rexx.guide" "VMMTools.guide")
(dest vmmdocs)
(infos)
(confirm)
)
; else
(copyfiles (prompt ("\nCopiando VMM.guide a " vmmdocs "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/doc")
(choices "VMM.guide" "VMM_Rexx.guide" "VMMTools.guide")
(dest vmmdocs)
(confirm)
)
)
)
)
)
; Copy developer files
(if copy_dev
(
(copylib (prompt ("\nCopiando VMM.library a libs:."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/Developer/libs/VMM.library")
(dest "libs:")
(confirm)
)
(if (exists ("fd:") (noreq))
; then
(set fd_dir "fd:")
; else
(set fd_dir
(askdir (prompt "Elija el directorio donde quiere poner el fichero fd.")
(help def_help @askdir-help)
(default "SYS:")
(disk)
)
)
)
(if (exists ("include:") (noreq))
; then
(set inc_dir "include:")
; else
(set inc_dir
(askdir (prompt "Elija el directorio donde quiere poner los 'includes'.")
(help def_help @askdir-help)
(default "SYS:")
(disk)
)
)
)
(if (exists ("lib:") (noreq))
; then
(set lib_dir "lib:")
; else
(set lib_dir
(askdir (prompt "Elija el directorio donde quiere poner el fichero 'lib'.")
(help def_help @askdir-help)
(default "SYS:")
(disk)
)
)
)
(copyfiles (prompt ("\nCopiando VMM_lib.fd a " fd_dir "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/Developer/fd")
(choices "VMM_lib.fd")
(dest fd_dir)
(confirm)
)
(copyfiles (prompt ("\nCopiando VMM_stat.h a " inc_dir "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/Developer/include")
(choices "VMM_Stat.h")
(dest inc_dir)
(confirm)
)
(copyfiles (prompt ("\nCopiando VMM_lib.lib a " lib_dir "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/Developer/lib")
(choices "VMM_lib.lib")
(dest lib_dir)
(confirm)
)
)
)
; Copy tools
(if copy_tools
(
if copy_icons
; then
(copyfiles (prompt ("\nCopiando herramientas a " vmmdest "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/tools")
(choices "VMMStat" "VMMUsage" "VMMUsageCLI")
(dest vmmdest)
(infos)
(confirm)
)
; else
(copyfiles (prompt ("\nCopiando herramientas a " vmmdest "."))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/tools")
(choices "VMMStat" "VMMUsage" "VMMUsageCLI")
(dest vmmdest)
(confirm)
)
)
)
;
; Copy ARexx scripts
(if copy_rexx
(copyfiles (prompt ("\nCopiando scripts ARexx to REXX:"))
(help def_help @copyfiles-help)
(optional "oknodelete")
(optional "askuser")
(source "/rexx")
(choices "stat_on.vmm" "stat_off.vmm" "show.vmm" "hide.vmm")
(dest "REXX:")
(confirm)
)
)