pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/libnbcompat/files



Module Name:    pkgsrc
Committed By:   rillig
Date:           Fri Sep 13 20:23:50 UTC 2019

Modified Files:
        pkgsrc/pkgtools/libnbcompat/files: nbcompat.awk

Log Message:
pkgtools/libnbcompat: fix regular expression literals in AWK program

gawk: nbcompat.awk:5: warning:
regexp escape sequence `\#' is not a known regexp operator


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk
diff -u pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk:1.2 pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk:1.3
--- pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk:1.2  Sat Aug 21 18:21:47 2004
+++ pkgsrc/pkgtools/libnbcompat/files/nbcompat.awk      Fri Sep 13 20:23:50 2019
@@ -2,14 +2,14 @@ BEGIN { process = 1 }
 
 /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);



Home | Main Index | Thread Index | Old Index