Bill Nottingham 339799
#!/bin/sh
Bill Nottingham 339799
Bill Nottingham 339799
if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
Bill Nottingham 339799
	exit 0
Bill Nottingham 339799
fi
Bill Nottingham 339799
Bill Nottingham 339799
[ -z "$STRIP" -a -n "$1" ] && STRIP="$1"
Bill Nottingham 339799
[ -z "$STRIP" ] && STRIP=strip
Bill Nottingham 339799
Bill Nottingham 339799
# Strip static libraries.
82f994
for f in `find $RPM_BUILD_ROOT -name \*.a -a -exec file {} \; | \
Bill Nottingham 339799
        grep -v "^${RPM_BUILD_ROOT}/\?usr/lib/debug"  | \
Bill Nottingham 339799
	grep 'current ar archive' | \
Bill Nottingham 339799
	sed -n -e 's/^\(.*\):[ 	]*current ar archive/\1/p'`; do
Elliot Lee 5fc6cf
	$STRIP -g "$f"
Bill Nottingham 339799
done