about summary refs log tree commit diff
path: root/redo-sources
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 /redo-sources
parent17b6611ae5b36726c41430874427307f39bd8b6e (diff)
downloadredo-c-3697457c77dbe602050a642602b8dde4416f5e3d.tar.gz
redo-c-3697457c77dbe602050a642602b8dde4416f5e3d.tar.xz
redo-c-3697457c77dbe602050a642602b8dde4416f5e3d.zip
Add redo-sources and redo-targets
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