home *** CD-ROM | disk | FTP | other *** search
/ Global Amiga Experience / globalamigaexperience.iso / compressed / games / monkeydemo.lha / MonkeyDemo / hd_install < prev    next >
Text File  |  1991-08-05  |  1KB  |  49 lines

  1. . HD Install script for Monkey Island Demo (05.12.91) jmc
  2. .    
  3. .key drive,file
  4. .bra {
  5. .ket }
  6. .def file "MonkeyDemo"
  7. echo "The Secret of Monkey Island Demo install script."
  8. echo ""
  9. echo "This script will install the demo on the HD partition"
  10. echo "that is supplied as an argument to it when started."
  11. echo "If none was given it will stop shortly."
  12. echo ""
  13. if "{drive}" EQ ""
  14.    skip flop
  15. endif
  16. if not exists {drive}
  17.    echo "uh-oh...problems..."
  18.    skip probs
  19. endif
  20. if not exists {file}
  21.    skip wrongplace
  22. endif
  23. . All is well on we go
  24. makedir {drive}MonkeyIsle
  25. makedir {drive}MonkeyIsle/Rooms
  26. copy MonkeyIsle.info to {drive}
  27. copy MonkeyDemo#? to {drive}MonkeyIsle/
  28. copy Rooms/#? to {drive}MonkeyIsle/Rooms/
  29. echo "Let's see if all the files made it."
  30. echo ""
  31. dir {drive} all
  32. echo ""
  33. echo "All done!"
  34. skip exit
  35. . All done
  36. lab flop
  37.    echo "No HD name specified. Need DH0:, DH1:, etc."
  38.    echo "Exiting..."
  39.    skip exit
  40. lab probs
  41.    echo "Parameters supplied are no good. Device {drive} is not there!"
  42.    echo "Exiting..."
  43.    skip exit
  44. lab wrongplace
  45.    echo "You have not cd'ed to the directory containing the demo files!"
  46.    echo "Exiting..."
  47.    skip exit
  48. lab exit
  49.