Home | History | Annotate | Line # | Download | only in conf
makeconf revision 1.3.2.2
      1  1.3.2.2  bouyer #!/bin/sh
      2  1.3.2.2  bouyer #	$NetBSD: makeconf,v 1.3.2.2 2001/04/21 17:53:23 bouyer Exp $
      3  1.3.2.2  bouyer 
      4  1.3.2.2  bouyer emit_file() {
      5  1.3.2.2  bouyer 	echo "Generating $1"
      6  1.3.2.2  bouyer 	echo '#
      7  1.3.2.2  bouyer # $NetBSD: makeconf,v 1.3.2.2 2001/04/21 17:53:23 bouyer Exp $
      8  1.3.2.2  bouyer #
      9  1.3.2.2  bouyer # This file was automatically created. Changes will be
     10  1.3.2.2  bouyer # lost when running makeconf in this directory.
     11  1.3.2.2  bouyer #
     12  1.3.2.2  bouyer # Created from: ' > $1
     13  1.3.2.2  bouyer 	grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/	NetBSD/' >> $1
     14  1.3.2.2  bouyer 	cpp -undef -P $3 2>/dev/null < $2 |
     15  1.3.2.2  bouyer 		sed -e '/\$NetBSD:/d' |
     16  1.3.2.2  bouyer 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1
     17  1.3.2.2  bouyer }
     18  1.3.2.2  bouyer 	
     19  1.3.2.2  bouyer emit_file BOOT FALCON.in "-DINSTALL_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
     20  1.3.2.2  bouyer emit_file BOOTX FALCON.in \
     21  1.3.2.2  bouyer 	"-DINSTALL_KERNEL -DINSTALLX_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
     22  1.3.2.2  bouyer emit_file ATARITT ATARITT.in "-DTT030_KERNEL"
     23  1.3.2.2  bouyer emit_file FALCON FALCON.in "-DFALCON_KERNEL"
     24  1.3.2.2  bouyer emit_file HADES HADES.in "-DHADES_KERNEL"
     25  1.3.2.2  bouyer emit_file MILAN MILAN.in "-DMILAN_KERNEL"
     26