blob: 56fa25adf4273863fd17839200b219922a8a4a7b (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
# If using normal root, avoid changing anything.
if [ -z "$RPM_BUILD_ROOT" ] || [ "$RPM_BUILD_ROOT" = "/" ]; then
exit 0
fi
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
|