Change "head -1" to more standard "head -n 1".

This commit is contained in:
Carl Worth 2004-12-21 12:57:33 +00:00
parent 153bf60b3a
commit 8ffb7df16c
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2004-12-20 Carl Worth <cworth@cworth.org>
* autogen.sh (LANG): Change "head -1" to more standard "head -n
1".
2004-12-20 Alexander Larsson <alexl@redhat.com>
* src/cairo_xlib_surface.c (_cairo_xlib_surface_create_with_size):

View file

@ -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."