summaryrefslogtreecommitdiffstats
path: root/SConstruct
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2011-04-24 20:55:13 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2011-04-24 20:55:13 (GMT)
commit3130114195c0c49fc3078174ca1f8a91d6339baa (patch)
tree7c601771e2065189d11e95bdc311893af260dd2d /SConstruct
parentf946648d748a2540982cf841236f48e5bc10fd20 (diff)
downloadSCons-3130114195c0c49fc3078174ca1f8a91d6339baa.zip
SCons-3130114195c0c49fc3078174ca1f8a91d6339baa.tar.gz
SCons-3130114195c0c49fc3078174ca1f8a91d6339baa.tar.bz2
Fix building of build/dist on Windows (fix tar args to force local interpretation of pathname with drive letter)
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct7
1 files changed, 6 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 34ee6ae..a3ca5ed 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1116,9 +1116,14 @@ for p in [ scons ]:
Local(l)
if gzip:
+ if platform == "win32":
+ # avoid problem with tar interpreting c:/ as a remote machine
+ tar_cargs = '-cz --force-local -f'
+ else:
+ tar_cargs = '-czf'
env.Command(dist_local_tar_gz,
local_targets,
- "cd %s && tar czf $( ${TARGET.abspath} $) *" % build_dir_local)
+ "cd %s && tar %s $( ${TARGET.abspath} $) *" % (build_dir_local, tar_cargs))
unpack_targets = [os.path.join(test_local_tar_gz_dir, x) for x in rf]
commands = [Delete(test_local_tar_gz_dir),