Files
FFmpeg/addons/patch.sh
Michael Fabian 'Xaymar' Dirks 5c9a68281a ci: Move to a script based system for easier local repro
Also limit parallel execution of automation commands so they don't break each other randomly.
2022-01-10 00:31:19 +01:00

19 lines
569 B
Bash

echo "Applying custom patches..."
declare -a PATCHES
PATCHES[${#PATCHES[@]}]="${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_TWEAK}"
PATCHES[${#PATCHES[@]}]="${VERSION_MAJOR}.${VERSION_MINOR}"
PATCHES[${#PATCHES[@]}]="${VERSION_MAJOR}"
for patchset in ${PATCHES[@]}; do
if [[ -d "${SCRIPTROOT}/patches/${patchset}" ]]; then
echo " Found ${patchset}..."
for file in ${SCRIPTROOT}/patches/${patchset}/*.patch; do
# Skip files that don't actually exist.
[ -e "${file}" ] || continue
echo " Applying '${file}'..."
git apply "${file}"
done
fi
done