mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
Remove one step in a pipe-line
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4776 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
4ce4363e00
commit
8bed6b458f
@ -4905,14 +4905,11 @@ __EOF__
|
|||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hack to fix up generated object
|
# Post-process generated script
|
||||||
#
|
#
|
||||||
prepare_source()
|
mycat()
|
||||||
{
|
{
|
||||||
awk \
|
awk 'BEGIN {blnk=0;}; /^\s*$/ {blnk=1; next; }; { if (blnk == 1 ) { print ""; blnk=0; }; print; }' $*
|
||||||
'BEGIN {blnk=0;}; \
|
|
||||||
/^\s*$/ {blnk=1; next; }; \
|
|
||||||
{ if (blnk == 1 ) print ""; blnk=0; print; }' -
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -5635,7 +5632,7 @@ __EOF__
|
|||||||
progress_message3 "Shorewall configuration verified"
|
progress_message3 "Shorewall configuration verified"
|
||||||
else
|
else
|
||||||
INDENT=
|
INDENT=
|
||||||
cat $(find_file prog.header) $OUTPUT $(find_file prog.footer) | prepare_source > $outfile
|
mycat $(find_file prog.header) $OUTPUT $(find_file prog.footer) > $outfile
|
||||||
chmod 700 $outfile
|
chmod 700 $outfile
|
||||||
if [ -n "$EXPORT" ]; then
|
if [ -n "$EXPORT" ]; then
|
||||||
exec 3>${outfile}.conf
|
exec 3>${outfile}.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user