forked from extern/shorewall_code
Make build44 work without INIT globals initialization
This commit is contained in:
parent
d8cc9c5c92
commit
bc1dbb3d4e
@ -504,10 +504,10 @@ if [ -n "${BUILDTARBALL}${BUILDRPM}" ]; then
|
||||
fgrep VERSION=$VERSION $SHOREWALLDIR/install.sh > /dev/null 2>&1 || fatal_error "install.sh has wrong version"
|
||||
fgrep VERSION=$VERSION $SHOREWALLDIR/uninstall.sh > /dev/null 2>&1 || fatal_error "uninstall.sh has wrong version"
|
||||
if [ -d $SHOREWALLDIR/Perl ]; then
|
||||
[ $(eval perl -e "'use lib \"$SHOREWALLDIR/Perl\"; use Shorewall::Config qw(:internal); print \"\$globals{VERSION}\n\"'") = $VERSION ] || \
|
||||
[ $(eval perl -e "'use lib \"$SHOREWALLDIR/Perl\"; use Shorewall::Config qw(:internal); Shorewall::Config::initialize(4); print \"\$globals{VERSION}\n\"'") = $VERSION ] || \
|
||||
fatal_error "Perl Config.pm has wrong version"
|
||||
else
|
||||
[ $(eval perl -e "'use lib \"$SHOREWALLDIR\"; use Shorewall::Config qw(:internal); print \"\$globals{VERSION}\n\"'") = $VERSION ] || \
|
||||
[ $(eval perl -e "'use lib \"$SHOREWALLDIR\"; use Shorewall::Config qw(:internal); Shorewall::Config::initialize(4); print \"\$globals{VERSION}\n\"'") = $VERSION ] || \
|
||||
fatal_error "Perl Config.pm has wrong version"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user