diff options
| author | Matt Wilson <msw@redhat.com> | 2000-05-30 19:50:21 +0000 |
|---|---|---|
| committer | Matt Wilson <msw@redhat.com> | 2000-05-30 19:50:21 +0000 |
| commit | 6533b9f252ab6ef35af588351e1a6ec7be25fc24 (patch) | |
| tree | 806df960653228ce9f631a2066df4e8b4577527c /scripts/scrubtree | |
| parent | 4b6445eea9c485db969e110beff0ab212b7da811 (diff) | |
| download | anaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.tar.gz anaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.tar.xz anaconda-6533b9f252ab6ef35af588351e1a6ec7be25fc24.zip | |
split scrubbing out to arch buildhost
Diffstat (limited to 'scripts/scrubtree')
| -rwxr-xr-x | scripts/scrubtree | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/scrubtree b/scripts/scrubtree new file mode 100755 index 000000000..61a3ff77c --- /dev/null +++ b/scripts/scrubtree @@ -0,0 +1,15 @@ +#!/bin/bash -x + +p=$1 + +# Must create ld.so.conf, because ldconfig does not cache +# dirs specified on the command line. +touch $p/etc/ld.so.conf +[ -d $p/usr/X11R6/lib ] && echo /usr/X11R6/lib > $p/etc/ld.so.conf +(cd $p; chroot $p usr/sbin/ldconfig ) +rm -f $p/usr/sbin/ldconfig $p/etc/ld.so.conf + +for l in `find $p -type f -perm +100 | grep -v "usr/X11R6/lib/modules" | xargs file | sed -n 's/^\([^:]*\):.*ELF.*$/\1/p'`; do + $STRIP $l -R .comment -R .note `objdump -h $l | \ + sed -n 's/^.*\(\.gnu\.warning\.[^ ]*\) .*$/-R \1/p'` +done |
