diff options
author | Steven Knight <knight@baldmt.com> | 2003-01-12 19:11:26 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-01-12 19:11:26 (GMT) |
commit | 563ae5e86b7eaaf060559872c58c699e5b34d79b (patch) | |
tree | 9333c641aeb7d0a0b22d73cd0a80797924f3fa18 /bin | |
parent | 5d3b3d8891c805fe334be3cd71a2670b5c76d65a (diff) | |
download | SCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.zip SCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.tar.gz SCons-563ae5e86b7eaaf060559872c58c699e5b34d79b.tar.bz2 |
Fix small problems found by PyChecker. (Steve Leblanc)
Diffstat (limited to 'bin')
-rw-r--r-- | bin/check | 26 | ||||
-rw-r--r-- | bin/files | 55 | ||||
-rw-r--r-- | bin/makedocs | 18 |
3 files changed, 99 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 diff --git a/bin/files b/bin/files new file mode 100644 index 0000000..d4ec77a --- /dev/null +++ b/bin/files @@ -0,0 +1,55 @@ +./SCons/Action.py +./SCons/Builder.py +./SCons/Defaults.py +./SCons/Environment.py +./SCons/Errors.py +./SCons/Job.py +./SCons/Node/Alias.py +./SCons/Node/FS.py +./SCons/Node/__init__.py +./SCons/Options.py +./SCons/Platform/__init__.py +./SCons/Platform/cygwin.py +./SCons/Platform/os2.py +./SCons/Platform/posix.py +./SCons/Platform/win32.py +./SCons/Scanner/C.py +./SCons/Scanner/Fortran.py +./SCons/Scanner/Prog.py +./SCons/Scanner/__init__.py +./SCons/Script/SConscript.py +./SCons/Script/__init__.py +./SCons/Sig/MD5.py +./SCons/Sig/TimeStamp.py +./SCons/Sig/__init__.py +./SCons/Taskmaster.py +./SCons/Tool/__init__.py +./SCons/Tool/ar.py +./SCons/Tool/default.py +./SCons/Tool/dvipdf.py +./SCons/Tool/dvips.py +./SCons/Tool/g++.py +./SCons/Tool/g77.py +./SCons/Tool/gas.py +./SCons/Tool/gcc.py +./SCons/Tool/gnulink.py +./SCons/Tool/icc.py +./SCons/Tool/ifl.py +./SCons/Tool/ilink.py +./SCons/Tool/latex.py +./SCons/Tool/lex.py +./SCons/Tool/masm.py +./SCons/Tool/mingw.py +./SCons/Tool/mslib.py +./SCons/Tool/mslink.py +./SCons/Tool/msvc.py +./SCons/Tool/nasm.py +./SCons/Tool/pdflatex.py +./SCons/Tool/pdftex.py +./SCons/Tool/tar.py +./SCons/Tool/tex.py +./SCons/Tool/yacc.py +./SCons/Util.py +./SCons/Warnings.py +./SCons/__init__.py +./SCons/exitfuncs.py diff --git a/bin/makedocs b/bin/makedocs new file mode 100644 index 0000000..2278a97 --- /dev/null +++ b/bin/makedocs @@ -0,0 +1,18 @@ +#! /bin/sh + +# This script uses HappyDoc to create the HTML class documentation for +# SCons. It must be run from 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 +if [ ! -d $DEVDIR ]; then + mkdir $DEVDIR +fi + +SRCFILE=../../bin/files +happydoc -d $DEVDIR `cat $SRCFILE` |