#!/usr/bin/tclsh
set fn /usr/lib64/graphviz/config5
+#set fn $env(PREFIX)/lib/graphviz/config5
set f [open $fn r]
set d [read $f [file size $fn]]
close $f
proc mergealias {format} {
switch $format {
jpg - jpeg - jpe {return jpg/jpe/jpeg}
+ ps - eps {return ps/eps}
default {return $format}
}
}
}
foreach {name_iformat} [lsort [array names INAMEFORMAT]] {
foreach {name iformat} $name_iformat {break}
- if {[string equal $iformat svg]} {set color red} {set color black}
+ if {[string equal $iformat ps/eps]} {set color red} {set color black}
puts $f "\t\"i-$iformat\" -> \"i-$name-$iformat\" \[color=$color\]"
foreach {irender} [lsort -unique $INAMEFORMAT($name_iformat)] {
puts $f "\t\"i-$name-$iformat\" -> \"r-$irender\" \[color=$color\]"
- set RENDERCOLOR($irender) $color
+ if {! [string equal $color black]} {
+ set RENDERCOLOR($irender) $color
+ }
}
}
foreach {name_oformat} [lsort [array names ONAMEFORMAT]] {
{FORMAT_JPEG_VRML, "jpe:vrml", 1, &engine_vrml, NULL},
{FORMAT_JPEG_VRML, "jpg:vrml", 1, &engine_vrml, NULL},
+ {FORMAT_PS_PS, "eps:ps", 1, &engine_ps, NULL},
+ {FORMAT_PS_PS, "eps:lasi", 1, &engine_ps, NULL},
{FORMAT_PS_PS, "ps:ps", 1, &engine_ps, NULL},
{FORMAT_PS_PS, "ps:lasi", 1, &engine_ps, NULL},
{FORMAT_PSLIB_PS, "(lib):ps", 1, &engine_pslib, NULL}, /* for pslib */
{FORMAT_JPEG_MAP, "jpe:map", 1, &engine_null, NULL},
{FORMAT_JPEG_MAP, "jpg:map", 1, &engine_null, NULL},
{FORMAT_PS_MAP, "ps:map", 1, &engine_null, NULL},
+ {FORMAT_PS_MAP, "eps:map", 1, &engine_null, NULL},
{FORMAT_SVG_MAP, "svg:map", 1, &engine_null, NULL},
{FORMAT_PNG_DOT, "png:dot", 1, &engine_null, NULL},
{FORMAT_JPEG_DOT, "jpe:dot", 1, &engine_null, NULL},
{FORMAT_JPEG_DOT, "jpg:dot", 1, &engine_null, NULL},
{FORMAT_PS_DOT, "ps:dot", 1, &engine_null, NULL},
+ {FORMAT_PS_DOT, "eps:dot", 1, &engine_null, NULL},
{FORMAT_SVG_DOT, "svg:dot", 1, &engine_null, NULL},
{FORMAT_PNG_XDOT, "png:xdot", 1, &engine_xdot, NULL},
{FORMAT_JPEG_XDOT, "jpe:xdot", 1, &engine_xdot, NULL},
{FORMAT_JPEG_XDOT, "jpg:xdot", 1, &engine_xdot, NULL},
{FORMAT_PS_XDOT, "ps:xdot", 1, &engine_xdot, NULL},
+ {FORMAT_PS_XDOT, "eps:xdot", 1, &engine_xdot, NULL},
{FORMAT_SVG_XDOT, "svg:xdot", 1, &engine_xdot, NULL},
{FORMAT_SVG_SVG, "svg:svg", 1, &engine_svg, NULL},