Speed up compilation

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3404 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-01-29 20:49:16 +00:00
parent d7bc2c20c2
commit 0917319ae9
2 changed files with 12 additions and 13 deletions

View File

@ -8306,16 +8306,12 @@ compile_firewall() # $1 = File Name
outfile=$1 dir=
#
# Overload a couple of functions from the library
# Overload a function from the library
#
deletechain() # $1 = name of chain
{
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
}
fix_bang() {
echo $@ | sed 's/!/! /g'
}
#
# END OVERLOADED FUNCTIONS
#

View File

@ -118,22 +118,25 @@ expandv() # $* = list of variable names
}
#
# Replace all leading "!" with "! " in the passed argument list
# Add whitespace after "!"
#
fix_bang()
{
local result=
fix_bang() {
local i;
for i in $@; do
case $i in
while [ $# -gt 0 ]; do
case $1 in
!*)
echo "! ${i#!}"
result="$result ! ${1#!}"
;;
*)
echo $i
result="$result $1"
;;
esac
shift
done
echo $result
}
#