]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Test for gmqcc in check-proj
authorDale Weiler <killfieldengine@gmail.com>
Wed, 11 Sep 2013 20:38:18 +0000 (16:38 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Wed, 11 Sep 2013 20:38:18 +0000 (16:38 -0400)
misc/check-proj.sh

index a97030ae4a2119ab09c2049755c6c717cb7a5239..6573edabcf8b3d368234e3c646f13329760a9722 100755 (executable)
@@ -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