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