3 # This script runs pychecker on the SCons source and creates a file called
4 # checks.txt with the results. It must be run in the src/engine directory.
7 if [ "$base" != "engine" ]; then
8 echo "You must run this script from the engine directory."
12 DEVDIR=../../doc/developer
13 SRCFILE=../../bin/files
17 for f in `cat $SRCFILE` ; do
19 echo " --- $f ---" >> $CHKFILE
20 env PYTHONPATH=. pychecker -T -z -Z --deprecated $f >> $CHKFILE
23 if [ -e $CHKFILE ]; then
24 sed -e "s|$PWD/||" $CHKFILE > /tmp/tmpchk
25 mv -f /tmp/tmpchk $CHKFILE