home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / tools / libs / maestix / install-e < prev    next >
Encoding:
Text File  |  1998-02-21  |  11.0 KB  |  451 lines

  1. ;**********************************************************
  2. ;*                                                        *
  3. ;*           Maestix HD Installer Script                  *
  4. ;*                                                        *
  5. ;**********************************************************
  6. ;*
  7. ;*      $VER: Install-Maestix 2.2 (21.02.98)
  8. ;*      (C) 1997-98 Richard Körber -- All Rights Reserved
  9. ;*
  10. ;**********************************************************
  11.  
  12.  
  13. ;********* MESSAGES ***************************************
  14.  
  15. (set MStartup
  16.   (cat  "\nWelcome to the\n\n"
  17.         "Maestix installation"
  18.   )
  19. )
  20.  
  21. (set M68020
  22.   (cat  "\nIMPORTANT: All programs of this packet require at least "
  23.         "the 68020 processor, i.e. they will not run on this system!\n\n"
  24.         "The 68000 versions are available from the author upon request. "
  25.         "Please send a mail to:\n\n"
  26.         "shred@chessy.aworld.de\n\n"
  27.         "You may now abort the installation, or just install the text "
  28.         "files and developer material."
  29.   )
  30. )
  31.  
  32. (set POptions "What do you want to install?")
  33. (set HOptions
  34.   (cat  "Please select the parts of the package to be installed.\n\n"
  35.         "Driver: The maestix driver library itself.\n\n"
  36.         "Tools: Important tools for configuration and usage.\n\n"
  37.         "MaestixFX: A small realtime sound processor. Requires MUI.\n\n"
  38.         "Documentation: User documentations.\n\n"
  39.         "Developer material: AutoDocs, examples, include files.\n\n"
  40.         "AHI driver: Driver for the AHI interface, if included to the package. "
  41.         "Requires an already installed AHI.\n\n"
  42.         "If you are not sure what to install, just select the default. "
  43.         "You can add further parts later."
  44.   )
  45. )
  46. (set SDriver  "Driver")
  47. (set STools   "Tools")
  48. (set SMFX     "MaestixFX")
  49. (set SDoc     "Documentation")
  50. (set SDevelop "Developer material")
  51. (set SAHIdrv  "AHI driver")
  52.  
  53. (set PLibDestDir "Select a destination for the maestix driver!"
  54. (set HLibDestDir
  55.   (cat  "Choose the drawer where you store all system libraries. "
  56.         "Usually, this is \"LIBS:\"."
  57.   )
  58. )
  59.  
  60. (set PToolDestDir "Select a destination for the tools!"
  61. (set HToolDestDir
  62.   (cat  "Choose a drawer which is located in the shell search path. "
  63.         "Usually, this is \"C:\"."
  64.   )
  65. )
  66.  
  67. (set PDestDir "Select a destination for the Maestix package!\nA drawer will be created there.")
  68. (set HDestDir
  69.   (cat  "Choose a drawer for the documentations, demos and developer material. If you "
  70.         "already have Maestix installed, select the drawer where the Maestix drawer "
  71.         "is located in!"
  72.   )
  73. )
  74.  
  75. (set PAHIDestDir "Select a destination for the AHI driver!")
  76. (set HAHIDestDir
  77.   (cat  "Choose the drawer where AHI is located. "
  78.         "Usually, this is \"DEVS:\"."
  79.   )
  80. )
  81.  
  82. (set PToolOpt "Which presets do you want to make?")
  83. (set HToolOpt
  84.   (cat  "Here you can install some presets, which are set at each system startup.\n\n"
  85.         "Input: Select the default input. Usually, this is the same input you selected "
  86.         "with the on-board jumper. Defaults to optical.\n\n"
  87.         "Mode: If you are using professional equipment, you can preset the Studio mode.\n\n"
  88.         "Delay: If your digital receiver requires some time to synchronize, you can select "
  89.         "a delay for this purpose. Defaults to 100ms."
  90.   )
  91. )
  92.  
  93. (set SInput "Input")
  94. (set SMode  "Mode")
  95. (set SDelay "Delay")
  96.  
  97. (set PDefInput "What input do you use usually?")
  98. (set HDefInput "This should be the input you have already selected with the on-board jumper.")
  99. (set SOptical  "Optical")
  100. (set SCoaxial  "Coaxial")
  101.  
  102. (set PDefStudio "Which frame format requires your receiver?")
  103. (set HDefStudio "Usually, this is S/P-DIF. See the manual, eventually.")
  104. (set SSPDIF     "S/P-DIF")
  105. (set SAESEBU    "AES/EBU")
  106.  
  107. (set PDefDelay "Select the delay (milli seconds)")
  108. (set HDefDelay
  109.   (cat  "Set the time that your receiver requires to synchronize. This is e.g. "
  110.         "1000ms for a Sony DTC-690."
  111.   )
  112. )
  113.  
  114. (set PCopyLib   "Copying the driver")
  115. (set PCopyTool  "Copying the tools")
  116. (set PCopyMFX   "Copying MaestixFX")
  117. (set PCopyDocs  "Copying the documentations")
  118. (set PCopyDev   "Copying the AutoDocs")
  119. (set PCopyInc   "Copying the Include files")
  120. (set PCopyDemos "Copying the Demo programs")
  121.  
  122. (set HCopyTool
  123.   (cat  "Which tools shall be installed?\n\n"
  124.         "AllocMstx, FreeMstx: The original MaestroPro programs can allocate the board "
  125.         "using these tools. A collision will be prevented.\n\n"
  126.         "SetMstx: The set up program. You are encouraged to install it!\n\n"
  127.         "MaestroPEG: A simple MPEG audio player. It requires the mpega.library "
  128.         "to be properly installed. You can find it e.g. in the AmiNet."
  129.   )
  130. )
  131.  
  132. (set PStartup
  133.   (cat  "The set up program will be installed to the S:user-startup now. "
  134.         "New settings apply after system restart."
  135.   )
  136. )
  137.  
  138. ;********* FILES ******************************************
  139.  
  140. (set FAHI        "MaestixAHI/")
  141. (set FLib        "Maestix/libs/maestix.library")
  142. (set FTool       "Maestix/c/")
  143. (set FAllocMstx  "AllocMstx")
  144. (set FFreeMstx   "FreeMstx")
  145. (set FSetMstx    "SetMstx")
  146. (set FMaestroPEG "MaestroPEG")
  147. (set FMFX        "Maestix/MaestixFX")
  148. (set FDocs       "Maestix/")
  149. (set FInc        "Maestix/Include")
  150. (set FDemos      "Maestix/Demos")
  151. (set FMstxDok    "maestix.dok")
  152. (set FMstxDoc    "maestix.doc")
  153. (set FMstxGuide  "Maestix/Maestix.guide")
  154. (set FAHIDrv     "MaestixAHI/devs/")
  155. (set FAHIGuide   "MaestixAHI/MaestixAHI.guide")
  156.  
  157.  
  158.  
  159. ;********* INSTALLER SCRIPT *******************************
  160.  
  161. (set @default-dest "")          ; currently no specific dir
  162.  
  163. ;------ Greetings to the user -----------------------------
  164. (message MStartup)
  165.  
  166. ;------ Check if the 68020 is available -------------------
  167. (if (< (database "cpu") 68020)
  168.   (message M68020)
  169. )
  170.  
  171. ;------ What should be installed --------------------------
  172. (if (<> (exists FAHI) 2)        ; is MaestixAHI included?
  173.   (set SAHIdrv "")
  174. )
  175.  
  176. (if (< @user-level 2)           ; is is not an Amiga expert?
  177.   (
  178.     (if (< (database "cpu") 68020)
  179.       ((set SDriver "") (set SMFX "") (set SAHIdrv ""))
  180.     )
  181.     (if (<> (exists "libs:muimaster.library") 1)
  182.       (set SMFX "")
  183.     )
  184.     (if (<> (exists "devs:ahi.device") 1)
  185.       (set SAHIdrv "")
  186.     )
  187.   )
  188. )
  189.  
  190. (set InstOpts                   ; ask what to install
  191.   (askoptions
  192.     (prompt  POptions)
  193.     (help    HOptions)
  194.     (choices SDriver STools SMFX SDoc SDevelop SAHIdrv)
  195.     (default -1)
  196.   )
  197. )
  198.  
  199. ;------ Ask for destinations ------------------------------
  200. (if (IN InstOpts 0)             ; Driver
  201.   (
  202.     (set LibDestDir "LIBS:")    ; Destination for the library
  203.     (if (= @user-level 2)
  204.       (set LibDestDir
  205.         (askdir
  206.           (prompt PLibDestDir)
  207.           (help   HLibDestDir)
  208.           (default LibDestDir)
  209.         )
  210.       )
  211.     )
  212.   )
  213. )
  214.  
  215. (if (IN InstOpts 1)             ; Tools
  216.   (
  217.     (set ToolDestDir "C:")
  218.     (if (= @user-level 2)
  219.       (set ToolDestDir
  220.         (askdir
  221.           (prompt PToolDestDir)
  222.           (help   HToolDestDir)
  223.           (default ToolDestDir)
  224.         )
  225.       )
  226.     )
  227.   )
  228. )
  229.  
  230. (if (<> (BITAND InstOpts 28) 0) ; MaestixFX, Doc, Developer
  231.   (
  232.     (set DestDir
  233.       (askdir
  234.         (prompt  PDestDir)
  235.         (help    HDestDir)
  236.         (default "Work:")
  237.       )
  238.     )
  239.     (set DestDir
  240.       (tackon DestDir "Maestix")
  241.     )
  242.     (makedir
  243.       (DestDir)
  244.       (infos)
  245.     )
  246.     (set @default-dest (DestDir))
  247.   )
  248. )
  249.  
  250. (if (IN InstOpts 5)             ; AHI
  251.   (
  252.     (set AHIDestDir "DEVS:")    ; Destination for AHI
  253.     (if (= @user-level 2)
  254.       (set AHIDestDir
  255.         (askdir
  256.           (prompt PAHIDestDir)
  257.           (help   HAHIDestDir)
  258.           (default AHIDestDir)
  259.         )
  260.       )
  261.     )
  262.   )
  263. )
  264.  
  265.  
  266. ;------ Copy all files ------------------------------------
  267. (if (IN InstOpts 0)             ; Driver
  268.   (
  269.     (copylib
  270.       (prompt PCopyLib)
  271.       (help   @copylib-help)
  272.       (confirm)
  273.       (source FLib)
  274.       (dest   LibDestDir)
  275.     )
  276.   )
  277. )
  278.  
  279. (if (IN InstOpts 1)             ; Tools
  280.   (
  281.     (copyfiles
  282.       (prompt PCopyTool)
  283.       (help   HCopyTool)
  284.       (confirm)
  285.       (choices FAllocMstx FFreeMstx FSetMstx FMaestroPEG)
  286.       (source FTool)
  287.       (dest   ToolDestDir)
  288.     )
  289.   )
  290. )
  291.  
  292. (if (IN InstOpts 2)             ; MFX
  293.   (
  294.     (copyfiles
  295.       (prompt PCopyMFX)
  296.       (help   @copyfiles-help)
  297.       (confirm)
  298.       (source FMFX)
  299.       (dest   DestDir)
  300.       (infos)
  301.       (noposition)
  302.     )
  303.   )
  304. )
  305.  
  306. (if (IN InstOpts 3)             ; Docs
  307.   (
  308.     (copyfiles
  309.       (prompt PCopyDocs)
  310.       (help   @copyfiles-help)
  311.       (confirm)
  312.       (source FMstxGuide)
  313.       (dest   DestDir)
  314.       (infos)
  315.       (noposition)
  316.     )
  317.   )
  318. )
  319.  
  320. (if (IN InstOpts 4)             ; Developer
  321.   (
  322.     (set DevDir
  323.       (tackon DestDir "Developer")
  324.     )
  325.     (makedir
  326.       (DevDir)
  327.       (infos)
  328.     )
  329.     (copyfiles
  330.       (prompt PCopyDev)
  331.       (help   @copyfiles-help)
  332.       (confirm)
  333.       (source FDocs)
  334.       (choices FMstxDoc FMstxDok)
  335.       (dest   (tackon DevDir "AutoDocs"))
  336.       (infos)
  337.       (noposition)
  338.     )
  339.     (copyfiles
  340.       (prompt PCopyInc)
  341.       (help   @copyfiles-help)
  342.       (confirm)
  343.       (all)
  344.       (source FInc)
  345.       (dest   (tackon DevDir "Includes"))
  346.     )
  347.     (copyfiles
  348.       (prompt PCopyDemos)
  349.       (help   @copyfiles-help)
  350.       (confirm)
  351.       (all)
  352.       (source FDemos)
  353.       (dest   (tackon DevDir "Demos"))
  354.     )
  355.   )
  356. )
  357.  
  358. (if (IN InstOpts 5)             ; AHI
  359.   (
  360.     (copyfiles
  361.       (prompt PCopyAHI)
  362.       (help   @copyfiles-help)
  363.       (confirm)
  364.       (all)
  365.       (source FAHIDrv)
  366.       (dest   AHIDestDir)
  367.     )
  368.     (if (IN InstOpts 3)
  369.       (
  370.         (copyfiles
  371.           (prompt PCopyDocs)
  372.           (help   @copyfiles-help)
  373.           (confirm)
  374.           (source FAHIGuide)
  375.           (dest   DestDir)
  376.           (infos)
  377.           (noposition)
  378.         )
  379.       )
  380.     )
  381.   )
  382. )
  383.  
  384. ;------ Ask for options -----------------------------------
  385. (if (IN InstOpts 1)             ; Tools
  386.   (
  387.     (set ToolOpts
  388.       (askoptions
  389.         (prompt  PToolOpt)
  390.         (help    HToolOpt)
  391.         (choices SInput SMode SDelay
  392.         (default -1))
  393.       )
  394.     )
  395.     (if (IN ToolOpts 0)
  396.       (
  397.         (set DefInput (askchoice
  398.           (prompt PDefInput)
  399.           (help   HDefInput)
  400.           (choices SOptical SCoaxial))
  401.         )
  402.         (if (= DefInput 0)
  403.           (set DefInput "INPUT=OPTICAL")
  404.           (set DefInput "INPUT=COAXIAL")
  405.         )
  406.       )
  407.       (set DefInput "")
  408.     )
  409.     (if (IN ToolOpts 1)
  410.       (
  411.         (set DefStudio (askchoice
  412.           (prompt PDefStudio)
  413.           (help   HDefStudio)
  414.           (choices SSPDIF SAESEBU))
  415.         )
  416.         (if (= DefStudio 0)
  417.           (set DefStudio "NOSTUDIO")
  418.           (set DefStudio "STUDIO")
  419.         )
  420.       )
  421.       (set DefStudio "")
  422.     )
  423.     (if (IN ToolOpts 2)
  424.       (
  425.         (set DefDelay (asknumber
  426.           (prompt PDefDelay)
  427.           (help   HDefDelay)
  428.           (range  0 30000)
  429.           (default 1000))
  430.         )
  431.         (set DefDelay ("DELAY=%ld" DefDelay))
  432.       )
  433.       (set DefDelay "")
  434.     )
  435.     (startup
  436.       ("Maestix")
  437.       (prompt PStartup)
  438.       (help   @startup-help)
  439.       (command ("SetMstx QUIET %s %s %s" DefInput DefDelay DefStudio))
  440.       (confirm)
  441.     )
  442.   )
  443. )
  444.  
  445.  
  446.  
  447. (exit)
  448.  
  449. ;********* DONE *******************************************
  450.  
  451.