source: rtems/scripts/brp-rtems-strip.in @ 6b327594

4.104.114.84.95
Last change on this file since 6b327594 was 0813e0da, checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/28/05 at 22:57:30

New.

  • Property mode set to 100755
File size: 524 bytes
Line 
1#!/bin/sh
2# If using normal root, avoid changing anything.
3if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ]; then
4        exit 0
5fi
6
7cd "$RPM_BUILD_ROOT"
8
9[ -z "$STRIP" -a -n "$1" ] && STRIP="$1"
10[ -z "$STRIP" ] && STRIP=strip
11
12# Strip native binaries
13for 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 || :
19done
Note: See TracBrowser for help on using the repository browser.