home *** CD-ROM | disk | FTP | other *** search
/ 17 Bit Software 1: Collection A / 17Bit_Collection_A.iso / files / 1112.dms / 1112.adf / Auto-Script < prev    next >
AmigaDOS Script File  |  1988-07-25  |  4KB  |  137 lines

  1. .key var1
  2. ; Auto-Script
  3. ; Copyright Amiga Computing 1991. Written by Stevie Kennedy
  4.  
  5. ; set fail level above 20 so operation won't be halted just because
  6. ; a directory or file already exists on target disk
  7. path sys:system add
  8.  
  9. echo "     *e[32m*e[1m######################################################## "
  10. echo "     **                                                      ** "
  11. echo "     ** This  script file will create a bootable system disk ** "
  12. echo "     ** in your external drive. To use  it, you  must have a ** "
  13. echo "     ** newly formatted disk in df1: and a copy of Workbench ** "
  14. echo "     ** or the May 1991 coverdisk in you external drive. You ** "
  15. echo "     ** may format a disk from this script if you don't have ** "
  16. echo "     ** a formatted one to hand.                             ** "
  17. echo "     **                                                      ** "
  18. echo "     **    You must have the SimpleStart file in df0:s,  and ** "
  19. echo "     ** you are advised to use a  coverdisk  as your  source ** "
  20. echo "     ** disk. This is because  the  script  expects to  find ** "
  21. echo "     ** files such as SIZE and KDVIII.                       ** "
  22.  
  23. echo "     **                                                      ** "
  24. echo "     **    The script works by MAKEDIRing  as  many  drawers ** "
  25. echo "     ** as needed, then  copies the relevant files across to ** "
  26. echo "     ** them. It`s a fairly straightforward script file, and ** "
  27. echo "     ** not very flexible, but serves as a good  example  of ** "
  28. echo "     ** how you can use AmigaDOS for more complicated tasks. ** "
  29. echo "     **                                                      ** "
  30.  
  31. echo "     ######################################################## "
  32. echo " "
  33.  
  34. ; this section carries out all the questioning
  35. ; note the second IF ... ENDIF construct nested inside
  36. ; the main IF ... ELSE ... ENDIF sequence
  37.  
  38. ask "     *e[33mDo you wish to continue? [Y/N] "
  39.  
  40. if warn
  41. echo " "
  42. ask "     Do you want to format a disk in df1: ?"
  43. if warn
  44. echo " "
  45. format drive df1: name bootable
  46.  
  47. endif
  48. echo " "
  49. echo "     *e[43m*e[32mNow creating bootable system disk!*e[0m"
  50. echo " "
  51. echo " "
  52. else
  53. echo "     *e[32mO.K. Bye Bye!*e[0m"
  54. echo " "
  55. ; the next command jumps forward to the end of the script
  56. ; by locating the *end* label
  57. skip end
  58. endif
  59. cd df1:
  60.  
  61. lab makedrawers
  62. echo "     Creating directories"
  63. makedir c
  64. makedir s
  65. makedir devs
  66. makedir l
  67. makedir libs
  68. makedir system
  69.  
  70. cd df1:devs
  71. makedir printers
  72. makedir keymaps
  73.  
  74.  
  75. lab copyfiles
  76. echo " "
  77. echo "     Copying files across ... please wait"
  78.  
  79.  
  80.  
  81. ; Please note that a Shell icon file has been put in CoverDisk19's C:
  82. ; directory. If you use this script from a different disk, you might
  83. ; need to use CD SYS: then COPY SHELL.INFO TO DF1: from the disk's root
  84. ; directory where shell.info is usually found
  85. cd c:
  86. copy shell.info to df1:
  87. copy brun to df1:c
  88. copy copy to df1:c
  89. copy cd to df1:c
  90. copy dir to df1:c
  91. copy endcli to df1:c
  92. copy echo to df1:c
  93. copy execute to df1:c
  94. copy iconx to df1:c
  95. copy kdviii to df1:c
  96. copy loadwb to df1:c
  97. copy mount to df1:c
  98. copy resident to df1:c
  99.  
  100. copy setpatch to df1:c
  101. copy winsize to df1:c
  102. copy run to df1:c
  103.  
  104.  
  105. cd l:
  106. copy ram-handler to df1:l
  107. copy disk-validator to df1:l
  108. copy Shell-Seg to df1:l
  109. copy Newcon-Handler to df1:l
  110.  
  111. cd libs:
  112. copy icon.library to df1:libs
  113.  
  114. cd s:
  115. copy shell-startup to df1:s
  116. copy SimpleStart to df1:s
  117. rename df1:s/simplestart df1:s/startup-sequence
  118.  
  119. cd devs:
  120. copy mountlist to df1:devs
  121. copy system-configuration to df1:devs
  122. copy printers/generic to df1:devs/printers
  123. copy keymaps/gb to df1:devs/keymaps
  124.  
  125. cd sys:system
  126. copy cli to df1:system
  127. copy diskcopy to df1:system
  128. copy format to df1:system
  129. ; and just to make sure the disk will boot...
  130. install drive df1:
  131.  
  132. echo " "
  133. echo "*e[33m*e[1m     VOILA! *e[32mOne bootable system disk!*e[0m"
  134. echo " "
  135. lab end
  136.  
  137.