mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 03:33:25 +02:00
stripper: Abort if stripping fails
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -45,13 +45,13 @@ for dir in ${dirs}; do
|
|||||||
find ${dir} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) \
|
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
|
while read file; do
|
||||||
_strip ${file}
|
_strip ${file} || exit $?
|
||||||
done
|
done || exit $?
|
||||||
|
|
||||||
# Strip static archives.
|
# Strip static archives.
|
||||||
find ${dir} -name \*.a -a -exec file {} \; \
|
find ${dir} -name \*.a -a -exec file {} \; \
|
||||||
| grep 'current ar archive' | sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p' |
|
| grep 'current ar archive' | sed -n -e 's/^\(.*\):[ ]*current ar archive/\1/p' |
|
||||||
while read file; do
|
while read file; do
|
||||||
_strip ${file}
|
_strip ${file} || exit $?
|
||||||
done
|
done || exit $?
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user