bug-lilypond
[Top][All Lists]
Advanced

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

Re: Python 2.4 detection


From: Han-Wen Nienhuys
Subject: Re: Python 2.4 detection
Date: Tue, 08 Aug 2006 11:18:59 +0200
User-agent: Thunderbird 1.5.0.4 (X11/20060614)

Michael Welsh Duggan wrote:


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:

this will certainly not work. lots of programs print arbitrary non program-name junk with --version. (try gcc --version)

how about grepping for ' [0-9]+\.[0-9]'. Can you test whether you can build with that fix?

cheers.
--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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