Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/conf take care to undo some cpp's whitespace ...



details:   https://anonhg.NetBSD.org/src/rev/70045f9662dc
branches:  trunk
changeset: 521259:70045f9662dc
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jan 27 11:11:35 2002 +0000

description:
take care to undo some cpp's whitespace changes when
generating the kernel configs

diffstat:

 sys/arch/amiga/conf/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 16be8ed259d2 -r 70045f9662dc sys/arch/amiga/conf/Makefile
--- a/sys/arch/amiga/conf/Makefile      Sun Jan 27 11:11:11 2002 +0000
+++ b/sys/arch/amiga/conf/Makefile      Sun Jan 27 11:11:35 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.7 2001/01/25 22:34:20 is Exp $
+#      $NetBSD: Makefile,v 1.8 2002/01/27 11:11:35 jdolecek Exp $
 
 #
 # Use this file to regenerate AMIGA and DRACO out of the GENERIC template.
@@ -17,6 +17,7 @@
        @echo -n '# Created from: ' >> $@
        @sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
                cpp -undef -P -DAMIGA_CONFIGURATION 2>/dev/null |\
+               sed -e 's/\([   ][      ]*\)\#\([^ ]\)/\1# \2/' |\
                awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
 
 DRACO: GENERIC
@@ -30,6 +31,7 @@
        @echo -n '# Created from: ' >> $@
        @sed -e '1s/$$NetBSD/NetBSD/' GENERIC |\
                cpp -undef -P -DDRACO_CONFIGURATION 2>/dev/null |\
+               sed -e 's/\([   ][      ]*\)\#\([^ ]\)/\1# \2/' |\
                awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
 
 INSTALL: GENERIC
@@ -46,6 +48,7 @@
                cpp -undef -P \
                        -DAMIGA_CONFIGURATION -DDRACO_CONFIGURATION \
                        -DINSTALL_CONFIGURATION 2>/dev/null |\
+               sed -e 's/\([   ][      ]*\)\#\([^ ]\)/\1# \2/' |\
                awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $@
 
 AMIGA DRACO INSTALL: GENERIC Makefile



Home | Main Index | Thread Index | Old Index