diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-10 05:40:39 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-10 05:40:39 -0500 |
commit | 7fbe0867fa234ee8f7c9a6bf4bd600ef9ff326a3 (patch) | |
tree | a158826e8f4c94290b7a44cc20d933e2b57513ce | |
parent | e6a3e0451a21fc1b5f248f5f2bcbbacf5e905d68 (diff) | |
download | deheader-7fbe0867fa234ee8f7c9a6bf4bd600ef9ff326a3.tar.gz deheader-7fbe0867fa234ee8f7c9a6bf4bd600ef9ff326a3.tar.bz2 deheader-7fbe0867fa234ee8f7c9a6bf4bd600ef9ff326a3.tar.xz deheader-7fbe0867fa234ee8f7c9a6bf4bd600ef9ff326a3.zip |
Make the script clean up after itself better.
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | deheader | 2 | ||||
-rw-r--r-- | test/README | 4 |
4 files changed, 7 insertions, 2 deletions
@@ -20,9 +20,11 @@ regress: @echo "Testing deheader: no output is good news." @deheader -v -v test >/tmp/regress @diff -u test/regress.chk /tmp/regress + @rm -f test/*.o @rm /tmp/regress makeregress: @deheader -v -v test >test/regress.chk + @rm -f test/*.o pychecker: @ln -f deheader deheader.py @@ -1,6 +1,7 @@ deheader project news 0.4 @ + Script now removes generated objects. Duplicate inclusions are now detected. 0.3 @ 2010-12-09 @@ -203,6 +203,8 @@ def testcompile(source, maker, msg="", verbosity=0): if verbosity >= PROGRESS_DEBUG: print "deheader: %s%s %s." \ % (sourcefile, msg, explain) + if os.path.exists(derived): + os.remove(derived) return (status, end - start) def c_analyze(sourcefile, maker, includes, requires, verbosity): diff --git a/test/README b/test/README index 215687e..5eb212e 100644 --- a/test/README +++ b/test/README @@ -1,2 +1,2 @@ -This directory contains C sourcfiles intended to terst deheder, and -a check against which to compare tthe output. +This directory contains C sourcfiles intended to test deheader, and +a check against which to compare the output. |