From 490f796a5ca21af009f406e51e751823fef8ee5c Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Sat, 9 Feb 2002 21:18:40 +0000 Subject: Lookup implicit dependencies relative to the directory of the node in which the dependency was found. --- doc/copyright.sgml | 39 ------------------------------------ doc/design/copyright.sgml | 39 ++++++++++++++++++++++++++++++++++++ doc/design/main.sgml | 1 + doc/python10/copyright.sgml | 32 +++++++++++++++++++++++++++++ doc/python10/main.sgml | 1 + doc/scons.mod | 4 ---- doc/user/copyright.sgml | 32 +++++++++++++++++++++++++++++ doc/user/main.sgml | 27 +++++++++++++------------ src/CHANGES.txt | 3 +++ src/engine/SCons/Scanner/__init__.py | 5 ++++- 10 files changed, 126 insertions(+), 57 deletions(-) delete mode 100644 doc/copyright.sgml create mode 100644 doc/design/copyright.sgml create mode 100644 doc/python10/copyright.sgml create mode 100644 doc/user/copyright.sgml diff --git a/doc/copyright.sgml b/doc/copyright.sgml deleted file mode 100644 index a7113ba..0000000 --- a/doc/copyright.sgml +++ /dev/null @@ -1,39 +0,0 @@ - - -
- - - Copyright (c) 2001, 2002 Steven Knight - - Portions of this document, by the same author, were previously - published Copyright 2000 by CodeSourcery LLC, under the Software Carpentry - Open Publication License, the terms of which are available at - - http://www.software-carpentry.com/openpub-license.html - . - - -
diff --git a/doc/design/copyright.sgml b/doc/design/copyright.sgml new file mode 100644 index 0000000..a7113ba --- /dev/null +++ b/doc/design/copyright.sgml @@ -0,0 +1,39 @@ + + +
+ + + Copyright (c) 2001, 2002 Steven Knight + + Portions of this document, by the same author, were previously + published Copyright 2000 by CodeSourcery LLC, under the Software Carpentry + Open Publication License, the terms of which are available at + + http://www.software-carpentry.com/openpub-license.html + . + + +
diff --git a/doc/design/main.sgml b/doc/design/main.sgml index e1589b9..3f69b2f 100644 --- a/doc/design/main.sgml +++ b/doc/design/main.sgml @@ -34,6 +34,7 @@ + diff --git a/doc/python10/copyright.sgml b/doc/python10/copyright.sgml new file mode 100644 index 0000000..833dd80 --- /dev/null +++ b/doc/python10/copyright.sgml @@ -0,0 +1,32 @@ + + +
+ + + Copyright (c) 2001, 2002 Steven Knight + + +
diff --git a/doc/python10/main.sgml b/doc/python10/main.sgml index 5b813b2..889ef4d 100644 --- a/doc/python10/main.sgml +++ b/doc/python10/main.sgml @@ -31,6 +31,7 @@ + diff --git a/doc/scons.mod b/doc/scons.mod index 255085c..b156e4c 100644 --- a/doc/scons.mod +++ b/doc/scons.mod @@ -8,10 +8,6 @@ - - - - + +
+ + + Copyright (c) 2002 Steven Knight + + +
diff --git a/doc/user/main.sgml b/doc/user/main.sgml index 22d977d..4b6bbb1 100644 --- a/doc/user/main.sgml +++ b/doc/user/main.sgml @@ -32,24 +32,25 @@ %scons; - - - - - - - - - - - - + + + + + - + + + + + + + + + ]> diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 037db1e..7ac9979 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -33,6 +33,9 @@ RELEASE 0.05 - - Allow Scanners to return a list of strings, and document how to write your own Scanners. + - Look up implicit (scanned) dependencies relative to the directory + of file being scanned. + From Anthony Roach: - Make the scons script return an error code on failures. diff --git a/src/engine/SCons/Scanner/__init__.py b/src/engine/SCons/Scanner/__init__.py index a00a75b..53c67e4 100644 --- a/src/engine/SCons/Scanner/__init__.py +++ b/src/engine/SCons/Scanner/__init__.py @@ -109,10 +109,13 @@ class Base: list = self.function(node, env, self.argument) else: list = self.function(node, env) + kw = {} + if hasattr(node, 'dir'): + kw['directory'] = node.dir nodes = [] for l in list: if not isinstance(l, SCons.Node.FS.Entry): - l = self.node_factory(l) + l = apply(self.node_factory, (l,), kw) nodes.append(l) return nodes -- cgit v0.12