From 2a191dccae95ab1e82e2229c847f5f86fe93d3af Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 24 Aug 2017 13:59:28 +0200 Subject: Singkreiskonzerte -> Konzerte --- Konzerte/2016_11_26/make | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 Konzerte/2016_11_26/make (limited to 'Konzerte/2016_11_26/make') diff --git a/Konzerte/2016_11_26/make b/Konzerte/2016_11_26/make new file mode 100755 index 0000000..2b5c54a --- /dev/null +++ b/Konzerte/2016_11_26/make @@ -0,0 +1,50 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + Ehre_sei_Gott_in_der_Hoehe + Jauchzet_dem_Herrn_alle_Welt_ + Er_ist_mein_Hirt + Wer_bis_an_das_Ende_beharrt + Ich_bin_die_Auferstehung + Troestet_mein_Volk + Lob_singet_Gott_dem_Herrn + Oeffne_den_Weg + Macht_hoch_die_Tuer_ + Schoen_ist_die_Erde +) + +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 -- cgit v1.2.3-70-g09d2