[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: proposed change for depout.m4
From: |
Jim Meyering |
Subject: |
Re: proposed change for depout.m4 |
Date: |
Sun, 17 Feb 2002 20:35:31 +0100 |
User-agent: |
Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.2.50 (i686-pc-linux-gnu) |
Thanks! You're right. I've just confirmed that on a
SunOS4.1.4 system its /usr/ucb/head.
Here's a better patch:
* m4/depout.m4: Don't use `head -1'; it's no longer portable.
Use `sed 1q' instead.
Index: m4/depout.m4
===================================================================
RCS file: /cvs/automake/automake/m4/depout.m4,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 depout.m4
--- depout.m4 2001/12/30 20:29:14 1.10
+++ depout.m4 2002/02/17 19:34:54
@@ -1,6 +1,6 @@
# Generate code to set up dependency tracking. -*- Autoconf -*-
-# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
+# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS
[for mf in $CONFIG_FILES; do
# Strip MF so we end up with the name of the file.
mf=`echo "$mf" | sed -e 's/:.*$//'`
- if (head -1 $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
+ if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
dirpart=`AS_DIRNAME("$mf")`
else
dirpart=
Ralf Corsepius <address@hidden> wrote:
> Am Son, 2002-02-17 um 18.19 schrieb Jim Meyering:
>> Does anyone know of a system for which `head -n1' doesn't work
>> the same as the traditional `head -1'?
>
>>From SunOS4's manpage (dated ~1990):
...