mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
28 lines
637 B
Bash
Executable file
28 lines
637 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cwd="$(readlink -f $(dirname $0))"
|
|
cmakeext="tar.gz"
|
|
cmake="cmake-3.3.0-Linux-x86_64"
|
|
cmakesite="https://cmake.org/files/v3.3"
|
|
|
|
cd "$cwd"
|
|
if which curl; then
|
|
curl -C - -L "$cmakesite/$cmake.$cmakeext" -o "$cmake.$cmakeext"
|
|
else
|
|
wget -c "$cmakesite/$cmake.$cmakeext"
|
|
fi
|
|
|
|
rm -rf "$cwd/../oldmake"
|
|
mkdir -p "$cwd/../oldmake"
|
|
cd "$cwd/../oldmake"
|
|
|
|
tar -xaf "$cwd/$cmake.$cmakeext"
|
|
"$cmake/bin/cmake" ../ -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON $@
|
|
rm -rf *
|
|
|
|
tar -xaf "$cwd/$cmake.$cmakeext"
|
|
"$cmake/bin/cmake" ../ -GNinja -DKATIE_TESTS=ON -DKATIE_BENCHMARKS=ON -DKATIE_UTILS=ON $@
|
|
ninja -n
|
|
rm -rf *
|