]>
git.ipfire.org Git - people/stevee/ipfire-2.x.git/blob - src/stripper
6 local cmd
="${STRIP-strip}"
8 case "$(file -bi ${file})" in
9 application
/x-sharedlib
*)
10 cmd
="${cmd} --strip-debug --remove-section=.comment --remove-section=.note"
13 cmd
="${cmd} --strip-unneeded"
17 echo "Stripping ${file}..."
22 find ${dir} -type f \
( -perm -0100 -or -perm -0010 -or -perm -0001 \
) \
23 |
file -N -f - |
sed -n -e 's/^\(.*\):[ ]*.*ELF.*, not stripped/\1/p' |