[yocto-autobuilder-helper] scripts: run-docs-build: do not extract eclipse directories from old docs

Message ID 20220512130217.1926760-1-foss+yocto@0leil.net
State New
Headers show
Series [yocto-autobuilder-helper] scripts: run-docs-build: do not extract eclipse directories from old docs | expand

Commit Message

Quentin Schulz May 12, 2022, 1:02 p.m. UTC
From: Quentin Schulz <quentin.schulz@theobroma-systems.com>

For some reason, the old docs tarball includes many eclipse
subdirectories which are just cluttering the docs website up.

Therefore, let's just not extract eclipse directories from the tarball.

Cc: Quentin Schulz <foss+yocto@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
---
 scripts/run-docs-build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Quentin Schulz May 31, 2022, 10:15 a.m. UTC | #1
Hi all,

Any feedback to give on this patch?

Cheers,
Quentin

On 5/12/22 15:02, Quentin Schulz wrote:
> From: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> 
> For some reason, the old docs tarball includes many eclipse
> subdirectories which are just cluttering the docs website up.
> 
> Therefore, let's just not extract eclipse directories from the tarball.
> 
> Cc: Quentin Schulz <foss+yocto@0leil.net>
> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
> ---
>   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 f6b8ac4..b912ee9 100755
> --- a/scripts/run-docs-build
> +++ b/scripts/run-docs-build
> @@ -35,7 +35,7 @@ docbookarchive=${docbookarchive:-/srv/autobuilder/autobuilder.yocto.io/pub/docbo
>   mkdir $outputdir
>   cd $outputdir
>   echo Extracing old content from archive
> -tar -xJf $docbookarchive
> +tar --exclude=eclipse -xJf $docbookarchive
>   
>   cd $bbdocs
>   mkdir $outputdir/bitbake
Richard Purdie June 1, 2022, 8:15 a.m. UTC | #2
On Tue, 2022-05-31 at 12:15 +0200, Quentin Schulz wrote:
> Any feedback to give on this patch?

Looks good to me, merged. Sorry about the delay.

Cheers,

Richard

Patch

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index f6b8ac4..b912ee9 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -35,7 +35,7 @@  docbookarchive=${docbookarchive:-/srv/autobuilder/autobuilder.yocto.io/pub/docbo
 mkdir $outputdir
 cd $outputdir
 echo Extracing old content from archive
-tar -xJf $docbookarchive
+tar --exclude=eclipse -xJf $docbookarchive
 
 cd $bbdocs
 mkdir $outputdir/bitbake