Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
0c285ace
Commit
0c285ace
authored
17 years ago
by
Leigh B. Stoller
Browse files
Options
Downloads
Patches
Plain Diff
Add a silent option and redirect the "dot" output to /dev/null. Not
worth seeing.
parent
641b2dce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tbsetup/template_create.in
+2
-1
2 additions, 1 deletion
tbsetup/template_create.in
tbsetup/template_graph.in
+9
-3
9 additions, 3 deletions
tbsetup/template_graph.in
with
11 additions
and
4 deletions
tbsetup/template_create.in
+
2
−
1
View file @
0c285ace
...
...
@@ -783,7 +783,8 @@ if ($modify) {
#
# Generate the graph for the template.
#
system
("
$makegraph
$guid
");
print
"
Generating graph
\n
";
system
("
$makegraph
-s
$guid
");
fatal
(
-
1
,
"
Error generating template graph.
")
if
(
$?
);
...
...
This diff is collapsed.
Click to expand it.
tbsetup/template_graph.in
+
9
−
3
View file @
0c285ace
...
...
@@ -22,9 +22,10 @@ sub usage()
"
<guid> - GUID to graph
\n
");
exit
(
-
1
);
}
my
$optlist
=
"
p:z:d
";
my
$optlist
=
"
p:z:d
s
";
my
%options
=
();
my
$debug
=
0
;
my
$silent
=
0
;
my
$prefix
=
"
/tmp/dot$$
";
my
$scale
=
1.0
;
my
$zoom
;
...
...
@@ -293,8 +294,10 @@ close(DOT);
#
# Now run dot and generate both a gif and an image map file.
#
system
("
$DOT
-Tgif -o
$giffile
$dotfile
");
system
("
$DOT
-Tcmapx -o
$imapfile
$dotfile
");
my
$redirect
=
(
$silent
?
"
> /dev/null 2>&1
"
:
"");
system
("
$DOT
-Tgif -o
$giffile
$dotfile
$redirect
");
system
("
$DOT
-Tcmapx -o
$imapfile
$dotfile
$redirect
");
#
# Grab the input data.
...
...
@@ -361,6 +364,9 @@ sub ParseArgs()
if
(
defined
(
$options
{"
d
"}))
{
$debug
=
1
;
}
if
(
defined
(
$options
{"
s
"}))
{
$silent
=
1
;
}
if
(
defined
(
$options
{"
z
"}))
{
$zoom
=
$options
{"
z
"};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment