From: Magnus Jacobsson Date: Thu, 9 Sep 2021 16:42:30 +0000 (+0200) Subject: ci/build.sh: autotools: add support building for Cygwin using autogen X-Git-Tag: 2.49.2~32^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cf94f6ce5d21a292acf89858e009c5156cdbfcc;p=graphviz ci/build.sh: autotools: add support building for Cygwin using autogen --- diff --git a/ci/build.sh b/ci/build.sh index ee8d3fe19..6a9609ea6 100755 --- a/ci/build.sh +++ b/ci/build.sh @@ -84,14 +84,23 @@ else 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}/ + if [ "${use_autogen:-no}" = "yes" ]; then + ./autogen.sh + ./configure --prefix=$( pwd )/build | tee >(./ci/extract-configure-log.sh >${META_DATA_DIR}/configure.log) + make + make install + tar cf - -C build . | xz -9 -c - > graphviz-${GV_VERSION}-${ARCH}.tar.xz + mv graphviz-${GV_VERSION}-${ARCH}.tar.xz ${DIR}/os/${ARCH}/ + else + 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}/ + fi else echo "Error: OSTYPE=${OSTYPE} is unknown" >&2 exit 1