summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-24 09:58:18 +0100
committerErich Eckner <git@eckner.net>2020-01-24 09:58:18 +0100
commitd54cfb1a2c538a55c64e022c6d30f7e3206d355f (patch)
treefa30b7b4af9f19561a1e7e7f6f694f8773b21f42
parentb826a2168c5d488197fca83ac7955a25ab5fb913 (diff)
downloadMusik-d54cfb1a2c538a55c64e022c6d30f7e3206d355f.tar.xz
.meta/generiere-mks.mk: englische und schwedische Strophen auswählbar machen
-rw-r--r--.meta/generiere-mks.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/.meta/generiere-mks.mk b/.meta/generiere-mks.mk
index 70af294..18196f5 100644
--- a/.meta/generiere-mks.mk
+++ b/.meta/generiere-mks.mk
@@ -13,7 +13,8 @@
s/^hes/b/; \
s/^/transponiert-/; \
"; \
- seq 20; \
+ seq 20 \
+ | sed 'p;h;s/$$/E/;g;s/$$/S/'; \
} \
| while read -r prefix; do \
printf '%%-%s.pre: ' "$${prefix}"; \
@@ -21,7 +22,7 @@
printf '\tsed " \\\n'; \
if [ -z "$${prefix##transponiert-*}" ]; then \
printf '\t\t1i define(\\`transponiert'"'"',%s) \\\n' "$${prefix#transponiert-}"; \
- elif echo "$${prefix}" | grep -qx "[0-9]\+"; then \
+ elif echo "$${prefix}" | grep -qx "[0-9]\+[ES]\?"; then \
printf '\t\t1i define(\\`STR_%s'"'"') \\\n' "$${prefix}"; \
else \
printf '\t\t1i define(\\`%s'"'"') \\\n' "$${prefix}"; \