diff options
author | netchild <netchild@FreeBSD.org> | 2007-08-26 23:03:55 +0800 |
---|---|---|
committer | netchild <netchild@FreeBSD.org> | 2007-08-26 23:03:55 +0800 |
commit | 349ec876ac4442eb823710a330c4f2b5cd2f5730 (patch) | |
tree | 101ea1354a5ae8794a570eefd297178628d90f71 | |
parent | 1bd53783e590b518dd1deda844c46bbf9367f389 (diff) | |
download | freebsd-ports-gnome-349ec876ac4442eb823710a330c4f2b5cd2f5730.tar.gz freebsd-ports-gnome-349ec876ac4442eb823710a330c4f2b5cd2f5730.tar.zst freebsd-ports-gnome-349ec876ac4442eb823710a330c4f2b5cd2f5730.zip |
Do not list libs which come with the port itself.
-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 |