mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 06:10:42 +01:00
Fix configure.pl
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
3c09368032
commit
06588c2e4a
@ -66,10 +66,11 @@ if ( defined $vendor ) {
|
|||||||
open $rcfile, '<', $rcfilename or die "Unable to open $rcfilename for input: $!";
|
open $rcfile, '<', $rcfilename or die "Unable to open $rcfilename for input: $!";
|
||||||
|
|
||||||
while ( <$rcfile> ) {
|
while ( <$rcfile> ) {
|
||||||
next if /\s*#/;
|
next if /^\s*#/;
|
||||||
|
s/\s*#.*//;
|
||||||
die "Invalid entry ($_) in $rcfile, line $." unless /\s*(\w+)=(.*)/;
|
next if /^\s*$/;
|
||||||
|
chomp;
|
||||||
|
die "Invalid entry ($_) in $rcfilename, line $." unless /\s*(\w+)=(.*)/;
|
||||||
$options{$1} = $2;
|
$options{$1} = $2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user