From a37bda61857a810ab2a511325e9ae54be7379b56 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Tue, 27 Jun 2017 23:31:42 +0200 Subject: [PATCH] ok, the files are only present when ./all compile was used before running this test --- qcsrc/tools/compilationunits.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/qcsrc/tools/compilationunits.sh b/qcsrc/tools/compilationunits.sh index 7bc4f1477..d8086704e 100755 --- a/qcsrc/tools/compilationunits.sh +++ b/qcsrc/tools/compilationunits.sh @@ -2,6 +2,21 @@ set -eu cd ${0%/*} +# if these files exist from previous compilation, `./all compile` will stop +# detecting changes after running this script so delete them to trigger +# a recompile next time +if [ -f ../../csprogs.dat ]; then + rm ../../csprogs.dat +fi + +if [ -f ../../menu.dat ]; then + rm ../../menu.dat +fi + +if [ -f ../../progs.dat ]; then + rm ../../progs.dat +fi + WORKDIR=../.tmp CPP="cc -xc -E" @@ -53,6 +68,3 @@ function check() { check client check server check menu - -# trigger a recompile next time, otherwise the `all` script wouldn't detect changes -rm csprogs.dat menu.dat progs.dat -- 2.39.2