diff options
author | Erich Eckner <git@eckner.net> | 2018-05-09 12:39:48 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-05-09 12:39:48 +0200 |
commit | 68dc8ef567912ce8fed078d6bb9eb087cb05bdee (patch) | |
tree | 3c923372a346c2c43a2d4517a7d873d183d4be7a /Konzerte/2018_05_13 | |
parent | ad7019aeaf93aab3447092adf66acef10657f6d9 (diff) | |
download | Musik-68dc8ef567912ce8fed078d6bb9eb087cb05bdee.tar.xz |
Konzerte/2018_05_13: begonnen
Diffstat (limited to 'Konzerte/2018_05_13')
-rw-r--r-- | Konzerte/2018_05_13/alles.ly | 7 | ||||
-rwxr-xr-x | Konzerte/2018_05_13/make | 73 |
2 files changed, 80 insertions, 0 deletions
diff --git a/Konzerte/2018_05_13/alles.ly b/Konzerte/2018_05_13/alles.ly new file mode 100644 index 0000000..e2db2e3 --- /dev/null +++ b/Konzerte/2018_05_13/alles.ly @@ -0,0 +1,7 @@ +\version "2.19.80" + +%LOOP%\include "../../%TEIL%/%TEIL-BASE%.pre" +%LOOP%%IF '%TEIL-BASE%'='Halleluja'%\pageBreak +%LOOP%%IF '%TEIL-BASE%'='Befiehl_dem_Herren_deine_Wege'%\pageBreak +%LOOP%%IF '%TEIL-BASE%'='Denn_er_hat_seinen_Engeln_'%\pageBreak +%LOOP%%IF '%TEIL-BASE%'='Ueber_dir_wach_ein_Engel'%\pageBreak diff --git a/Konzerte/2018_05_13/make b/Konzerte/2018_05_13/make new file mode 100755 index 0000000..3ac9842 --- /dev/null +++ b/Konzerte/2018_05_13/make @@ -0,0 +1,73 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + Kyrie + Halleluja + Befiehl_dem_Herren_deine_Wege +# Die_beste_Zeit_im_Jahr_ist_mein # EG319 1-4 + Die_beste_Zeit_im_Jahr_ist_mein + Aennchen_von_Tharau + Im_Fruehling + Wie_lieblich_ist_der_Maien # EG501 + Ich_sing_dir_mein_Lied + Denn_er_hat_seinen_Engeln_ + Ueber_dir_wach_ein_Engel +# Vespergesang # FEHLT! + Hoere_nun_Herr_die_Bitten + Schoen_ist_die_Erde + Viele_verachten_die_edele_Musik +) + +rm -f *.pre + +for teil in "${teile[@]}" +do + ( + cd ../../${teil} + sed -n ' + s/^[^:]*%\.pdf.*:\s*// + T + s/%/'"${teil##*/}"'/g + p + ' Makefile | \ + tr ' ' '\n' | \ + grep '\.pre$' | \ + xargs -r make "$@" + ) +done + +{ + printf '\n\n' + cat alles.ly + printf '\n\n' +} | \ + 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 + s|%TEIL-BASE%|${teil##*/}|g + s|%IF \([^=]\+\)=\1%||g + /%IF [^=]\+=[^=]\+%/d + " + done + unset loopLines + fi + echo "${line}" + fi + done > alles.pre + +lilypond alles.pre |