mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-19 01:37:17 +01:00
really fixed #869 "compile rule" should also print the comment. Printing rule comment in the compiler output in the single rule compile mode when firewall object is configured to use iptables-restore. Code that prints rule label and comment has been unified for compilers for all firewall platforms.
13 lines
392 B
Bash
Executable File
13 lines
392 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
DIFFCMD="diff -C 5 -c -b -B -w -I \"# Generated\" -I 'Activating ' -I '# Firewall Builder fwb_ipf v' -I 'Can not find file' -I '====' -I 'log '"
|
|
|
|
for f in $(ls *.fw.orig *.conf.orig)
|
|
do
|
|
V="$f <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
|
echo "echo \"$V\" | cut -c1-72"
|
|
new_f=$(echo $f | sed 's/.orig//')
|
|
echo "$DIFFCMD $f $new_f"
|
|
done
|