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