]> granicus.if.org Git - graphviz/commitdiff
ci/build.sh: autotools: use OSTYPE to determine if on macOS
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 4 Sep 2021 13:32:11 +0000 (15:32 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Sep 2021 05:55:36 +0000 (07:55 +0200)
OSTYPE is a built-in variable in bash and exists on all operating
systems.

ci/build.sh

index bbd2e47acdb57de0fe907bc0f1971542d26a18b3..0f71357afb8b5d34302032624dd3af37f156f6b6 100755 (executable)
@@ -48,7 +48,7 @@ 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
+    elif [[ "${OSTYPE}" =~ "darwin" ]]; then
         ./autogen.sh
         ./configure --prefix=$( pwd )/build --with-quartz=yes
         make