Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7044f485
Commit
7044f485
authored
Jan 27, 2005
by
Robert Ricci
Browse files
Add a -P option so that you can give a port name/version, overriding
the default one.
parent
8e23fa9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/boss-install.in
View file @
7044f485
...
...
@@ -208,7 +208,7 @@ use Getopt::Std;
# Handle command-line options
#
sub
usage
{
print
"
Usage:
op
s-install [-p packagedir]
\n
";
print
"
Usage:
bos
s-install [-p packagedir]
[-P portname]
\n
";
exit
(
1
);
}
...
...
@@ -217,7 +217,7 @@ my $batchmode = 0;
my
$password
;
my
%opts
;
if
(
!
getopts
("
p:bw:
",
\
%opts
))
{
if
(
!
getopts
("
P:
p:bw:
",
\
%opts
))
{
usage
();
}
if
(
defined
(
$opts
{
p
}))
{
...
...
@@ -229,6 +229,9 @@ if (defined($opts{b})) {
if
(
defined
(
$opts
{
w
}))
{
$password
=
$opts
{
w
};
}
if
(
defined
(
$opts
{
P
}))
{
$BOSS_PORT
=
$opts
{
P
};
}
if
(
@ARGV
)
{
usage
();
...
...
install/ops-install.in
View file @
7044f485
...
...
@@ -52,14 +52,14 @@ use Getopt::Std;
# Handle command-line options
#
sub
usage
{
print
"
Usage: ops-install [-b] [-p packagedir]
\n
";
print
"
Usage: ops-install [-b] [-p packagedir]
[-P portname]
\n
";
exit
(
1
);
}
my
$packagedir
=
"";
my
$batchmode
=
0
;
my
%opts
;
if
(
!
getopts
("
p:b
",
\
%opts
))
{
if
(
!
getopts
("
P:
p:b
",
\
%opts
))
{
usage
();
}
if
(
defined
(
$opts
{
p
}))
{
...
...
@@ -68,6 +68,9 @@ if (defined($opts{p})) {
if
(
defined
(
$opts
{
b
}))
{
$batchmode
=
1
;
}
if
(
defined
(
$opts
{
P
}))
{
$OPS_PORT
=
$opts
{
P
};
}
if
(
@ARGV
)
{
usage
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment