about summary refs log tree commit diff
path: root/redo-sources
diff options
context:
space:
mode:
Diffstat (limited to 'redo-sources')
-rwxr-xr-xredo-sources9
1 files changed, 9 insertions, 0 deletions
diff --git a/redo-sources b/redo-sources
new file mode 100755
index 0000000..fd1bf07
--- /dev/null
+++ b/redo-sources
@@ -0,0 +1,9 @@
+#!/bin/sh
+# redo-sources - list dependencies which are not targets
+
+find -name '.dep.*' | xargs grep -h '^=' | cut -c84- |
+while read f; do
+	[ -e "$f" ] &&
+	! [ -e "$(printf '%s' "$f" | sed 's,\(.*/\)\|,\1.dep.,')" ] &&
+        printf '%s\n' "$f"
+done | sort -u