home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / source / byteunix.lzh / byte.1 / dbprep < prev    next >
Text File  |  1990-05-11  |  960b  |  31 lines

  1. #! /bin/sh
  2. ###############################################################################
  3. #  The BYTE UNIX Benchmarks - Release 2
  4. #          Module: dbprep   SID: 2.3 4/17/90 16:45:41
  5. #          
  6. ###############################################################################
  7. # Bug reports, patches, comments, suggestions should be sent to:
  8. #
  9. #    Ben Smith or Rick Grehan at BYTE Magazine
  10. #    ben@bytepb.UUCP    rick_g@bytepb.UUCP
  11. #
  12. ###############################################################################
  13. #  Modification Log:
  14. #
  15. ###############################################################################
  16. ID="@(#)dbprep:2.3 -- 4/17/90 16:45:41";
  17. rm -f $1              # remove the old file
  18.  
  19. if test -f $1            # be sure it is gone - don't want
  20. then                 # to change file size by appending to it
  21.    exit 1
  22. fi
  23.  
  24. if ${BINDIR}/buildbms $1 $2    # build the data file
  25. then
  26.    ${BINDIR}/dbmserv $1 $3 &    # start the database server
  27. else
  28.    echo "dbprep error"
  29.    exit 1
  30. fi
  31.