From: Elan Ruusamäe Date: Wed, 14 Jun 2017 21:02:20 +0000 (+0300) Subject: make cleanup-la actually do something X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=77afa233c229ddb4f858bbefcf374db6b274e2d9;p=projects%2Fcleanbuild.git make cleanup-la actually do something --- diff --git a/cleanup-la b/cleanup-la index d538cfe..2db6fd5 100755 --- a/cleanup-la +++ b/cleanup-la @@ -1,6 +1,6 @@ #!/bin/sh root=$1 -find $root/usr/lib{,64} -name "*.la" -print0 | xargs -0 grep -El "dependency_libs='.+'" +find $root/usr/lib{,64} -name "*.la" -print0 | xargs -0 -r sed -i -e "s@dependency_libs=.*@dependency_libs=' '@" # it's important this script does not fail if no matches found exit 0