2016-02-19 08:00:59 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# don't do this for clang
|
2017-04-11 09:28:01 +00:00
|
|
|
if [ "$CXX" = "g++" ]; then
|
2019-03-13 13:46:20 +00:00
|
|
|
export CXX="g++-5" CC="gcc-5"
|
2016-02-19 08:00:59 +00:00
|
|
|
fi
|
|
|
|
# in case anything ignores the environment variables, override through PATH
|
|
|
|
mkdir bin
|
2019-03-13 13:46:20 +00:00
|
|
|
ln -s "$(which gcc-5)" bin/cc
|
|
|
|
ln -s "$(which gcc-5)" bin/gcc
|
2017-09-07 04:26:20 +00:00
|
|
|
ln -s "$(which c++)" bin/c++
|
2019-03-13 13:46:20 +00:00
|
|
|
ln -s "$(which g++-5)" bin/g++
|
2017-04-14 19:10:52 +00:00
|
|
|
|
|
|
|
# Travis only makes a shallow clone of --depth=50. KOReader is small enough that
|
|
|
|
# we can just grab it all. This is necessary to generate the version number,
|
|
|
|
# without which some tests will fail.
|
2017-09-07 04:26:20 +00:00
|
|
|
# git fetch --unshallow
|