Comment #8 on issue 2466 by [email protected]: Lilypond files fail when
compiled singly, but not when compiled as part of a large number
http://code.google.com/p/lilypond/issues/detail?id=2466
The specific file mentioned has been deleted from the LSR, so is not
relevant. Here's a suggested updated script - it optionally runs silent,
except for failed files, and optionally runs convert-ly. Improvements
welcome - if not I'll push to the CG and close this issue.
#!/bin/bash
while getopts sc opt; do
case $opt in
s)
silent=true
;;
c)
convert=true
;;
esac
done
param=$@
if [ $silent ]; then
param=${param:3}
fi
if [ $convert ]; then
param=${param:3}
fi
filter=${param:-"*.ly"}
for LILYFILE in $filter
do
STEM=$(basename "$LILYFILE" .ly)
if [ $convert ]; then
if [ $silent ]; then
$LILYPOND_BUILD_DIR/out/bin/convert-ly -e "$LILYFILE"
& "$STEM".convert.txt
else
$LILYPOND_BUILD_DIR/out/bin/convert-ly -e "$LILYFILE"
fi
fi
if [ ! $silent ]; then
echo "running $LILYFILE..."
fi
$LILYPOND_BUILD_DIR/out/bin/lilypond --format=png
-ddelete-intermediate-files "$LILYFILE" >& "$STEM".txt
RetVal=$?
if [ $RetVal -gt 0 ]; then
echo "$LILYFILE failed"
fi
done