mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
668eee97fa
Update shellcheck and shfmt to the latest version. Fixes <https://github.com/koreader/koreader/issues/5152>. Btw, you can apply shellcheck suggestions with a command like: ``` shellcheck --include=SC2250 -f diff *.sh | git apply ```
18 lines
562 B
Bash
Executable File
18 lines
562 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# don't do this for clang
|
|
if [ "${CXX}" = "g++" ]; then
|
|
export CXX="g++-5" CC="gcc-5"
|
|
fi
|
|
# in case anything ignores the environment variables, override through PATH
|
|
mkdir bin
|
|
ln -s "$(command -v gcc-5)" bin/cc
|
|
ln -s "$(command -v gcc-5)" bin/gcc
|
|
ln -s "$(command -v c++)" bin/c++
|
|
ln -s "$(command -v g++-5)" bin/g++
|
|
|
|
# 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.
|
|
# git fetch --unshallow
|