diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-08-14 14:00:39 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-08-14 14:00:39 +0000 |
commit | e1a6fb787059848c815a8154da23b7da794c6231 (patch) | |
tree | 84ca9576a1abbc27c35f26b137628f5b5c000fc2 /make/lib/find-includes.pl | |
parent | 08c53923dba9c7fe6c2676be862744dc1f90f660 (diff) |
* `dependencyClosure' now allows a search path, e.g.,
dependencyClosure { ... searchPath = [ ../foo ../bar ]; ... }
* Primop `dirOf' to return the directory part of a path (e.g., dirOf
/a/b/c == /a/b).
* Primop `relativise' (according to Webster that's a real word!) that
given paths A and B returns a string representing path B relative
path to A; e.g., relativise /a/b/c a/b/x/y => "../x/y".
Diffstat (limited to 'make/lib/find-includes.pl')
-rw-r--r-- | make/lib/find-includes.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/make/lib/find-includes.pl b/make/lib/find-includes.pl index f4f1f4323..43406825a 100644 --- a/make/lib/find-includes.pl +++ b/make/lib/find-includes.pl @@ -9,7 +9,9 @@ print OUT "[\n"; open IN, "<$root" or die "$!"; while (<IN>) { if (/^\#include\s+\"(.*)\"/) { - print "DEP $1\n"; + print OUT "\"$1\"\n"; + } + if (/^\#include\s+\<(.*)\>/) { print OUT "\"$1\"\n"; } } |