[xdebug-dev] xdebug xdebug/debugclient/build/buildcheck.sh - Simplify version checking for libtool. (Patch by PGNet

From: Derick Rethans <derick[@]derickrethans.nl>
Date: Tue, 9 Dec 2008 21:27:24 +0100

Date: Tue Dec 9 21:27:24 CET 2008
User: Derick Rethans
Directory: xdebug

Log Message:
[0.25]
- Simplify version checking for libtool. (Patch by PGNet
  <pgnet.trash[@]gmail.com>).

Modified files:
           xdebug/debugclient/build/buildcheck.sh (version: 1.3)

[FILE: /xdebug/debugclient/build/buildcheck.sh]

===================================================================
RCS file: cvstemp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- xdebug/debugclient/build/buildcheck.sh:1.2 Mon May 01 08:09:16 2006 GMT
+++ xdebug/debugclient/build/buildcheck.sh Tue Dec 09 19:27:24 2008 GMT
@@ -16,7 +16,7 @@
 # | Sascha Schumann <sascha[@]schumann.cx> |
 # +----------------------------------------------------------------------+
 #
-# $Id: cvstemp,v 1.2 2006/05/01 10:09:16 derick Exp $
+# $Id: cvstemp,v 1.3 2008/12/09 20:27:24 derick Exp $
 #
 
 echo "buildconf: checking installation..."
@@ -74,7 +74,7 @@
 # Prefer glibtool over libtool for Mac OS X compatibility
 libtool=`which glibtool 2> /dev/null`
 if test ! -f "$libtool"; then libtool=`which libtool`; fi
-lt_pversion=`$libtool --version 2>/dev/null|sed -n -e 's/^[^0-9]*//' -e 1's/[- ].*//p'`
+lt_pversion=`$libtool --version 2>/dev/null | head -n 1 | awk '{print $4}'`
 if test "$lt_pversion" = ""; then
 echo "buildconf: libtool not found."
 echo " You need libtool version 1.4 or newer installed"
Received on Tue Dec 09 2008 - 21:27:30 GMT

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST