diff options
author | Erich Eckner <git@eckner.net> | 2019-05-02 21:56:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-05-02 21:56:04 +0200 |
commit | 22d3c71df8e36725dab0b2dc313f892f4296f61e (patch) | |
tree | d138d54b9265d2e771c26428d1ac7de97f82c1c6 /Komm_Heilger_Geist | |
parent | fd5be239f996f828e5dbc8254e8133cfbe156893 (diff) | |
download | Musik-22d3c71df8e36725dab0b2dc313f892f4296f61e.tar.xz |
Komm_Heilger_Geist: Strophen konfigurierbar
Diffstat (limited to 'Komm_Heilger_Geist')
-rwxr-xr-x | Komm_Heilger_Geist/Komm_Heilger_Geist.ly | 6 | ||||
-rw-r--r-- | Komm_Heilger_Geist/Makefile | 12 |
2 files changed, 14 insertions, 4 deletions
diff --git a/Komm_Heilger_Geist/Komm_Heilger_Geist.ly b/Komm_Heilger_Geist/Komm_Heilger_Geist.ly index fd81b4a..d931e36 100755 --- a/Komm_Heilger_Geist/Komm_Heilger_Geist.ly +++ b/Komm_Heilger_Geist/Komm_Heilger_Geist.ly @@ -28,9 +28,9 @@ \new Staff << \altMelodie \new Lyrics = one \lyricsto refrain \textRefrain - \context Lyrics = one \lyricsto verse \textI - \new Lyrics = two \lyricsto verse \textII - \new Lyrics = three \lyricsto verse \textIII + \context Lyrics = one \lyricsto verse \textI %STR_1% + \new Lyrics = two \lyricsto verse \textII %STR_2% + \new Lyrics = three \lyricsto verse \textIII %STR_3% >> \new Staff << diff --git a/Komm_Heilger_Geist/Makefile b/Komm_Heilger_Geist/Makefile index ef6dedf..6cd1c47 100644 --- a/Komm_Heilger_Geist/Makefile +++ b/Komm_Heilger_Geist/Makefile @@ -1,4 +1,5 @@ CURDOC=$(shell basename "$(CURDIR)") +STROPHEN=[1-3] ifeq ($(FUER),ewe) SPEZIFISCH=\#(set! paper-alist (cons '(\"kindle\" . (cons (* 210 mm) (* 130 mm))) paper-alist))\n\#(set-default-paper-size \"kindle\") @@ -16,7 +17,16 @@ Clean: clean rm -f *.pdf *.midi %.pre: %.ly - sed "s@%spezifisch%@$(SPEZIFISCH)@" "$<" > "$@" + sed " \ + s@%spezifisch%@$(SPEZIFISCH)@ ; \ + s@%spezifisch%@$(SPEZIFISCH)@ ; \ + /%STR_\($(STROPHEN)\)%/{ \ + s/%[A-Z_0-9]\+%//; \ + p; \ + d; \ + }; \ + /%[A-Z_0-9]\+%/d \ + " "$<" > "$@" %.pdf: %.pre *.ly lilypond $< |