bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python 2.4 detection


From: Michael Welsh Duggan
Subject: Re: Python 2.4 detection
Date: Mon, 07 Aug 2006 19:54:12 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

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'\`\"
>>

-- 
Michael Welsh Duggan
(address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]