about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-09-04 21:10:39 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-09-04 21:10:39 +0200
commit3697457c77dbe602050a642602b8dde4416f5e3d (patch)
treead094d59df1cb50104c6f9321faa11cfa13baf9b
parent17b6611ae5b36726c41430874427307f39bd8b6e (diff)
downloadredo-c-3697457c77dbe602050a642602b8dde4416f5e3d.tar.gz
redo-c-3697457c77dbe602050a642602b8dde4416f5e3d.tar.xz
redo-c-3697457c77dbe602050a642602b8dde4416f5e3d.zip
Add redo-sources and redo-targets
-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