home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 81 / af081a.adf / begin.lzx / c / script < prev    next >
Text File  |  1995-12-19  |  3KB  |  123 lines

  1. echo "*Ec*E[30m"
  2. which cd
  3. if warn
  4. skip 50
  5. endif
  6. echo "*Ec*E[1mAttention Hard Drive Users:*E[0m"
  7. echo "You can install these programs directly to your hard drive, but please"
  8. echo "read the information in the magazine before using the program."
  9. echo ""
  10. echo "Would you like to install to a floppy or hard drive?"
  11. echo "Enter either 'f' or 'h' (the default is floppy)."
  12. setenv >nil: type ?
  13. if not exists ram:env/type
  14. skip 50
  15. endif
  16. if not $type EQ h
  17. skip 50
  18. endif
  19. lab 61
  20. echo "*EcPlease enter the pathname you wish to install to."
  21. echo "NB. Hard drive *E[32mONLY*E[0m."
  22. echo "E.g. 'dh0:', 'work:test/', etc..."
  23. setenv >nil: pathname ?
  24. failat 21
  25. cd $pathname >nil:
  26. if fail
  27. failat 10
  28. skip 61 back
  29. endif
  30. failat 10
  31. echo "*EcOK... Installing disks."
  32. makedir Blitz2Demo
  33. copy ram:Blitz2Demo.info ""
  34. makedir Blitz2Demo/userlibs
  35. copy ram:userlibs.info Blitz2Demo/
  36. makedir Blitz2Demo/Examples
  37. copy ram:Examples.info Blitz2Demo/
  38. makedir AF81_Utilities
  39. copy ram:AF81_Utilities.info ""
  40. unlzx -a -q x AF81a:archives/AF81a1.lzx Blitz2Demo/
  41. unlzx -a -q x AF81a:archives/AF81a2.lzx Blitz2Demo/Examples/
  42. unlzx -a -q x AF81a:archives/AF81a3.lzx AF81_Utilities/ 
  43. ask "*EcThat's the disks installed to hard drive. Re-boot now from your hard drive."
  44. lab 50
  45. endif
  46. echo "*EcPreparing to install first disk to floppy."
  47. echo "Please wait..."
  48. copy AF81a:archives/AF81a1.lzx ram: BUF=10
  49. lab 1
  50. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  51. ask "*E[1mPress return when you have done so...*E[0m"
  52. wait 5
  53. if not exists df0:begin.lzx
  54. skip 2
  55. endif
  56. skip 1 back
  57. lab 2
  58. endif
  59. echo "*EcOK! Installing disk. Please wait."
  60. echo "This will take a few minutes."
  61. relabel df0: Blitz2
  62. install df0:
  63. makedir df0:userlibs
  64. copy ram:userlibs.info df0:
  65. unlzx -a -q -bi24 x ram:AF81a1.lzx df0:
  66. delete ram:AF81a1.lzx quiet
  67. lab 3
  68. echo "*EcPlease insert AF81a in any drive."
  69. ask "*E[1mPress return when you have done so...*E[0m"
  70. if exists AF81a:begin.lzx
  71. skip 4
  72. endif
  73. skip 3 back
  74. lab 4
  75. endif
  76. copy AF81a:archives/AF81a2.lzx ram: BUF=10
  77. lab 5
  78. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  79. ask "*E[1mPress return when you have done so...*E[0m"
  80. wait 5
  81. if not exists df0:begin.lzx
  82. skip 6
  83. endif
  84. skip 5 back
  85. lab 6
  86. endif
  87. echo "*EcOK! Installing disk. Please wait."
  88. echo "This will take a few minutes."
  89. relabel df0: Examples
  90. unlzx -a -q -bi24 x ram:AF81a2.lzx df0:
  91. delete ram:AF81a2.lzx quiet
  92. lab 13
  93. echo "*EcPlease insert AF81a in any drive."
  94. ask "*E[1mPress return when you have done so...*E[0m"
  95. if exists AF81a:begin.lzx
  96. skip 14
  97. endif
  98. skip 13 back
  99. lab 14
  100. endif
  101. copy AF81a:archives/AF81a3.lzx ram: BUF=10
  102. lab 15
  103. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  104. ask "*E[1mPress return when you have done so...*E[0m"
  105. wait 5
  106. if not exists df0:begin.lzx
  107. skip 16
  108. endif
  109. skip 15 back
  110. lab 16
  111. endif
  112. echo "*EcOK! Installing disk. Please wait."
  113. echo "This will take a few minutes."
  114. relabel df0: AF81_Utilities
  115. copy ram:disk.info df0:
  116. unlzx -a -q x -bi24 ram:AF81a3.lzx df0:
  117. delete ram:AF81a3.lzx quiet
  118. echo "*EcThat's all folks! All the disks are now installed."
  119. echo "To use Blitz Basic 2, insert the first disk and reset your Amiga."
  120. echo "The second disk contains the Examples for Blitz Basic."
  121. ask "To use the utilities, boot Workbench and insert the third disk."
  122.  
  123.