summaryrefslogtreecommitdiff
path: root/bin/show-dependencies
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-08-02 09:10:55 +0200
committerErich Eckner <git@eckner.net>2017-08-02 09:10:55 +0200
commit1730c900834d2c221d719e889b507c9f2c680d40 (patch)
treec3c7b885a247f5ae4c5d61e32519c00c65189f5d /bin/show-dependencies
parent741b08359ccf5cfacf4de1acf599b4cf88551a98 (diff)
downloadbuilder-1730c900834d2c221d719e889b507c9f2c680d40.tar.xz
bin/show-dependencies: delete spurious pngs
Diffstat (limited to 'bin/show-dependencies')
-rwxr-xr-xbin/show-dependencies16
1 files changed, 13 insertions, 3 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index 730442d..26b96a0 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -11,10 +11,20 @@ if [ $# -eq 0 ]; then
)"
broken="$(
echo "${broken}" | \
- sed 's|\(\.[^.]\+\)\{4\}$||'
+ sed 's|\(\.[^.]\+\)\{4\}$||' | \
+ sort -u
)"
- "$0" ${broken}
- exit $?
+ "$0" ${broken} || \
+ exit $?
+ (
+ ls "${graphs_directory}"
+ printf '%s.png\n' ${broken} ${broken}
+ ) | \
+ sort | \
+ uniq -u | \
+ sed "s|^|${graphs_directory}/|" | \
+ xargs -r rm
+ exit
fi
if ps ax | \