You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by je...@apache.org on 2003/05/28 07:10:08 UTC
cvs commit: httpd-dist/tools releasecheck.sh
jerenkrantz 2003/05/27 22:10:07
Modified: tools releasecheck.sh
Log:
Allow libtool 1.5 with it's goofy --version semantics to pass muster.
Revision Changes Path
1.2 +4 -2 httpd-dist/tools/releasecheck.sh
Index: releasecheck.sh
===================================================================
RCS file: /home/cvs/httpd-dist/tools/releasecheck.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -u -r1.1 -r1.2
--- releasecheck.sh 21 Jan 2003 00:26:33 -0000 1.1
+++ releasecheck.sh 28 May 2003 05:10:06 -0000 1.2
@@ -60,7 +60,8 @@
if test ! -x "$libtool"; then
libtool=`which libtool`
fi
-lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
+
if test -z "$lt_pversion"; then
echo "buildcheck: libtool not found."
echo " You need libtool version $LIBTOOL_WANTED_VERSION or newer installed"
@@ -72,7 +73,8 @@
if test "$1" = "$LIBTOOL_WANTED_MAJOR"; then
if test "$2" -lt "$LIBTOOL_WANTED_MINOR"; then
lt_status="bad"
- elif test ! -z "$LIBTOOL_WANTED_PATCH"; then
+ elif test ! "$2" -gt "$LIBTOOL_WANTED_MINOR" -a \
+ ! -z "$LIBTOOL_WANTED_PATCH"; then
if test "$3" -lt "$LIBTOOL_WANTED_PATCH"; then
lt_status="bad"
fi