Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/checkver,v rcsdiff: /ftp/cvs/cvsroot/src/lib/checkver,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- src/lib/checkver 1999/11/05 20:16:56 1.9 +++ src/lib/checkver 2000/07/03 17:22:20 1.10 @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: checkver,v 1.9 1999/11/05 20:16:56 erh Exp $ +# $NetBSD: checkver,v 1.10 2000/07/03 17:22:20 he Exp $ # # Copyright (c) 1998 The NetBSD Foundation, Inc. # All rights reserved. @@ -202,15 +202,28 @@ if [ "X$minor" = "X" -o "X$major" = "X" exit 2 fi +tiny=`echo $minor | awk 'BEGIN { FS="." } { print $2 + 0 } '` +minor=`echo $minor | awk 'BEGIN { FS="." } { print $1 } '` + # Find every shared object library with the same base name. for instlib in `grep $libname.so "$LIBLIST" ` ; do # Grab the major and minor from the installed library. instmajor=`basename $instlib | awk 'BEGIN { FS="." } { print $3 } '` instminor=`basename $instlib | awk 'BEGIN { FS="." } { print $4 } '` + insttiny=`basename $instlib | awk 'BEGIN { FS="." } { print $5 + 0 } '` # If they're greater than the source, complain. if [ "0$major" -eq "0$instmajor" ] ; then - if [ "0$minor" -lt "0$instminor" ] ; then + if [ "0$minor" -eq "0$instminor" ] ; then + if [ "0$tiny" -lt "0$insttiny" ] ; then + if [ $error -eq 0 -a $quiet -eq 0 ]; then + echo -n "The following libraries have versions greater" + echo " than the source:" + fi + echo $instlib > /dev/stderr + error=1 + fi + elif [ "0$minor" -lt "0$instminor" ] ; then if [ $error -eq 0 -a $quiet -eq 0 ]; then echo -n "The following libraries have versions greater" echo " than the source:"