pkgtools/libnbcompat: fix regular expression literals in AWK program trunk
authorrillig <rillig@pkgsrc.org>
Fri, 13 Sep 2019 20:23:50 +0000
branchtrunk
changeset 339501 e2c6990c004f
parent 339500 2c44d5ea55f5
child 339502 2389318cf94d
pkgtools/libnbcompat: fix regular expression literals in AWK program gawk: nbcompat.awk:5: warning: regexp escape sequence `\#' is not a known regexp operator
pkgtools/libnbcompat/files/nbcompat.awk
--- a/pkgtools/libnbcompat/files/nbcompat.awk	Fri Sep 13 20:10:35 2019 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.awk	Fri Sep 13 20:23:50 2019 +0000
@@ -2,14 +2,14 @@
 
 /NBCOMPAT template section follows\./ { process = 0 }
 
-/^\#[ 	]*define[ 	]+PACKAGE_.*/ {
+/^#[ 	]*define[ 	]+PACKAGE_.*/ {
 	if (process == 1) {
 		print "/* " $0 " */";
 		next;
 	}
 }
 
-/^\#[ 	]*define[ 	]+/ {
+/^#[ 	]*define[ 	]+/ {
 	if (process == 1) {
 		guard = $0;
 		sub("^#[ 	]*define[ 	]+", "", guard);