diff options
author | Erich Eckner <git@eckner.net> | 2017-12-15 20:56:52 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-12-15 20:56:52 +0100 |
commit | ebc6c5bf27a8f315617d587454029b87b52e9c57 (patch) | |
tree | 4486853f2c430ff4440fbf72509b8082f215b20e /Konzerte/2018_01_07/make | |
parent | ad9b7ed4032d274865766618af6b3e3578ab70c0 (diff) | |
download | Musik-ebc6c5bf27a8f315617d587454029b87b52e9c57.tar.xz |
Konzerte/2018_01_07: diverse Optimierungen am Layout und Stil
Diffstat (limited to 'Konzerte/2018_01_07/make')
-rwxr-xr-x | Konzerte/2018_01_07/make | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/Konzerte/2018_01_07/make b/Konzerte/2018_01_07/make index 925be5a..4cba25b 100755 --- a/Konzerte/2018_01_07/make +++ b/Konzerte/2018_01_07/make @@ -38,29 +38,34 @@ do ) done -while read -r line -do - if [[ "${line}" = '%LOOP%'* ]] - then - loopLines="${loopLines} -${line#%LOOP%}" - else - if [ -n "${loopLines}" ] +{ + printf '\n\n' + cat alles.ly + printf '\n\n' +} | \ + while read -r line + do + if [[ "${line}" = '%LOOP%'* ]] 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 + 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 - echo "${line}" - fi -done < alles.ly > alles.pre + done > alles.pre lilypond alles.pre |