home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / gnu / tar.txt / tar-1.12 / tests / version.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-04-25  |  545b  |  19 lines

  1. #! /bin/sh
  2. # Check if the proper version is being tested.
  3.  
  4. . ./preset
  5. PATH=../src:$PATH
  6.  
  7. if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then
  8.   banner="Regression testing for GNU $PACKAGE, version $VERSION"
  9.   dashes=`echo $banner | sed s/./=/g`
  10.   echo $dashes
  11.   echo $banner
  12.   echo $dashes
  13. else
  14.   echo '=============================================================='
  15.   echo 'WARNING: Not using the proper version, *all* checks dubious...'
  16.   echo '=============================================================='
  17.   exit 1
  18. fi
  19.