File: drv_depgraph

package info (click to toggle)
why3 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 45,020 kB
  • sloc: xml: 185,443; ml: 111,224; ansic: 3,998; sh: 2,578; makefile: 2,568; java: 865; python: 720; javascript: 290; lisp: 205; pascal: 173
file content (20 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

cat <<EOF
digraph G {
  rankdir=RL;
  nodesep=0.4
  ranksep=0.6
  node [shape=box,margin=0.05]
EOF

for file in "$@"; do
  depends="$(sed -n -e 's/^import "\([^"]*\)"/\1/p' $file)"
  for d in $depends; do
    if test "$d" != "discrimination.gen" ; then
      echo "  \"$(basename $file)\" -> \"$d\";"
    fi
  done
done

echo "}"