]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
stripper: Fix for newer versions of file
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Jun 2017 09:34:58 +0000 (10:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 7 Jun 2017 09:34:58 +0000 (10:34 +0100)
The output has changed and this patch will now ignore any
additional output.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/stripper

index 3601e74274c0bb7103752bff3031e3bb6a83384c..d73848fc6e7491e4b2d11a6889d3994e50f9853e 100755 (executable)
@@ -43,7 +43,7 @@ function _strip() {
 for dir in ${dirs}; do
        # Strip shared objects.
        find ${dir} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
-               | file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped/\1/p' |
+               | file -N -f - | sed -n -e 's/^\(.*\):[   ]*.*ELF.*, not stripped.*/\1/p' |
                while read file; do
                        _strip ${file} || exit $?
                done || exit $?