forked from libMesh/libmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot.in
55 lines (40 loc) · 959 Bytes
/
dot.in
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
#
# $Id$
# This is a wrapper for dot to create pretty class diagrams
# corresponding to the libMesh web page style
DOT=@DOT@
if test -x $DOT ; then
#
# Redefine defaults if the user has not
# specified any in these environment variables
if [ "x$DOTBGCOLOR" = "x" ]; then
DOTBGCOLOR=transparent
fi
if [ "x$DOTFILLCOLOR" = "x" ]; then
DOTFILLCOLOR=#BBBBBB
fi
if [ "x$DOTFONTCOLOR" = "x" ]; then
DOTFONTCOLOR=black
fi
if [ "x$DOTCOLOR" = "x" ]; then
DOTCOLOR=black
fi
DOTARGS=""
#
# Set the background color
DOTARGS="$DOTARGS -Gbgcolor=$DOTBGCOLOR"
#
# Set the fill color
DOTARGS="$DOTARGS -Nfillcolor=$DOTFILLCOLOR -Nstyle=filled"
#
# Set the font color
DOTARGS="$DOTARGS -Nfontcolor=$DOTFONTCOLOR"
#
# Set the default color
DOTARGS="$DOTARGS -Ncolor=$DOTCOLOR"
$DOT $DOTARGS $*
fi
# Local Variables:
# mode: shell-script
# End: