diff options
Diffstat (limited to 'Konzerte/2017_06_18')
-rw-r--r-- | Konzerte/2017_06_18/alles.ly | 5 | ||||
-rwxr-xr-x | Konzerte/2017_06_18/make | 52 |
2 files changed, 57 insertions, 0 deletions
diff --git a/Konzerte/2017_06_18/alles.ly b/Konzerte/2017_06_18/alles.ly new file mode 100644 index 0000000..1a42b64 --- /dev/null +++ b/Konzerte/2017_06_18/alles.ly @@ -0,0 +1,5 @@ + + +%LOOP%\include "../../%TEIL%/%TEIL%.pre" + + diff --git a/Konzerte/2017_06_18/make b/Konzerte/2017_06_18/make new file mode 100755 index 0000000..37a5823 --- /dev/null +++ b/Konzerte/2017_06_18/make @@ -0,0 +1,52 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + Ich_bin_die_Auferstehung + Er_ist_mein_Hirt + Geh_aus_mein_Herz + Tanzen_und_Springen + Die_beste_Zeit_im_Jahr_ist_mein_ + Grosz_ist_der_Herr + Die_beste_Zeit_im_Jahr_ist_mein + Fuellt_die_Kruege_mit_Wasser + Sommerpsalm + Abendruhe + Schoen_ist_die_Erde + Bleib_bei_mir_Herr +) + +rm -f *.pre + +for teil in "${teile[@]}" +do + ( + cd ../../${teil} + make "$@" ${teil}.pre + ) +done + +while read -r line +do + 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 + +lilypond alles.pre |