~ubuntu-branches/ubuntu/edgy/rpm/edgy

« back to all changes in this revision

Viewing changes to autodeps/solaris.req

  • Committer: Bazaar Package Importer
  • Author(s): Joey Hess
  • Date: 2002-01-22 20:56:57 UTC
  • Revision ID: james.westby@ubuntu.com-20020122205657-l74j50mr9z8ofcl5
Tags: upstream-4.0.3
ImportĀ upstreamĀ versionĀ 4.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# note this works for both a.out and ELF executables
 
4
 
 
5
PATH=/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin
 
6
export PATH
 
7
 
 
8
ulimit -c 0
 
9
 
 
10
filelist=`sed "s/['\"]/\\\&/g"`
 
11
[ -z "$filelist" ] && exit #emulate -r option for xargs
 
12
 
 
13
for f in `echo $filelist | xargs file | fgrep executable | cut -d: -f1`; do
 
14
    ldd $f 2>/dev/null | awk '/\=\>/ { print $1 }'
 
15
done | sort -u | sed "s/['\"]/\\\&/g" | xargs -n 1 basename | sort -u
 
16