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.
This commit is contained in:
Martijn van Duren 2025-02-07 16:10:37 +00:00 committed by Ralph Sennhauser
parent 5f117532a4
commit 2338473da1
6 changed files with 19 additions and 8 deletions

View file

@ -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 <patches/0001-Add-Debian-python3-patch.patch

View file

@ -1,6 +1,8 @@
#!/bin/sh
set -e
: "${TAR:=tar}"
cd "$(dirname "$0")"
PV=28209
@ -10,7 +12,7 @@ fetch()
{
rm -Rf fcollada-${PV}
svn export https://svn.wildfiregames.com/public/source-libs/trunk/fcollada@${PV} fcollada-${PV}
tar cJf fcollada-${PV}.tar.xz fcollada-${PV}
"${TAR}" cJf fcollada-${PV}.tar.xz fcollada-${PV}
rm -R fcollada-${PV}
}
@ -42,7 +44,7 @@ fi
# unpack
rm -Rf fcollada-${PV}
tar xf fcollada-${PV}.tar.xz
"${TAR}" xf fcollada-${PV}.tar.xz
# build
(

View file

@ -1,6 +1,8 @@
#!/bin/sh
set -e
: "${TAR:=tar}"
cd "$(dirname "$0")"
PV=28209
@ -10,7 +12,7 @@ fetch()
{
rm -Rf nvtt-${PV}
svn export https://svn.wildfiregames.com/public/source-libs/trunk/nvtt@${PV} nvtt-${PV}
tar cJf nvtt-${PV}.tar.xz nvtt-${PV}
"${TAR}" cJf nvtt-${PV}.tar.xz nvtt-${PV}
rm -R nvtt-${PV}
}
@ -42,7 +44,7 @@ fi
# unpack
rm -Rf nvtt-${PV}
tar xf nvtt-${PV}.tar.xz
"${TAR}" xf nvtt-${PV}.tar.xz
# build
(

View file

@ -4,6 +4,7 @@ set -e
: "${OS:=$(uname -s || true)}"
: "${MAKE:=make}"
: "${JOBS:=-j1}"
: "${TAR:=tar}"
cd "$(dirname "$0")"
@ -44,7 +45,7 @@ fi
# unpack
rm -Rf "premake-core-${PV}"
tar -xf "premake-core-${PV}.tar.gz"
"${TAR}" -xf "premake-core-${PV}.tar.gz"
# patch
# ffcb7790f013bdceacc14ba5fda1c5cd107aac08

View file

@ -1,6 +1,8 @@
#!/bin/sh
set -e
: "${TAR:=tar}"
cd "$(dirname "$0")"
# This should match the version in config/milestone.txt
@ -47,7 +49,7 @@ fi
# unpack
rm -Rf "${FOLDER}"
tar xfJ "${FOLDER}.tar.xz"
"${TAR}" xfJ "${FOLDER}.tar.xz"
# patch
(

View file

@ -1,6 +1,8 @@
#!/bin/sh
set -e
: "${TAR:=tar}"
cd "$(dirname "$0")"
PV=1.3.290.0
@ -40,7 +42,7 @@ fi
# unpack
rm -Rf "SPIRV-Reflect-vulkan-sdk-${PV}"
tar xf "vulkan-sdk-${PV}.tar.gz"
"${TAR}" xf "vulkan-sdk-${PV}.tar.gz"
# configure
cmake -B build -S "SPIRV-Reflect-vulkan-sdk-${PV}" \