From patchwork Sun Aug 5 15:53:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05/30] lsbtest: use ${bindir} instead of /usr/bin for packaging Date: Sun, 05 Aug 2012 15:53:52 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33843 Message-Id: <1344182057-15981-6-git-send-email-javier@dowhile0.org> To: Richard Purdie Cc: openembedded-core@lists.openembedded.org It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas --- meta/recipes-extended/lsb/lsbtest_1.0.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-extended/lsb/lsbtest_1.0.bb b/meta/recipes-extended/lsb/lsbtest_1.0.bb index 1191164..a563678 100644 --- a/meta/recipes-extended/lsb/lsbtest_1.0.bb +++ b/meta/recipes-extended/lsb/lsbtest_1.0.bb @@ -14,8 +14,8 @@ RDEPENDS_${PN} = "rpm" S = "${WORKDIR}" do_install() { - install -d ${D}/usr/bin - install -m 0755 ${S}/LSB_Test.sh ${D}/usr/bin + install -d ${D}${bindir} + install -m 0755 ${S}/LSB_Test.sh ${D}${bindir} install -d ${D}/opt/lsb-test install -m 0644 ${S}/packages_list ${D}/opt/lsb-test/packages_list install -m 0644 ${S}/session ${D}/opt/lsb-test/session