diff options
author | Steven Knight <knight@baldmt.com> | 2001-09-20 19:01:15 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2001-09-20 19:01:15 (GMT) |
commit | 72de329455df792fe1b40d4aeea53f86bc43f298 (patch) | |
tree | 0b6656d524b9fc8925ab35369205c17ee7b836a7 /Construct | |
parent | 2e93fc7d50148989fbed7ea37f76dfb0e5da1dc8 (diff) | |
download | SCons-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-- | Construct | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 ); # |