1-bootstrap.sh (525B)
1 #!/bin/bash 2 set -exuo pipefail 3 4 # Every combination of the matrix is a *clean out-of-tree* build, and 5 # autoconf refuses those while the source directory itself still carries 6 # a config.status. A CI checkout is clean; a developer running this job 7 # by hand on a working tree usually is not. 8 if [ -f config.status ] || [ -f Makefile ]; then 9 make distclean || true 10 fi 11 if [ -f config.status ]; then 12 echo "ERROR: source directory is still configured;" \ 13 "run 'make distclean' by hand first." >&2 14 exit 1 15 fi 16 17 ./bootstrap