16b22a077Sleo#!/bin/sh 2*3a821eebSabs# $NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $ 36b22a077Sleo 46b22a077Sleoemit_file() { 56b22a077Sleo echo "Generating $1" 66b22a077Sleo echo '# 7*3a821eebSabs# $NetBSD: makeconf,v 1.7 2009/01/24 00:19:47 abs Exp $ 86b22a077Sleo# 96b22a077Sleo# This file was automatically created. Changes will be 106b22a077Sleo# lost when running makeconf in this directory. 116b22a077Sleo# 126b22a077Sleo# Created from:' > $1 13*3a821eebSabs if [ $2 != GENERIC.in ] ; then 141e08d983Sleo grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1 15*3a821eebSabs else 16*3a821eebSabs grep -h '$NetBSD' GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1 17*3a821eebSabs fi 186b22a077Sleo cpp -undef -P $3 2>/dev/null < $2 | 196b22a077Sleo sed -e '/\$NetBSD:/d' | 206b22a077Sleo awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1 216b22a077Sleo} 226b22a077Sleo 23*3a821eebSabsemit_file SMALL030 GENERIC.in "-DSMALL030_KERNEL -DTT030_KERNEL -DFALCON_KERNEL" 24*3a821eebSabsemit_file ATARITT GENERIC.in "-DTT030_KERNEL" 25*3a821eebSabsemit_file FALCON GENERIC.in "-DFALCON_KERNEL" 266b22a077Sleoemit_file HADES HADES.in "-DHADES_KERNEL" 273bc0965eSleoemit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE" 283bc0965eSleoemit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE" 29