diff options
author | jlam <jlam@pkgsrc.org> | 2003-09-02 01:54:39 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2003-09-02 01:54:39 +0000 |
commit | ecf222502325005088455d1471d33ab21da3bfea (patch) | |
tree | 0da2aa38f77e792d8a954b9a361e45c3e57df05c /pkgtools/libnbcompat/files/Makefile.in | |
parent | 3319ebf79b531133d22d9b4c6ad4121dcb0d2e9b (diff) | |
download | pkgsrc-ecf222502325005088455d1471d33ab21da3bfea.tar.gz |
Older awks don't like gensub() so use sub() instead.
Diffstat (limited to 'pkgtools/libnbcompat/files/Makefile.in')
-rw-r--r-- | pkgtools/libnbcompat/files/Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/libnbcompat/files/Makefile.in b/pkgtools/libnbcompat/files/Makefile.in index 695515bbf99..db156856f2f 100644 --- a/pkgtools/libnbcompat/files/Makefile.in +++ b/pkgtools/libnbcompat/files/Makefile.in @@ -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 @@ nbconfig.hi: nbconfig.h /^\#[ ]*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"; \ |