pruneLibtoolFiles: more permissive regex for detecting libtool files

This commit is contained in:
Piotr Bogdan 2018-12-09 00:13:04 +00:00
parent b9d22d3fe8
commit 9cd155f1e2

View file

@ -16,7 +16,7 @@ _pruneLibtoolFiles() {
# the "old_library" field for static libraries. We are processing only
# those .la files that do not describe static libraries.
find "$prefix" -type f -name '*.la' \
-exec grep -q '^# Generated by libtool' {} \; \
-exec grep -q '^# Generated by .*libtool' {} \; \
-exec grep -q "^old_library=''" {} \; \
-exec sed -i {} -e "/^dependency_libs='[^']/ c dependency_libs='' #pruned" \;
}