summaryrefslogtreecommitdiff
path: root/autodeps
diff options
context:
space:
mode:
authorewt <devnull@localhost>1997-10-10 19:10:36 +0000
committerewt <devnull@localhost>1997-10-10 19:10:36 +0000
commit6608c32b48787c6832ab6ca22761e26c494c1e1b (patch)
treeec8c2b5dc90b787c7ac366ee153531d8e88cb7f5 /autodeps
parent398ca4e827492b1c249826ae6af0118307a5eac8 (diff)
downloadlibrpm-tizen-6608c32b48787c6832ab6ca22761e26c494c1e1b.tar.gz
librpm-tizen-6608c32b48787c6832ab6ca22761e26c494c1e1b.tar.bz2
librpm-tizen-6608c32b48787c6832ab6ca22761e26c494c1e1b.zip
only generate requirements for executable files
CVS patchset: 1846 CVS date: 1997/10/10 19:10:36
Diffstat (limited to 'autodeps')
-rw-r--r--autodeps/linux.req8
1 files changed, 6 insertions, 2 deletions
diff --git a/autodeps/linux.req b/autodeps/linux.req
index 30fcd9bc9..ae00b78de 100644
--- a/autodeps/linux.req
+++ b/autodeps/linux.req
@@ -10,9 +10,13 @@ exelist=`echo $filelist | xargs -r file | fgrep executable | cut -d: -f1 `
scriptlist=`echo $filelist | xargs -r file | egrep ":.*(perl |script )" | cut -d: -f1 `
for f in $exelist; do
- ldd $f | awk '/=>/ { print $1 }'
+ if [ -x $f ]; then
+ ldd $f | awk '/=>/ { print $1 }'
+ fi
done | sort -u | sed "s/['\"]/\\\&/g" | xargs -r -n 1 basename | sort -u
for f in $scriptlist; do
- head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1
+ if [ -x $f ]; then
+ head -1 $f | sed -e 's/^\#\![ ]*//' | cut -d" " -f1
+ fi
done | sort -u