aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-08-31 00:48:33 +0800
committernetchild <netchild@FreeBSD.org>2007-08-31 00:48:33 +0800
commit657ef87f2b84da4a24f75bd0697dc1158c4e8cd1 (patch)
treee5ae5691c10db412129ec52b53120294f3b333fc /Tools/scripts
parentad23b1fa0064997e45e9e5cfb6bbe1f28e89f15d (diff)
downloadfreebsd-ports-gnome-657ef87f2b84da4a24f75bd0697dc1158c4e8cd1.tar.gz
freebsd-ports-gnome-657ef87f2b84da4a24f75bd0697dc1158c4e8cd1.tar.zst
freebsd-ports-gnome-657ef87f2b84da4a24f75bd0697dc1158c4e8cd1.zip
One more sanity check, else /+CONTENS will be searched.
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/explicit_lib_depends.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/scripts/explicit_lib_depends.sh b/Tools/scripts/explicit_lib_depends.sh
index f281b45a79ae..afd8e289ccd7 100755
--- a/Tools/scripts/explicit_lib_depends.sh
+++ b/Tools/scripts/explicit_lib_depends.sh
@@ -92,6 +92,11 @@ for i in $@; do
fi
fi
+ if [ ! -f ${current_port}/+CONTENTS ]; then
+ echo $i is not a valid port
+ continue
+ fi
+
myorigin=$(awk -F : '/@comment ORIGIN:/ {print $2}' \
${current_port}/+CONTENTS)