diff options
author | Erich Eckner <git@eckner.net> | 2017-10-05 21:59:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-05 21:59:58 +0200 |
commit | fc22dec1dc372334ec3c482d3ed45d5fd853dba3 (patch) | |
tree | 5ed88566e01cc094cd63bd13fb0cbf1f51c17057 /Konzerte | |
parent | 69c7a1158f0322d31c549fa3a126e734bf299f2f (diff) | |
download | Musik-fc22dec1dc372334ec3c482d3ed45d5fd853dba3.tar.xz |
Konzert 2017_10_08 neu
Diffstat (limited to 'Konzerte')
-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 |