aboutsummaryrefslogtreecommitdiffstats
path: root/find-requires.in
diff options
context:
space:
mode:
Diffstat (limited to 'find-requires.in')
-rwxr-xr-xfind-requires.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/find-requires.in b/find-requires.in
index 6d742e5..4c8c2c9 100755
--- a/find-requires.in
+++ b/find-requires.in
@@ -116,6 +116,10 @@ uniqdeplist+="$tmpdeplist"
for f in $scriptlist; do
[ -r $f -a -x $f ] || continue
interp=`head -n 1 $f | grep '^#!' | sed -e 's/^\#\![ ]*//' | cut -d" " -f1`
+ if [[ "$interp" == *bin/env ]]; then
+ arg=`head -n 1 $f | grep '^#!' | sed -e 's/^\#\![ ]*//' | cut -d" " -f2`
+ interp="`which $arg`"
+ fi
case $interp in
# we really don't need to add these dependencies as they're required by
# glibc and therefore guaranteed to be satisfied