diff options
-rwxr-xr-x | Tools/scripts/explicit_lib_depends.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/explicit_lib_depends.sh b/Tools/scripts/explicit_lib_depends.sh index bad5152fbfac..f281b45a79ae 100755 --- a/Tools/scripts/explicit_lib_depends.sh +++ b/Tools/scripts/explicit_lib_depends.sh @@ -92,6 +92,9 @@ for i in $@; do fi fi + myorigin=$(awk -F : '/@comment ORIGIN:/ {print $2}' \ + ${current_port}/+CONTENTS) + awk ' /^@cwd / { CWD=$2; @@ -109,7 +112,7 @@ for i in $@; do } ' < ${current_port}/+CONTENTS | \ xargs ${PORTSDIR}/Tools/scripts/neededlibs.sh | \ - xargs ${PORTSDIR}/Tools/scripts/resolveportsfromlibs.sh ${bases} - + xargs ${PORTSDIR}/Tools/scripts/resolveportsfromlibs.sh ${bases} | \ + egrep -v "${myorigin}\$" done | sort -u |