From: Quentin Schulz <[email protected]> There's no need to keep a list of tags requiring to be patched since the tag is part of the path where patches are stored.
Therefore, let's only check if there's a patch directory for a given tag and if so, apply all patches in there. Cc: Quentin Schulz <[email protected]> Signed-off-by: Quentin Schulz <[email protected]> --- scripts/run-docs-build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index cca4e4d..73cba3f 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -111,11 +111,7 @@ for tag in $(git tag --list 'yocto-*'); do echo Processing $tag cd $ypdocs git checkout $tag - # Update versions tagged before the current_version in - # conf.py was changed resulting in sphinx believing these are - # development branches which breaks all sorts of assumptions. Moving a - # tag isn't best practice so we just patch the releases here instead. - if [ "$tag" = "yocto-3.3" ] || [ "$tag" = "yocto-3.3.5" ] || [ "$tag" = "yocto-3.4" ] || [ "$tag" = "yocto-3.1.14" ] || [ "$tag" = "yocto-3.4.2" ] ; then + if [ -e "${scriptdir}/docs-build-patches/${tag}/" ]; then echo Adding patch for $tag git am "${scriptdir}/docs-build-patches/${tag}/"000* fi -- 2.35.1
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#56448): https://lists.yoctoproject.org/g/yocto/message/56448 Mute This Topic: https://lists.yoctoproject.org/mt/89801898/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
