diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-06 13:10:56 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-01-08 14:19:41 +0100 |
commit | 754ab339469cdf8b55b82f4c896c4e15876551db (patch) | |
tree | 28a8a77c07a5e36e7af93ae0fe68a7a6416df239 /tools | |
parent | 18360feb324d8d4f63706662b5c0e919bc93c357 (diff) | |
download | weechat-754ab339469cdf8b55b82f4c896c4e15876551db.zip |
core: remove build with autotools
CMake is now the only way to build WeeChat.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/build_test.sh | 55 |
1 files changed, 14 insertions, 41 deletions
diff --git a/tools/build_test.sh b/tools/build_test.sh index b2916e2a6..273519d96 100755 --- a/tools/build_test.sh +++ b/tools/build_test.sh @@ -20,18 +20,13 @@ # # Build WeeChat according to environment variables: -# - BUILDTOOL: cmake or autotools -# - BUILDARGS: arguments for cmake or configure commands +# - BUILDARGS: arguments for cmake command # # Syntax to run the script with environment variables: -# BUILDTOOL=cmake ./build_test.sh -# BUILDTOOL=autotools ./build_test.sh -# BUILDTOOL=cmake BUILDARGS="arguments" ./build_test.sh -# BUILDTOOL=autotools BUILDARGS="arguments" ./build_test.sh +# BUILDARGS="arguments" ./build_test.sh # # Syntax to run the script with arguments on command line: -# ./build_test.sh cmake [arguments] -# ./build_test.sh autotools [arguments] +# ./build_test.sh [arguments] # # This script is used to build WeeChat in CI environment. # @@ -42,19 +37,9 @@ set -e BUILDDIR="build-tmp-$$" if [ $# -ge 1 ]; then - BUILDTOOL="$1" - shift -fi - -if [ $# -ge 1 ]; then BUILDARGS="$*" fi -if [ -z "$BUILDTOOL" ]; then - echo "Syntax: $0 cmake|autotools" - exit 1 -fi - run () { "$@" @@ -67,28 +52,16 @@ set -x mkdir "$BUILDDIR" cd "$BUILDDIR" -if [ "$BUILDTOOL" = "cmake" ]; then - # build with CMake - run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}" - if [ -f "build.ninja" ]; then - ninja -v - ninja -v changelog - ninja -v rn - sudo ninja install - else - make VERBOSE=1 --jobs="$(nproc)" - make VERBOSE=1 changelog - make VERBOSE=1 rn - sudo make install - fi - ctest -V -fi - -if [ "$BUILDTOOL" = "autotools" ]; then - # build with autotools - ../autogen.sh - run ../configure --enable-man --enable-doc --enable-tests "${BUILDARGS}" - make --jobs="$(nproc)" +run cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON "${BUILDARGS}" +if [ -f "build.ninja" ]; then + ninja -v + ninja -v changelog + ninja -v rn + sudo ninja install +else + make VERBOSE=1 --jobs="$(nproc)" + make VERBOSE=1 changelog + make VERBOSE=1 rn sudo make install - ./tests/tests -v fi +ctest -V |