#!/bin/bash set -eo pipefail cd "$(dirname $0)/.." trap "rm -f a.cc" EXIT declare -a pheaders cd libqpdf for i in qpdf/*.hh; do if [[ ! $i =~ .*auto_.* ]] && ! grep -q >/dev/null 2>&1 QPDFOBJECT_OLD_HH $i; then pheaders+=($i) fi done cd .. # Make sure each header file can be included in isolation and that the # result can be compiled with the version of the C++ standard used by the qpdf project, currently C++-20. declare -a perrors for i in "${pheaders[@]}"; do rm -f a.cc cat > a.cc <