summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-18 11:25:38 +0200
committerErich Eckner <git@eckner.net>2019-08-18 11:25:38 +0200
commit3ab83916463cb7bfc64b5032750be0455ea8299d (patch)
tree5eff1817a382b9c5e0fbc3be9be506ef477912bc
parentc63ae0bc4ca7997e4c56b48cd07aa426ffd7a5ac (diff)
downloadMusik-3ab83916463cb7bfc64b5032750be0455ea8299d.tar.xz
Konzerte/2019_09_07 neu
-rw-r--r--Konzerte/2019_09_07/alles.ly10
-rwxr-xr-xKonzerte/2019_09_07/make92
2 files changed, 102 insertions, 0 deletions
diff --git a/Konzerte/2019_09_07/alles.ly b/Konzerte/2019_09_07/alles.ly
new file mode 100644
index 0000000..f997dae
--- /dev/null
+++ b/Konzerte/2019_09_07/alles.ly
@@ -0,0 +1,10 @@
+\version "2.19.80"
+\paper {
+ first-page-number = #1
+ print-first-page-number = ##t
+}
+
+%LOOP%\include "../../%TEIL%/%TEIL-BASE%.pre"
+%LOOP%%IF '%TEIL-BASE%'='Schmueckt_das_Fest_mit_Maien'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Komm_Gott_Schoepfer_Heiliger_Geist'%\pageBreak
+%LOOP%%IF '%TEIL-BASE%'='Der_Maie_bringt_uns_der_Bluemlein_viel'%\pageBreak
diff --git a/Konzerte/2019_09_07/make b/Konzerte/2019_09_07/make
new file mode 100755
index 0000000..db1779e
--- /dev/null
+++ b/Konzerte/2019_09_07/make
@@ -0,0 +1,92 @@
+#!/bin/bash
+
+set -e
+
+cd "$(dirname "$0")"
+
+teile_params=(
+ 'Lobe_den_Herren_:TRANSPOSE=b, OBERSTIMME=1 STROPHEN=[124]'
+ 'Auf_meinen_lieben_Gott'
+ 'Nun_danket_alle_Gott__'
+ 'Du_bists_dem_Ruhm_und_Ehre_gebuehret'
+ 'Die_Himmel_ruehmen'
+ 'Wachet_auf_ruft_uns_die_Stimme'
+ 'Brunnquell_aller_Gueter'
+)
+
+rm -f *.pre
+
+for teil_params in "${teile_params[@]}"
+do
+ if [ -z ${teil_params%%'"'*} ]; then
+ continue
+ fi
+ teil="${teil_params%%:*}"
+ params="${teil_params#${teil}}"
+ params="${params#:}"
+ (
+ cd ../../${teil}
+ sed -n '
+ s/^\([^:]*%\|'"${teil##*/}"'\)\.pdf.*:\s*//
+ T
+ :a
+ /\\$/ {
+ N
+ s/\\\n/ /
+ ta
+ }
+ s/\n.*$//
+ s/%/'"${teil##*/}"'/g
+ p
+ ' Makefile | \
+ tr ' ' '\n' | \
+ grep '\.pre$' | \
+ xargs -r make ${params} "$@"
+ )
+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_param in "${teile_params[@]}"
+ do
+ teil="${teil_param%%:*}"
+ echo "${loopLines}" | \
+ if [ -z ${teil%%'"'*} ]; then
+ sed '
+ s/\\include "[^"]*"/\\markup { '"${teil_param}"'" }/g
+ '
+ else
+ cat
+ fi | \
+ sed "
+ s|%TEIL%|${teil}|g
+ s|%TEIL-BASE%|${teil##*/}|g
+ /%IF \([^=%]\+\)!=\1%/d
+ s|%IF [^=%]\+!=[^=%]\+%||g
+ s|%IF \([^=%]*[^=!%]\)=\1%||g
+ /%IF [^=%]\+=[^=%]\+%/d
+ "
+ done
+ unset loopLines
+ fi
+ echo "${line}"
+ fi
+ done > alles.pre
+
+lilypond alles.pre
+
+#ps2pdf -sPAPERSIZE=a4 - empty.pdf </dev/null
+#pdfunite empty.pdf alles.pdf alles_.pdf
+#mv alles_.pdf alles.pdf