X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=mk-1st.awk;h=74bc2ebe8384ef4044e815600c7da363807da065;hp=06664ab0a0579f72d54104e79aa558bc904532fd;hb=2b7c2fd2f9d58719770902ce4d0d0aeb87b284f7;hpb=c976a90788f3e50afc773670ff74c5270ecb48df diff --git a/mk-1st.awk b/mk-1st.awk index 06664ab0..74bc2ebe 100644 --- a/mk-1st.awk +++ b/mk-1st.awk @@ -1,4 +1,4 @@ -# $Id: mk-1st.awk,v 1.107 2020/04/04 14:07:40 anonymous.maarten Exp $ +# $Id: mk-1st.awk,v 1.109 2020/08/31 23:49:24 tom Exp $ ############################################################################## # Copyright 2018,2020 Thomas E. Dickey # # Copyright 1998-2016,2017 Free Software Foundation, Inc. # @@ -259,6 +259,13 @@ function install_dll(directory,filename) { } printf "\t%s %s %s\n", program, src_name, dst_name } +function in_subset(value) { + value = " " value " "; + check = subset; + gsub("[+]", " ", check); + check = " " check " "; + return index(check,value); + } BEGIN { TOOL_PREFIX = ""; found = 0; @@ -268,7 +275,7 @@ BEGIN { using = 0 if (subset == "none") { using = 1 - } else if (index(subset,$2) > 0) { + } else if (in_subset($2) > 0) { if (using == 0) { if (found == 0) { if ( name ~ /^.*\+\+.*/ ) {