Debian Codegraph @

ci/out-of-source-build.sh

raw
1 #!/usr/bin/env bash
2
3 # this script does something close to the work flow end users may follow when
4 # building Graphviz
5
6 if [ -z ${CI+x} ]; then
7 echo "this script is only intended to run in CI" >&2
8 exit 1
9 fi
10
11 set -e
12 set -o pipefail
13 set -u
14 set -x
15
16 # output some info for debugging
17 uname -rms
18 cat /etc/os-release
19
20 GV_VERSION=$(python3 gen_version.py)
21
22 # unpack the portable source tarball
23 tar xfz graphviz-${GV_VERSION}.tar.gz
24
25 # setup a directory for building in
26 mkdir build
27 cd build
28 ../graphviz-${GV_VERSION}/configure
29
30 # build Graphviz
31 make
32
33 # install Graphviz
34 make install