From 54baf87bb090b2b47ad3abbcc0703105016093be Mon Sep 17 00:00:00 2001 From: Thomas BERNARD Date: Wed, 21 Feb 2018 15:18:58 +0100 Subject: [PATCH] Mac OS X: use bsdtar or gnutar instead of default tar if available --- src/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Makefile b/src/Makefile index 96f9f609..6a63f29e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -57,6 +57,7 @@ endif PLATFORMOBJ = TAR = tar +# Note : --transform option was added in GNU tar version 1.15.91 TARTRANSFORM = --strip=1 --transform 's,^,grafx2/,g' # There is no uname under windows, but we can guess we are there with the COMSPEC env.var @@ -139,6 +140,7 @@ endif OPTIM = 3 CP = cp ZIP = zip + TAR = $(shell which bsdtar || which gnutar || which tar) TARTRANSFORM = $(shell if $(TAR) --version | grep 'GNU tar' > /dev/null ; then \ echo "--strip=1 --transform 's,^,grafx2/,g'" ; else \ echo "-s '/\.\./grafx2/'" ; fi )