From: stevenknight Date: Thu, 20 Sep 2001 19:01:15 +0000 (+0000) Subject: Cygwin's tar can't seem to unzip and extract simultaneously. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=420ab2a6272ed25df5186dc21f635c0a97eaf1dd;p=scons.git Cygwin's tar can't seem to unzip and extract simultaneously. git-svn-id: http://scons.tigris.org/svn/scons/trunk@61 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/Construct b/Construct index 853311cc..1dfcd30d 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 ); #