Some scripts like to use /usr/bin/env to find the interpreter but this
confuses the dependency extractor. We now detect the use of /usr/bin/env and just pass that on without the arguments.
This commit is contained in:
parent
82dcedd482
commit
4bbc8a32d1
@ -1050,7 +1050,11 @@ extract_deps()
|
|||||||
if [ -L "$interp" ]; then
|
if [ -L "$interp" ]; then
|
||||||
echo $($FILE -h "$interp" | $SED -e 's/.* to //')
|
echo $($FILE -h "$interp" | $SED -e 's/.* to //')
|
||||||
else
|
else
|
||||||
echo $interp
|
if [ "$(echo $interp | $CUT -d' ' -f1)" = "/usr/bin/env" ]; then
|
||||||
|
echo "/usr/bin/env"
|
||||||
|
else
|
||||||
|
echo $interp
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done | $SORT -u | $XARGS -r $SHOWFILES -- | $AWK '{ print $4 }' | $SORT -u
|
done | $SORT -u | $XARGS -r $SHOWFILES -- | $AWK '{ print $4 }' | $SORT -u
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user