aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.subdir.mk
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-05-25 23:18:06 +0800
committerpav <pav@FreeBSD.org>2010-05-25 23:18:06 +0800
commitf27fa91daca614f92643094123c806e50fdd9b76 (patch)
tree0722aa9b0677abc834fc796f9778501821e91d12 /Mk/bsd.port.subdir.mk
parent3e1543ceb4ef10ecfff0d7a5348de8d74b4a1995 (diff)
downloadfreebsd-ports-gnome-f27fa91daca614f92643094123c806e50fdd9b76.tar.gz
freebsd-ports-gnome-f27fa91daca614f92643094123c806e50fdd9b76.tar.zst
freebsd-ports-gnome-f27fa91daca614f92643094123c806e50fdd9b76.zip
- Skip comments blocks when 'make search'ing in MOVED file
- Also rewrap a long line PR: ports/143955 Submitted by: pluknet <pluknet@gmail.com>
Diffstat (limited to 'Mk/bsd.port.subdir.mk')
-rw-r--r--Mk/bsd.port.subdir.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.port.subdir.mk b/Mk/bsd.port.subdir.mk
index 5a7de96161ab..5003eaa543f6 100644
--- a/Mk/bsd.port.subdir.mk
+++ b/Mk/bsd.port.subdir.mk
@@ -517,8 +517,10 @@ _PORTSEARCH= \
} \
{ \
oldname = $$1; newname = $$2; \
+ if (oldname ~ /^\#/) next; \
sub(".*\/", "", oldname); newname = sub(".*\/", "", newname); \
- if (((icase ? tolower(oldname) : oldname) ~ name) || ((icase ? tolower(newname) : newname) ~ name)) { \
+ if (((icase ? tolower(oldname) : oldname) ~ name) || \
+ ((icase ? tolower(newname) : newname) ~ name)) { \
for (i = 1; i <= 4; i++) { \
printf("%s:\t%s\n", names[i], $$i); \
} \