From: Otavio Salvador Date: Wed, 18 May 2016 16:40:42 +0000 (-0300) Subject: weston-init: Rework do_install to use install -D option X-Git-Tag: uninative-1.3~1021 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9d745d7c958402fa1d59c9d0267b58a05d7ee4b3;p=openembedded-core.git weston-init: Rework do_install to use install -D option The install -D allow for the parent directories to be created in a single command line, reducing the code and number of fork during the build. Signed-off-by: Otavio Salvador Signed-off-by: Ross Burton --- diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 653541e3c8..4ad62cff2d 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -8,11 +8,8 @@ SRC_URI = "file://init \ S = "${WORKDIR}" do_install() { - install -d ${D}/${sysconfdir}/init.d - install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston - - install -d ${D}${systemd_system_unitdir} - install -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir} + install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston + install -Dm0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service } inherit allarch update-rc.d distro_features_check systemd