From patchwork Fri Aug 28 11:38:34 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 96649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DE83C61DCB for ; Fri, 28 Aug 2026 11:39:02 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4379.1787917136879724245 for ; Fri, 28 Aug 2026 04:38:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=Dc4vFWbQ; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 3C5E84E413D5 for ; Fri, 28 Aug 2026 11:38:55 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 10F3360537 for ; Fri, 28 Aug 2026 11:38:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4DFF311C78176; Fri, 28 Aug 2026 13:38:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1787917130; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=R0CosVGKk/zN3iIQiE1iEonh6aPf4QZSEFtBBkxyyZM=; b=Dc4vFWbQsUXYbrJuq6YtNTIirng53+PMjZ/F2I92RW/bRJXHxm+DZ13PZLSbuOMHZwSmC4 ic5TL5+njULWpLmpE47GfK8hSZVLZU84TAELWIcFJ3jJ1p21KAGpMxNzdQtOtx3R/c8O0u Khv8cTUQ+dJN6rqU2QZ5Uo0T9g/fenqvrSd4ZGyV5zeCyI7h2z+Op/fjQXSnV4Ha6ffMpX p3HCaEjH3J3rkdBtWkNaSs0rUhQXUnCIfjUoktuyb/ANI2qMTgnrNQwXR5yufiaSh0xDHy WKe/cv6i8resJe7JHfbgALIjOdhKux9VoX0BpTbaPFZ/YfZpqkbniAXW9XML1w== From: Antonin Godard Date: Fri, 28 Aug 2026 13:38:34 +0200 Subject: [yocto-autobuilder-helper][PATCH 1/4] scripts/run-docs-build: fix a typo MIME-Version: 1.0 Message-Id: <20260828-run-docs-build-tweaks-v1-1-24a7c832e352@bootlin.com> References: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> In-Reply-To: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=552; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=cnk9xBMbht6vCMXZit17F/4sXLQrs13qhrNXOOtckVg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqkXNEK9ZR5aIczCkkJpv0BvPaOCJ44byuONwo8 1e4v86+DkWJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapFzRAAKCRDRgEFAKaOo NmVID/0fMFKKV9Xfo0mTluJdcOKyNPogxd3Y1uAdM4Cy8z1pUYGozS8zjSlJ90d3/qDcSzYLPgn 4yEUdK7KgB15s0sq42PXhoYcTuoPmCzCUO9BgYF3ed7kI5KqNJm0ybqLw48kqfFYIMVUEvo7iCB /fhplgF3yY3o4W6SXA1PfvaB6S8UCOn0QQidl00FRgyFyQxa2Z7+vkMtkJo1JeOwCoTOrlWdmvF 9olEK6D0KWoUP+32PZrYnhwGXLa8RBuJ8EqK8qP4hxHr+IPWB77xUNnutlTa4L7vtpFBXhah1/D NvjYOX66+3GsscZqisNCfMIkLmodrfCJqY1Z2qWxDxHFClbYKOOzgeF80DJ2kwdpVr+t4pUrFV2 /6kZKwwf9PYFNi5JItb+F/zI2WuLV8HjkYhi0YaYdRS4HuAJ9aW8W3Ni5Wj+4GGY7z2/pycKSsq fQ4GYWfOxVDPvHvBVqd2TolmqvScXpWb4Dxo7LQKWihsSoWTM0MdnuOvZGZZcYQYWRqaY7jThei di3fliPZxWDBkJv3rP560z7en2knLd5K6Us7yunHStZedihTR7sDHilJgy4M9MnqrhHwtVYQn6c RUF+N2fhl75TW6YCocGmcM/O62bo7ulw/9N4dMZkxILLfvdY6LB4rQOkAzJ87aBGvvrrN4xm4Wu al6AojOhYYXGNPw== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 28 Aug 2026 11:39:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4715 Signed-off-by: Antonin Godard --- scripts/run-docs-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 090e5b0..6b6e5de 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -92,7 +92,7 @@ fi mkdir $outputdir cd $outputdir -echo Extracing old content from archive +echo Extracting old content from archive tar --exclude=eclipse -xJf ${docbookarchive_localpath} $scriptdir/docs_add_banner.py From patchwork Fri Aug 28 11:38:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 96648 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 30A82C61DD7 for ; Fri, 28 Aug 2026 11:39:02 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.4383.1787917141511407176 for ; Fri, 28 Aug 2026 04:39:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=Kc7QgUNz; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id D6EFE4E413D5 for ; Fri, 28 Aug 2026 11:38:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id AD3CF60537 for ; Fri, 28 Aug 2026 11:38:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EC0D611C781DA; Fri, 28 Aug 2026 13:38:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1787917135; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=RFG6Kbwgx3I55XtuPoQNaqU7I+AcXjYFjNF09SeaPkc=; b=Kc7QgUNzJPdK1m+NMUghWxkfxKO/PXsPu52Gdhxla84sdskabPJ1sc11NL7oXpm7ka1j6h mFiRlXgy8kVAbv3fNpX+sx5snu4Ru9dbyxp3Pw7ZIpAWCB2yy6s2aA+L2SQa84eY9/itox GGuwHVrfK16DCelBk0D+V9WUvvzAdOvN4eERCjvv3lnzu+YweVlm0rDMTL2EHOtGUaWn4w KQMr+nedY7/RfC4NjsPwAfEBpxf/D/qx8G+FJScdxuqkGnD74KmxE7T6YaLUSKA67hMBlu kS7soXXRAtZl247aO6hJ0YKP0Jy6CJRFTz5F3qiudHvEt9a6XK9ubbJelkcb9g== From: Antonin Godard Date: Fri, 28 Aug 2026 13:38:35 +0200 Subject: [yocto-autobuilder-helper][PATCH 2/4] scripts/run-docs-build: fix indentation MIME-Version: 1.0 Message-Id: <20260828-run-docs-build-tweaks-v1-2-24a7c832e352@bootlin.com> References: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> In-Reply-To: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2989; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=aO4tescTlDTHatCs9V/z+aL1bdd3firB/LvJcRT6vvg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqkXNE/YGoROZmUYeXCPV0H+44KjTkcfbgGe/8l LckiEO2RbOJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapFzRAAKCRDRgEFAKaOo NlZkD/wNipmFRjOsOG/NHwf8Lrwhiae23JnkXe4wdnc6vsd6ZPN33JRyYUcUnmvza31rutN/UDx ElOftEqv0y5jJMJnj1eOSxBhBcxtppdQE3fyUUuMQ3DXrbDMZ7r7wmMwllmisXep4/LS32kM05c XnxUaBVTF9K23qhFx1vKfoM/8CMQuBMpjSUXUC6d4iyhuUk6eSyjj7hUmPb9Xdzw7sFA/UqegX3 rfqVAPXBDKitQ0DlMv0BsDhUnfK7vUqCzm2Nj6k1ZgZbbeFn75WgZEa6r90wuef9MK65jO08pR0 2foJW3yhjm0GI9kp7mBLCHIdz555ef1/chy7OqiB6wqC7GnkNXihVNPmCMU8b5CKnt0hmDhALJH IHLBiyqkDd1e5NQCPx2ogMI0tn2bujbCCuXJuMAdFL/KSdhK/Z96eOMuKW5gpZH3vq978GODr+3 GO/Reee+nLxGr8l5WSAT/MLYV3vEEKgOFoeFNhtusSUQAP2cPdyh3jhXfn6gxgElMp53b992/kU gYDs+LkLXv2O0fw/zxiTm0qgp125+iqs1de10FiuoUsbOoL/tAWUqPSTRuxQ4y4VsLswmE6bkPA xTs5ppSo9rlol5pdCQBE/kFsjIm4palYLvCW5KtHxa4RUAhdG0Y1/iTfhACVbnk4gPBdRUn0B3U Erjv9MtIfdXlzTw== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 28 Aug 2026 11:39:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4716 Fix the indentation of the script to have indents as 4 spaces consistently. Signed-off-by: Antonin Godard --- scripts/run-docs-build | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 6b6e5de..344acbf 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -113,9 +113,9 @@ first_sphinx_commit=84ccba0f4aff91528f764523fe1205a354c889ed latest_branch=$(./setversions.py --get-latest-branch 2>/dev/null) if ! echo "$latest_branch" | grep -qE "^[0-9]+\.[0-9]+$"; then - echo "Got unexpected branch from ./set_versions.py: $latest_branch" - echo "Should be in X.Y format" - exit 1 + echo "Got unexpected branch from ./set_versions.py: $latest_branch" + echo "Should be in X.Y format" + exit 1 fi for branch in 1.46 $(git branch --remote --contains "$first_sphinx_commit" --format '%(refname:lstrip=3)'); do @@ -144,7 +144,7 @@ for branch in 1.46 $(git branch --remote --contains "$first_sphinx_commit" --for if [ "$branch" = "master-next" ]; then branch="next" - mkdir $outputdir/bitbake/$branch + mkdir $outputdir/bitbake/$branch elif [ "$branch" = "master" ]; then branch="dev" mkdir $outputdir/bitbake/$branch @@ -153,7 +153,7 @@ for branch in 1.46 $(git branch --remote --contains "$first_sphinx_commit" --for mkdir $outputdir/bitbake/$latest_branch cp -r ./_build/final/* $outputdir/bitbake/$latest_branch else - mkdir $outputdir/bitbake/$branch + mkdir $outputdir/bitbake/$branch fi cp -r ./_build/final/* $outputdir/bitbake/$branch @@ -203,7 +203,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s # skip milestone tags if [[ $branch =~ yocto-.*_M[0-9] ]]; then - continue + continue fi echo Building $branch @@ -221,7 +221,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s cp poky.yaml poky.yaml.in fi if [ -f ref-manual/svg/releases.svg ]; then - git checkout origin/master ref-manual/svg/releases.svg + git checkout origin/master ref-manual/svg/releases.svg fi ( @@ -244,7 +244,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s if [ "$branch" = "master-next" ]; then branch="next" - mkdir -p $outputdir/$branch + mkdir -p $outputdir/$branch elif [ "$branch" = "master" ]; then branch="dev" mkdir -p $outputdir/$branch @@ -257,7 +257,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s elif [ "$branch" = "transition" ]; then branch="" else - mkdir -p $outputdir/$branch + mkdir -p $outputdir/$branch fi cp -r ./_build/final/* $outputdir/$branch From patchwork Fri Aug 28 11:38:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 96651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D63AC61DB9 for ; Fri, 28 Aug 2026 11:39:12 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.4382.1787917146219804457 for ; Fri, 28 Aug 2026 04:39:07 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=R3C+q9sM; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 8816D4E413D5 for ; Fri, 28 Aug 2026 11:39:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 5E00160537 for ; Fri, 28 Aug 2026 11:39:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 93E5E11C78212; Fri, 28 Aug 2026 13:38:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1787917140; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=oGYS7JED7xiAhT9gqbd1XZIo/qR2q1UC8KbuH6Dz3ek=; b=R3C+q9sM4/Q4lbWNjGnFlHC5Z4JP3BDF8M+IayP1hBo6nJptNk01ei+tgzshmpZtw0iqDX SxiLAGlpsmCLmp/124iy3i4kMw4BczQsXGtIiICrO0P8gMXKKR2XlzSLdUrPSSoyRDvEyQ hMxTKISPVQIW40LnZV9WD2JiJdvq4gy2ZmsHW4xGsiDBfi/FXZBc6JSn7g2vOHhyojEPUI sZNDgyX04z2OLPdTsjUvSNqKxgfFmjpBHMhGBH3t012i7QqDLVkvYcThgPHe8EKYtu5+96 oXRNr4odfiy8HjzdI8RQ88WL34omac3JH8dL5Kyhgk3DtwYUG1WZt8PQMC996Q== From: Antonin Godard Date: Fri, 28 Aug 2026 13:38:36 +0200 Subject: [yocto-autobuilder-helper][PATCH 3/4] scripts/run-docs-build: fix shellcheck issues MIME-Version: 1.0 Message-Id: <20260828-run-docs-build-tweaks-v1-3-24a7c832e352@bootlin.com> References: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> In-Reply-To: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=9683; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=bxBHFShyweEEbB5hjSGhHsIfICZEHK9IX3mWo/kbexY=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqkXNEOvoOd2yZzAtyxE+Un8Zix2I98+pFrLe6R 12dmG3i2R+JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapFzRAAKCRDRgEFAKaOo NtDID/9GebncWWA/9Le9b6UztC6LEj52CDJl3h7v6xSKbnEBivJM4/LoQBHrgp/U1U08cndL9IL Bie3r2vLi32HlmDcOZtV+4+lpCXziHRysqf5eorlojmrLgSI3FyefwcrnuqImZJM7dmaKIMuwFs ylcjZ8697w0w2D/PhZTHFllrOtqZWpKfHXKDa3jugV4XDne6JG7S5BRKlNhXg0L1KuVaunKqWJF et0tfHstd70dzrDUSbRDCWNvhCt4Zl/OebfjPnUihAkhqEXatwWSI6olCKhOktgyaQGAQ12zx2n uUYvxvpabRRm36tQoKdCLmzyKDHF0JcBG6as0wfkKH7z1xOUz/lS5RYdS8Mzm0FOJFfOYN+aF8F XM4cFGBd28EePbV3qFm++DR/Cib/zOrG/jzSYOwu/MLwqZJMz6Fuoj3hj02zfUAYQSWdfTegQMJ 6hDUwAQdX/wAjdJkyUhhxZj8MmM3XFnpogjXwHSAAqc1mpq+UEjJkQ6G/KkrjF2PzDW+uO57YAw WhfF5R9fuslyIExT/trakWASCbBlE+w2NY+njMk05goakY80rw2bh4M7O85DpkcfBMmsQOKJ09P 6sNEICHUIGPMI8i+vIokNxnoL4iBl/jRHi2By6aoA4GacmUa4OVXLiLPZUBRiyY4/JIYsoFl0Ow T2v6iSi+6hhISDw== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 28 Aug 2026 11:39:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4717 Signed-off-by: Antonin Godard --- scripts/run-docs-build | 107 +++++++++++++++++++++++++------------------------ 1 file changed, 55 insertions(+), 52 deletions(-) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 344acbf..274ad20 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -12,6 +12,9 @@ # - docbookarchive_url as the path to old (pre 3.1.5 and Sphinx migration) docs tarball # Can be found here: https://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-archives-20201105.tar.xz # - PUBLISH (0/1) for whether the files should be rsync'ed to docs.yoctoproject.org +# +# We source multiple external files here, ignore this warning. +# shellcheck disable=SC1090 set -e set -u @@ -24,36 +27,36 @@ bbdocs=$(realpath "$3/doc/") outputdir=$builddir/output scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" PUBLISH=${PUBLISH:-1} -sharedir=`jq -r '.["BASE_SHAREDDIR"]' < $HOME/config-local.json` +sharedir="$(jq -r '.["BASE_SHAREDDIR"]' < "$HOME"/config-local.json)" # Modified 5.1 tools image to include rsvg, switch to next released version buildtools_url=${buildtools_url:-https://downloads.yoctoproject.org/releases/yocto/milestones/yocto-6.0_M2/buildtools/x86_64-buildtools-docs-nativesdk-standalone-5.3.99%2Bsnapshot-be8cdcf13a658e9e81ff2f7b71d1c8c37a920ce7.sh} buildtools_url_old=${buildtools_url_old:-https://downloads.yoctoproject.org/releases/yocto/yocto-4.1.2/buildtools/x86_64-buildtools-docs-nativesdk-standalone-4.1.2.sh} docbookarchive_url=${docbookarchive_url:-https://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-archives-20201105.tar.xz} -buildtools_name=`basename $buildtools_url` +buildtools_name="$(basename "$buildtools_url")" buildtools_localpath=${sharedir}/cluster-downloads-cache/${buildtools_name} -if [ ! -e ${buildtools_localpath} ]; then - mkdir -p `dirname ${buildtools_localpath}` - wget ${buildtools_url} -O ${buildtools_localpath} - chmod a+x ${buildtools_localpath} +if [ ! -e "${buildtools_localpath}" ]; then + mkdir -p "$(dirname "${buildtools_localpath}")" + wget "${buildtools_url}" -O "${buildtools_localpath}" + chmod a+x "${buildtools_localpath}" fi -cd $builddir +cd "$builddir" mkdir buildtools -${buildtools_localpath} -y -d $builddir/buildtools +${buildtools_localpath} -y -d "$builddir"/buildtools -buildtools_name_old=`basename $buildtools_url_old` +buildtools_name_old="$(basename "$buildtools_url_old")" buildtools_localpath_old=${sharedir}/cluster-downloads-cache/${buildtools_name_old} -if [ ! -e ${buildtools_localpath_old} ]; then - mkdir -p `dirname ${buildtools_localpath_old}` - wget ${buildtools_url_old} -O ${buildtools_localpath_old} - chmod a+x ${buildtools_localpath_old} +if [ ! -e "${buildtools_localpath_old}" ]; then + mkdir -p "$(dirname "${buildtools_localpath_old}")" + wget "${buildtools_url_old}" -O "${buildtools_localpath_old}" + chmod a+x "${buildtools_localpath_old}" fi -cd $builddir +cd "$builddir" mkdir buildtools-old -${buildtools_localpath_old} -y -d $builddir/buildtools-old +${buildtools_localpath_old} -y -d "$builddir"/buildtools-old # To build the latexpdf output we need Xetex (which can handle international characters) @@ -84,25 +87,25 @@ fi export FONTCONFIG_PATH="$scriptdir/docsfontconfig" # Getting the old docbook built docs from an archive. Not rebuilding them. -docbookarchive_localpath=${sharedir}/cluster-downloads-cache/`basename ${docbookarchive_url}` -if [ ! -e ${docbookarchive_localpath} ]; then - mkdir -p `dirname ${docbookarchive_localpath}` - wget ${docbookarchive_url} -O ${docbookarchive_localpath} +docbookarchive_localpath="${sharedir}/cluster-downloads-cache/$(basename "${docbookarchive_url}")" +if [ ! -e "${docbookarchive_localpath}" ]; then + mkdir -p "$(dirname "${docbookarchive_localpath}")" + wget "${docbookarchive_url}" -O "${docbookarchive_localpath}" fi -mkdir $outputdir -cd $outputdir +mkdir "$outputdir" +cd "$outputdir" echo Extracting old content from archive -tar --exclude=eclipse -xJf ${docbookarchive_localpath} +tar --exclude=eclipse -xJf "${docbookarchive_localpath}" -$scriptdir/docs_add_banner.py +"$scriptdir"/docs_add_banner.py # generate the releases.json in PWD -$scriptdir/release-parser.py "$ypdocs/.." "$bbdocs/.." +"$scriptdir"/release-parser.py "$ypdocs/.." "$bbdocs/.." cp releases.json "$builddir" -cd $bbdocs -mkdir $outputdir/bitbake +cd "$bbdocs" +mkdir "$outputdir"/bitbake # A decision was made to keep updating all the Sphinx generated docs for the moment, # even the ones corresponding to no longer supported releases @@ -123,20 +126,20 @@ for branch in 1.46 $(git branch --remote --contains "$first_sphinx_commit" --for continue fi - echo Building bitbake $branch branch - git checkout $branch + echo "Building bitbake $branch branch" + git checkout "$branch" git reset --hard git clean -ffdx if [ -e "${scriptdir}/docs-build-patches/bitbake/${branch}" ]; then - echo Adding patch for $branch + echo "Adding patch for $branch" git am -3 "${scriptdir}/docs-build-patches/bitbake/${branch}/"000* fi git checkout origin/master sphinx-static/switchers.js.in setversions.py ( - . $builddir/buildtools/environment-setup* + . "$builddir"/buildtools/environment-setup* make clean cp "$builddir"/releases.json "$bbdocs"/ SPHINXOPTS="-j auto" make publish @@ -144,19 +147,19 @@ for branch in 1.46 $(git branch --remote --contains "$first_sphinx_commit" --for if [ "$branch" = "master-next" ]; then branch="next" - mkdir $outputdir/bitbake/$branch + mkdir "$outputdir/bitbake/$branch" elif [ "$branch" = "master" ]; then branch="dev" - mkdir $outputdir/bitbake/$branch + mkdir "$outputdir/bitbake/$branch" elif [ "$branch" = "$latest_branch" ]; then branch="" - mkdir $outputdir/bitbake/$latest_branch - cp -r ./_build/final/* $outputdir/bitbake/$latest_branch + mkdir "$outputdir/bitbake/$latest_branch" + cp -r ./_build/final/* "$outputdir/bitbake/$latest_branch" else - mkdir $outputdir/bitbake/$branch + mkdir "$outputdir/bitbake/$branch" fi - cp -r ./_build/final/* $outputdir/bitbake/$branch + cp -r ./_build/final/* "$outputdir/bitbake/$branch" git reset --hard git clean -ffdx done @@ -164,11 +167,11 @@ done if [ "$PUBLISH" -ne 0 ]; then # only sync bitbake folder for now. We need bitbake to be published first # since the bitbake intersphinx index will be downloaded to build yocto-docs - cd $outputdir + cd "$outputdir" rsync -irlp --checksum --ignore-times --delete bitbake docs@docs.yoctoproject.org:docs/ fi -cd $ypdocs +cd "$ypdocs" # transition must build after master for the switchers.js file # Again, keeping even the no longer supported releases (see above comment) @@ -206,13 +209,13 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s continue fi - echo Building $branch - git checkout $branch + echo "Building $branch" + git checkout "$branch" git reset --hard git clean -ffdx if [ -e "${scriptdir}/docs-build-patches/${branch}/" ]; then - echo Adding patch for $branch + echo "Adding patch for $branch" git apply -3 "${scriptdir}/docs-build-patches/${branch}/"000* fi @@ -227,9 +230,9 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s ( # Anything older than scarthgap needs the older buildtools if git merge-base --is-ancestor 0cdc0afd3332459d30cfc8f4c2e62bdcc23f5ed5 HEAD; then - . $builddir/buildtools/environment-setup* + . "$builddir"/buildtools/environment-setup* else - . $builddir/buildtools-old/environment-setup* + . "$builddir"/buildtools-old/environment-setup* fi make clean @@ -244,28 +247,28 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s if [ "$branch" = "master-next" ]; then branch="next" - mkdir -p $outputdir/$branch + mkdir -p "$outputdir/$branch" elif [ "$branch" = "master" ]; then branch="dev" - mkdir -p $outputdir/$branch + mkdir -p "$outputdir/$branch" elif [ "$branch" = "$latest_tag" ]; then branch="" - mkdir -p $outputdir/$latest_tag - cp -r ./_build/final/* $outputdir/$latest_tag - echo Linking to $latest_tag as current - ln -s $latest_tag $outputdir/current + mkdir -p "$outputdir/$latest_tag" + cp -r ./_build/final/* "$outputdir/$latest_tag" + echo "Linking to $latest_tag as current" + ln -s "$latest_tag" "$outputdir"/current elif [ "$branch" = "transition" ]; then branch="" else - mkdir -p $outputdir/$branch + mkdir -p "$outputdir/$branch" fi - cp -r ./_build/final/* $outputdir/$branch + cp -r ./_build/final/* "$outputdir/$branch" git reset --hard git clean -ffdx done if [ "$PUBLISH" -ne 0 ]; then - cd $outputdir + cd "$outputdir" rsync -irlp --checksum --ignore-times --delete . docs@docs.yoctoproject.org:docs/ fi From patchwork Fri Aug 28 11:38:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 96650 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5AEDCC61DCB for ; Fri, 28 Aug 2026 11:39:12 +0000 (UTC) Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.4387.1787917151027986628 for ; Fri, 28 Aug 2026 04:39:11 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=GcsI2KR2; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 57ED64E413D5 for ; Fri, 28 Aug 2026 11:39:09 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2E44560537 for ; Fri, 28 Aug 2026 11:39:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 46B5B11C781DA; Fri, 28 Aug 2026 13:39:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1787917144; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=CA86DWrpvHgNPekYdjwitOGtfz3lfSNX697Gp+9HW/4=; b=GcsI2KR2TNlx+3EkBXwZxuBsGtPV58rFfVqh5KL5NDSLbhddJCFDtr2W9L8kji1M/OvMAg IWlhI8fUknMz3FYOyWs5oCseFZwgnaf73BCuFRSHXK54T1c9XFTjDEmcIv6x52ACcrWwSN LR3E3/95UhvYfwIwD/kiWqpXnEsJOW7Q4oTx6K7bQQlpe1GWQb0obscowmnjpAdZC3BTT2 wE34Kf4zPBmt3oEhHSVlC2T6c5CPukFwt/hADmbIPMBonPrEGkQFltSLhyO5fjBPnnguzR 0brMCCWnbWPodXjenW/iRqUfGsx/aaCZgHh+n1H6fc+UmZuvTF8Xvegg/lXwJQ== From: Antonin Godard Date: Fri, 28 Aug 2026 13:38:37 +0200 Subject: [yocto-autobuilder-helper][PATCH 4/4] scripts/run-docs-build: use a bashism MIME-Version: 1.0 Message-Id: <20260828-run-docs-build-tweaks-v1-4-24a7c832e352@bootlin.com> References: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> In-Reply-To: <20260828-run-docs-build-tweaks-v1-0-24a7c832e352@bootlin.com> To: yocto-patches@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=618; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=QJMtJNWqWPzNlDyXj6YpjD0J/slTY49xa+6lcuTnAl8=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBqkXNEYWY9fqBI7/+jIVDD8we/zAMxo2dYIrxaz 8ZRzBShEnaJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCapFzRAAKCRDRgEFAKaOo NqtOEADEjnom48pcmuBjEh9ar0Wi61kFGtwZg3nl7yJ7twqYfKWyiZHDoj+0tuMxWPkUWGSsmNX EYLF60OQwcjWMfc2+ejKFnd5SwhOwj7+WzgDzS3V0wGxuIprf+UOeiOxaPBfBs3X1vlnVkHkGVl gj7qaSSfM7ijksTa3wqNRFB+IiKLZkVvfVPOzUJGufvg1UA/RENlGlyD8Olz+YCHmrgP7xO/i3+ Tf3YVlWBJgjhmMGTACClDysYzclyDSS/y/KTjh4wHnzJBl/yjzbrQJ5A3/OZYL7GX3VcTnt0zzF fR4XTxG06IOTKKjzAzw7jNl8vgEvGAqpYHJN2moZ4QDl961MWM/XyiI2WArNcBKmslE5RKlopO1 ka9723tmF8RQ0a3oK5xleo7GsRyNQdwMLiZ60fu3fK2QQLhXrY3Ot9d9xN7TzLVict/m+O+CY0P pJHRrKA7BI+pDqRd+xuMRvP7Es5XoAE80jlMjzQpaSQqKx9hiubONJenzLCayKA5D1HUJkIAR9V HLxNr653r+C4FlCdW86ZWlPBWJXU9auu3+9F15J5pMOUkEHpuuUq3CcX75xicjAf6u0TpCCbbyR ulR866Fc4Mc2axXnNi7r3AjPoeLAiiOIFOLSLK403cKTRgKMT5oWdwFKQmFkpscLk3ZHYgmFxm7 RnCFMrGTFS45OBw== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 28 Aug 2026 11:39:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/yocto-patches/message/4718 Signed-off-by: Antonin Godard --- scripts/run-docs-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-docs-build b/scripts/run-docs-build index 274ad20..5f5fa05 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -243,7 +243,7 @@ for branch in "$ypdocsbranch" dunfell $(git branch --remote --contains "$first_s ) # Strip yocto- from tag names - branch=$(echo "$branch" | sed 's/yocto-//') + branch=${branch//yocto-/} if [ "$branch" = "master-next" ]; then branch="next"