From 8796fd52bd11f53dc05c60da3599d6aa7db1b27a Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Wed, 30 Sep 2020 17:05:11 +0200 Subject: [PATCH] Add support for macOS to ci/build.sh --- ci/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index 211c2bcc8..f7b4ae3da 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -7,6 +7,9 @@ set -o pipefail if test -f /etc/os-release; then cat /etc/os-release . /etc/os-release +elif [ "$( uname -s )" = "Darwin" ]; then + ID=$( uname -s ) + VERSION_ID=$( uname -r ) else cat /etc/redhat-release ID=$( cat /etc/redhat-release | cut -d' ' -f1 | tr 'A-Z' 'a-z' ) @@ -30,6 +33,8 @@ if [ "${build_system}" = "cmake" ]; then cd .. if [ "${ID_LIKE}" = "debian" ]; then mv build/*.deb ${DIR}/os/${ARCH}/ + elif [ "${ID}" = "Darwin" ]; then + mv build/*.zip ${DIR}/os/${ARCH}/ fi else if [ "${ID_LIKE}" = "debian" ]; then @@ -37,6 +42,11 @@ else (cd graphviz-${GV_VERSION}; fakeroot make -f debian/rules binary) | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log) mv *.deb ${DIR}/os/${ARCH}/ mv *.ddeb ${DIR}/debug/${ARCH}/ + elif [ "${ID}" = "Darwin" ]; then + ./autogen.sh + ./configure --prefix=$( pwd )/build + make + make install else rm -rf ${HOME}/rpmbuild rpmbuild -ta graphviz-${GV_VERSION}.tar.gz | tee >(ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log) -- 2.50.1