diff options
author | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
---|---|---|
committer | Jinkun Jang <jinkun.jang@samsung.com> | 2013-03-12 15:17:20 +0900 |
commit | 7df2385c2f6c93f96e00bc87f2086066cae89ecc (patch) | |
tree | 79d5c20a494622eb084de831a2a51530cd421e33 /autodeps/freebsd.req | |
parent | b7a3bffb8e0341b7e4ef69def268bca3a7f279ff (diff) | |
download | rpm-db871ccfd9b631f13ed2be6730e03b686f606ed9.tar.gz rpm-db871ccfd9b631f13ed2be6730e03b686f606ed9.tar.bz2 rpm-db871ccfd9b631f13ed2be6730e03b686f606ed9.zip |
Tizen 2.1 basesubmit/tizen_2.2/20130710.072219submit/tizen_2.1/20130423.104200accepted/tizen_2.1/20130423.1513382.2_release2.2.1_release2.1b_releasetizen_2.2tizen_2.1
Diffstat (limited to 'autodeps/freebsd.req')
-rw-r--r-- | autodeps/freebsd.req | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/autodeps/freebsd.req b/autodeps/freebsd.req new file mode 100644 index 0000000..9a1e0f4 --- /dev/null +++ b/autodeps/freebsd.req @@ -0,0 +1,22 @@ +#!/bin/sh +# ---------------------------------------------------------------- +# find-requires for FreeBSD-2.2.x +# how do we know what is required by a.out shared libraries? +# ---------------------------------------------------------------- +ulimit -c 0 + +filelist=`sed "s/['\"]/\\\&/g"` +exelist=`echo $filelist | xargs file | grep -F executable | cut -d: -f1 ` +scriptlist=`echo $filelist | xargs file | grep -E ":.* (commands|script) " | cut -d: -f1 ` + +for f in $exelist; do + if [ -x $f ]; then + ldd $f | /usr/bin/awk '/=>/&&!/not found/ { print $3 }' + fi +done | sort -u | sed "s/['\"]/\\\&/g" | xargs -n 1 basename | sort -u + +for f in $scriptlist; do + if [ -x $f ]; then + head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1 + fi +done | sort -u |