pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files kill some superfluous escap...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dadec6aeb477
branches: trunk
changeset: 464380:dadec6aeb477
user: grant <grant%pkgsrc.org@localhost>
date: Mon Dec 08 13:39:11 2003 +0000
description:
kill some superfluous escaping to shut up warnings from gawk.
diffstat:
pkgtools/libnbcompat/files/src2nbcompat | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diffs (44 lines):
diff -r feaefb05a170 -r dadec6aeb477 pkgtools/libnbcompat/files/src2nbcompat
--- a/pkgtools/libnbcompat/files/src2nbcompat Mon Dec 08 13:38:19 2003 +0000
+++ b/pkgtools/libnbcompat/files/src2nbcompat Mon Dec 08 13:39:11 2003 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: src2nbcompat,v 1.3 2003/10/12 08:58:04 jlam Exp $
+# $NetBSD: src2nbcompat,v 1.4 2003/12/08 13:39:11 grant Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -88,23 +88,23 @@
#
awk ' \
BEGIN { config = 0; nbcompat = 0 } \
- /^\#[ ]*include[ ]+/ { \
+ /^#[ ]*include[ ]+/ { \
if (config == 0) { \
- print "\#if HAVE_CONFIG_H"; \
- print "\#include \"config.h\""; \
- print "\#endif"; \
+ print "#if HAVE_CONFIG_H"; \
+ print "#include \"config.h\""; \
+ print "#endif"; \
config = 1; \
} \
} \
- /^\#[ ]*include[ ]+<[^ ]*>/ { \
- guard = toupper(gensub("[-/.]", "_", "g", gensub("\#[ ]*include[ ]+<\([^ ]*\)>", "HAVE_\\1", "g"))); \
+ /^#[ ]*include[ ]+<[^ ]*>/ { \
+ guard = toupper(gensub("[-/.]", "_", "g", gensub("#[ ]*include[ ]+<([^ ]*)>", "HAVE_\\1", "g"))); \
if (nbcompat == 0) { \
- print "\#include <nbcompat.h>"; \
+ print "#include <nbcompat.h>"; \
nbcompat = 1; \
}; \
- print "\#if " guard; \
+ print "#if " guard; \
print $0; \
- print "\#endif"; \
+ print "#endif"; \
next; \
} \
{ print } \
Home |
Main Index |
Thread Index |
Old Index