diff options
Diffstat (limited to 'Konzerte/2017_10_08')
-rw-r--r-- | Konzerte/2017_10_08/alles.ly | 5 | ||||
-rwxr-xr-x | Konzerte/2017_10_08/make | 44 |
2 files changed, 49 insertions, 0 deletions
diff --git a/Konzerte/2017_10_08/alles.ly b/Konzerte/2017_10_08/alles.ly new file mode 100644 index 0000000..1a42b64 --- /dev/null +++ b/Konzerte/2017_10_08/alles.ly @@ -0,0 +1,5 @@ + + +%LOOP%\include "../../%TEIL%/%TEIL%.pre" + + diff --git a/Konzerte/2017_10_08/make b/Konzerte/2017_10_08/make new file mode 100755 index 0000000..151d179 --- /dev/null +++ b/Konzerte/2017_10_08/make @@ -0,0 +1,44 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + Herr_groszer_Gott + Halleluja + Grosz_ist_der_Herr + Fuellt_die_Kruege_mit_Wasser +) + +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 |