diff options
author | netchild <netchild@FreeBSD.org> | 2007-08-26 15:03:55 +0000 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2007-08-26 15:03:55 +0000 |
commit | 349ec876ac4442eb823710a330c4f2b5cd2f5730 (patch) | |
tree | 101ea1354a5ae8794a570eefd297178628d90f71 /Tools | |
parent | 1bd53783e590b518dd1deda844c46bbf9367f389 (diff) | |
download | FreeBSD-ports-349ec876ac4442eb823710a330c4f2b5cd2f5730.zip FreeBSD-ports-349ec876ac4442eb823710a330c4f2b5cd2f5730.tar.gz |
Do not list libs which come with the port itself.
Diffstat (limited to 'Tools')
-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 bad5152..f281b45 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 |