mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
24 lines
721 B
Bash
Executable file
24 lines
721 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cwd="$(realpath $(dirname $0))"
|
|
|
|
cd "$cwd"
|
|
if which wget; then
|
|
wget -c https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz
|
|
else
|
|
curl -C - https://cmake.org/files/v2.8/cmake-2.8.12.2-Linux-i386.tar.gz -o cmake-2.8.12.2-Linux-i386.tar.gz
|
|
fi
|
|
|
|
rm -rf "$cwd/../oldmake"
|
|
mkdir -p "$cwd/../oldmake"
|
|
cd "$cwd/../oldmake"
|
|
|
|
tar -xaf "$cwd/cmake-2.8.12.2-Linux-i386.tar.gz"
|
|
cmake-2.8.12.2-Linux-i386/bin/cmake ../ -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON $@
|
|
rm -rf *
|
|
|
|
tar -xaf "$cwd/cmake-2.8.12.2-Linux-i386.tar.gz"
|
|
cmake-2.8.12.2-Linux-i386/bin/cmake ../ -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=TRUE -DKATIE_UTILS=ON -DKATIE_ALLINONE=ON $@
|
|
# not making on purpose
|