Home | History | Annotate | Line # | Download | only in conf
makeconf revision 1.3
      1 #!/bin/sh
      2 #	$NetBSD: makeconf,v 1.3 2001/04/10 05:56:25 leo Exp $
      3 
      4 emit_file() {
      5 	echo "Generating $1"
      6 	echo '#
      7 # $NetBSD: makeconf,v 1.3 2001/04/10 05:56:25 leo 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 	grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/	NetBSD/' >> $1
     14 	cpp -undef -P $3 2>/dev/null < $2 |
     15 		sed -e '/\$NetBSD:/d' |
     16 		awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1
     17 }
     18 	
     19 emit_file BOOT FALCON.in "-DINSTALL_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
     20 emit_file BOOTX FALCON.in \
     21 	"-DINSTALL_KERNEL -DINSTALLX_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
     22 emit_file ATARITT ATARITT.in "-DTT030_KERNEL"
     23 emit_file FALCON FALCON.in "-DFALCON_KERNEL"
     24 emit_file HADES HADES.in "-DHADES_KERNEL"
     25 emit_file MILAN MILAN.in "-DMILAN_KERNEL"
     26