home *** CD-ROM | disk | FTP | other *** search
/ Amiga GigaPD 3 / Amiga_GigaPD_v3_3of3.iso / fred_fish / fish_601-700_lha / fish_664.lha / ISHID-O-MATIC / Install_IOM < prev    next >
Text File  |  1993-06-02  |  4KB  |  127 lines

  1. .K ""
  2.  
  3. ; Ishid-o-matic 1.0
  4. ; batchfile for installing game on disk and creating autobooting gamedisk
  5. ; written by R.B. at 16-Mar-92
  6.  
  7. failat 21
  8.  
  9. resident >NIL: sys:c/copy        ; make it faster (if it's in ROM, don't care)
  10. resident >NIL: sys:c/echo
  11. resident >NIL: sys:c/makedir
  12. resident >NIL: sys:c/if
  13.  
  14. echo "*NCreating bootable gamedisk for Ishid-o-matic:*N"
  15. echo "Please insert a disk in drive DF0: and press RETURN"
  16. ask >NIL: ""
  17. echo "This disk will be formated, all data will be lost"
  18. ask  "Shall I continue, and format the disk ? (Y/N)"
  19. if not warn
  20.         echo "**** Installation canceled"
  21.         skip end
  22. endif
  23. sys:system/format DRIVE df0: NAME Ishid-o-matic NOICONS
  24. if warn
  25.         echo "**** Format failed! - Installation canceled"
  26.         echo "Make sure that a write-enabled disk is in drive DF0: and try again."
  27.         skip end
  28. endif
  29.  
  30. install df0:
  31. if warn
  32.         echo "**** Couldn't install bootblock! - Installation canceled"
  33.         skip end
  34. endif
  35.  
  36. echo "Now creating directories ..."
  37.  
  38. makedir Ishid-o-matic:l
  39. makedir Ishid-o-matic:libs
  40. makedir Ishid-o-matic:s
  41. makedir Ishid-o-matic:c
  42. makedir Ishid-o-matic:devs
  43. makedir Ishid-o-matic:devs/keymaps
  44. makedir Ishid-o-matic:fonts
  45. makedir Ishid-o-matic:fonts/narrowpenguin
  46.  
  47. echo "Now copying required files to Ishid-o-matic: ..."
  48.  
  49. ;--- first we copy some files from your workbench: ---
  50.  
  51. if exists libs:diskfont.library
  52.         copy libs:diskfont.library to Ishid-o-matic:libs
  53. else
  54.         echo "**** diskfont.library not found! - Installation canceled"
  55.         skip end
  56. endif
  57.  
  58. if exists l:disk-validator
  59.         copy l:disk-validator to Ishid-o-matic:l
  60. endif
  61.  
  62. if exists c:loadwb
  63.          copy sys:c/loadwb to Ishid-o-matic:c
  64. endif
  65.  
  66. if exists c:endcli
  67.         copy c:endcli to Ishid-o-matic:c
  68. endif
  69.  
  70. if exists devs:keymaps/d
  71.         copy devs:keymaps/d Ishid-o-matic:devs/keymaps
  72. endif
  73.  
  74. if exists c:assign
  75.         copy c:assign to Ishid-o-matic:c
  76. endif
  77.  
  78. if exists devs:keymaps/usa1
  79.         copy sys:devs/keymaps/usa1 Ishid-o-matic:devs/keymaps
  80. endif
  81. if exists sys:system/setmap
  82.         copy sys:system/setmap Ishid-o-matic:c
  83. endif
  84.  
  85. if exists libs:icon.libray
  86.         copy libs:icon.library to Ishid-o-matic:libs
  87. endif
  88.  
  89. if exists devs:system-configuration
  90.         copy devs:system-configuration to Ishid-o-matic:devs
  91. endif
  92.  
  93.  
  94. ;--- creating startup-sequence ---
  95.  
  96. copy :Ishid-o-matic/startup-sequence_A to Ishid-o-matic:s/startup-sequence
  97. if exists Ishid-o-matic:devs/keymaps/d            ; install german keyboard
  98.     if exists Ishid-o-matic:c/setmap
  99.             echo >>Ishid-o-matic:s/startup-sequence "setmap d"
  100.     endif
  101. endif
  102. type >>Ishid-o-matic:s/startup-sequence :Ishid-o-matic/startup-sequence_B
  103.  
  104. ;--- now we copy the files of the program ---
  105.  
  106. copy :c/muchmore to Ishid-o-matic:c
  107. copy :Ishid-o-matic/Ishid-o-matic#? to Ishid-o-matic:
  108. copy :Ishid-o-matic/Gfx to Ishid-o-matic:
  109. copy :Ishid-o-matic/iom_highscores to Ishid-o-matic:
  110. copy :Ishid-o-matic/iom_tournament to Ishid-o-matic:
  111. copy :Ishid-o-matic/mod.praeludium to Ishid-o-matic:
  112. copy :Ishid-o-matic/stoneclick.dump to Ishid-o-matic:
  113. copy :Ishid-o-matic/iom.doc#? to Ishid-o-matic:
  114. copy :Ishid-o-matic/iom.dok#? to Ishid-o-matic:
  115. copy :Ishid-o-matic/medplayer.library to Ishid-o-matic:libs
  116. copy :Ishid-o-matic/narrowpenguin.font Ishid-o-matic:fonts
  117. copy :Ishid-o-matic/narrowpenguin/8 to Ishid-o-matic:fonts/narrowpenguin/8
  118.  
  119. echo "Installation complete."
  120. echo "*NPlease compare the contents of your game-disk to the file ref_dir,"
  121. echo "and make sure, that all files are on your game-disk."
  122. lab end
  123. echo "*N*NClick close gadget to get rid of window"
  124. endcli
  125.  
  126.  
  127.