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