1#!/bin/sh 2# $NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem Exp $ 3 4emit_file() { 5 echo "Generating $1" 6 echo '# 7# $NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem 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 if [ $2 != GENERIC.in ] ; then 14 grep -h '$NetBSD' $2 GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1 15 else 16 grep -h '$NetBSD' GENERIC.in | sed -e 's/\$NetBSD/ NetBSD/' >> $1 17 fi 18 cpp -undef -P $3 2>/dev/null < $2 | 19 sed -e '/\$NetBSD:/d' | 20 awk '{if (NF>1)count=0;else count++;if(count<=1)print}' >> $1 21} 22 23emit_file SMALL030 GENERIC.in "-DSMALL030_KERNEL -DTT030_KERNEL -DFALCON_KERNEL" 24emit_file ATARITT GENERIC.in "-DTT030_KERNEL" 25emit_file FALCON GENERIC.in "-DFALCON_KERNEL" 26emit_file HADES HADES.in "-DHADES_KERNEL" 27emit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE" 28emit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE" 29