home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 83 / af083a.adf / begin.lzx / c / script < prev    next >
Text File  |  1996-02-16  |  4KB  |  139 lines

  1. echo "*Ec*E[30m"
  2. which cd
  3. if warn
  4. skip 505
  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 programs."
  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. unlzx -a -q x AF83a:archives/AF83a1.lzx ""
  33. unlzx -a -q x AF83a:archives/AF83a2.lzx ""
  34. unlzx -a -q x AF83a:archives/AF83a3.lzx ""
  35. unlzx -a -q x AF83a:archives/AF83a4.lzx ""
  36. ask "*EcThat's the disks unpacked to hard drive. Re-boot now from your hard drive."
  37. endcli
  38. lab 50
  39. endif
  40. echo "*EcPreparing to install first disk to floppy."
  41. echo "Please wait..."
  42. copy AF83a:archives/AF83a1.lzx ram: BUF=10
  43. copy AF83a:archives/AF83a2.lzx ram: BUF=10
  44. lab 1
  45. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  46. ask "*E[1mPress return when you have done so...*E[0m"
  47. wait 5
  48. if not exists df0:begin.lzx
  49. skip 2
  50. endif
  51. skip 1 back
  52. lab 2
  53. endif
  54. echo "*EcOK! Installing disk. Please wait."
  55. echo "This will take a few minutes."
  56. relabel df0: AF83a_Disk1
  57. copy ram:disk.info df0:
  58. unlzx -a -q -bi24 x ram:AF83a1.lzx df0:
  59. unlzx -a -q -bi24 x ram:AF83a2.lzx df0:
  60. delete ram:AF83a1.lzx quiet
  61. delete ram:AF83a2.lzx quiet
  62. lab 3
  63. echo "*EcPlease insert AF83a in any drive."
  64. ask "*E[1mPress return when you have done so...*E[0m"
  65. if exists AF83a:begin.lzx
  66. skip 4
  67. endif
  68. skip 3 back
  69. lab 4
  70. endif
  71. copy AF83a:archives/AF83a3.lzx ram: BUF=10
  72. lab 5
  73. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  74. ask "*E[1mPress return when you have done so...*E[0m"
  75. wait 5
  76. if not exists df0:begin.lzx
  77. skip 6
  78. endif
  79. skip 5 back
  80. lab 6
  81. endif
  82. echo "*EcOK! Installing disk. Please wait."
  83. echo "This will take a few minutes."
  84. relabel df0: AF83a_Disk2
  85. copy ram:disk.info df0:
  86. unlzx -a -q -bi24 x ram:AF83a3.lzx df0:
  87. delete ram:AF83a2.lzx quiet
  88. lab 13
  89. echo "*EcPlease insert AF83a in any drive."
  90. ask "*E[1mPress return when you have done so...*E[0m"
  91. if exists AF83a:begin.lzx
  92. skip 14
  93. endif
  94. skip 13 back
  95. lab 14
  96. endif
  97. copy AF83a:archives/AF83a4.lzx ram: BUF=10
  98. lab 15
  99. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  100. ask "*E[1mPress return when you have done so...*E[0m"
  101. wait 5
  102. if not exists df0:begin.lzx
  103. skip 16
  104. endif
  105. skip 15 back
  106. lab 16
  107. endif
  108. echo "*EcOK! Installing disk. Please wait."
  109. echo "This will take a few minutes."
  110. relabel df0: AF83a_Disk3
  111. copy ram:disk.info df0:
  112. unlzx -a -q x -bi24 ram:AF83a4.lzx df0:
  113. delete ram:AF83a4.lzx quiet
  114. skip 601
  115. lab 505
  116. endif
  117. echo "*EcPreparing to install to floppy."
  118. echo "Please wait..."
  119. copy AF83a:archives/AF83a1.lzx ram: BUF=10
  120. lab 101
  121. echo "*EcPlease insert a blank, formatted disk in df0: (internal drive)."
  122. ask "*E[1mPress return when you have done so...*E[0m"
  123. wait 5
  124. if not exists df0:begin.lzx
  125. skip 102
  126. endif
  127. skip 101 back
  128. lab 102
  129. endif
  130. echo "*EcOK! Installing disk. Please wait."
  131. echo "This will take a few minutes."
  132. relabel df0: AF83a_Serious
  133. unlzx -a -q -bi24 x ram:AF83a1.lzx df0:
  134. delete ram:AF83a1.lzx quiet
  135. lab 601
  136. echo "*EcThat's all folks! Everything is now installed."
  137. ask "To use the utilities, boot Workbench and insert the relevant disk."
  138. endcli
  139.