[oe-commits] Li xin : mesa-demos: rename clear
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 8 12:10:07 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: a9c174fd4bfabbae00d947738b06e72d7809eab3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a9c174fd4bfabbae00d947738b06e72d7809eab3
Author: Li xin <lixin.fnst at cn.fujitsu.com>
Date: Fri Jul 3 17:53:42 2015 +0800
mesa-demos: rename clear
ncurses have already provided clear,so rename it to clear.mesa-demos.
[ RB - check that clear exists before moving ]
Signed-off-by: Li Xin <lixin.fnst at cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
index e565442..d58388a 100644
--- a/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
+++ b/meta/recipes-graphics/mesa/mesa-demos_8.2.0.bb
@@ -48,6 +48,10 @@ PACKAGECONFIG[glew] = "--enable-glew,--disable-glew,glew"
PACKAGECONFIG[glu] = "--enable-glu,--disable-glu,virtual/libgl"
do_install_append() {
- # it can be completely empty when all PACKAGECONFIG options are disabled
- rmdir --ignore-fail-on-non-empty ${D}${bindir}
+ # it can be completely empty when all PACKAGECONFIG options are disabled
+ rmdir --ignore-fail-on-non-empty ${D}${bindir}
+
+ if [ -f ${D}${bindir}/clear ]; then
+ mv ${D}${bindir}/clear ${D}${bindir}/clear.mesa-demos
+ fi
}
More information about the Openembedded-commits
mailing list