1) fix search for find scripts
[platform/upstream/rpm.git] / autodeps / solaris.req
1 #!/bin/sh
2
3 # note this works for both a.out and ELF executables
4
5 ulimit -c 0
6
7 filelist=`sed "s/['\"]/\\\&/g"`
8 [ -z $filelist ] && exit #emulate -r option for xargs
9
10 for f in `echo $filelist | xargs file | fgrep executable | cut -d: -f1`; do
11     ldd $f 2>/dev/null | awk '/\=\>/ { print $1 }'
12 done | sort -u | sed "s/['\"]/\\\&/g" | xargs -n 1 basename | sort -u
13