5 # if these files exist from previous compilation, `./all compile` will stop
6 # detecting changes after running this script so delete them to trigger
7 # a recompile next time
8 if [ -f ../../csprogs.dat ]; then
12 if [ -f ../../menu.dat ]; then
16 if [ -f ../../progs.dat ]; then
23 : ${QCC:=$PWD/../../../../gmqcc/gmqcc}
28 -DWATERMARK="\"$(git describe --tags --dirty='~')\""
30 QCCDEFS="${QCCDEFS[@]}"
43 -Wno-implicit-function-pointer
44 -Wno-missing-return-values
46 QCCFLAGS="${QCCFLAGS[@]} ${NOWARN[@]}"
52 declare -l prog="${1}"
53 declare -l file="${2}"
55 qpp ${file} test.dat \
56 -include lib/_all.inc -include ${prog}/_all.qh \
57 -I. ${QCCIDENT} ${QCCDEFS} > ${WORKDIR}/${prog}.qc
58 qcc ${QCCFLAGS} -o ../${WORKDIR}/test.dat ../${WORKDIR}/${prog}.qc >/dev/null
62 declare -l prog="${1}"
63 find ${prog} -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
64 check1 ${prog} ${file}