summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-12-08 13:39:11 +0000
committergrant <grant@pkgsrc.org>2003-12-08 13:39:11 +0000
commitc251ef74833ddd8e1c17a35ed2b463768c33b12a (patch)
treefe61ffdf8032feb491cfa67c24eb3d8241b16d20 /pkgtools/libnbcompat
parenteebf6de9d06cc268dc39f69dc7457770dee560ba (diff)
downloadpkgsrc-c251ef74833ddd8e1c17a35ed2b463768c33b12a.tar.gz
kill some superfluous escaping to shut up warnings from gawk.
Diffstat (limited to 'pkgtools/libnbcompat')
-rwxr-xr-xpkgtools/libnbcompat/files/src2nbcompat20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgtools/libnbcompat/files/src2nbcompat b/pkgtools/libnbcompat/files/src2nbcompat
index 2256e561d7f..b289fd8a903 100755
--- a/pkgtools/libnbcompat/files/src2nbcompat
+++ b/pkgtools/libnbcompat/files/src2nbcompat
@@ -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 @@ for f in $files; do
#
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 } \