Author: jfs
Date: 2007-11-08 02:03:10 +0100 (Thu, 08 Nov 2007)
New Revision: 546
Modified:
trunk/openvas-plugins/audit/audit-plugins
Log:
Do not look for files in svn dirs
Modified: trunk/openvas-plugins/audit/audit-plugins
===================================================================
--- trunk/openvas-plugins/audit/audit-plugins 2007-11-07 15:15:42 UTC (rev
545)
+++ trunk/openvas-plugins/audit/audit-plugins 2007-11-08 01:03:10 UTC (rev
546)
@@ -61,11 +61,11 @@
# since it might have been restored from free sources
if [ ! -e "$SCRIPTDIR/$includef" ] ; then
echo -n "Checking for use of $includef..."
- total=`grep -rl $includef $SCRIPTDIR |grep -v $includef | wc -l`
+ total=`grep -rl --exclude-dir=.svn $includef $SCRIPTDIR |grep -v
$includef | wc -l`
if [ -n "$total" ] && [ "$total" -ne 0 ] ; then
echo
echo "$total files depend on this NON-FREE include file:"
- grep -rl $includef $SCRIPTDIR |grep -v $includef
+ grep -rl --exclude-dir=.svn $includef $SCRIPTDIR |grep -v
$includef
echo
count=$(($count+$total))
fi
@@ -84,7 +84,7 @@
count=0
# This regexp is bound to find non-free plugins:
-for plugin in `egrep -rli "script_copyright.*Tenable.*" $SCRIPTDIR`; do
+for plugin in `egrep -rli --exclude-dir=.svn "script_copyright.*Tenable.*"
$SCRIPTDIR`; do
basename=`basename $plugin`
if [ ! -e non-free-false-positives ] || ! grep -q "^$basename"
non-free-false-positives; then
if egrep -iq '(c).*Tenable Network Security' "$plugin"; then
@@ -99,7 +99,7 @@
fi
done
# This regexp might have false positives
-for plugin in `egrep -rli "\(c\).*Tenable.*Network.*Security" $SCRIPTDIR`; do
+for plugin in `egrep -rli --exclude-dir=.svn
"\(c\).*Tenable.*Network.*Security" $SCRIPTDIR`; do
basename=`basename $plugin`
if [ ! -e non-free-false-positives ] || ! grep -q "^$basename"
non-free-false-positives; then
echo "POSSIBLE NON-FREE plugin $plugin found"
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits