about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xredo-sources9
-rwxr-xr-xredo-targets4
2 files changed, 13 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
diff --git a/redo-targets b/redo-targets
new file mode 100755
index 0000000..f6f94ce
--- /dev/null
+++ b/redo-targets
@@ -0,0 +1,4 @@
+#!/bin/sh
+# redo-targets - list files redo can build
+
+find -name '.dep.*' | sed 's,\(.*\)/\.dep\.,\1/,' | sort