Home | History | Annotate | Line # | Download | only in conf
      1 #!/bin/sh
      2 #	$NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $
      3 
      4 emit_file() {
      5 	echo "Generating $1"
      6 	echo '#
      7 # $NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $
      8 #
      9 # This file was automatically created. Changes will be
     10 # lost when running makeconf in this directory.
     11 #
     12 # Created from:' > $1
     13 	if [ $2 != GENERIC.in ] ; then
     14 		grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/	NetBSD/' >> $1
     15 	else
     16 		grep -h '$NetBSD' GENERIC.in | sed -e 's/\$NetBSD/	NetBSD/' >> $1
     17 	fi
     18 	cpp -undef -P $3 2>/dev/null < $2 |
     19 		sed -e '/\$NetBSD:/d' |
     20 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1
     21 }
     22 
     23 emit_file SMALL030 GENERIC.in "-DSMALL030_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
     24 emit_file ATARITT GENERIC.in "-DTT030_KERNEL"
     25 emit_file FALCON GENERIC.in "-DFALCON_KERNEL"
     26 emit_file HADES HADES.in "-DHADES_KERNEL"
     27 emit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE"
     28 emit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE"
     29