summaryrefslogtreecommitdiff
path: root/Konzerte
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-25 12:47:38 +0200
committerErich Eckner <git@eckner.net>2018-04-25 12:47:38 +0200
commit8673296574b50864006e6ac4facd22b6ec50d344 (patch)
treeb7bdb740f3d4dc6e2e8491b715450f4ffd50bd03 /Konzerte
parent3aa92b2ab1f77c8c2db9458befaa8e9615a8dad0 (diff)
downloadMusik-8673296574b50864006e6ac4facd22b6ec50d344.tar.xz
Konzerte/2018_05_26/make-permanently neu
Diffstat (limited to 'Konzerte')
-rwxr-xr-xKonzerte/2018_05_26/make-permanently28
1 files changed, 28 insertions, 0 deletions
diff --git a/Konzerte/2018_05_26/make-permanently b/Konzerte/2018_05_26/make-permanently
new file mode 100755
index 0000000..087f29e
--- /dev/null
+++ b/Konzerte/2018_05_26/make-permanently
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+while inotifywait -e DELETE_SELF $(
+ find $(
+ sed -n '
+ :a
+ \/\\$/ {
+ N
+ s/\\\n//
+ ta
+ }
+ s/^\S\+: //
+ T
+ y/ /\n/
+ p
+ ' "$(dirname "$0")/Makefile" | \
+ sed -n '
+ s,^\(\(\.\./\)\+.\+\)/[^/]\+$,\1,
+ T
+ s/[^/]*%.*$//
+ \,^\(\.\./\)*$,d
+ p
+ ' | \
+ sort -u | tee /dev/stderr
+ ) -type f
+ ); do
+ make
+done