Commit 174c2fed authored by Caleb Maclennan's avatar Caleb Maclennan

generate pdfs too

parent fb9efa66
......@@ -5,8 +5,14 @@ hash mscore || exit
for score in $@; do
lilyout="${score%\.*}.ly"
sadeout="${score%\.*}-sade.ly"
# Generate basic lilypond output
mscore -o "$lilyout" "$score" >/dev/null &&
echo "Wrote $lilyout"
lilypond --pdf "$lilyout" 2>/dev/null &&
echo "Wrote ${lilyout%\.*}.pdf"
# Cleanup lilypond output to be just the score
grep -v '^#' "$lilyout" |
sed 's/%.*//' |
sed '/^\s*$/d' |
......@@ -14,5 +20,7 @@ for score in $@; do
pcregrep -v -M '^\\header(\n*.*?\n*)*? \}' |
cat -s > "$sadeout" &&
echo "Wrote $sadeout"
lilypond --pdf "$sadeout" 2>/dev/null &&
echo "Wrote ${sadeout%\.*}.pdf"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment