diff -uNr lilypond-1.8.0/autogen.sh lilypond-1.8.0-gcc33/autogen.sh --- lilypond-1.8.0/autogen.sh 2002-12-24 16:57:36.000000000 -0500 +++ lilypond-1.8.0-gcc33/autogen.sh 2003-08-07 15:07:43.199958288 -0400 @@ -23,7 +23,7 @@ # If you have such a setup, invoke this script as: # autoconf=autoconf2.50 ./autogen.sh for i in autoconf2.50 autoconf-2.50 autoconf false; do - version=`$i --version 2>/dev/null | head -1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'` + version=`$i --version 2>/dev/null | head -n 1 | awk '{print $NF}' | awk -F. '{print $1 * 100 + $2}'` if test "0$version" -ge 250; then autoconf=$i break diff -uNr lilypond-1.8.0/stepmake/aclocal.m4 lilypond-1.8.0-gcc33/stepmake/aclocal.m4 --- lilypond-1.8.0/stepmake/aclocal.m4 2003-07-17 17:38:48.000000000 -0400 +++ lilypond-1.8.0-gcc33/stepmake/aclocal.m4 2003-08-07 15:08:14.222242184 -0400 @@ -11,13 +11,13 @@ ## command -v doesn't work in zsh ## command -v "$1" 2>&1 ## this test should work in ash, bash, pdksh (ksh), zsh - type -p "$1" 2>/dev/null | tail -1 | awk '{print $NF}' + type -p "$1" 2>/dev/null | tail -n 1 | awk '{print $NF}' ]) # Get version string from executable ($1) AC_DEFUN(STEPMAKE_GET_VERSION, [ - ## "$1" --version 2>&1 | grep -v '^$' | head -1 | awk '{print $NF}' + ## "$1" --version 2>&1 | grep -v '^$' | head -n 1 | awk '{print $NF}' ## ## ARG. ## Workaround for broken Debian gcc version string: @@ -28,7 +28,7 @@ ## Assume, and hunt for, dotted version multiplet. changequote(<<, >>)dnl - ("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' | head -1 | \ + ("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' | head -n 1 | \ sed -e 's/.*[^-.0-9]\([0-9][0-9]*\.[0-9][.0-9]*\).*/\1/' changequote([, ])dnl ])