Handle the fact that the dir in the .tar.gz doesn't have the v

This commit is contained in:
Isaac Connor
2025-12-08 10:22:48 -05:00
parent c47f06535f
commit f13a0eb2a5

View File

@@ -130,12 +130,13 @@ commonprep () {
fi
fi
CxxUrlVER="v0.3"
CxxUrlVER="0.3"
if [ -e "build/CxxUrl-${CxxUrlVER}.tar.gz" ]; then
echo "Found existing CxxUrl tarball..."
else
echo "Retrieving CxxUrl ${CxxUrlVER} submodule..."
curl -L https://github.com/chmike/CxxUrl/archive/refs/tags/${CxxUrlVER}.tar.gz > build/CxxUrl-${CxxUrlVER}.tar.gz
# The dir that results from untar doesn't have the v
curl -L https://github.com/chmike/CxxUrl/archive/refs/tags/v${CxxUrlVER}.tar.gz > build/CxxUrl-${CxxUrlVER}.tar.gz
if [ $? -ne 0 ]; then
echo "ERROR: CxxUrl tarball retrieval failed..."
exit 1