Change do_install logic to clean unwanted files better

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2387 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2007-08-08 11:18:40 +00:00
parent f5127405ed
commit aad3939717
1 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts"
LICENSE = "GPL"
SECTION = "x11"
RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal xinit formfactor"
PR = "r18"
PR = "r19"
SRC_URI = "file://etc"
S = ${WORKDIR}
@ -11,8 +11,7 @@ PACKAGE_ARCH = "all"
do_install() {
cp -R ${S}/etc ${D}/etc
rm -fR ${D}/etc/.svn
rm -fR ${D}/etc/*/.svn
rm -fR ${D}/etc/*/*/.svn
chmod -R 755 ${D}/etc
find ${D}/etc -type d -name .svn -prune -exec rm -rf {} \;
find ${D}/etc -type f -name \*~ -exec rm -rf {} \;
}