#! /bin/sh
###############################################################################
#  The BYTE UNIX Benchmarks - Release 2
#          Module: dbprep   SID: 2.3 4/17/90 16:45:41
#          
###############################################################################
# Bug reports, patches, comments, suggestions should be sent to:
#
#	Ben Smith or Rick Grehan at BYTE Magazine
#	ben@bytepb.UUCP    rick_g@bytepb.UUCP
#
###############################################################################
#  Modification Log:
#
###############################################################################
ID="@(#)dbprep:2.3 -- 4/17/90 16:45:41";
rm -f $1  			# remove the old file

if test -f $1			# be sure it is gone - don't want
then 				# to change file size by appending to it
   exit 1
fi

if ${BINDIR}/buildbms $1 $2	# build the data file
then
   ${BINDIR}/dbmserv $1 $3 &    # start the database server
else
   echo "dbprep error"
   exit 1
fi
