echo "*ec"
echo "Because this is a beta version, you have full permission to fiddle"
echo "around and use the code in other programs. BUT - if this program"
echo "is going to be distributed, it must be distributed in it's current"
echo "unchanged form, with the accompanying document."
Dos
echo ""
echo "                          *e[1mBootMaster V2.1*e[22m                    (Beta)"
echo "                         ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡  Updated for release 3.5"
echo "Make a disk bootable with NO hassle!"
echo ""
echo "Please run this program ONLY from the Laserbeak 3 disk 1."
echo ""
ask "Do you want to read the Doc file(y/n)? "
if warn
ppmore "Laserbeak Utils 3 disk 1:Bootmaster/BootMaster.docs"
endif
ask "Do you want to abort(y/n)? "                     ; Ask gives a simple
if warn                                               ; y/n answer. If it is
echo "*NSee ya around..."
endcli                                                ; y->into if-endif loop
endif

if not exists ram:                                    ; Double check for Ram:
cd ram:                                               ; In Workbench 2.0 +,
endif                                                 ; Ram: appears by
if not exists ram:                                    ; typing CD RAM:, but
mount ram:                                            ; not below Workbench 2
endif
copy df0:c/wait ram:
copy df0:c/echo ram:
copy df0:c/if ram:
copy df0:c/endif ram:
copy df0:c/else ram:
copy df0:c/ask ram:

echo ""
echo "Please place your WORKBENCH disk in df0: (internal drive), & press"
echo "Return.           ¯¯¯¯¯¯¯¯¯ "
cd ram:
ask ""
if warn
endif
df0:c/makedir ram:tempc
df0:c/makedir ram:tempdev                 ; md = makedir
df0:c/makedir ram:templib
df0:c/makedir ram:temps
df0:c/makedir ram:templ
df0:c/makedir ram:tempt

df0:c/wait 3
df0:c/copy df0:c/copy ram:tempc
ram:echo "When the dots reach the block, lengthy part is finished!"
ram:echo "            ·"

;***** This section copies a bare set of commands to ram for fast use *****

cd ram:tempc

ram:tempc/copy df0:c/install ram:tempc               ; obvious-copying files
ram:tempc/copy df0:c/makedir ram:tempc
echo "°°" noline                                     ;noline after echo does
ram:tempc/copy df0:c/addbuffers ram:tempc            ;NOT insert a newline.
ram:tempc/copy df0:c/binddrivers ram:tempc           ;this gives a increment
echo "°°" noline                                     ;effect as files copy
ram:tempc/copy df0:c/assign ram:tempc
ram:tempc/copy df0:c/delete ram:tempc
ram:tempc/copy df0:c/dir ram:tempc
echo "°°°" noline
ram:tempc/copy df0:c/execute ram:tempc
ram:tempc/copy df0:c/rename ram:tempc
ram:tempc/copy df0:c/wait ram:tempc
ram:echo "±±±±" noline

;-0-

ram:tempc/copy df0:devs/system-configuration ram:tempdev  ; Please read the Doc 
ram:echo "±" noline                                      ; for info on these
                                                          ; files.
;-0-

ram:tempc/copy df0:libs/diskfont.library ram:templib
ram:echo "±" noline
;-0-


ram:echo ""
ram:echo "Okay, now replace Laserbeak Utils 3 in the internal drive, & press"
cd ram:
ram:echo "Return."
ask ""
if
endif
ram:echo "Copying ." noline
ram:tempc/copy "Laserbeak Utils 3 disk 1:c/cls" ram:tempc
ram:echo "." noline
ram:tempc/copy df0:c/ppmore ram:tempc
ram:echo "." noline
ram:tempc/copy df0:devs/mountlist ram:tempdev
ram:echo "." noline
ram:tempc/copy df0:BootMaster/dummystartup ram:temps/Startup-sequence
ram:tempc/copy df0:c/echo ram:tempc
ram:tempc/copy df0:c/if ram:tempc
ram:tempc/copy df0:c/endif ram:tempc
ram:tempc/copy df0:c/ask ram:tempc
ram:tempc/copy df0:c/endcli ram:tempc
ram:echo "..." noline
ram:tempc/copy df0:c/LoadWB ram:tempc
ram:echo "."

