From 2338473da151d3942a0d7b8dbd2bc6ce4bd709c9 Mon Sep 17 00:00:00 2001 From: Martijn van Duren Date: Fri, 7 Feb 2025 16:10:37 +0000 Subject: [PATCH] Make libraries/*/build.sh use "${TAR}" instead of tar directly. This allows systems using a tar version not supporting all the required flags to easily switch to gnu tar. --- libraries/source/cxxtest-4.4/build.sh | 4 +++- libraries/source/fcollada/build.sh | 6 ++++-- libraries/source/nvtt/build.sh | 6 ++++-- libraries/source/premake-core/build.sh | 3 ++- libraries/source/spidermonkey/build.sh | 4 +++- libraries/source/spirv-reflect/build.sh | 4 +++- 6 files changed, 19 insertions(+), 8 deletions(-) diff --git a/libraries/source/cxxtest-4.4/build.sh b/libraries/source/cxxtest-4.4/build.sh index 3243836ecb..fe953dd108 100755 --- a/libraries/source/cxxtest-4.4/build.sh +++ b/libraries/source/cxxtest-4.4/build.sh @@ -1,6 +1,8 @@ #!/bin/sh set -e +: "${TAR:=tar}" + cd "$(dirname "$0")" PV=4.4 @@ -40,7 +42,7 @@ fi # unpack rm -Rf "cxxtest-${PV}" -tar -xf "cxxtest-${PV}.tar.gz" +"${TAR}" -xf "cxxtest-${PV}.tar.gz" # patch patch -d "cxxtest-${PV}" -p1