forked from extern/shorewall_code
Remove eval stuff from compiler.pl
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6533 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7e19a3f2a4
commit
8ef47a15af
@ -25,6 +25,7 @@
|
|||||||
#
|
#
|
||||||
use strict;
|
use strict;
|
||||||
use lib '/usr/share/shorewall-perl';
|
use lib '/usr/share/shorewall-perl';
|
||||||
|
use Shorewall::Compiler;
|
||||||
use Getopt::Long;
|
use Getopt::Long;
|
||||||
|
|
||||||
sub usage() {
|
sub usage() {
|
||||||
@ -53,20 +54,9 @@ my $result = GetOptions('export' => \$export,
|
|||||||
|
|
||||||
usage unless $result && @ARGV < 2;
|
usage unless $result && @ARGV < 2;
|
||||||
|
|
||||||
eval {
|
my $options = 0;
|
||||||
use Shorewall::Compiler;
|
|
||||||
|
|
||||||
my $options = 0;
|
$options |= EXPORT if $export;
|
||||||
|
$options |= TIMESTAMP if $timestamp;
|
||||||
|
|
||||||
$options |= EXPORT if $export;
|
compiler $ARGV[0], $shorewall_dir, $verbose, $options;
|
||||||
$options |= TIMESTAMP if $timestamp;
|
|
||||||
|
|
||||||
compiler $ARGV[0], $shorewall_dir, $verbose, $options;
|
|
||||||
};
|
|
||||||
|
|
||||||
my $foo = EXPORT;
|
|
||||||
|
|
||||||
if ( $@ ) {
|
|
||||||
print STDERR $@;
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user