pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files Deal with HAVE_NBTOOL_CONFI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9d78c303abdf
branches:  trunk
changeset: 479691:9d78c303abdf
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Fri Aug 20 23:10:32 2004 +0000

description:
Deal with HAVE_NBTOOL_CONFIG_H in some sources on the HEAD.

diffstat:

 pkgtools/libnbcompat/files/src2nbcompat |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 5da81dc73140 -r 9d78c303abdf pkgtools/libnbcompat/files/src2nbcompat
--- a/pkgtools/libnbcompat/files/src2nbcompat   Fri Aug 20 22:27:12 2004 +0000
+++ b/pkgtools/libnbcompat/files/src2nbcompat   Fri Aug 20 23:10:32 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#      $NetBSD: src2nbcompat,v 1.6 2004/08/20 22:22:24 jlam Exp $
+#      $NetBSD: src2nbcompat,v 1.7 2004/08/20 23:10:32 jlam Exp $
 #
 # Copyright (c) 2003 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -94,6 +94,14 @@
                #
                awk '                                                   \
                        BEGIN { config = 0; nbcompat = 0 }              \
+                       /^#[    ]*if[   ]+HAVE_NBTOOL_CONFIG_H/ {       \
+                               if (config == 0) {                      \
+                                       print "#if HAVE_CONFIG_H";      \
+                                       print "#include \"config.h\"";  \
+                                       print "#endif";                 \
+                                       config = 1;                     \
+                               }                                       \
+                       }                                               \
                        /^#[    ]*include[      ]+/ {                   \
                                if (config == 0) {                      \
                                        print "#if HAVE_CONFIG_H";      \



Home | Main Index | Thread Index | Old Index