summaryrefslogtreecommitdiffstats
path: root/bin/check
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-01-12 19:11:26 (GMT)
committerSteven Knight <knight@baldmt.com>2003-01-12 19:11:26 (GMT)
commit563ae5e86b7eaaf060559872c58c699e5b34d79b (patch)
tree9333c641aeb7d0a0b22d73cd0a80797924f3fa18 /bin/check
parent5d3b3d8891c805fe334be3cd71a2670b5c76d65a (diff)
downloadSCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.zip
SCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.tar.gz
SCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.tar.bz2
Fix small problems found by PyChecker. (Steve Leblanc)
Diffstat (limited to 'bin/check')
-rw-r--r--bin/check26
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