aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-09-08 22:44:37 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-09-08 22:44:37 +0000
commit68dd4af245d435cf83100e1e26ecd22c789ef4ee (patch)
tree5f0750cec8e86776d6e7d36c697f85dd1863b76f /share
parent4447c3021ee3b5cbca87cc4bc93df76bd451e098 (diff)
downloadmsec-68dd4af245d435cf83100e1e26ecd22c789ef4ee.tar
msec-68dd4af245d435cf83100e1e26ecd22c789ef4ee.tar.gz
msec-68dd4af245d435cf83100e1e26ecd22c789ef4ee.tar.bz2
msec-68dd4af245d435cf83100e1e26ecd22c789ef4ee.tar.xz
msec-68dd4af245d435cf83100e1e26ecd22c789ef4ee.zip
add a check to be sure to avoid print statements in python files
Diffstat (limited to 'share')
-rw-r--r--share/Makefile2
1 files changed, 2 insertions, 0 deletions
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 $@