mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
docbook-utils-native: Fix case where ${B} != ${S}
Fix out of tree builds by using full paths to source and built objects as appropriate. (From OE-Core rev: fb9885f0f89eef30275683510569bf0ae8463226) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -22,12 +22,12 @@ inherit autotools native
|
|||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
# Fix hard-coded references to /etc/sgml
|
# Fix hard-coded references to /etc/sgml
|
||||||
if [ ! -e ${S}/.sed_done ]; then
|
if [ ! -e ${S}/.sed_done ]; then
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/jw.in
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/bin/jw.in
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/man/Makefile.am
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/doc/man/Makefile.am
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/HTML/Makefile.am
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" ${S}/doc/HTML/Makefile.am
|
||||||
|
|
||||||
# Point jw to the native sysroot catalog
|
# Point jw to the native sysroot catalog
|
||||||
sed -i -e 's|^SGML_EXTRA_CATALOGS=""|SGML_EXTRA_CATALOGS=":${sysconfdir}/sgml/catalog"|g' bin/jw.in
|
sed -i -e 's|^SGML_EXTRA_CATALOGS=""|SGML_EXTRA_CATALOGS=":${sysconfdir}/sgml/catalog"|g' ${S}/bin/jw.in
|
||||||
touch ${S}/.sed_done
|
touch ${S}/.sed_done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -44,14 +44,15 @@ do_install() {
|
|||||||
ln -sf docbook2$doctype ${D}${bindir}/docbook-to-$doctype
|
ln -sf docbook2$doctype ${D}${bindir}/docbook-to-$doctype
|
||||||
done
|
done
|
||||||
|
|
||||||
install -m 0755 ${S}/bin/jw ${D}${bindir}/
|
install -m 0755 ${B}/bin/jw ${D}${bindir}/
|
||||||
for i in backends/dvi backends/html backends/man \
|
for i in ${S}/backends/dvi ${S}/backends/html ${B}/backends/man \
|
||||||
backends/pdf backends/ps backends/rtf backends/tex \
|
${S}/backends/pdf ${S}/backends/ps ${S}/backends/rtf ${S}/backends/tex \
|
||||||
backends/texi backends/txt frontends/docbook \
|
${B}/backends/texi ${S}/backends/txt ${B}/frontends/docbook \
|
||||||
helpers/docbook2man-spec.pl helpers/docbook2texi-spec.pl \
|
${S}/helpers/docbook2man-spec.pl ${S}/helpers/docbook2texi-spec.pl \
|
||||||
docbook-utils.dsl
|
${S}/docbook-utils.dsl
|
||||||
do
|
do
|
||||||
install -d ${D}${datadir}/sgml/docbook/utils-${PV}/`dirname $i`
|
install -d ${D}${datadir}/sgml/docbook/utils-${PV}/`dirname $i`
|
||||||
install ${S}/$i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
|
install $i ${D}${datadir}/sgml/docbook/utils-${PV}/$i
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user