mirror of
https://github.com/libretro/libretro-super
synced 2025-01-01 09:00:08 +00:00
Merge pull request #681 from orbea/recipe
libretro-buildbot-recipe.sh: Rebuild cores when using a new recipe.
This commit is contained in:
commit
82574a9b57
@ -627,11 +627,21 @@ while read line; do
|
||||
else
|
||||
echo "resetting repo state $URL..."
|
||||
git --work-tree="$DIR" --git-dir="$DIR/.git" reset --hard FETCH_HEAD
|
||||
git --work-tree="$DIR" --git-dir="$DIR/.git" clean -xdf
|
||||
git --work-tree="$DIR" --git-dir="$DIR/.git" clean -xdf -e .libretro-core-recipe
|
||||
BUILD="YES"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$DIR/.libretro-core-recipe" ]; then
|
||||
recipe="$(cat "$DIR/.libretro-core-recipe")"
|
||||
if [ "$line" != "$recipe" ]; then
|
||||
echo "$line" > "$DIR/.libretro-core-recipe"
|
||||
BUILD="YES"
|
||||
fi
|
||||
else
|
||||
echo "$line" > "$DIR/.libretro-core-recipe"
|
||||
fi
|
||||
|
||||
CURRENT_BRANCH="$(git --work-tree="$DIR" --git-dir="$DIR/.git" rev-parse --abbrev-ref HEAD)"
|
||||
|
||||
if [ "${GIT_BRANCH}" != "${CURRENT_BRANCH}" ] && [ "${TRAVIS:-0}" = "0" ]; then
|
||||
@ -667,7 +677,7 @@ while read line; do
|
||||
* ) : ;;
|
||||
esac
|
||||
echo "Cleaning repo state after build $URL..."
|
||||
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf
|
||||
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf -e .libretro-core-recipe
|
||||
else
|
||||
echo "buildbot job: building $NAME up-to-date"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user