summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-19 17:24:41 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-19 17:24:41 +0100
commit75d8543ffaf04b609805901b96d21e3a5303027f (patch)
tree0050d40ac4043504f49ff2bbe019d5fcbb830d93
parent836c6eb2e3c1616f07d3ac03ee2a8cb248a0a55a (diff)
Minor tweak for project dir.
-rwxr-xr-xcdist4
1 files changed, 3 insertions, 1 deletions
diff --git a/cdist b/cdist
index e21d80e..d8b4884 100755
--- a/cdist
+++ b/cdist
@@ -38,7 +38,7 @@ def command(c, can_fail=False):
log(c)
r = os.system(c)
if (r >> 8) and not can_fail:
- error('command failed')
+ error('command %s failed' % c)
def command_and_read(c):
log(c)
@@ -155,6 +155,8 @@ class Environment(object):
self.build_dependencies(target, project)
if target.platform == 'source':
command('./waf dist')
+ if project.directory != '.':
+ return os.path.abspath('%s-%s.tar.bz2' % (project.directory, project.version))
return os.path.abspath('%s-%s.tar.bz2' % (project.name, project.version))
else:
project.cscript['build'](self, target)