ncurses 6.2 - patch 20211018
[ncurses.git] / mk-hdr.awk
index b4b9e72344f06b9d7e3e3a00230d8cfe7dea1983..7608afedb01e877e078e183a2cb3c9447a058edf 100644 (file)
@@ -1,6 +1,6 @@
-# $Id: mk-hdr.awk,v 1.6 2020/08/29 22:07:18 tom Exp $
+# $Id: mk-hdr.awk,v 1.8 2021/06/17 21:20:30 tom Exp $
 ##############################################################################
-# Copyright 2020 Thomas E. Dickey                                            #
+# Copyright 2020,2021 Thomas E. Dickey                                       #
 # Copyright 2007-2010,2013 Free Software Foundation, Inc.                    #
 #                                                                            #
 # Permission is hereby granted, free of charge, to any person obtaining a    #
@@ -42,7 +42,6 @@ function basename(path) {
 function in_subset(value) {
        value = " " value " ";
        check = subset;
-       sub(" .*$", "", check);
        gsub("[+]", " ", check);
        check = " " check " ";
        return index(check,value);
@@ -70,8 +69,8 @@ BEGIN {
                        if (found == 0) {
                                print  ""
                                print  "# generated by mk-hdr.awk"
-                               printf "#  subset:     %s\n", subset 
-                               printf "#  compat:     %s\n", compat 
+                               printf "#  subset:     %s\n", subset
+                               printf "#  compat:     %s\n", compat
                                print  ""
                                found = 1
                        }