]> granicus.if.org Git - graphviz/commitdiff
add ci/out-of-source-configure.sh
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 21 Nov 2021 14:04:20 +0000 (15:04 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 7 Dec 2021 06:35:01 +0000 (07:35 +0100)
This will be used in an upcoming commit to create 2-step autotools
build jobs for MinGW.

ci/out-of-source-configure.sh [new file with mode: 0644]

diff --git a/ci/out-of-source-configure.sh b/ci/out-of-source-configure.sh
new file mode 100644 (file)
index 0000000..5bc3fb2
--- /dev/null
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# this script does something close to the work flow end users may follow when
+# building Graphviz
+
+set -x
+set -u
+set -e
+set -o pipefail
+
+# output some info for debugging
+uname -rms
+cat /etc/os-release
+
+GV_VERSION=$(cat GRAPHVIZ_VERSION)
+
+# unpack the portable source tarball
+tar xfz graphviz-${GV_VERSION}.tar.gz
+
+# setup a directory for building in
+mkdir build
+cd build
+# ensure that MinGW tcl shell is used in order to find tcl functions
+../graphviz-${GV_VERSION}/configure --with-tclsh=${MSYSTEM_PREFIX}/bin/tclsh86