diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-04-28 03:08:34 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-04-28 03:08:34 +0200 |
commit | 4b62c5dbb57fabdf48f72e142442af6c6a3334b9 (patch) | |
tree | b51df1e07b48bad057f080ccb1cc9e5202395c6f /build-aux/travis-build.sh | |
parent | 88c2393ec8bc9a6d19394e6c5d0bff77368f0704 (diff) | |
download | blogc-4b62c5dbb57fabdf48f72e142442af6c6a3334b9.tar.gz blogc-4b62c5dbb57fabdf48f72e142442af6c6a3334b9.tar.bz2 blogc-4b62c5dbb57fabdf48f72e142442af6c6a3334b9.zip |
build: drop windows support
Diffstat (limited to 'build-aux/travis-build.sh')
-rwxr-xr-x | build-aux/travis-build.sh | 38 |
1 files changed, 6 insertions, 32 deletions
diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index e16e5c7..53cf589 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -5,43 +5,17 @@ set -ex rm -rf build mkdir -p build -MAKE_TARGET="${TARGET}" - -if [[ "x${TARGET}" = xw* ]]; then - unset CC - export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" - export CHOST="x86_64-w64-mingw32" - [[ "x${TARGET}" = "xw32" ]] && export CHOST="i686-w64-mingw32" - MAKE_TARGET="all" - CONFIGURE_ARGS="--disable-tests --disable-valgrind --disable-git-receiver --disable-runserver" -else - export CFLAGS="-Wall -g" - CONFIGURE_ARGS="--enable-tests --enable-valgrind --enable-git-receiver --enable-runserver" -fi - pushd build > /dev/null ../configure \ - ${CHOST:+--host=${CHOST} --target=${CHOST}} \ + CFLAGS="-Wall -g" \ --enable-ronn \ --disable-silent-rules \ - ${CONFIGURE_ARGS} + --enable-tests \ + --enable-valgrind \ + --enable-git-receiver \ + --enable-runserver popd > /dev/null -make -C build "${MAKE_TARGET}" - -if [[ "x${TARGET}" = xw* ]]; then - TARNAME="$(grep PACKAGE_TARNAME build/config.h | cut -d\" -f2)" - VERSION="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)" - DEST_DIR="${TARNAME}-${VERSION}-${TARGET}" - - rm -rf "${DEST_DIR}" - mkdir -p "${DEST_DIR}" - - cp build/.libs/blogc.exe "${DEST_DIR}/" - cp LICENSE "${DEST_DIR}/" - cp README.md "${DEST_DIR}/" - - zip "build/${DEST_DIR}.zip" "${DEST_DIR}"/* -fi +make -C build "${TARGET}" |