Project

General

Profile

Submit #3201 ยป fix_make_search_info_display.patch

htse, 08/17/2019 05:26 PM

View differences:

Mk/bsd.port.subdir.mk
if (length(info)) parms[4] = tolower(info); if (length(xinfo)) xparms[4] = tolower(xinfo); \
if (length(maint)) parms[6] = tolower(maint); if (length(xmaint)) xparms[6] = tolower(xmaint); \
if (length(cat)) parms[7] = tolower(cat); if (length(xcat)) xparms[7] = tolower(xcat); \
if (length(bdeps)) parms[8] = tolower(bdeps); if (length(xbdeps)) xparms[8] = tolower(xbdeps); \
if (length(rdeps)) parms[9] = tolower(rdeps); if (length(xrdeps)) xparms[9] = tolower(xrdeps); \
if (length(www)) parms[10] = tolower(www); if (length(xwww)) xparms[10] = tolower(xwww); \
if (length(bdeps)) parms[11] = tolower(bdeps); if (length(xbdeps)) xparms[11] = tolower(xbdeps); \
if (length(rdeps)) parms[12] = tolower(rdeps); if (length(xrdeps)) xparms[12] = tolower(xrdeps); \
if (length(www)) parms[13] = tolower(www); if (length(xwww)) xparms[13] = tolower(xwww); \
} else { \
if (length(name)) parms[1] = name; if (length(xname)) xparms[1] = xname; \
if (length(path)) parms[2] = path; if (length(xpath)) xparms[2] = xpath; \
if (length(info)) parms[4] = info; if (length(xinfo)) xparms[4] = xinfo; \
if (length(maint)) parms[6] = maint; if (length(xmaint)) xparms[6] = xmaint; \
if (length(cat)) parms[7] = cat; if (length(xcat)) xparms[7] = xcat; \
if (length(bdeps)) parms[8] = bdeps; if (length(xbdeps)) xparms[8] = xbdeps; \
if (length(rdeps)) parms[9] = rdeps; if (length(xrdeps)) xparms[9] = xrdeps; \
if (length(www)) parms[10] = www; if (length(xwww)) xparms[10] = xwww; \
if (length(bdeps)) parms[11] = bdeps; if (length(xbdeps)) xparms[11] = xbdeps; \
if (length(rdeps)) parms[12] = rdeps; if (length(xrdeps)) xparms[12] = xrdeps; \
if (length(www)) parms[13] = www; if (length(xwww)) xparms[13] = xwww; \
} \
fields["name"] = 1; names[1] = "Port"; \
fields["path"] = 2; names[2] = "Path"; \
fields["info"] = 4; names[4] = "Info"; \
fields["maint"] = 6; names[6] = "Maint"; \
fields["cat"] = 7; names[7] = "Index"; \
fields["bdeps"] = 8; names[8] = "B-deps"; \
fields["rdeps"] = 9; names[9] = "R-deps"; \
fields["www"] = 10; names[10] = "WWW"; \
fields["bdeps"] = 11; names[11] = "B-deps"; \
fields["rdeps"] = 12; names[12] = "R-deps"; \
fields["www"] = 13; names[13] = "WWW"; \
split(display, d, /,[ \t]*/); \
split(xdisplay, xd, /,[ \t]*/); \
for (i in d) { \
......
if ((icase ? tolower($$i) : $$i) ~ xparms[i]) \
next; \
found = 0; \
for (i = 1; i < 11; i++) \
for (i = 1; i < 14; i++) \
if (i in disp) { \
if (xkeylim && (icase ? tolower($$i) : $$i) ~ xkey) \
next; \
......
} \
if (keylim && !found) \
next; \
for (i = 1; i < 11; i++) \
for (i = 1; i < 14; i++) \
if (i in disp) \
printf("%s:\t%s\n", names[i], $$i); \
print(""); \
......
fields["name"] = 1; names[1] = "Port"; \
fields["destination"] = 2; names[2] = "Moved"; \
fields["date"] = 3; names[3] = "Date"; \
fileds["reason"] = 4; names[4] = "Reason"; \
fields["reason"] = 4; names[4] = "Reason"; \
} \
{ \
oldname = $$1; newname = $$2; \
    (1-1/1)