]> code.bitgloo.com Git - clyne/gamedev.git/commitdiff
build script
authorClyne Sullivan <tullivan99@gmail.com>
Wed, 30 Nov 2016 01:51:12 +0000 (20:51 -0500)
committerClyne Sullivan <tullivan99@gmail.com>
Wed, 30 Nov 2016 01:51:12 +0000 (20:51 -0500)
build.sh

index bbda76c7229f95d751e2a8d3d92686c85245a4fc..b2ddb0a82693a7a62d7a3bc546d4a06f8601c313 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -3,10 +3,12 @@
 idate=$(date +"%s" -r .git/index)
 odate=$(date +"%s" -r ./.updated)
 
-echo $idate
-echo $odate
-
 if (( $idate > $odate )); then
-       echo "frig"
+       echo "Project updated, building all..."
+       make clean
+       make -j4
        touch ./.updated
+else
+       echo "Up to date, building..."
+       make -j4
 fi