From 68dd4af245d435cf83100e1e26ecd22c789ef4ee Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Thu, 8 Sep 2005 22:44:37 +0000 Subject: add a check to be sure to avoid print statements in python files --- share/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/Makefile b/share/Makefile index a7a208d..639324d 100644 --- a/share/Makefile +++ b/share/Makefile @@ -8,12 +8,14 @@ #--------------------------------------------------------------- MAN=../man/C/mseclib.3 +PFILES=Config.py ConfigFile.py Log.py Perms.py compile.py draksec_help.py libmsec.py man.py all: mseclib.py compile man help.pm compile: ./compile.py '/usr/share/msec/' *.py rm -f msec.pyo + @for f in $(PFILES); do if grep -q print $$f; then echo "print statement in $$f:"; grep -Hn print $$f; exit 1; fi; done mseclib.py: libmsec.py shadow.py rm -f $@ -- cgit v1.2.1