summaryrefslogtreecommitdiffstats
path: root/Construct
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-20 19:01:15 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-20 19:01:15 (GMT)
commit72de329455df792fe1b40d4aeea53f86bc43f298 (patch)
tree0b6656d524b9fc8925ab35369205c17ee7b836a7 /Construct
parent2e93fc7d50148989fbed7ea37f76dfb0e5da1dc8 (diff)
downloadSCons-72de329455df792fe1b40d4aeea53f86bc43f298.zip
SCons-72de329455df792fe1b40d4aeea53f86bc43f298.tar.gz
SCons-72de329455df792fe1b40d4aeea53f86bc43f298.tar.bz2
Cygwin's tar can't seem to unzip and extract simultaneously.
Diffstat (limited to 'Construct')
-rw-r--r--Construct10
1 files changed, 9 insertions, 1 deletions
diff --git a/Construct b/Construct
index 853311c..1dfcd30 100644
--- a/Construct
+++ b/Construct
@@ -184,9 +184,17 @@ for $dir ('script', 'engine') {
my @unpack_files = map("$unpack/$pkg-$version/$_", @files);
+ # We'd like to replace the last three lines with the following:
+ #
+ # tar zxf %< -C $unpack
+ #
+ # but that gives heartburn to Cygwin's tar, so work around it
+ # with separate zcat-tar-rm commands.
Command $env [@unpack_files], $archive, qq(
rm -rf $unpack/$pkg-$version
- tar zxf %< -C $unpack
+ zcat %< > .temp
+ tar xf .temp -C $unpack
+ rm -f .temp
);
#