File: version.sh

package info (click to toggle)
tar 1.12-7
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,552 kB
  • ctags: 1,623
  • sloc: ansic: 15,401; sh: 898; yacc: 856; lisp: 592; makefile: 336; perl: 111; sed: 93
file content (18 lines) | stat: -rwxr-xr-x 545 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh
# Check if the proper version is being tested.

. ./preset
PATH=../src:$PATH

if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then
  banner="Regression testing for GNU $PACKAGE, version $VERSION"
  dashes=`echo $banner | sed s/./=/g`
  echo $dashes
  echo $banner
  echo $dashes
else
  echo '=============================================================='
  echo 'WARNING: Not using the proper version, *all* checks dubious...'
  echo '=============================================================='
  exit 1
fi