#!/bin/sh
#
#	Parse all the classes in the Cadmin class directory
#	in the proper nesting order.
#
#	$Revision: 1.9 $
#
CLASSDIR=/usr/Cadmin/classes
PARSER=/usr/Cadmin/bin/parse
CPP=/usr/lib/cpp
cd ${CLASSDIR}
/bin/fgrep derivedFrom *.op \
	| /bin/sed 's/\./ /2' \
	| /bin/sort -b -n +2 +3 \
	| /bin/awk '{ print $1 }' \
	| /bin/sed 's/://' \
	| /bin/xargs -i ${CPP} \{\} \
	| ${PARSER} -c
