4.104.114.84.95
Line | |
---|
1 | #!/bin/sh |
---|
2 | # If using normal root, avoid changing anything. |
---|
3 | if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then |
---|
4 | exit 0 |
---|
5 | fi |
---|
6 | |
---|
7 | cd "$RPM_BUILD_ROOT" |
---|
8 | |
---|
9 | [ -z "$STRIP" -a -n "$1" ] && STRIP="$1" |
---|
10 | [ -z "$STRIP" ] && STRIP=strip |
---|
11 | |
---|
12 | # Strip native binaries |
---|
13 | for f in `find @BRPSTRIPPATH@ \ |
---|
14 | -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \ |
---|
15 | grep -v "^./\?usr/lib/debug" | \ |
---|
16 | grep -v ' shared object,' | \ |
---|
17 | sed -n -e 's/^\(.*\):[ ]*ELF.*, not stripped/\1/p'`; do |
---|
18 | $STRIP -g $f || : |
---|
19 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.