2007-08-07 16:38:23 +04:00
|
|
|
#!/bin/sh
|
2016-02-23 14:43:04 +03:00
|
|
|
# $NetBSD: mkheaderlist.sh,v 1.3 2016/02/23 11:43:04 skrll Exp $
|
2011-02-05 16:30:26 +03:00
|
|
|
|
|
|
|
# scan the source tree and create the headerlist file which is used by
|
|
|
|
# Makefile.nbincludes.
|
2007-08-07 16:38:23 +04:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
mklist()
|
|
|
|
{
|
|
|
|
echo "# \$NetBSD\$"
|
|
|
|
echo "#"
|
|
|
|
echo '# do not edit; this file was automatically generated by:'
|
2016-02-23 14:43:04 +03:00
|
|
|
echo '# $NetBSD: mkheaderlist.sh,v 1.3 2016/02/23 11:43:04 skrll Exp $' | sed -e 's/\$//g'
|
2007-08-07 16:38:23 +04:00
|
|
|
echo
|
2016-02-23 14:43:04 +03:00
|
|
|
cd ../sys/arch && find . -name disklabel.h -o -name elf_machdep.h | sort
|
2007-08-07 16:38:23 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
LIST=headerlist
|
|
|
|
rm -f ${LIST}
|
|
|
|
mklist > ${LIST}
|