diff options
author | Erich Eckner <git@eckner.net> | 2020-01-29 14:17:35 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-01-29 14:17:35 +0100 |
commit | a09a51d8ba9c09285c381b3e1e456671c512044a (patch) | |
tree | fb370e4e341d5b2cdb48534b19fec4d14bca1f15 /.meta/generiere-mks.mk | |
parent | b61dbded2b193c01530dd15be97f59fc76d500dd (diff) | |
download | Musik-a09a51d8ba9c09285c381b3e1e456671c512044a.tar.xz |
.meta/generiere-mks.mk: fremdsprachige Strophen dürfen auch umnummeriert werden
Diffstat (limited to '.meta/generiere-mks.mk')
-rw-r--r-- | .meta/generiere-mks.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.meta/generiere-mks.mk b/.meta/generiere-mks.mk index bbd977f..1416780 100644 --- a/.meta/generiere-mks.mk +++ b/.meta/generiere-mks.mk @@ -16,8 +16,10 @@ seq 20 \ | sed 'p;h;s/$$/E/;g;s/$$/S/'; \ for i in {1..20}; do \ - for j in {1..20}; do \ + for j in {1..6}; do \ printf '%s.%s\n' "$${i}" "$${j}"; \ + printf '%sS.%s\n' "$${i}" "$${j}"; \ + printf '%sE.%s\n' "$${i}" "$${j}"; \ done; \ done; \ } \ @@ -29,7 +31,7 @@ printf '\t\t1i define(\\`transponiert'"'"',%s) \\\n' "$${prefix#transponiert-}"; \ elif echo "$${prefix}" | grep -qx "[0-9]\+[ES]\?"; then \ printf '\t\t1i define(\\`STR_%s'"'"',\\`%s'"'"') \\\n' "$${prefix}" "$${prefix}"; \ - elif echo "$${prefix}" | grep -qx "[0-9]\+\.[0-9]\+"; then \ + elif echo "$${prefix}" | grep -qx "[0-9]\+[ES]\?\.[0-9]\+"; then \ printf '\t\t1i define(\\`STR_%s'"'"',\\`%s'"'"') \\\n' "$${prefix%.*}" "$${prefix#*.}"; \ else \ printf '\t\t1i define(\\`%s'"'"') \\\n' "$${prefix}"; \ |