mirror of
https://github.com/libretro/libretro-super
synced 2025-02-24 12:41:06 +00:00
Merge pull request #730 from orbea/noclean
libretro-buildbot-recipe.sh: Don't fetch changes or reset the repo if…
This commit is contained in:
commit
bada592858
@ -575,12 +575,14 @@ while read line; do
|
|||||||
{ echo "git directory broken, removing $DIR and skipping $NAME."; \
|
{ echo "git directory broken, removing $DIR and skipping $NAME."; \
|
||||||
rm -rfv -- "$DIR" && continue; }
|
rm -rfv -- "$DIR" && continue; }
|
||||||
|
|
||||||
|
if [ -z "${NOCLEAN}" ]; then
|
||||||
echo "fetching changes from repo $URL..."
|
echo "fetching changes from repo $URL..."
|
||||||
git --work-tree="$DIR" --git-dir="$DIR/.git" fetch --depth 1 origin "${GIT_BRANCH}"
|
git --work-tree="$DIR" --git-dir="$DIR/.git" fetch --depth 1 origin "${GIT_BRANCH}"
|
||||||
|
|
||||||
echo "resetting repo state $URL..."
|
echo "resetting repo state $URL..."
|
||||||
git --work-tree="." --git-dir=".git" -C "$DIR" reset --hard FETCH_HEAD
|
git --work-tree="." --git-dir=".git" -C "$DIR" reset --hard FETCH_HEAD
|
||||||
git --work-tree="$DIR" --git-dir="$DIR/.git" clean -xdf -e .libretro-core-recipe
|
git --work-tree="$DIR" --git-dir="$DIR/.git" clean -xdf -e .libretro-core-recipe
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$HEAD" = "$(git --work-tree="$DIR" --git-dir="$DIR/.git" rev-parse HEAD)" ] && [ "${BUILD}" != "YES" ]; then
|
if [ "$HEAD" = "$(git --work-tree="$DIR" --git-dir="$DIR/.git" rev-parse HEAD)" ] && [ "${BUILD}" != "YES" ]; then
|
||||||
BUILD="NO"
|
BUILD="NO"
|
||||||
@ -626,8 +628,11 @@ while read line; do
|
|||||||
LEIRADEL ) build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${PLATFORM} "${ARGS}" "${CORES}" ;;
|
LEIRADEL ) build_libretro_generic_makefile $NAME $DIR $SUBDIR $MAKEFILE ${PLATFORM} "${ARGS}" "${CORES}" ;;
|
||||||
* ) : ;;
|
* ) : ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -z "${NOCLEAN}" ]; then
|
||||||
echo "Cleaning repo state after build $URL..."
|
echo "Cleaning repo state after build $URL..."
|
||||||
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf -e .libretro-core-recipe
|
git --work-tree="${BASE_DIR}/${DIR}" --git-dir="${BASE_DIR}/${DIR}/.git" clean -xdf -e .libretro-core-recipe
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "buildbot job: building $NAME up-to-date"
|
echo "buildbot job: building $NAME up-to-date"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user