blob: 9142427738491d5fb1408f754abbe5e45d897c77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# This little script creates a build/ directory, enters it
# and builds BibleTime there.
#
# BibleTime will be installed to /usr/local by default (see CMAKE_INSTALL_PREFIX below).
if [ "$(uname)" == "Darwin" ]; then
# OSX/homebrew
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5/lib/cmake/
fi
if [ ! -d build ]; then mkdir build; fi
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local .. || exit 1
make clean
make -j4 install || exit 1
cd ..
echo
echo "BibleTime has been installed to /usr/local."
echo "You can run it by typing /usr/local/bin/bibletime."
echo
|