prt-auf: narrowed the pattern matching in parse_prt_conf()
This commit is contained in:
parent
704679107f
commit
e2bd920f7c
@ -249,7 +249,7 @@ sub parse_prt_conf {
|
||||
}
|
||||
}
|
||||
}
|
||||
$opkg{runscripts} = $1 if /^runscripts\s+(.*)#/;
|
||||
$opkg{runscripts} = $1 if /^runscripts\s+(yes|no)\s+#/;
|
||||
$opkg{makecommand} = $1 if /^makecommand\s+(.*)#/;
|
||||
$opkg{addcommand} = $1 if /^addcommand\s+(.*)#/;
|
||||
$opkg{removecommand} =$1 if /^removecommand\s+(.*)#/;
|
||||
@ -791,8 +791,7 @@ sub port_edit {
|
||||
}
|
||||
}
|
||||
|
||||
sub print_help {
|
||||
print <<EOF;
|
||||
sub print_help { print <<EOF;
|
||||
Usage: prt-auf <action> [options] <search term|port name>
|
||||
where the actions include:
|
||||
|
||||
@ -837,4 +836,5 @@ COMMON OPTIONS
|
||||
--cache use a cache file
|
||||
--test do not actually run pkgmk/pkgadd, just print the commands on STDOUT
|
||||
EOF
|
||||
exit;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user