[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: POSIX patches

From: Olaf Hering <olh_at_suse.de>
Date: 2003-05-13 13:24:05 CEST

 On Tue, May 13, Sander Roobol wrote:

> Filed as issue #1305.
Use this version:

Index: build/buildcheck.sh
===================================================================
--- build/buildcheck.sh (revision 5780)
+++ build/buildcheck.sh (working copy)
@@ -16,7 +16,7 @@
 #--------------------------------------------------------------------------
 # autoconf 2.50 or newer
 #
-ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
+ac_version=`${AUTOCONF:-autoconf} --version 2>/dev/null|sed 's/^\([^0-9]* \)\([0-9.]*\)\(.*\)/\2/;q'`
 if test -z "$ac_version"; then
   echo "buildcheck: autoconf not found."
   echo " You need autoconf version 2.50 or newer installed."
@@ -38,7 +38,7 @@
 #--------------------------------------------------------------------------
 # autoheader 2.50 or newer
 #
-ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|head -1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
+ah_version=`${AUTOHEADER:-autoheader} --version 2>/dev/null|sed 's/^\([^0-9]* \)\([0-9.]*\)\(.*\)/\2/;q'`
 if test -z "$ah_version"; then
   echo "buildcheck: autoheader not found."
   echo " You need autoheader version 2.50 or newer installed."
Index: dist.sh
===================================================================
--- dist.sh (revision 5780)
+++ dist.sh (working copy)
@@ -51,7 +51,7 @@
 
 ### The "REV" part of ${DISTNAME}-rREV.tar.gz
 if test -z "$1" || test "$1" = "HEAD"; then
- VERSION="`svn st -vu README | tail -1 | awk '{print $3}'`"
+ VERSION="`svn st -vu README | awk '{i=$3}END{print i}'`"
 else
   VERSION="$1"
 fi

-- 
USB is for mice, FireWire is for men!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 13 13:25:07 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.