home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / new / biz / demo / excelsiordemo / install_bbs < prev    next >
Encoding:
Text File  |  1993-12-21  |  4.4 KB  |  242 lines

  1. ;  EXCELSIOR! BBS Installation Script via CBM's Installer
  2. ;  © 1993 Sycom Design Software,  ALL RIGHTS RESERVED
  3.  
  4. ;  EXCELSIOR! BBS Evaluation Release  - June 14, 1993
  5.  
  6.  
  7. (welcome "Welcome to the EXCELSIOR! BBS Installation Utility")
  8.  
  9. (transcript "Starting Install")
  10.  
  11.  
  12.  
  13. (set x 0)                                                        
  14. (set root "")
  15. (set y 0)
  16. (set y @user-level)
  17. (user 2)
  18.  
  19.   (set name (askstring 
  20.               (prompt "Please enter the name YOU wish to\nbe known as on the BBS\n«20 characters max»")
  21.               (help @askstring-help)
  22.             (default "Your Name")))
  23.  
  24.   (set passwd (askstring 
  25.               (prompt "Please enter the password you want to use\n«15 characters max»")
  26.               (help @askstring-help)
  27.             (default "Your Password")))
  28.  
  29. (while (NOT (= x 2))
  30.  
  31.   (set root (askdir
  32.  
  33.           (prompt "What drawer should the BBS files be installed in?\nPlease MAKE NEW DRAWER if necessary!")
  34.  
  35.           (help @askdir-help)
  36.  
  37.           (default "SYS:")))
  38.  
  39.   (set x (exists root)))
  40.  
  41. (user y)
  42.  
  43. (set @default-dest root)
  44.  
  45. (set path (tackon root "MBASE"))
  46. (makedir path)
  47. (set path (tackon root "FBASE"))
  48. (makedir path)
  49. (set path (tackon root "NEWS"))
  50. (makedir path)
  51. (set path (tackon root "MAIL"))
  52. (makedir path)
  53. (set path (tackon root "DOORS"))
  54. (makedir path)
  55.  
  56. (textfile
  57.     (prompt "Setting up...");
  58.     (help "'NO HELP'")
  59.     (dest "T:excelsiorpath")
  60.     (append root)
  61. )
  62.  
  63. (set var ("%s\n%s\n" name passwd))
  64. (textfile
  65.     (prompt "Setting up...");
  66.     (help "'NO HELP'")
  67.     (dest "T:excelsiorbin")
  68.     (append var)
  69. )
  70.  
  71.  
  72. (set path (tackon root "LANGUAGES"))
  73. (makedir path)
  74. (copyfiles
  75.     (prompt "Available Languages")
  76.     (help @copyfiles-help)
  77.     (source "SYSTEM/LANGUAGES/")
  78.     (dest path)
  79.     (pattern "#?")
  80.     (files)
  81. )
  82.  
  83. (set path (tackon root "TEXT"))
  84. (makedir path)
  85. (set path2 (tackon root "LOGS"))
  86. (makedir path2)
  87. (set path1 (tackon path "ENGLISH"))
  88. (makedir path1)
  89. (copyfiles
  90.     (prompt "Text Files")
  91.     (help @copyfiles-help)
  92.     (source "SYSTEM/TEXT/ENGLISH/")
  93.     (dest path1)
  94.     (pattern "#?")
  95.     (files)
  96. )
  97.  
  98. (set path (tackon root "TRANSLATION"))
  99. (makedir path)
  100. (copyfiles
  101.     (prompt "Available Translation Tables")
  102.     (help @copyfiles-help)
  103.     (source "SYSTEM/TRANSLATION/")
  104.     (dest path)
  105.     (pattern "#?")
  106.     (files)
  107. )
  108.  
  109.  
  110. (set path (tackon root "XMAIL"))
  111. (makedir path)
  112. (copyfiles
  113.     (prompt "FIDO Processing Files")
  114.     (help @copyfiles-help)
  115.     (source "SYSTEM/FIDO/")
  116.     (dest path)
  117.     (pattern "#?")
  118.     (files)
  119. )
  120.  
  121. (set path (tackon root "C"))
  122. (makedir path)
  123. (copyfiles
  124.     (prompt "External Programs")
  125.     (help @copyfiles-help)
  126.     (source "C/")
  127.     (dest path)
  128.     (pattern "#?")
  129.     (files)
  130. )
  131.  
  132. (set path (tackon root "DATA"))
  133. (makedir path)
  134. (copyfiles
  135.     (prompt "Data Files")
  136.     (help @copyfiles-help)
  137.     (source "SYSTEM/DATA/")
  138.     (dest path)
  139.     (pattern "#?")
  140.     (files)
  141. )
  142.  
  143. (set path (tackon root "HELP"))
  144. (makedir path)
  145. (copyfiles
  146.     (prompt "Help File")
  147.     (help @copyfiles-help)
  148.     (source "HELP/")
  149.     (infos)
  150.     (dest path)
  151.     (pattern "#?")
  152.     (files)
  153. )
  154.  
  155.  
  156. (copyfiles
  157.     (prompt ("Copying BBS System Files to %s" root))
  158.     (help @copyfiles-help)
  159.     (source "SYSTEM/")
  160.     (infos)
  161.     (dest root)
  162.     (pattern "#?")
  163.     (files)
  164. )
  165.  
  166. (set path (tackon root "L"))
  167. (makedir path)
  168. (copyfiles
  169.     (prompt "Handlers")
  170.     (help @copyfiles-help)
  171.     (source "SYSTEM/L/")
  172.     (dest path)
  173.     (pattern "#?")
  174.     (files)
  175. )
  176.  
  177. (copyfiles
  178.     (prompt ("Copying BBS Binaries to %s" root))
  179.     (help @copyfiles-help)
  180.     (source "BIN/")
  181.     (infos)
  182.     (dest root)
  183.     (pattern "#?")
  184.     (files)
  185. )
  186.  
  187. (copyfiles
  188.     (prompt "Script Files")
  189.     (help @copyfiles-help)
  190.     (source "SYSTEM/S/")
  191.     (dest "S:")
  192.     (pattern "#?")
  193.     (files)
  194. )
  195.  
  196.  
  197. (set path (tackon root "EVENTS"))
  198. (makedir path)
  199. (copyfiles
  200.     (prompt "Event Scheduler")
  201.     (help @copyfiles-help)
  202.     (source "SYSTEM/EVENTS/")
  203.     (dest path)
  204.     (pattern "#?")
  205.     (files)
  206. )
  207.  
  208. (set path (tackon root "Editors"))
  209. (makedir path)
  210. (copyfiles
  211.     (prompt "Text Editors")
  212.     (help @copyfiles-help)
  213.     (source "SYSTEM/EDITORS/")
  214.     (dest path)
  215.     (pattern "#?")
  216.     (files)
  217. )
  218.  
  219.  
  220. (set path (tackon root "UTILITIES"))
  221. (makedir path)
  222. (copyfiles
  223.     (prompt "Utility Files")
  224.     (help @copyfiles-help)
  225.     (source "UTILITIES/")
  226.     (dest path)
  227.     (pattern "#?")
  228.     (files)
  229. )
  230.  
  231. (set path (tackon root "C"))
  232. (set first ("mount NULL: from DEVS:mountlist.excelsior\npath add %s\nrun >nil: <nil: ECOM" path))
  233.  
  234. (startup "EXCELSIOR!"
  235.     (prompt
  236.         "Some instructions need to be added to the \"S:user-startup\" so that your system will be properly configured to use EXCELSIOR!")
  237.     (help "No help for this function")
  238.     (command first)
  239. )
  240.  
  241. (exit ("Please run BBSCONFIG, located in \"%s\" to configure your system!\n\nOnce finished, you can run the program 'MASTER' also located in \"%s\" to start the BBS" root root))
  242.