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