Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / atari / conf / makeconf
blob3c552eac9ce705161c395563b3b174cadb211435
1 #!/bin/sh
2 # $NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem Exp $
4 emit_file() {
5 echo "Generating $1"
6 echo '#
7 # $NetBSD: makeconf,v 1.6 2001/11/20 11:26:10 lukem Exp $
9 # This file was automatically created. Changes will be
10 # lost when running makeconf in this directory.
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
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
23 emit_file SMALL030 GENERIC.in "-DSMALL030_KERNEL -DTT030_KERNEL -DFALCON_KERNEL"
24 emit_file ATARITT GENERIC.in "-DTT030_KERNEL"
25 emit_file FALCON GENERIC.in "-DFALCON_KERNEL"
26 emit_file HADES HADES.in "-DHADES_KERNEL"
27 emit_file MILAN-ISAIDE MILAN.in "-DMILAN_KERNEL -DMILAN_ISAIDE"
28 emit_file MILAN-PCIIDE MILAN.in "-DMILAN_KERNEL -DMILAN_PCIIDE"