mesa-demos: rename clear

ncurses have already provided clear,so rename it to clear.mesa-demos.

[ RB - check that clear exists before moving ]

(From OE-Core rev: a9c174fd4bfabbae00d947738b06e72d7809eab3)

Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Li xin
2015-07-03 17:53:42 +08:00
committed by Richard Purdie
parent 4913e35bfe
commit 8a0cb22f85

View File

@@ -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
}