Skip to contentSkip to conversation

Sourced warning banner scripts to $outputdir

PATCH In review Abongwa Bonalais Amahnui 2 participants 2 messages Apr 22, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Sourced warning banner scripts to $outputdir

---
 run-docs-build | 6 ++++++
 1 file changed, 6 insertions(+)
run-docs-build +6 -0
index db790dc..b6744ee 100755
@@ -37,6 +37,12 @@ cd $outputdir
 echo Extracing old content from archive
 tar -xJf $docbookarchive
 
+cp '/home/abongwa/Documents/auto-builder/stylescript.py' $outputdir
+cp '/home/abongwa/Documents/auto-builder/htmlscript.py' $outputdir
+python3 $outputdir/htmlscript.py
+python3 $outputdir/stylescript.py
+
+
 cd $bbdocs
 mkdir $outputdir/bitbake
 
Signature · 1 line
2.25.1
#1 lore raw

Hi Amahnui,

run-docs-build

Quoted 9 lines · Abongwa Amahnui Bonalais

---
run-docs-build | 6 ++++++

1 file changed, 6 insertions(+)
run-docs-build +0 -0
index db790dc..b6744ee 100755

This will not apply because run-docs-build is in the scripts directory inside yocto-autobuilder-helper git repo. I'm wondering how you got this patch. Do you mind explaining how you created the patch so we can help you fix its creation?

run-docs-build cd $outputdir · line 41

Quoted 6 lines
run-docs-build +0 -0
@@ -37,6 +37,12 @@ cd $outputdir

echo Extracing old content from archive
tar -xJf $docbookarchive

run-docs-build +2 -0
+cp '/home/abongwa/Documents/auto-builder/stylescript.py' $outputdir
+cp '/home/abongwa/Documents/auto-builder/htmlscript.py' $outputdir

We do not (fortunately!) have access to your home directory on your PC so this cannot be merged. We need a patch which adds those two scripts in yocto-autobuilder-helper git repo and then use them. You already sent another patch for the scripts, so they just need to be sent together in one patch. git commit --amend and/or git rebase -i will help you merging two commits.

Also, once the script is inside yocto-autobuilder-helper git repo, we don't need to copy it anymore :)

run-docs-build cd $outputdir · line 44

Quoted 3 lines
run-docs-build +3 -0
+python3 $outputdir/htmlscript.py
+python3 $outputdir/stylescript.py
+

Since those scripts have a Python shebang (#!/usr/bin/env python3) you dont need to call the scripts with python3 in front because the shell will do it automatically for you.

Also, you should use $scriptdir/htmlscript.py once it's put in the correct directory since we already are in outputdir at those lines in the script and the files aren't supposed to be in outputdir (outputdir is the directory where all files that needs to be served by docs.yoctoproject.org are, and we don't want this script to be there).

Cheers,
Quentin

Quoted 4 lines

+
cd $bbdocs
mkdir $outputdir/bitbake