2018-02-12 01:11:13 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-11-10 11:55:19 +02:00
|
|
|
cwd="$(readlink -f $(dirname $0))"
|
2019-05-28 12:50:19 +00:00
|
|
|
cmake="cmake-2.8.12.2-Linux-i386"
|
2018-02-12 01:11:13 +00:00
|
|
|
|
|
|
|
cd "$cwd"
|
2019-05-31 12:38:14 +00:00
|
|
|
if which curl; then
|
|
|
|
curl -C - -L "https://cmake.org/files/v2.8/$cmake.tar.gz" -o "$cmake.tar.gz"
|
2019-05-13 01:24:05 +00:00
|
|
|
else
|
2019-05-31 12:38:14 +00:00
|
|
|
wget -c "https://cmake.org/files/v2.8/$cmake.tar.gz"
|
2019-05-13 01:24:05 +00:00
|
|
|
fi
|
2018-02-12 01:11:13 +00:00
|
|
|
|
|
|
|
rm -rf "$cwd/../oldmake"
|
|
|
|
mkdir -p "$cwd/../oldmake"
|
|
|
|
cd "$cwd/../oldmake"
|
|
|
|
|
2019-05-28 12:50:19 +00:00
|
|
|
tar -xaf "$cwd/$cmake.tar.gz"
|
2019-12-02 02:34:13 +00:00
|
|
|
"$cmake/bin/cmake" ../ -DCMAKE_BUILD_TYPE=Release -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON $@
|
2019-05-13 01:36:56 +00:00
|
|
|
rm -rf *
|
2018-02-12 01:11:13 +00:00
|
|
|
|
2019-05-28 12:50:19 +00:00
|
|
|
tar -xaf "$cwd/$cmake.tar.gz"
|
2019-12-02 02:34:13 +00:00
|
|
|
"$cmake/bin/cmake" ../ -DCMAKE_BUILD_TYPE=Release -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON -DKATIE_ALLINONE=ON $@
|
2019-12-31 04:54:58 +00:00
|
|
|
rm -rf *
|
|
|
|
|
|
|
|
tar -xaf "$cwd/$cmake.tar.gz"
|
|
|
|
"$cmake/bin/cmake" ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON $@
|
|
|
|
ninja -n
|
|
|
|
rm -rf *
|
|
|
|
|
|
|
|
tar -xaf "$cwd/$cmake.tar.gz"
|
|
|
|
"$cmake/bin/cmake" ../ -GNinja -DCMAKE_BUILD_TYPE=Release -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON -DKATIE_ALLINONE=ON $@
|
|
|
|
ninja -n
|