Skip to content

Commit

Permalink
pm-qa: fix paths for shell scripts
Browse files Browse the repository at this point in the history
A commit in the repo of pm-qa:

"adf9df9 Fix path to library files and change shebang line"

Changed the text that sed was using to replace relative to
absolute paths.

As a result sed was not effectively finding the text
"source ../include" to replace it, as the sed should be now
searching for ". ../include".

Similarly for "../Switches"

Signed-off-by: Anastasios Kavoukis <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
akavoukis authored and kraj committed Jul 29, 2021
1 parent 10571d0 commit 06a93a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta-oe/recipes-test/pm-qa/pm-qa_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ do_install () {
do
# Remove hardcoded relative paths
sed -i -e 's#..\/utils\/##' ${script}
sed -i -e 's#. ..\/Switches#${bindir}#g' ${script}

script_basename=`basename ${script}`
install -m 0755 $script ${D}${libdir}/${BPN}/${script_basename}
Expand All @@ -54,7 +55,7 @@ do_install () {
# if the script includes any helper scripts from the $libdir
# directory then change the source path to the absolute path
# to reflect the install location of the helper scripts.
sed -i -e "s#source ../include#source ${libdir}/${BPN}#g" ${script}
sed -i -e "s#. ../include#. ${libdir}/${BPN}#g" ${script}
# Remove hardcoded relative paths
sed -i -e 's#..\/utils\/##' ${script}

Expand Down

0 comments on commit 06a93a0

Please sign in to comment.