#!/bin/sh
# rds 21 Nov 2002 
if test ! -w /etc/passwd
then
	echo "You must be running as root to execute this script"
	exit 1
fi
if test ! -f $COBDIR/aslmf/apptrack
then
	echo "COBDIR not set correctly"
	echo "Current COBDIR setting is $COBDIR"
	exit 1
fi
unset COBPATH
unset COBDATA
unset COBSW
HERE=`pwd`
rm -f /var/mfaslmf/mfasdb
rm -f /var/mfaslmf/mfasdbX
cd $COBDIR/aslmf
./initaslm
if test -f $COBDIR/lmf/lmfgetpv
then
	LMF=`$COBDIR/lmf/lmfgetpv p`
	cd $LMF
	sh devas
	cd $HERE
fi	
$COBDIR/aslmf/apptrack
