]> granicus.if.org Git - graphviz/commitdiff
ci/build.sh: autotools: add support building for Cygwin using autogen
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 9 Sep 2021 16:42:30 +0000 (18:42 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 28 Sep 2021 16:17:16 +0000 (18:17 +0200)
ci/build.sh

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