4
0

version.sh 545 B

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