|
From: | Peter Chubb |
Subject: | Re: Command switch based on Lily version? |
Date: | Mon, 23 Mar 2009 09:37:18 +1100 |
User-agent: | Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 MULE XEmacs/21.4 (patch 21) (Educational Television) (i486-linux-gnu) |
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 2.10.*) # This doesn't seem to work midionly=--no-print ;; 2.1[12].*) # This works, but Lily still seems to do lots of the typesetting. midionly=-dno-print-pages ;; *) # Your mileage may vary midionly=--midi ;; esac exec $LILY $midionly "$@" -- Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au http://www.ertos.nicta.com.au ERTOS within National ICT Australia A university is a non-profit organisation only in the sense that it spends everything it gets ... Luca Turin.
[Prev in Thread] | Current Thread | [Next in Thread] |