]> granicus.if.org Git - graphviz/commitdiff
ci/build.sh: add support for Cygwin autotools builds
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 5 Aug 2021 11:25:12 +0000 (13:25 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 16:17:16 +0000 (18:17 +0200)
ci/build.sh

index 5667bad5663fe4e5d36d4d36769cbd2d2a219fb2..ee8d3fe19ac7cfef98b4dc8a1368ef994eeaafe4 100755 (executable)
@@ -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