cd ram:tempc
ram:echo ""
ask "Do you want to be able to run under 1.3? (y/n)" ; another y/n
if warn                                             ; if endif loop.
copy df0:libs/icon.library ram:templib
copy df0:l/disk-validator ram:templ
endif


; ****** End of that bit! *****

ram:tempc/rename ram:tempc/makedir ram:tempc/md

; ****** Begin to set up the disk ******

ram:echo ""
ram:echo "Please place the disk you want to be made bootable in DF0:, & press"
ram:echo "Return."
cd ram:
ask ""
if
endif
ram:tempc/md df0:devs
ram:tempc/md df0:c
ram:tempc/md df0:libs
ram:tempc/md df0:s
ram:tempc/md df0:t
cd ram:tempc
if exists ram:templ/disk-validator
md df0:l
endif

if exists df0:trashcan                        ; Sometimes, the
del df0:trash#?                                   ; trashcan is on a 1.3
endif                                         ; newly formatted disk.
cd ram:

;************ Copy the files across ***************

ram:echo ""
ram:echo "Copying of C directory done like this so you can see what you have."
ram:echo "                 "
ram:tempc/copy ram:tempc/#? df0:c
ram:echo ""
ram:echo "                 ·"
ram:echo "°°°°" noline
ram:wait 2
ram:echo "°°" noline
ram:wait 2
ram:echo "°°°" noline
ram:tempc/copy ram:templib/diskfont.library df0:libs
ram:echo "²°" noline
ram:tempc/copy ram:tempdev/system-configuration df0:devs
ram:echo "°±±" noline
wait 1
ram:echo "±" noline
cd ram:tempc
if exists df0:l                             ; this part saves
copy ram:templ/disk-validator df0:l        ; another y/n question.
copy ram:templib/icon.library df0:libs             ; Above, the L dir was
endif                                    ; made in a y response to
                                                      ; a y/n 1.3 compatability
                                                      ; question. It says "if
                                                      ; the L dir is there, 
                                                      ; the user must want
                                                      ; 1.3 compatability,
                                                      ; thus he needs a disk-
                                                      ; validator.
cd ram:
ram:echo "±±±"
ram:echo ""
;************ Copy the other bits across *************

ram:tempc/copy ram:temps/startup-sequence df0:s
ram:echo ""
cd ram:tempc
ask "Do you want to be able to MOUNT RAM: and RAD:? (y/n)"
if warn
copy ram:tempdev/mountlist df0:devs
endif

;*********** Install the disk's bootblock **************

ask "Would you like to install a custom bootblock? (y/n)"
if warn
ram:echo ""
ram:echo "Okay, your disk will not boot until you install a bootblock."
ram:echo "Do this by typing INSTALL mydisk: in the CLI, where mydisk = disk"
ram:echo "name."
else
install df0:
endif

;*********** And that's it!!!! **************

ram:tempc/cls
ram:echo ""
ram:echo "Your disk is now bootable. It only has a bare C directory, copy the"
ram:echo "other files you want across from other disks."
ram:echo "Please bear in mind that this is a Beta version; the full version"
ram:echo "will allow you to select files by selector, and there will be "
ram:echo "hardly ANY typing. It will be written in Arexx, and you will be able"
ram:echo "to run it off any disk, unlike this program. It will also have a"
ram:echo "LogFile facility, so you can see what happened, and the choices"
ram:echo "you made at a later date. It will also have a better default "
ram:echo "startup-sequence."
ram:echo ""
ram:echo "Thanx for using this program. See ya around...*N"
ram:echo "Please replace Laserbeak Utils 3 disk 1 in the internal drive."
ram:echo ""
ram:echo "                                           Coded by Angel Base '94."
ram:echo ""
ram:echo "This window closes automatically in 15 seconds..."
wait 15
endcli
