From 420ab2a6272ed25df5186dc21f635c0a97eaf1dd Mon Sep 17 00:00:00 2001 From: stevenknight Date: Thu, 20 Sep 2001 19:01:15 +0000 Subject: [PATCH] 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 --- Construct | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 ); # -- 2.26.2