From patchwork Sun Aug 5 15:53:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08/30] ubootchart: use variables instead of hardcoded paths Date: Sun, 05 Aug 2012 15:53:55 -0000 From: Javier Martinez Canillas X-Patchwork-Id: 33853 Message-Id: <1344182057-15981-9-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-devtools/ubootchart/ubootchart_svn.bb | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/meta/recipes-devtools/ubootchart/ubootchart_svn.bb b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb index b49e94a..4787857 100644 --- a/meta/recipes-devtools/ubootchart/ubootchart_svn.bb +++ b/meta/recipes-devtools/ubootchart/ubootchart_svn.bb @@ -27,13 +27,13 @@ do_compile() { } do_install() { - install -m 0755 -d ${D}/sbin ${D}/etc/ubootchart ${D}/usr/share/applications - install -m 0755 ${S}/ubootchartd_bin ${D}/sbin - install -m 0755 ${S}/ubootchartd ${D}/sbin - install -m 0644 ${S}/ubootchart.conf ${D}/etc/ubootchart - install -m 0755 ${S}/start.sh ${D}/etc/ubootchart - install -m 0755 ${S}/finish.sh ${D}/etc/ubootchart + install -m 0755 -d ${D}${base_sbindir} ${D}${sysconfdir}/ubootchart ${D}${datadir}/applications + install -m 0755 ${S}/ubootchartd_bin ${D}${base_sbindir} + install -m 0755 ${S}/ubootchartd ${D}${base_sbindir} + install -m 0644 ${S}/ubootchart.conf ${D}${sysconfdir}/ubootchart + install -m 0755 ${S}/start.sh ${D}${sysconfdir}/ubootchart + install -m 0755 ${S}/finish.sh ${D}${sysconfdir}/ubootchart - install -m 0755 ${WORKDIR}/ubootchart-stop ${D}/sbin - install -m 0644 ${WORKDIR}/ubootchart.desktop ${D}/usr/share/applications + install -m 0755 ${WORKDIR}/ubootchart-stop ${D}${base_sbindir} + install -m 0644 ${WORKDIR}/ubootchart.desktop ${D}${datadir}/applications }