From: Martin Taibr Date: Tue, 27 Jun 2017 21:31:42 +0000 (+0200) Subject: ok, the files are only present when ./all compile was used before running this test X-Git-Tag: xonotic-v0.8.5~2561^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a37bda61857a810ab2a511325e9ae54be7379b56;p=xonotic%2Fxonotic-data.pk3dir.git ok, the files are only present when ./all compile was used before running this test --- 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