Try cmode-perl again

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5734 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-28 20:16:19 +00:00
parent a4fa639793
commit ba2dcd6d45

View File

@ -59,30 +59,6 @@ use Shorewall::Rules;
use Shorewall::Proc; use Shorewall::Proc;
use Shorewall::Proxyarp; use Shorewall::Proxyarp;
#
# Note to the reader.
#
# I use Emacs perl-mode. It's advantages are:
#
# It's color theme is visible to color-blind people like me.
# It's indentation scheme is exactly the way I like.
#
# But:
#
# It doesn't understand 'here documents'.
#
# I've tried cperl-mode. It's adavantages are:
#
# It understands 'here documents'.
#
# But:
#
# It's color theme drives my eyes crazy.
# It's indentation scheme is unfathomable.
#
# Bottom line. I use quoting techinques other than 'here documents'.
#
# #
# First stage of script generation. # First stage of script generation.
# #
@ -201,7 +177,8 @@ sub generate_script_1 {
sub compile_stop_firewall() { sub compile_stop_firewall() {
emit '# emit <<'EOF';
#
# Stop/restore the firewall after an error or because of a \'stop\' or \'clear\' command # Stop/restore the firewall after an error or because of a \'stop\' or \'clear\' command
# #
stop_firewall() { stop_firewall() {
@ -339,7 +316,7 @@ stop_firewall() {
fi fi
rm -f ${VARDIR}/proxyarp rm -f ${VARDIR}/proxyarp
'; EOF
push_indent; push_indent;