mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-21 05:41:07 +01:00
Clean up configure.pl
- Remove blank lines at the end - Simply the handling of vendor Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e791a63671
commit
6404c57cf8
@ -59,8 +59,8 @@ my $rcfilename;
|
|||||||
if ( defined $vendor ) {
|
if ( defined $vendor ) {
|
||||||
$rcfilename = 'shorewallrc.' . $vendor;
|
$rcfilename = 'shorewallrc.' . $vendor;
|
||||||
} else {
|
} else {
|
||||||
$rcfilename = 'shorewallrc.default';
|
$rcfilename = 'shorewallrc.default';
|
||||||
$vendor = 'linux';
|
$params{HOST} = 'linux';
|
||||||
}
|
}
|
||||||
|
|
||||||
open $rcfile, '<', $rcfilename or die "Unable to open $rcfilename for input: $!";
|
open $rcfile, '<', $rcfilename or die "Unable to open $rcfilename for input: $!";
|
||||||
@ -83,10 +83,8 @@ my $outfile;
|
|||||||
|
|
||||||
open $outfile, '>', 'shorewallrc' or die "Can't open 'shorewallrc' for output: $!";
|
open $outfile, '>', 'shorewallrc' or die "Can't open 'shorewallrc' for output: $!";
|
||||||
|
|
||||||
print "HOST=$vendor\n";
|
for ( qw/ HOST
|
||||||
print $outfile "HOST=$vendor\n";
|
PREFIX
|
||||||
|
|
||||||
for ( qw/ PREFIX
|
|
||||||
SHAREDIR
|
SHAREDIR
|
||||||
LIBEXECDIR
|
LIBEXECDIR
|
||||||
PERLLIBDIR
|
PERLLIBDIR
|
||||||
@ -113,18 +111,3 @@ for ( qw/ PREFIX
|
|||||||
close $outfile;
|
close $outfile;
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user