summaryrefslogtreecommitdiff
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
commitf700dc3a03d1cdf8ddf72954166d8097e504289f (patch)
treefe61ffdf8032feb491cfa67c24eb3d8241b16d20
parent404fee36116ee3140e274cf3b1ee6821db4525d8 (diff)
downloadpkgsrc-f700dc3a03d1cdf8ddf72954166d8097e504289f.tar.gz
kill some superfluous escaping to shut up warnings from gawk.
-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 } \