X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=misc%2Fcheck-proj.sh;h=6573edabcf8b3d368234e3c646f13329760a9722;hp=a97030ae4a2119ab09c2049755c6c717cb7a5239;hb=c52ad67a7cefc602a1a415eca0f92cd23beaf28f;hpb=35f9aef7295ed20c58aa812e106be921fa7e8acd diff --git a/misc/check-proj.sh b/misc/check-proj.sh index a97030a..6573eda 100755 --- a/misc/check-proj.sh +++ b/misc/check-proj.sh @@ -71,12 +71,13 @@ else fi # compile projects in those directories +which gmqcc >> /dev/null || (echo "error gmqcc not installed" && exit 1) pushd ~/.gmqcc/testsuite/projects >> /dev/null find . -maxdepth 1 -mindepth 1 -type d -printf "%f\n" | while read -r line do - echo -n "compiling $line..." + echo -n "compiling $line... " pushd "$line" >> /dev/null - gmqcc -std=qcc >> /dev/null + gmqcc -std=qcc > /dev/null 2>&1 if [ $? -ne 0 ]; then echo "error" else