Cosmetic changes

This commit is contained in:
Thomas Nagy 2014-10-04 02:02:38 +02:00
parent 6c9e7c6233
commit 1979e7425c
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
3 changed files with 19 additions and 1 deletions

View File

@ -658,6 +658,7 @@ class BuildContext(Context.Context):
for i in range(len(self.groups)):
if id(g) == id(self.groups[i]):
self.current_group = i
break
else:
self.current_group = idx

View File

@ -17,7 +17,7 @@ HEXVERSION=0x1080000
WAFVERSION="1.8.0"
"""Constant updated on new releases"""
WAFREVISION="d43e1278cf14c9605adfd1bdbc4c5b21bfe8d9dd"
WAFREVISION="6c9e7c6233c1d97b39d4aa7327068de74dfcfe7e"
"""Constant updated on new releases"""
ABI = 98

View File

@ -348,3 +348,20 @@ def set_incdirs(self, val):
self.export_includes = val
TaskGen.task_gen.export_incdirs = property(None, set_incdirs)
def install_dir(self, path):
if not path:
return []
destpath = Utils.subst_vars(path, self.env)
if self.is_install > 0:
info('* creating %s' % destpath)
Utils.check_dir(destpath)
elif self.is_install < 0:
info('* removing %s' % destpath)
try:
os.remove(destpath)
except OSError:
pass
Build.BuildContext.install_dir = install_dir