Improve lddot a bit more.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 2 Sep 2007 22:42:02 +0000 (22:42 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Sun, 2 Sep 2007 22:42:02 +0000 (22:42 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/utils@1103 959494ce-11ee-0310-bf91-de5d638817bd

lddot

diff --git a/lddot b/lddot
index e9c5133..1748edc 100755 (executable)
--- a/lddot
+++ b/lddot
@@ -41,7 +41,7 @@ has() {
 excluded() {
     for obj in "${exclude[@]}"; do
        if [ -d "$obj" ] && [[ "$1" == "$obj"* ]]; then return 0; fi
 excluded() {
     for obj in "${exclude[@]}"; do
        if [ -d "$obj" ] && [[ "$1" == "$obj"* ]]; then return 0; fi
-       if [ "$1" = "$obj" ]; then return 0; fi
+       if [ "$1" -ef "$obj" ]; then return 0; fi
     done
     return 1
 }
     done
     return 1
 }
@@ -107,6 +107,7 @@ for bin in "${programs[@]}"; do
        rv=1
        continue
     fi
        rv=1
        continue
     fi
+    echo "\"$bin\" [ shape=box ];"
     if ! examine "$bin"; then rv=1; fi
 done
 echo "}"
     if ! examine "$bin"; then rv=1; fi
 done
 echo "}"