lilypond-auto
[Top][All Lists]
Advanced

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

Re: [Lilypond-auto] Issue 2466 in lilypond: Lilypond files fail when com


From: lilypond
Subject: Re: [Lilypond-auto] Issue 2466 in lilypond: Lilypond files fail when compiled singly, but not when compiled as part of a large number
Date: Fri, 24 Aug 2012 17:08:48 +0000


Comment #8 on issue 2466 by address@hidden: 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





reply via email to

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