mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 11:20:53 +01:00
Update release notes
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6524 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
077de82e57
commit
c3ae34f581
@ -93,16 +93,33 @@ Other changes in Shorewall 4.0.0 Beta 5.
|
|||||||
|
|
||||||
compiler( $objectfile )
|
compiler( $objectfile )
|
||||||
|
|
||||||
The compiler function accepts 1 argument. If it corresponds to
|
The compiler function accepts 1 argument corresponding
|
||||||
the <filename> run-line argument. If the argument is
|
to the <filename> run-line argument. If the argument is
|
||||||
false, then a check is performed; otherwise, the
|
false, then a syntax check of the configuration is
|
||||||
configuration is compiled into the named file.
|
performed; otherwise, the configuration is compiled
|
||||||
|
into the file named in the argument.
|
||||||
|
|
||||||
Compilation errors cause the compiler to raise an exception via
|
Compilation errors cause the compiler to raise an
|
||||||
die.
|
exception via die.
|
||||||
|
|
||||||
Important: The 'compiler' function may only be called
|
Important: The 'compiler' function may only be called
|
||||||
once in the block containing 'use Shorewall::Compiler'.
|
once in the block containing 'use
|
||||||
|
Shorewall::Compiler'. So you probably want to code this
|
||||||
|
as:
|
||||||
|
|
||||||
|
...
|
||||||
|
{
|
||||||
|
use Shorewall::Compiler;
|
||||||
|
|
||||||
|
eval {
|
||||||
|
configure( ... )
|
||||||
|
compiler( ... )
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $@ ) {
|
||||||
|
<compilation failed>
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Migration Considerations:
|
Migration Considerations:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user