Re: Command switch based on Lily version?

2009-03-23 Thread Mats Bengtsson
Carl D. Sorensen wrote: I think you should pick a version and write for it. And then, if you want to change versions, you should use convert-ly. Unfortunately, this only works one way (2.10 - 2.12, but not backwards). /Mats ___

Command switch based on Lily version?

2009-03-22 Thread MonAmiPierrot
-- View this message in context: http://www.nabble.com/Command-switch-based-on-Lily-version--tp22646853p22646853.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http

Re: Command switch based on Lily version?

2009-03-22 Thread Peter Chubb
I embed Lily in a shell script for that kind of thing (I'm running on Unix): Something like this which is meant to make MIDI only output: --- #!/bin/sh LILY=/usr/local/bin/lilypond LILYVERSION=`$LILY | sed -n 's/^GNU Lilypond \([12]\.[0-9]*\.[0-9]*\).*$/\1/p'` case $LILYVERSION in

Re: Command switch based on Lily version?

2009-03-22 Thread Peter Chubb
Peter == Peter Chubb lily-u...@chubb.wattle.id.au writes: Peter I embed Lily in a shell script for that kind of thing (I'm Peter running on Unix): (I've just noticed you're using Windows ... you'll need to ask someone who's a Windows expert as to how to script it, as you won't necessarily have

Re: Command switch based on Lily version?

2009-03-22 Thread MonAmiPierrot
in context: http://www.nabble.com/Command-switch-based-on-Lily-version--tp22646853p22652534.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman

Re: Command switch based on Lily version?

2009-03-22 Thread Carl D. Sorensen
On 3/22/09 6:26 PM, MonAmiPierrot pierofaust...@hotmail.com wrote: Peter Chubb-6 wrote: Peter == Peter Chubb lily-u...@chubb.wattle.id.au writes: Peter I embed Lily in a shell script for that kind of thing (I'm Peter running on Unix): Thanks Peter, but it seems I

Re: Command switch based on Lily version?

2009-03-22 Thread Carl D. Sorensen
On 3/22/09 6:26 PM, MonAmiPierrot pierofaust...@hotmail.com wrote: Thanks Peter, but it seems I didn't explain myself: what I need is sometihng like this (the syntax is invented: I don't know scheme] directly IN lily files: LilyVers = [Get lilypond version: 2.10 or 2.12] IF LilyVers =