:	'(c) Copyright	Empress Software Inc.	1983, 2000'

if test "$EMPRESSPATH" = "" 
then
	echo "EMPRESSPATH not set"
	exit 1

elif test ! -d $EMPRESSPATH
then
	echo "invalid EMPRESSPATH"
	exit 1
else
	RDBMSPATH=$EMPRESSPATH/rdbms
	export RDBMSPATH
fi


. $RDBMSPATH/util_bin/banner

GUIEXAMPLEDIR=${RDBMSPATH}/gui/examples

if test ! -f ${GUIEXAMPLEDIR}/ex1_actn.c
then
	if test -f ./ex1_actn.c
	then
		echo "The directory ${GUIEXAMPLEDIR} does not exist"
		exit 1
	else
		GUIEXAMPLEDIR=`pwd`
	fi
fi


$EMPRESSPATH/bin/empesql ${GUIEXAMPLEDIR}/ex3_actn.c ex3_actp.c
$EMPRESSPATH/bin/empesql ${GUIEXAMPLEDIR}/ex4_actn.c ex4_actp.c

. $EMPRESSPATH/config/options

case "$MSSYS_PLATFORM" in
	SYS_OS_UNIX_QNX)
		$EMPRESSPATH/bin/empguicc -ESQL -F -o \
			ex_gui ${GUIEXAMPLEDIR}/ex1_actn.c \
			${GUIEXAMPLEDIR}/ex2_actn.c ex3_actp.c ex4_actp.c \
			${GUIEXAMPLEDIR}/ex5_actn.c ${GUIEXAMPLEDIR}/ex_actab.c
	;;
	*)
		$EMPRESSPATH/bin/empguicc -ESQL -o \
			ex_gui ${GUIEXAMPLEDIR}/ex1_actn.c \
			${GUIEXAMPLEDIR}/ex2_actn.c ex3_actp.c ex4_actp.c \
			${GUIEXAMPLEDIR}/ex5_actn.c ${GUIEXAMPLEDIR}/ex_actab.c
	;;
esac


rm -f ex3_actp.c ex4_actp.c ex1_actn.o ex2_actn.o ex3_actp.o ex4_actp.o \
	ex5_actn.o ex_actab.o
