mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
docbook-utils: Add check to not sed files twice
This comes about from the code configure code getting run multiple times on the same WORKDIR and re-sed'ing already modified files. (From OE-Core rev: 22510c756aa2b1b8d46f88ec08de47674a24d5c7) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7cc0db7c42
commit
67a51cd20d
@@ -7,7 +7,7 @@ LICENSE = "GPLv2"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
||||||
DEPENDS = "openjade-native sgmlspl-native docbook-dsssl-stylesheets-native docbook-sgml-dtd-3.1-native"
|
DEPENDS = "openjade-native sgmlspl-native docbook-dsssl-stylesheets-native docbook-sgml-dtd-3.1-native"
|
||||||
|
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-${PV}.tar.gz"
|
SRC_URI = "ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/docbook-utils-${PV}.tar.gz"
|
||||||
|
|
||||||
@@ -18,12 +18,15 @@ inherit autotools native
|
|||||||
|
|
||||||
do_configure_prepend() {
|
do_configure_prepend() {
|
||||||
# Fix hard-coded references to /etc/sgml
|
# Fix hard-coded references to /etc/sgml
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/jw.in
|
if [ ! -e ${WORKDIR}/.sed_done ]; then
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/man/Makefile.am
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" bin/jw.in
|
||||||
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/HTML/Makefile.am
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" doc/man/Makefile.am
|
||||||
|
sed -i -e "s|/etc/sgml|${sysconfdir}/sgml|g" 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' bin/jw.in
|
||||||
|
touch ${WORKDIR}/.sed_done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
|
|||||||
Reference in New Issue
Block a user