add option to force a build

This commit is contained in:
Brad Parker 2017-03-15 09:39:15 -07:00
parent 5b019acd49
commit 9ea919a14e

View File

@ -793,13 +793,18 @@ while read line; do
BUILD="YES"
else
cd $DIR
if [ -f .forcebuild ]; then
BUILD="YES"
fi
echo "resetting repo state... "
git clean -xdf
git reset --hard
echo "pulling changes from repo $URL... "
OUT=`git pull`
if [[ $OUT == *"Already up-to-date"* ]]; then
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
BUILD="NO"
else
BUILD="YES"
@ -1474,7 +1479,6 @@ if [ "${PLATFORM}" = "MINGW64" ] || [ "${PLATFORM}" = "MINGW32" ] || [ "${PLATFO
fi
if [ $? -eq 0 ]; then
echo buildbot job: $jobid retroarch configure success!
else