summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2004-12-21 12:57:33 +0000
committerCarl Worth <cworth@cworth.org>2004-12-21 12:57:33 +0000
commit8ffb7df16c137a87b14039f6e17d090f9e73468f (patch)
tree3c8a7de3c4a648be87698704abd808f48058b5a9 /autogen.sh
parent153bf60b3a68266196a007167fc44b7df66ee73b (diff)
Change "head -1" to more standard "head -n 1".
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/autogen.sh b/autogen.sh
index dbe36ddf..46ca3422 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -26,7 +26,7 @@ LANG=C
ARGV0=$0
if ($AUTOCONF --version) < /dev/null > /dev/null 2>&1 ; then
- if ($AUTOCONF --version | head -1 | awk 'NR==1 { if( $(NF) >= '$autoconf_min_vers') \
+ if ($AUTOCONF --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$autoconf_min_vers') \
exit 1; exit 0; }');
then
echo "$ARGV0: ERROR: \`$AUTOCONF' is too old."
@@ -43,7 +43,7 @@ else
fi
if ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 ; then
- if ($AUTOMAKE --version | head -1 | awk 'NR==1 { if( $(NF) >= '$automake_min_vers') \
+ if ($AUTOMAKE --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$automake_min_vers') \
exit 1; exit 0; }');
then
echo "$ARGV0: ERROR: \`$AUTOMAKE' is too old."
@@ -52,7 +52,7 @@ if ($AUTOMAKE --version) < /dev/null > /dev/null 2>&1 ; then
DIE="yes"
fi
if ($ACLOCAL --version) < /dev/null > /dev/null 2>&1; then
- if ($ACLOCAL --version | head -1 | awk 'NR==1 { if( $(NF) >= '$aclocal_min_vers' ) \
+ if ($ACLOCAL --version | head -n 1 | awk 'NR==1 { if( $(NF) >= '$aclocal_min_vers' ) \
exit 1; exit 0; }' );
then
echo "$ARGV0: ERROR: \`$ACLOCAL' is too old."