Change the use of head to be 'head -n -1', since the GNU version of head
authorMalcolm Tredinnick <malcolm@src.gnome.org>
Fri, 12 Dec 2003 23:43:52 +0000 (23:43 +0000)
committerMalcolm Tredinnick <malcolm@src.gnome.org>
Fri, 12 Dec 2003 23:43:52 +0000 (23:43 +0000)
* autogen.sh: Change the use of head to be 'head -n -1', since
the GNU version of head appears to have changed behaviour
between version 5.0 and 5.0.9 somewhere. This should be portable
across all versions now. Fixed bug #128867.

svn path=/trunk/; revision=3433

macros2/ChangeLog
macros2/autogen.sh

index f8533ad..e938001 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-13  Malcolm Tredinnick <malcolm@commsecure.com.au>
+
+       * autogen.sh: Change the use of head to be 'head -n -1', since
+       the GNU version of head appears to have changed behaviour
+       between version 5.0 and 5.0.9 somewhere. This should be portable
+       across all versions now. Fixed bug #128867.
+
 2003-12-08  Rodney Dawes  <dobey@free.fr>
 
        * autogen.sh: Update automake checks to check incremental
index bdde708..103c98f 100644 (file)
@@ -91,7 +91,7 @@ version_check() {
     for vc_checkprog in $vc_checkprogs; do
        echo $ECHO_N "  testing $vc_checkprog... "
        if $vc_checkprog --version < /dev/null > /dev/null 2>&1; then
-           vc_actual_version=`$vc_checkprog --version | head -1 | \
+           vc_actual_version=`$vc_checkprog --version | head -1 | \
                                sed 's/^.*[     ]\([0-9.]*[a-z]*\).*$/\1/'`
            if compare_versions $vc_min_version $vc_actual_version; then
                echo "found $vc_actual_version"