diff options
author | Erich Eckner <git@eckner.net> | 2017-08-24 14:50:59 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-24 14:50:59 +0200 |
commit | a5a7d5381995dfc5d8d8be3e0bbe0a028ecb1ad2 (patch) | |
tree | 7fbee1891d8cb1ee6f2d3820ccbfdbc33c804a06 /Konzerte/2017_12_09 | |
parent | 1652a92a6a565c95643f83b8c0daa81ac55f99a4 (diff) | |
download | Musik-a5a7d5381995dfc5d8d8be3e0bbe0a028ecb1ad2.tar.xz |
Konzert 2017_12_09 neu
Diffstat (limited to 'Konzerte/2017_12_09')
-rw-r--r-- | Konzerte/2017_12_09/alles.ly | 4 | ||||
-rwxr-xr-x | Konzerte/2017_12_09/make | 54 |
2 files changed, 58 insertions, 0 deletions
diff --git a/Konzerte/2017_12_09/alles.ly b/Konzerte/2017_12_09/alles.ly new file mode 100644 index 0000000..1070d4e --- /dev/null +++ b/Konzerte/2017_12_09/alles.ly @@ -0,0 +1,4 @@ +\version "2.19.65" + +%LOOP%\include "../../%TEIL%" + diff --git a/Konzerte/2017_12_09/make b/Konzerte/2017_12_09/make new file mode 100755 index 0000000..364bb9f --- /dev/null +++ b/Konzerte/2017_12_09/make @@ -0,0 +1,54 @@ +#!/bin/bash + +set -e + +cd "$(dirname "$0")" + +teile=( + Nun_komm_der_Heiden_Heiland_/parts/I.ly + Nun_komm_der_Heiden_Heiland_/parts/V.ly + Vom_Himmel_kam_der_Engel_Schar/parts/I.ly + Vom_Himmel_kam_der_Engel_Schar/parts/VI.ly + Vom_Himmel_hoch_da_komm_ich_her.pre + Messias/parts/III.ly + Messias/parts/XII.ly + Messias/parts/XV.ly + Messias/parts/XLII.ly +) + +rm -f *.pre + +for teil in "${teile[@]}"; do + if [ "${teil%.pre}.pre" = "${teil}" ]; then + ( + cd "../../${teil%.pre}" + make "$@" "${teil}" + ) + fi +done + +while read -r line +do + if [ "%LOOP%${line#%LOOP%}" = "${line}" ]; then + loopLines="${loopLines} +${line#%LOOP%}" + else + if [ -n "${loopLines}" ]; then + for teil in "${teile[@]}"; do + if echo "${teil}" | grep -qF '/'; then + datei="${teil}" + else + datei="${teil%.*}/${teil}" + fi + echo "${loopLines}" | \ + sed " + s|%TEIL%|${datei}|g + " + done + unset loopLines + fi + echo "${line}" + fi +done < alles.ly > alles.pre + +lilypond alles.pre |