.key targetdisk       ; makes script interactive (uses EXECUTE)
COPY c:COPY ram:      ; COPYing this stuff to RAM: to help
PATH RAM: add
COPY c:ECHO  ram:  ; help one drive users
COPY c:ASK   ram:
COPY c:IF    ram:
COPY c:ENDIF ram:
IF FAIL
    ECHO "Sorry, Can't find ASK on your boot disk, find a standard Workbench"
    ECHO "disk and COPY c/ask TO C: for this script to work."
    QUIT
ENDIF
COPY c:DELETE ram:
ECHO "[33m AMIGA [3mPlus[0m[33m InstallBindStartUps script.[0m"
ECHO ""
ECHO "This script will install BindStartUps onto your SYSTEM disk,"
ECHO "or whatever volume SYS: is ASSIGNed to (usually your boot disk.)"
ECHO "It expects your AMIGA [3mPlus[0m disk to be named AMIGAPlus7."
ECHO "[33mYou MUST have at least 35K free on the target disk![0m"
ECHO "If you don't have enough free space, exit the script and try again"
ECHO "after deleting some unneccesary files on your system disk."
ECHO ""
ECHO "When the installation is done, use any text editor (e.g. Notepad"
ECHO "in your Workbench Utilities drawer) to add the following line to"
ECHO "your S:startup-sequence:"
ECHO ""
ECHO "[1mBindStartUps SYS:StartUps[0m"
ECHO ""
ECHO "You should place this line after the [1mLoadWB[0m command, but before"
ECHO "the [1mEndCLI[0m command (if it's there)."

ASK "[33mDo you want to continue? (Click here and type Y or N) (N to abort)[0m"
IF WARN
  IF NOT EXISTS SYS:libs/arp.library
    COPY AMIGAPlus7:arp.library SYS:libs
  ENDIF
  COPY AMIGAPlus7:BindStartUps SYS:c
  MAKEDIR SYS:StartUps
  COPY AMIGAPlus7:Baffle.info SYS:StartUps.info
  ECHO "All Done!"
ENDIF

ECHO ""
ECHO "   [33m[42mExiting AMIGA [3mPlus[0m[33m[42m InstallBindStartUps script.[0m"
ram:DELETE >nil: ram:ASK           ; now clean up
ram:DELETE >nil: ram:IF
ram:DELETE >nil: ram:ENDIF
ram:DELETE >nil: ram:ECHO
ram:DELETE >nil: ram:COPY
ram:DELETE >nil: ram:DELETE

