xref: /minix3/tools/mkheaderlist.sh (revision 9152e1c5a7225885973292842eaa6ab5121d1a38)
1#!/bin/sh
2# $NetBSD: mkheaderlist.sh,v 1.2 2011/02/05 13:30:26 yamt Exp $
3
4# scan the source tree and create the headerlist file which is used by
5# Makefile.nbincludes.
6
7set -e
8
9mklist()
10{
11	echo "# \$NetBSD\$"
12	echo "#"
13	echo '# do not edit; this file was automatically generated by:'
14	echo '#	$NetBSD: mkheaderlist.sh,v 1.2 2011/02/05 13:30:26 yamt Exp $' | sed -e 's/\$//g'
15	echo
16	cd ../sys/arch && find . -name disklabel.h -o -name elf_machdep.h
17}
18
19LIST=headerlist
20rm -f ${LIST}
21mklist > ${LIST}
22