]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: Rework do_install to use install -D option
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 18 May 2016 16:40:42 +0000 (13:40 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 May 2016 21:21:30 +0000 (22:21 +0100)
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 <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/wayland/weston-init.bb

index 653541e3c8bb4b9aa664680db9ae2805b8983158..4ad62cff2d9429ab41021372a32aaeb829009f77 100644 (file)
@@ -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