diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-03 22:38:34 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-12-03 22:38:34 (GMT) |
commit | aee9d6b73e0d0df6fc2f260c4314fe1c17282cf8 (patch) | |
tree | 4983b482cd9fbf2690d8a0071797b7ac75ba67a7 /Mac | |
parent | cb9b1ebe6c11431e25d9feb33abb64528fa4e953 (diff) | |
download | cpython-aee9d6b73e0d0df6fc2f260c4314fe1c17282cf8.zip cpython-aee9d6b73e0d0df6fc2f260c4314fe1c17282cf8.tar.gz cpython-aee9d6b73e0d0df6fc2f260c4314fe1c17282cf8.tar.bz2 |
Allow recursive searh entries by ending the pathname in ":*".
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/Lib/mkcwproject/cwxmlgen.py | 9 | ||||
-rw-r--r-- | Mac/Lib/mkcwproject/template/template-searchdirs.xml | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Lib/mkcwproject/cwxmlgen.py b/Mac/Lib/mkcwproject/cwxmlgen.py index ff5d0cb..959516f 100644 --- a/Mac/Lib/mkcwproject/cwxmlgen.py +++ b/Mac/Lib/mkcwproject/cwxmlgen.py @@ -47,11 +47,16 @@ class ProjectBuilder: if not type(keyvalues) in (type(()), type([])): raise Error, "List or tuple expected for %s"%key for curkeyvalue in keyvalues: - self.dict[key] = curkeyvalue if os.path.isabs(curkeyvalue): self.dict['pathtype'] = 'Absolute' else: self.dict['pathtype'] = 'Project' + if curkeyvalue[-2:] == ':*': + curkeyvalue = curkeyvalue[:-2] + self.dict['recursive'] = 'true' + else: + self.dict['recursive'] = 'false' + self.dict[key] = curkeyvalue curkeyvalueresult = self._generate_one_value(datasource, dataname) result = result + curkeyvalueresult finally: @@ -59,6 +64,8 @@ class ProjectBuilder: self.dict[key] = keyvalues self.dict['pathtype'] = None del self.dict['pathtype'] + self.dict['recursive'] = None + del self.dict['recursive'] else: # Not a multi-element rule. Simply generate result = self._generate_one_value(datasource, dataname) diff --git a/Mac/Lib/mkcwproject/template/template-searchdirs.xml b/Mac/Lib/mkcwproject/template/template-searchdirs.xml index c23f8f7..ae1b353 100644 --- a/Mac/Lib/mkcwproject/template/template-searchdirs.xml +++ b/Mac/Lib/mkcwproject/template/template-searchdirs.xml @@ -4,6 +4,6 @@ <SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING> <SETTING><NAME>PathRoot</NAME><VALUE>%(pathtype)s</VALUE></SETTING> </SETTING> - <SETTING><NAME>Recursive</NAME><VALUE>false</VALUE></SETTING> + <SETTING><NAME>Recursive</NAME><VALUE>%(recursive)s</VALUE></SETTING> <SETTING><NAME>HostFlags</NAME><VALUE>All</VALUE></SETTING> </SETTING> |