]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
ok, the files are only present when ./all compile was used before running this test
authorMartin Taibr <taibr.martin@gmail.com>
Tue, 27 Jun 2017 21:31:42 +0000 (23:31 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Tue, 27 Jun 2017 21:31:42 +0000 (23:31 +0200)
qcsrc/tools/compilationunits.sh

index 7bc4f1477a5507d899f3ea8f38f3a8fb8a9e7279..d8086704e1193b7799de8b34a774aac24a2f7904 100755 (executable)
@@ -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