summaryrefslogtreecommitdiff
path: root/Konzerte/2016_11_26/make
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-24 13:59:28 +0200
committerErich Eckner <git@eckner.net>2017-08-24 13:59:28 +0200
commit2a191dccae95ab1e82e2229c847f5f86fe93d3af (patch)
tree07582bd542202cd20cf68169517efd6975359615 /Konzerte/2016_11_26/make
parent220354b364397412b34e6ccc75ffa9bdd4f0e9ee (diff)
downloadMusik-2a191dccae95ab1e82e2229c847f5f86fe93d3af.tar.xz
Singkreiskonzerte -> Konzerte
Diffstat (limited to 'Konzerte/2016_11_26/make')
-rwxr-xr-xKonzerte/2016_11_26/make50
1 files changed, 50 insertions, 0 deletions
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