File: make_uml.sh

package info (click to toggle)
node-mj-context-menu 0.9.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,980 kB
  • sloc: javascript: 2,173; sh: 35; makefile: 7
file content (23 lines) | stat: -rwxr-xr-x 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash

SCRIPT=`dirname $0`/..
BASE=`pwd -P`/$SCRIPT
SRC=$BASE/ts
DOCTMP=$BASE/doc/tmp
DOT=$DOCTMP/dot
DOC=$BASE/doc
SIMPLE=class-diagram-simple
SIMPLEDOT=$DOT/$SIMPLE.dot
SIMPLESVG=$DOC/$SIMPLE.svg
COMPLEX=class-diagram-complete
COMPLEXDOT=$DOT/$COMPLEX.dot
COMPLEXSVG=$DOC/$COMPLEX.svg

rm -rf $DOT
mkdir -p $DOT

node -e "require('$BASE/tools/class_parser.js'); classParser.classGraph('$SRC/', '$SIMPLEDOT'); classParser.methodGraph('$SRC/', '$COMPLEXDOT');"

dot -Tsvg $SIMPLEDOT > $SIMPLESVG
dot -Tsvg $COMPLEXDOT > $COMPLEXSVG