2024-08-29 04:17:33 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
|
2024-09-18 10:47:56 -07:00
|
|
|
PV=4.4
|
|
|
|
|
LIB_VERSION=${PV}+wfg0
|
2024-08-29 04:17:33 -07:00
|
|
|
|
2024-09-18 10:47:56 -07:00
|
|
|
if [ -e .already-built ] && [ "$(cat .already-built || true)" = "${LIB_VERSION}" ]; then
|
|
|
|
|
echo "CxxTest is already up to date."
|
2024-08-29 04:17:33 -07:00
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# fetch
|
2024-09-18 10:47:56 -07:00
|
|
|
if [ ! -e "cxxtest-${PV}.tar.gz" ]; then
|
|
|
|
|
curl -fLo "cxxtest-${PV}.tar.gz" \
|
|
|
|
|
"https://github.com/CxxTest/cxxtest/releases/download/${PV}/cxxtest-${PV}.tar.gz"
|
|
|
|
|
fi
|
2024-08-29 04:17:33 -07:00
|
|
|
|
|
|
|
|
# unpack
|
2024-09-18 10:47:56 -07:00
|
|
|
rm -Rf "cxxtest-${PV}"
|
|
|
|
|
tar -xf "cxxtest-${PV}.tar.gz"
|
2024-08-29 04:17:33 -07:00
|
|
|
|
|
|
|
|
# nothing to actually build
|
|
|
|
|
# built as part of building tests
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|
rm -Rf bin cxxtest python
|
2024-09-18 10:47:56 -07:00
|
|
|
cp -R "cxxtest-${PV}/bin" "cxxtest-${PV}/cxxtest" "cxxtest-${PV}/python" .
|
2024-08-29 04:17:33 -07:00
|
|
|
|
|
|
|
|
echo "${LIB_VERSION}" >.already-built
|