mirror of
https://git.yoctoproject.org/poky
synced 2026-04-28 06:32:34 +02:00
libc-common.bbclass: Use sed instead of grep
Squash two install cmds into one Replace grep with sed substitution logic, optimizes away mv cmd (From OE-Core rev: 9a5618c4c22a617f69d184f80b91ccf2a9148026) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -4,14 +4,12 @@ do_install() {
|
||||
h=`echo $r|sed -e's,\.x$,.h,'`
|
||||
install -m 0644 ${S}/sunrpc/rpcsvc/$h ${D}/${includedir}/rpcsvc/
|
||||
done
|
||||
install -d ${D}/${sysconfdir}/
|
||||
install -m 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/
|
||||
install -Dm 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ld.so.conf
|
||||
install -d ${D}${localedir}
|
||||
make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED"
|
||||
# get rid of some broken files...
|
||||
for i in ${GLIBC_BROKEN_LOCALES}; do
|
||||
grep -v $i ${WORKDIR}/SUPPORTED > ${WORKDIR}/SUPPORTED.tmp
|
||||
mv ${WORKDIR}/SUPPORTED.tmp ${WORKDIR}/SUPPORTED
|
||||
sed -i "/$i/d" ${WORKDIR}/SUPPORTED
|
||||
done
|
||||
rm -f ${D}${sysconfdir}/rpc
|
||||
rm -rf ${D}${datadir}/zoneinfo
|
||||
|
||||
Reference in New Issue
Block a user