|
From: | Mats Bengtsson |
Subject: | Re: Python 2.4 detection |
Date: | Tue, 08 Aug 2006 10:09:44 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 |
Great! Sorry for not testing your patch. You are absolutely right that it also solves my problems. I definitely wote for inclusion of this patch. /Mats Michael Welsh Duggan wrote:
Mats Bengtsson <address@hidden> writes:See also http://lists.gnu.org/archive/html/bug-lilypond/2006-06/msg00141.html for another problem with the current solution (which unfortunately isn't solved by Michael's patch).Actually, my tests seem to show it is solved by the patch. The grep -v will remove the mistaken path-based line. (Tested by copying python2.4 to /tmp/2.4.2/python2.4 and running the eval line using that path.)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'\`\"
-- ============================================= Mats Bengtsson Signal Processing Signals, Sensors and Systems Royal Institute of Technology SE-100 44 STOCKHOLM Sweden Phone: (+46) 8 790 8463 Fax: (+46) 8 790 7260 Email: address@hidden WWW: http://www.s3.kth.se/~mabe =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |