diff options
author | Erich Eckner <git@eckner.net> | 2020-03-06 09:53:13 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-03-06 09:53:13 +0100 |
commit | d6b8fdde77ccde42be37a7e17c915befded99e43 (patch) | |
tree | 8e974cd95f6092bdc06c49368144936d27f86382 | |
parent | 0c7dfb1341f31a92587e9d1e467e1595fcb95d54 (diff) | |
download | Musik-d6b8fdde77ccde42be37a7e17c915befded99e43.tar.xz |
.meta/generiere-mks.mk: korrigiere fremdsprachige Strophen
-rw-r--r-- | .meta/generiere-mks.mk | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.meta/generiere-mks.mk b/.meta/generiere-mks.mk index f69b1d5..951d343 100644 --- a/.meta/generiere-mks.mk +++ b/.meta/generiere-mks.mk @@ -14,12 +14,13 @@ s/^/transponiert-/; \ "; \ seq 20 \ - | sed 'p;h;s/$$/E/;g;s/$$/S/'; \ + | sed 'p;h;s/$$/D/;p;g;s/$$/E/;p;g;s/$$/S/'; \ for i in {1..20}; do \ for j in {1..6}; do \ printf '%s.%s\n' "$${i}" "$${j}"; \ - printf '%sS.%s\n' "$${i}" "$${j}"; \ + printf '%sD.%s\n' "$${i}" "$${j}"; \ printf '%sE.%s\n' "$${i}" "$${j}"; \ + printf '%sS.%s\n' "$${i}" "$${j}"; \ done; \ done; \ } \ @@ -29,10 +30,10 @@ printf '\tsed " \\\n'; \ if [ -z "$${prefix##transponiert-*}" ]; then \ printf '\t\t1i define(\\`transponiert'"'"',\\`%s'"'"') \\\n' "$${prefix#transponiert-}"; \ - elif echo "$${prefix}" | grep -qx "[0-9]\+[ES]\?"; then \ - nummer=$$(echo "$${prefix}" | sed 's/[ES]$$//'); \ + elif echo "$${prefix}" | grep -qx "[0-9]\+[DES]\?"; then \ + nummer=$$(echo "$${prefix}" | sed 's/[DES]$$//'); \ printf '\t\t1i define(\\`STR_%s'"'"',\\`%s'"'"') \\\n' "$${prefix}" "$${nummer}"; \ - elif echo "$${prefix}" | grep -qx "[0-9]\+[ES]\?\.[0-9]\+"; then \ + elif echo "$${prefix}" | grep -qx "[0-9]\+[DES]\?\.[0-9]\+"; then \ printf '\t\t1i define(\\`STR_%s'"'"',\\`%s'"'"') \\\n' "$${prefix%.*}" "$${prefix#*.}"; \ else \ printf '\t\t1i define(\\`%s'"'"') \\\n' "$${prefix}"; \ |