diff options
author | Erich Eckner <git@eckner.net> | 2017-09-22 13:46:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-09-22 13:46:07 +0200 |
commit | 6dd16142fc07b9cf926b6b0d4bb8e78949100ad4 (patch) | |
tree | 5893791d0b22ee96884524fe9c8bdc5de1563f1e /Konzerte/2017_10_26/make | |
parent | f09cc7528c855efe1c0f0cc06de714c239c9ceaf (diff) | |
download | Musik-6dd16142fc07b9cf926b6b0d4bb8e78949100ad4.tar.xz |
Konzertprogramm vom 2017_10_26 neu/angefangen
Diffstat (limited to 'Konzerte/2017_10_26/make')
-rwxr-xr-x | Konzerte/2017_10_26/make | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Konzerte/2017_10_26/make b/Konzerte/2017_10_26/make new file mode 100755 index 0000000..15bca14 --- /dev/null +++ b/Konzerte/2017_10_26/make @@ -0,0 +1,53 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + #Herr_groszer_Gott + Halleluja + Er_ist_mein_Hirt + #Lobgesang_der_Maria + Tanzen_und_Springen + Grosz_ist_der_Herr + Die_beste_Zeit_im_Jahr_ist_mein + Fuellt_die_Kruege_mit_Wasser + #Alle_Tage_Alle_Naechte + Abendruhe + Schoen_ist_die_Erde + Bleib_bei_mir_Herr + #Shalom_aleichem +) + +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 |