Hi.
This is a trivial patch to replace the older format of head/tail calls
with the newer format using '-n'. Newer GNU coreutils will error out
when calling head/tail and a numeric argument without the '-n'.
Art Haas
Index: build/buildcheck.sh
===================================================================
--- build/buildcheck.sh	(revision 7012)
+++ 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|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
 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|head -n 1| sed -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'`
 if test -z "$ah_version"; then
   echo "buildcheck: autoheader not found."
   echo "            You need autoheader version 2.50 or newer installed."
@@ -83,7 +83,7 @@
 if test ! -x "$libtool"; then
   libtool=`which libtool`
 fi
-lt_pversion=`$libtool --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
+lt_pversion=`$libtool --version 2>/dev/null|head -n 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"
-- 
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.
-Thomas Jefferson to James Smith, 1822
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep  9 03:09:16 2003