svn commit: samba r23377 - in branches: SAMBA_3_0/source SAMBA_3_0_26/source

jerry at samba.org jerry at samba.org
Thu Jun 7 13:35:41 GMT 2007


Author: jerry
Date: 2007-06-07 13:35:39 +0000 (Thu, 07 Jun 2007)
New Revision: 23377

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23377

Log:
Patch from Bjoern Jacke <bjoern at j3e.de> to deal
with non-GNU implementations of tr in autogen.sh


Modified:
   branches/SAMBA_3_0/source/autogen.sh
   branches/SAMBA_3_0_26/source/autogen.sh


Changeset:
Modified: branches/SAMBA_3_0/source/autogen.sh
===================================================================
--- branches/SAMBA_3_0/source/autogen.sh	2007-06-07 07:53:33 UTC (rev 23376)
+++ branches/SAMBA_3_0/source/autogen.sh	2007-06-07 13:35:39 UTC (rev 23377)
@@ -16,7 +16,7 @@
 ##
 for i in $TESTAUTOHEADER; do
 	if which $i > /dev/null 2>&1; then
-		if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d [:alpha:]` -ge 53; then
+		if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
 			AUTOHEADER=$i
 			AUTOHEADERFOUND="1"
 			break
@@ -30,7 +30,7 @@
 
 for i in $TESTAUTOCONF; do
 	if which $i > /dev/null 2>&1; then
-		if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d [:alpha:]` -ge 53; then
+		if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
 			AUTOCONF=$i
 			AUTOCONFFOUND="1"
 			break

Modified: branches/SAMBA_3_0_26/source/autogen.sh
===================================================================
--- branches/SAMBA_3_0_26/source/autogen.sh	2007-06-07 07:53:33 UTC (rev 23376)
+++ branches/SAMBA_3_0_26/source/autogen.sh	2007-06-07 13:35:39 UTC (rev 23377)
@@ -16,7 +16,7 @@
 ##
 for i in $TESTAUTOHEADER; do
 	if which $i > /dev/null 2>&1; then
-		if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d [:alpha:]` -ge 53; then
+		if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
 			AUTOHEADER=$i
 			AUTOHEADERFOUND="1"
 			break
@@ -30,7 +30,7 @@
 
 for i in $TESTAUTOCONF; do
 	if which $i > /dev/null 2>&1; then
-		if test `$i --version | head -n 1 | cut -d.  -f 2 | tr -d [:alpha:]` -ge 53; then
+		if test `$i --version | head -n 1 | cut -d.  -f 2 | sed "s/[^0-9]//g"` -ge 53; then
 			AUTOCONF=$i
 			AUTOCONFFOUND="1"
 			break



More information about the samba-cvs mailing list