diff options
author | Erich Eckner <git@eckner.net> | 2020-02-06 22:49:51 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-02-06 22:49:51 +0100 |
commit | 507f329c17fde68f1c4d15056db1e6be85264bdb (patch) | |
tree | 815560b973d79313a16c806840f5bea63a442d8e | |
parent | a2875932804644c5c1b0acf5284fceccf6e613a5 (diff) | |
download | Musik-507f329c17fde68f1c4d15056db1e6be85264bdb.tar.xz |
.meta/find-extras: finde Transpositionen
-rwxr-xr-x | .meta/find-extras | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/.meta/find-extras b/.meta/find-extras index 3b8033c..d1b16b3 100755 --- a/.meta/find-extras +++ b/.meta/find-extras @@ -1,17 +1,21 @@ #!/bin/bash -find . -name '*.ly' -exec sed ' - s/^.*\bifdef(`\([^'"'"']\+\)'"'"',.*$/\1/ - t - d -' '{}' + \ +{ + find . -name '*.ly' -exec sed ' + s/^.*\bifdef(`\([^'"'"']\+\)'"'"',.*$/\1/ + t + d + ' '{}' + \ + | sort -u \ + | sed ' + s/^STR_// + t + /^mit-/ p + d + ' + find . -name '*.ly' -exec grep -qwF 'transponiert' {} + -printf 'transponiert-c\n' +} \ | sort -u \ -| sed ' - s/^STR_// - t - /^mit-/ p - d -' \ | tr '\n' '-' \ | sed ' s@-$@@ |