diff options
author | Erich Eckner <git@eckner.net> | 2020-01-24 09:58:18 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-24 09:58:18 +0100 |
commit | d54cfb1a2c538a55c64e022c6d30f7e3206d355f (patch) | |
tree | fa30b7b4af9f19561a1e7e7f6f694f8773b21f42 | |
parent | b826a2168c5d488197fca83ac7955a25ab5fb913 (diff) | |
download | Musik-d54cfb1a2c538a55c64e022c6d30f7e3206d355f.tar.xz |
.meta/generiere-mks.mk: englische und schwedische Strophen auswählbar machen
-rw-r--r-- | .meta/generiere-mks.mk | 5 |
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}"; \ |