From a5a7d5381995dfc5d8d8be3e0bbe0a028ecb1ad2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 24 Aug 2017 14:50:59 +0200 Subject: Konzert 2017_12_09 neu --- Konzerte/2017_12_09/alles.ly | 4 ++++ Konzerte/2017_12_09/make | 54 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 Konzerte/2017_12_09/alles.ly create mode 100755 Konzerte/2017_12_09/make (limited to 'Konzerte/2017_12_09') 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 -- cgit v1.2.3-70-g09d2