.key version/a
.bra (
.ket )
if not exists ram:makeboth
   if exists makeboth
      copy makeboth ram:
   else
      echo "can't find file: makeboth"
      quit
   endif
endif
if not exists ram:makedospart
   if exists makedospart
      copy makedospart ram:
   else
      echo "can't find file: makedospart"
      quit
   endif
endif
if not exists ram:disked
   if exists disked
      copy disked ram:
   else
      if exists c:disked
         copy c:disked ram:
      else
         echo "can't find file: disked or c:disked"
         quit
      endif
   endif
endif
if not exists ram:kick
   if exists kick
      copy kick ram:
   else
      if exists c:kick
         copy c:kick ram:
      else
         echo "can't find file: kick or c:kick"
         quit
      endif
   endif
endif
if not exists ram:unkick
   if exists unkick
      copy unkick ram:
   else
      if exists s:unkick
         copy s:unkick ram:
      else
         echo "can't find file: unkick or s:unkick"
         quit
      endif
   endif
endif
echo >ram:mb.testfile "test for default directory"
if not exists :mb.testfile
   copy patch#? ram:
   cd ram:
   echo "CD RAM:"
   echo ""
   echo "Necessary files have been copied to RAM:."
   echo "You should now re-execute makeboth."
   quit
endif
if not exists "patch(version)"
   echo "There is no patch file for version: (version)"
   echo "Valid versions are suffixes of patch in the following files:"
   list pat patch#? quick
   quit
endif
echo "Insert (version) kickstart in drive DF0: and a blank disk in drive DF1:"
echo " "
diskcopy df0: to df1:
kick df1: install
disked >nil: <makedospart DF1:
relabel df1: both
disked >nil: <patch(version) DF1:
makedir df1:c
makedir df1:s
makedir df1:libs
makedir df1:devs
makedir df1:l
makedir df1:system
makedir df1:fonts
copy kick df1:c
copy unkick df1:s
echo " "
echo "Now copy all the system stuff onto the disk yourself."
echo "If you want the disk to automatically re-arm itself, then"
echo "have the startup-sequence execute *"kick*" with no arguments."
echo " "
echo "When you've put all the files on the disk you should arm it with"
echo "the command:  kick DF1:"
echo " "
echo "You'll have to take care of the garbage on RAM: yourself!"
