[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: adding to the LSR
From: Jonathan Kulp <jonlancekulp () gmail ! com>
Date: 2009-04-29 18:41:06
Message-ID: 49F89F42.3080105 () gmail ! com
[Download RAW message or body]
Jonathan Kulp wrote:
> Carl D. Sorensen wrote:
>>
>> Cool! I still think that you ought to put it all (including the grep
>> part)
>> into a single script and store it in the source tree. And it ought to be
>> added to the CG so that we have it tracked for the next time we release a
>> stable version (I assume it will happen quickly, once Graham gets home
>> from
>> Singapore -- although maybe going to Scotland doesn't qualify as "home").
>>
>
> I'd be very pleased if it were added to the CG and source tree but I
> don't have the push privileges to put it there, so I'll attach it to
> this email with the name "check-snippets". I didn't put the "convert-ly
> -e" command into the script because for reasons unknown to me I feel
> like it belongs as a separate process. I did stick the grep command in
> at the end and tested it again--works just fine. :) I wasn't certain
> whether it would wait until all the files had been run before grepping
> but it did. It finished looping and then moved on to the grep command.
>
> I looked through the convert-ly.py script and I feel now as though I
> need to learn some Python. I especially like the way it deals with
> command-line options--much more intuitive than what I've been doing with
> bash scripting. Maybe I'll experiment a bit with the convert-ly rules
> on my own copy of the script and see what I can learn. :)
>
> Jon
>
I've made a slight addition to the script to allow for use on Mac OSX
(in the terminal, not the gui). New version attached...
Jon
--
Jonathan Kulp
http://www.jonathankulp.com
["check-snippets" (text/plain)]
#!/bin/bash
#*****************************************#
# Run Lilypond on a lot of files and save #
# the terminal output in text files #
#*****************************************#
# determines whether running Mac or Linux
OS=$(uname)
# set Lilypond PATH if OS is Darwin
if [ "$OS" == "Darwin" ] ; then
export PATH="$PATH:/Applications/LilyPond.app/Contents/Resources/bin/"
fi
for LILYFILE in *.ly
do
STEM=$(basename "$LILYFILE" .ly)
echo "running $LILYFILE..."
lilypond --format=png "$LILYFILE" >& "$STEM".txt
rm "$STEM".ps
done
grep failed *.txt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic