[Rpm-maint] [rpm-software-management/rpm] remove-la-files: Use file to check for libtool files (PR #1819)
Rombobeorn
notifications at github.com
Fri Nov 5 21:14:45 UTC 2021
Use «egrep --null-data --ignore-case ':.*[^[:alpha:]]libtool($|[^[:alpha:]])'» to select only entries where Libtool is mentioned in File's description, not in the pathname, and avoid false matches like "glibtoolate".
Or maybe it's better to skip File and just grep the files for the same string that File looks for:
find "$RPM_BUILD_ROOT" -type f -name '*.la' 2>/dev/null -print0 | xargs --null grep --fixed-strings '.la - a libtool library file' --files-with-matches --null | xargs --null rm --force
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1819#issuecomment-962224322
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211105/3900c29b/attachment.html>
More information about the Rpm-maint
mailing list