[PATCH yocto-autobuilder-helper 1/6] scripts: run-docs-build: transform argument paths into absolute paths


Quentin Schulz
 

From: Quentin Schulz <quentin.schulz@...>

The script is written in such a way that absolute paths are expected.
Instead of failing weirdly at some point in the script, let's just make
all paths passed to this script absolute by calling realpath on them.

Cc: Quentin Schulz <foss+yocto@...>
Signed-off-by: Quentin Schulz <quentin.schulz@...>
---
scripts/run-docs-build | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/run-docs-build b/scripts/run-docs-build
index c501feb..6e25549 100755
--- a/scripts/run-docs-build
+++ b/scripts/run-docs-build
@@ -8,9 +8,9 @@ set -u
set -o pipefail
set -x

-builddir=$1
-ypdocs=$2/documentation/
-bbdocs=$3/doc/
+builddir=$(realpath "$1")
+ypdocs=$(realpath "$2/documentation/")
+bbdocs=$(realpath "$3/doc/")
docs_buildtools=/srv/autobuilder/autobuilder.yocto.io/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh
outputdir=$builddir/output
scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
--
2.35.1