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 >
Wrap
Linux/UNIX/POSIX Shell Script
|
1997-04-25
|
545b
|
19 lines
#! /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