mirror of
https://github.com/libretro/libretro-super
synced 2025-04-18 11:42:19 +00:00
add more forcebuild handling
This commit is contained in:
parent
9ea919a14e
commit
29ff61edee
@ -795,6 +795,7 @@ while read line; do
|
|||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
if [ -f .forcebuild ]; then
|
if [ -f .forcebuild ]; then
|
||||||
|
echo "found .forcebuild file, building $NAME"
|
||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -907,15 +908,20 @@ while read line; do
|
|||||||
fi
|
fi
|
||||||
elif [ "${TYPE}" = "psp_hw_render" ]; then
|
elif [ "${TYPE}" = "psp_hw_render" ]; then
|
||||||
if [ -d "${DIR}/.git" ]; then
|
if [ -d "${DIR}/.git" ]; then
|
||||||
|
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
|
if [ -f .forcebuild ]; then
|
||||||
|
echo "found .forcebuild file, building $NAME"
|
||||||
|
BUILD="YES"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "resetting repo state... "
|
echo "resetting repo state... "
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
git reset --hard
|
git reset --hard
|
||||||
echo "pulling changes from repo $URL... "
|
echo "pulling changes from repo $URL... "
|
||||||
OUT=`git pull`
|
OUT=`git pull`
|
||||||
|
|
||||||
if [[ $OUT == *"Already up-to-date"* ]]; then
|
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
@ -932,15 +938,20 @@ while read line; do
|
|||||||
fi
|
fi
|
||||||
elif [ "${TYPE}" == "SUBMODULE" ]; then
|
elif [ "${TYPE}" == "SUBMODULE" ]; then
|
||||||
if [ -d "${DIR}/.git" ]; then
|
if [ -d "${DIR}/.git" ]; then
|
||||||
|
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
|
if [ -f .forcebuild ]; then
|
||||||
|
echo "found .forcebuild file, building $NAME"
|
||||||
|
BUILD="YES"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "resetting repo state $URL... "
|
echo "resetting repo state $URL... "
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
git reset --hard
|
git reset --hard
|
||||||
echo "pulling changes from repo $URL... "
|
echo "pulling changes from repo $URL... "
|
||||||
OUT=`git pull`
|
OUT=`git pull`
|
||||||
|
|
||||||
if [[ $OUT == *"Already up-to-date"* ]]; then
|
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
@ -1048,6 +1059,12 @@ buildbot_pull(){
|
|||||||
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
if [ -d "${PARENTDIR}/${DIR}/.git" ]; then
|
||||||
cd $PARENTDIR
|
cd $PARENTDIR
|
||||||
cd $DIR
|
cd $DIR
|
||||||
|
|
||||||
|
if [ -f .forcebuild ]; then
|
||||||
|
echo "found .forcebuild file, building $NAME"
|
||||||
|
BUILD="YES"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "resetting repo state $URL... "
|
echo "resetting repo state $URL... "
|
||||||
git clean -xdf
|
git clean -xdf
|
||||||
git reset --hard
|
git reset --hard
|
||||||
@ -1056,14 +1073,14 @@ buildbot_pull(){
|
|||||||
echo $OUT
|
echo $OUT
|
||||||
if [ "${TYPE}" = "PROJECT" ]; then
|
if [ "${TYPE}" = "PROJECT" ]; then
|
||||||
RADIR=$DIR
|
RADIR=$DIR
|
||||||
if [[ $OUT == *"Already up-to-date"* ]]; then
|
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
fi
|
fi
|
||||||
elif [ "${TYPE}" = "SUBMODULE" ]; then
|
elif [ "${TYPE}" = "SUBMODULE" ]; then
|
||||||
RADIR=$DIR
|
RADIR=$DIR
|
||||||
if [[ $OUT == *"Already up-to-date"* ]]; then
|
if [[ $OUT == *"Already up-to-date"* ]] && [ ! "${BUILD}" = "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
else
|
else
|
||||||
BUILD="YES"
|
BUILD="YES"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user