From: Clyne Sullivan Date: Wed, 30 Nov 2016 01:51:12 +0000 (-0500) Subject: build script X-Git-Url: https://code.bitgloo.com/clyne/sforth/commit/f8fdc3746ca3f4a3b4e913b0bf34ce475eca0bf5/clyne/sforth/commit/f8fdc3746ca3f4a3b4e913b0bf34ce475eca0bf5/git?a=commitdiff_plain;h=ddac347ea12637bdc63a1b126a393d6e35313204;p=clyne%2Fgamedev.git build script --- diff --git a/build.sh b/build.sh index bbda76c..b2ddb0a 100755 --- 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