From c6d977d7a3104a9119aeb22ada211a8c310841dc Mon Sep 17 00:00:00 2001 From: Magnus Jacobsson Date: Thu, 5 Aug 2021 13:25:12 +0200 Subject: [PATCH] ci/build.sh: add support for Cygwin autotools builds --- ci/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ci/build.sh b/ci/build.sh index 5667bad56..ee8d3fe19 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -83,6 +83,15 @@ else make install tar cfz graphviz-${GV_VERSION}-${ARCH}.tar.gz --options gzip:compression-level=9 build mv graphviz-${GV_VERSION}-${ARCH}.tar.gz ${DIR}/os/${ARCH}/ + elif [ "${OSTYPE}" = "cygwin" ]; then + tar xfz graphviz-${GV_VERSION}.tar.gz + pushd graphviz-${GV_VERSION} + ./configure --prefix=$( pwd )/build | tee >(../ci/extract-configure-log.sh >../${META_DATA_DIR}/configure.log) + make + make install + popd + tar cf - -C graphviz-${GV_VERSION}/build . | xz -9 -c - > graphviz-${GV_VERSION}-${ARCH}.tar.xz + mv graphviz-${GV_VERSION}-${ARCH}.tar.xz ${DIR}/os/${ARCH}/ else echo "Error: OSTYPE=${OSTYPE} is unknown" >&2 exit 1 -- 2.40.0