summaryrefslogtreecommitdiff
path: root/m4/depout.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-02-18 15:52:46 +0000
committerJim Meyering <jim@meyering.net>2002-02-18 15:52:46 +0000
commitbe3875fe0f0e776c3eda15eeda5b401bd718feae (patch)
tree3092d24b7e00ee77c5af2bc28fe245fce2b0c6eb /m4/depout.m4
parent2555b805545b87a1b7f4ef2432cf25c932bcf8c6 (diff)
downloadautomake-be3875fe0f0e776c3eda15eeda5b401bd718feae.tar.gz
Don't use `head -1'; it's no longer portable.
Use `sed 1q' instead.
Diffstat (limited to 'm4/depout.m4')
-rw-r--r--m4/depout.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/depout.m4 b/m4/depout.m4
index bb457380a..4ab715a91 100644
--- a/m4/depout.m4
+++ b/m4/depout.m4
@@ -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=