
#ident	"@(#)scripts:compscript	25.1"

# This script will compare the $ROOT/etc/syslist to the rlst's found in
# $IROOT/scripts.

# usage: compscript $ROOT

ROOT=$1

# sort rlst and syslist files
>rlst.file
for i in *
do
	if [ -d $i ]
	then
		cat $i/$i.rlst | grep -v '\.'$i'$' >> rlst.file
	fi
	sort rlst.file > temp
	/bin/mv temp rlst.file
done

sort $ROOT/etc/syslist > syslist
echo "Comparing rlst.file with syslist from $IROOT."
echo "Output is a result of:     sdiff -s -w79 rlst.file syslist"

echo "Starting compare process:"
date

sdiff -s -w79 rlst.file syslist

echo "Ending compare process:"
date

# Cleanup
rm -rf rlst.file syslist
