blob: 6cfa3347736d1b4722716c5f64312d36d3a786bf [file] [log] [blame]
Max15b05fe2017-10-20 16:07:06 +02001#!/bin/sh
2
3set -ex
4
5verify_value_string_arrays_are_terminated.py $(find . -name "*.[hc]")
6
Neels Hofmeyr754e6872017-10-23 14:57:56 +02007prep_build() {
8 _src_dir="$1"
9 _build_dir="$2"
10
11 cd "$_src_dir"
12
13 # a failed 'make distcheck' may leave files without write permissions
14 chmod -R a+w .
15 git clean -dxf
16 # make absolutely sure no src files have modifications
17 git checkout -f HEAD
18
19 autoreconf --install --force
20
21 mkdir -p "$_build_dir"
22 cd "$_build_dir"
23}