summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-06 22:49:51 +0100
committerErich Eckner <git@eckner.net>2020-02-06 22:49:51 +0100
commit507f329c17fde68f1c4d15056db1e6be85264bdb (patch)
tree815560b973d79313a16c806840f5bea63a442d8e
parenta2875932804644c5c1b0acf5284fceccf6e613a5 (diff)
downloadMusik-507f329c17fde68f1c4d15056db1e6be85264bdb.tar.xz
.meta/find-extras: finde Transpositionen
-rwxr-xr-x.meta/find-extras26
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@-$@@