From 4bbc8a32d1aa485815531f90117c98cc1395297c Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Thu, 29 Dec 2005 14:35:54 +0000 Subject: [PATCH] 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. --- buildpkg.packaging.irix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/buildpkg.packaging.irix b/buildpkg.packaging.irix index 48bfd11..fef6135 100644 --- a/buildpkg.packaging.irix +++ b/buildpkg.packaging.irix @@ -1050,7 +1050,11 @@ extract_deps() if [ -L "$interp" ]; then echo $($FILE -h "$interp" | $SED -e 's/.* to //') else - echo $interp + if [ "$(echo $interp | $CUT -d' ' -f1)" = "/usr/bin/env" ]; then + echo "/usr/bin/env" + else + echo $interp + fi fi done | $SORT -u | $XARGS -r $SHOWFILES -- | $AWK '{ print $4 }' | $SORT -u fi