/
convert/
convert/objmon/
convert/rooms/
#!/bin/csh 
# This is a simple shell script that uses ab to convert
# the stock databast ascii rooms, objects and creatures to binary.
# BP - 17 MAR 96

echo Converting rooms from ascii to binary... 
cd rooms
foreach name ( `ls` )
		~/util/ascbin/ab a $name
end

# IMPORTANT NOTE:
# ab saves the input file as the 00 file by default so 
# we have to be sure to move them to their proper place 
# after conversion.

echo Converting objects from ascii to binary...
cd ../objmon 

~/util/ascbin/ab a o04.asc
mv ~/objmon/o00 ~/objmon/o04
~/util/ascbin/ab a o02.asc
mv ~/objmon/o00 ~/objmon/o02
~/util/ascbin/ab a o01.asc
mv ~/objmon/o00 ~/objmon/o01
~/util/ascbin/ab a o00.asc


echo Converting creatures from ascii to binary...
~/util/ascbin/ab a m04.asc
mv ~/objmon/m00 ~/objmon/m04
~/util/ascbin/ab a m01.asc
mv ~/objmon/m00 ~/objmon/m01
~/util/ascbin/ab a m02.asc
mv ~/objmon/o00 ~/objmon/m02
~/util/ascbin/ab a m00.asc