only generate requirements for executable files

CVS patchset: 1846
CVS date: 1997/10/10 19:10:36
This commit is contained in:
ewt 1997-10-10 19:10:36 +00:00
parent 398ca4e827
commit 6608c32b48
1 changed files with 6 additions and 2 deletions

View File

@ -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