diff options
| author | Steven Knight <knight@baldmt.com> | 2005-10-02 22:59:58 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2005-10-02 22:59:58 (GMT) |
| commit | 1529ef17c861d83e5643e53640fd7971cf7456ef (patch) | |
| tree | 69f38dbe43da93222176ef21d4170511e90a6771 /src | |
| parent | 6eccd4f877951395160ff171db5d52b31da0174e (diff) | |
| download | SCons-1529ef17c861d83e5643e53640fd7971cf7456ef.zip SCons-1529ef17c861d83e5643e53640fd7971cf7456ef.tar.gz SCons-1529ef17c861d83e5643e53640fd7971cf7456ef.tar.bz2 | |
Report removal of multiple targets correctly when using -n -c. (Patrick Mezard)
Diffstat (limited to 'src')
| -rw-r--r-- | src/CHANGES.txt | 3 | ||||
| -rw-r--r-- | src/engine/SCons/Script/Main.py | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 906f31f..fd264e0 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -381,6 +381,9 @@ RELEASE 0.97 - XXX files built along with the target is out of date or non-existent, not just if the command-line target itself is out of date. + - Fix the -n option when used with -c to print all of the targets + that will be removed for a multi-target Builder call. + From Georg Mischler: - Remove the space after the -o option when invoking the Borland diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py index a5e07b4..2ffe97b 100644 --- a/src/engine/SCons/Script/Main.py +++ b/src/engine/SCons/Script/Main.py @@ -224,8 +224,10 @@ class CleanTask(SCons.Taskmaster.Task): def show(self): target = self.targets[0] - if (target.has_builder() or target.side_effect) and not target.isdir(): - display("Removed " + str(target)) + if target.has_builder() or target.side_effect: + for t in self.targets: + if not t.isdir(): + display("Removed " + str(t)) if SCons.Environment.CleanTargets.has_key(target): files = SCons.Environment.CleanTargets[target] for f in files: |
