diff options
author | Carl Worth <cworth@cworth.org> | 2004-12-21 12:57:33 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2004-12-21 12:57:33 +0000 |
commit | 8ffb7df16c137a87b14039f6e17d090f9e73468f (patch) | |
tree | 3c8a7de3c4a648be87698704abd808f48058b5a9 /autogen.sh | |
parent | 153bf60b3a68266196a007167fc44b7df66ee73b (diff) |
Change "head -1" to more standard "head -n 1".
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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." |