There is a problem with the current method of program version checking
which was tweaked on my system by Python 2.4. On my system, python is
installed as follows:
address@hidden:~$ python -V
Python 2.3.5
address@hidden:~$ python2.4 -V
Python 2.4.4c0
STEPMAKE_GET_VERSION does not properly get the version of the 2.4
version. This is why:
address@hidden:~$ (/usr/bin/python2.4 --version || /usr/bin/python2.4 -V) 2>&1
| grep '[0-9]\.[0-9]'
usage: /usr/bin/python2.4 [option] ... [-c cmd | -m mod | file | -] [arg] ...
Python 2.4.4c0
If we pipe this to "head -1", we get the usage message, since it
includes 2.4. My suggestion (which will not necessarily work for all
programs) is to do a "grep -v" for the program name. Here is a
suggested patch:
------------------------------------------------------------------------
Index: stepmake/aclocal.m4
===================================================================
RCS file: /cvsroot/lilypond/lilypond/stepmake/aclocal.m4,v
retrieving revision 1.175
diff -u -p -r1.175 aclocal.m4
--- stepmake/aclocal.m4 1 Jun 2006 00:44:11 -0000 1.175
+++ stepmake/aclocal.m4 7 Aug 2006 08:25:17 -0000
@@ -32,7 +32,8 @@ AC_DEFUN(STEPMAKE_GET_VERSION, [
## for compatibility reasons.
## grab the first version number in --version output.
- eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep '[0-9]\.[0-9]' \
+ eval _ver=\"\`("$1" --version || "$1" -V) 2>&1 | grep -v "$1" \
+ | grep '[0-9]\.[0-9]' \
| head -n 1 \
| tr ' ' '\n' | grep '[0-9]\.[0-9]' | head -n 1 | sed
's/\([0-9.]*\).*/\1/g'\`\"
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond