pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Older awks don't like gensu...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bde07625a230
branches: trunk
changeset: 460623:bde07625a230
user: jlam <jlam%pkgsrc.org@localhost>
date: Tue Sep 02 01:54:39 2003 +0000
description:
Older awks don't like gensub() so use sub() instead.
diffstat:
pkgtools/libnbcompat/files/Makefile.in | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 9d7ad4e81757 -r bde07625a230 pkgtools/libnbcompat/files/Makefile.in
--- a/pkgtools/libnbcompat/files/Makefile.in Tue Sep 02 01:45:14 2003 +0000
+++ b/pkgtools/libnbcompat/files/Makefile.in Tue Sep 02 01:54:39 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.in,v 1.9 2003/09/01 15:31:15 jlam Exp $
+# $NetBSD: Makefile.in,v 1.10 2003/09/02 01:54:39 jlam Exp $
#
srcdir= @srcdir@
@@ -50,7 +50,9 @@
/^\#[ ]*define[ ]+PACKAGE_.*/ { next } \
/^\#[ ]*define[ ]+/ { \
if (process == 1) { \
- guard = gensub("[ ]+.*", "", "1", gensub("^\#[ ]*define[ ]+", "", "1")); \
+ guard = $$0; \
+ sub("^\#[ ]*define[ ]+", "", guard); \
+ sub("[ ]+.*", "", guard); \
print "\#ifndef " guard; \
print $$0; \
print "\#endif"; \
Home |
Main Index |
Thread Index |
Old Index