2020-08-18 14:52:49 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-08-20 15:11:05 +02:00
|
|
|
#version="$1"
|
|
|
|
version=$(grep Version: emptyepsilon.spec | awk '{print $NF}')
|
2020-08-18 14:52:49 +02:00
|
|
|
|
|
|
|
wget https://github.com/daid/SeriousProton/archive/EE-${version}.tar.gz -O SeriousProton-${version}.tar.gz
|
|
|
|
wget https://github.com/daid/EmptyEpsilon/archive/EE-${version}.tar.gz -O EmptyEpsilon-${version}.tar.gz
|
2021-08-20 15:11:05 +02:00
|
|
|
|
|
|
|
tmp=$(mktemp -d)
|
|
|
|
|
|
|
|
tar xzvf EmptyEpsilon-${version}.tar.gz -C "$tmp" EmptyEpsilon-EE-${version}/CMakeLists.txt
|
2022-09-15 12:38:51 +02:00
|
|
|
MESHOPTIMIZER_VERSION=$(grep "MESHOPTIMIZER_VERSION" "${tmp}/EmptyEpsilon-EE-${version}/CMakeLists.txt" | head -1 | cut -d' ' -f2 | cut -d')' -f1)
|
|
|
|
wget "https://github.com/zeux/meshoptimizer/archive/refs/tags/v${MESHOPTIMIZER_VERSION}.zip" -O meshoptimizer.zip
|
|
|
|
|
|
|
|
tar xzvf SeriousProton-${version}.tar.gz -C "$tmp" SeriousProton-EE-${version}/libs/basis_universal/CMakeLists.txt
|
|
|
|
BASIS_VERSION=$(grep "BASIS_VERSION" "${tmp}/SeriousProton-EE-${version}/libs/basis_universal/CMakeLists.txt" | head -1 | cut -d'"' -f2)
|
|
|
|
BASIS_URL=$(grep "BASIS_URL" "${tmp}/SeriousProton-EE-${version}/libs/basis_universal/CMakeLists.txt" | head -1 | cut -d'"' -f2)
|
|
|
|
wget "${BASIS_URL}/archive/refs/tags/${BASIS_VERSION}.zip" -O basis_universal.zip
|
2021-08-20 15:11:05 +02:00
|
|
|
|
|
|
|
rm -r "$tmp"
|