diff options
author | Erich Eckner <git@eckner.net> | 2016-11-21 17:13:04 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-11-21 17:13:04 +0100 |
commit | ff6e21127ac9de03821e3cf889afda9c3ec57b58 (patch) | |
tree | 8336419ffd9273a7463054765f1c0a00dc604aca /Singkreiskonzerte | |
parent | 3e7db6f472a172453223ac624e8a4f5398f4e7e5 (diff) | |
download | Musik-ff6e21127ac9de03821e3cf889afda9c3ec57b58.tar.xz |
Singkreiskonzerte: compile pdf with lilypond
Diffstat (limited to 'Singkreiskonzerte')
-rw-r--r-- | Singkreiskonzerte/2016_11_26/alles.ly | 5 | ||||
-rwxr-xr-x | Singkreiskonzerte/2016_11_26/make | 28 |
2 files changed, 27 insertions, 6 deletions
diff --git a/Singkreiskonzerte/2016_11_26/alles.ly b/Singkreiskonzerte/2016_11_26/alles.ly new file mode 100644 index 0000000..1a42b64 --- /dev/null +++ b/Singkreiskonzerte/2016_11_26/alles.ly @@ -0,0 +1,5 @@ + + +%LOOP%\include "../../%TEIL%/%TEIL%.pre" + + diff --git a/Singkreiskonzerte/2016_11_26/make b/Singkreiskonzerte/2016_11_26/make index 96c160c..2b5c54a 100755 --- a/Singkreiskonzerte/2016_11_26/make +++ b/Singkreiskonzerte/2016_11_26/make @@ -17,18 +17,34 @@ teile=( Schoen_ist_die_Erde ) +rm -f *.pre + for teil in "${teile[@]}" do ( - echo "kompiliere '${teil}':" cd ../../${teil} - make "$@" + make "$@" ${teil}.pre ) done -for teil in "${teile[@]}" +while read -r line do - cp ../../${teil}/${teil}.pdf . -done + if [[ "${line}" = '%LOOP%'* ]] + then + loopLines="${loopLines} +${line#%LOOP%}" + else + if [ -n "${loopLines}" ] + then + for teil in "${teile[@]}" + do + echo "${loopLines}" | \ + sed "s|%TEIL%|${teil}|g" + done + unset loopLines + fi + echo "${line}" + fi +done < alles.ly > alles.pre -pdfunite $(echo "${teile[@]}" | sed 's@\( \|$\)@.pdf\1@g') "$(basename "$(pwd)")".pdf +lilypond alles.pre |