forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgraphall
More file actions
executable file
·30 lines (30 loc) · 767 Bytes
/
graphall
File metadata and controls
executable file
·30 lines (30 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
#
# Copyright The IETF Trust 2007, All Rights Reserved
#
# Requires modelviz.py from
# http://code.djangoproject.com/wiki/DjangoGraphviz
#
PYTHONPATH=`dirname $PWD`
export PYTHONPATH
DJANGO_SETTINGS_MODULE=ietf.settings
export DJANGO_SETTINGS_MODULE
for d in *
do
if grep models.Model $d/models.py > /dev/null 2>&1
then
python modelviz.py $d
fi
done > models-base.dot
unflatten -f -l 10 models-base.dot | gvpr -c '
BEG_G {
node_t title = node($G, "title");
title.shape="parallelogram";
string model = $G.name;
model = sub(model, "^ietf.");
model = sub(model, ".models$");
title.label = model;
title.fontsize = 24;
}
' > models.dot
dot -Tps -Gsize=10.5,8.0 -Gmargin=0.25 -Gratio=auto -Grotate=90 models.dot | sed -e 's/ Bold/-Bold/' > models.ps