forked from extern/shorewall_code
Cosmetic change to generated script
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7040 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
ddbbb6c0b6
commit
d857725333
@ -86,14 +86,15 @@ sub generate_script_1() {
|
|||||||
copy $globals{SHAREDIRPL} . 'prog.header';
|
copy $globals{SHAREDIRPL} . 'prog.header';
|
||||||
|
|
||||||
for my $exit qw/init start tcclear started stop stopped clear refresh refreshed/ {
|
for my $exit qw/init start tcclear started stop stopped clear refresh refreshed/ {
|
||||||
emit "run_${exit}_exit() {";
|
emit "\nrun_${exit}_exit() {";
|
||||||
push_indent;
|
push_indent;
|
||||||
append_file $exit or emit 'true';
|
append_file $exit or emit 'true';
|
||||||
pop_indent;
|
pop_indent;
|
||||||
emit "}\n";
|
emit '}';
|
||||||
}
|
}
|
||||||
|
|
||||||
emit ( '#',
|
emit ( '',
|
||||||
|
'#',
|
||||||
'# This function initializes the global variables used by the program',
|
'# This function initializes the global variables used by the program',
|
||||||
'#',
|
'#',
|
||||||
'initialize()',
|
'initialize()',
|
||||||
|
Loading…
Reference in New Issue
Block a user