summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Konzerte/2017_10_26/alles.ly5
-rwxr-xr-xKonzerte/2017_10_26/make53
2 files changed, 58 insertions, 0 deletions
diff --git a/Konzerte/2017_10_26/alles.ly b/Konzerte/2017_10_26/alles.ly
new file mode 100644
index 0000000..1a42b64
--- /dev/null
+++ b/Konzerte/2017_10_26/alles.ly
@@ -0,0 +1,5 @@
+
+
+%LOOP%\include "../../%TEIL%/%TEIL%.pre"
+
+
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