diff options
Diffstat (limited to 'bin/check')
-rw-r--r-- | bin/check | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/check b/bin/check new file mode 100644 index 0000000..f32494e --- /dev/null +++ b/bin/check @@ -0,0 +1,26 @@ +#! /bin/sh + +# This script runs pychecker on the SCons source and creates a file called +# checks.txt with the results. It must be run in the src/engine directory. + +base=`basename $PWD` +if [ "$base" != "engine" ]; then + echo "You must run this script from the engine directory." + exit +fi + +DEVDIR=../../doc/developer +SRCFILE=../../bin/files +CHKFILE=checks.txt + +rm -f $CHKFILE +for f in `cat $SRCFILE` ; do + echo >> $CHKFILE + echo " --- $f ---" >> $CHKFILE + env PYTHONPATH=. pychecker -T -z -Z --deprecated $f >> $CHKFILE +done + +if [ -e $CHKFILE ]; then + sed -e "s|$PWD/||" $CHKFILE > /tmp/tmpchk + mv -f /tmp/tmpchk $CHKFILE +fi |