echo "This script will regenerate the three C Manual disks using two disk"
echo "drives and three blank disks.  Make sure the AmigaLibDisk is in DF0:"
echo "and the blanks are inserted in DF1:"

echo ""

assign CM: DF0:CManual

echo "Insert disk 1 of 3 in drive DF1: when prompted for it."
wait 5
sys:system/format drive DF1: name M1 noicons
echo "Formatting complete, now extracting files ..."
cd M1:

copy CM:ReadMe.doc M1: clone
DF0:c/lharc -x -a -m x CM:Gadgets.lzh
DF0:c/lharc -x -a -m x CM:Graphics.lzh
DF0:c/lharc -x -a -m x CM:Introduction.lzh
DF0:c/lharc -x -a -m x CM:Screens.lzh
DF0:c/lharc -x -a -m x CM:Windows.lzh

echo "Insert disk 2 of 3 in drive DF1: when prompted for it."
wait 5		; got corrupt disks if I didn't do this, strange...
sys:system/format drive DF1: name M2 noicons
echo "Formatting complete, now extracting files ..."
cd M2:

DF0:c/lharc -x -a -m x CM:Alerts.lzh
DF0:c/lharc -x -a -m x CM:IDCMP.lzh
DF0:c/lharc -x -a -m x CM:Menus.lzh
DF0:c/lharc -x -a -m x CM:Miscellaneous.lzh
DF0:c/lharc -x -a -m x CM:Requesters.lzh

echo "Insert disk 3 of 3 in drive DF1: when prompted for it."
wait 5
sys:system/format drive DF1: name M3 noicons
echo "Formatting complete, now extracting files ..."
cd M3:

DF0:c/lharc -x -a -m x CM:Appendix.lzh
DF0:c/lharc -x -a -m x CM:DIY.lzh
DF0:c/lharc -x -a -m x CM:FileWindow.lzh
DF0:c/lharc -x -a -m x CM:Sprites.lzh
DF0:c/lharc -x -a -m x CM:TOOL.lzh

assign CM:

echo "All done!"
