summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-04-06 16:12:57 +0200
committerMatthias Beyer <mail@beyermatthias.de>2018-04-06 16:12:57 +0200
commit5cd4678ff63c7ac7451a430fa58809fa13b7a36a (patch)
tree24be6a39221ced233a3789cfb3977c3526ba3a7d /scripts
parentbfb912418564e9e9f5ae33bb6277f0c1e7d9c305 (diff)
Add script to check which imag commands changed since they were last installed
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/which-commands-changed12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/which-commands-changed b/scripts/which-commands-changed
new file mode 100755
index 00000000..62a48593
--- /dev/null
+++ b/scripts/which-commands-changed
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# Find all imag commands which changed since last install
+
+imag versions |\
+grep "imag-" |\
+sed 's,v.*-g,,' |\
+while read binary hash; do
+ git diff "$hash..master" --name-only | \
+ grep "$binary" >/dev/null 2>/dev/null && \
+ echo "$binary changed since last install (was $hash)"
+done