Home | History | Annotate | Line # | Download | only in tools
      1 #!/bin/sh
      2 # $NetBSD: mkheaderlist.sh,v 1.3 2016/02/23 11:43:04 skrll Exp $
      3 
      4 # scan the source tree and create the headerlist file which is used by
      5 # Makefile.nbincludes.
      6 
      7 set -e
      8 
      9 mklist()
     10 {
     11 	echo "# \$NetBSD\$"
     12 	echo "#"
     13 	echo '# do not edit; this file was automatically generated by:'
     14 	echo '#	$NetBSD: mkheaderlist.sh,v 1.3 2016/02/23 11:43:04 skrll Exp $' | sed -e 's/\$//g'
     15 	echo
     16 	cd ../sys/arch && find . -name disklabel.h -o -name elf_machdep.h | sort
     17 }
     18 
     19 LIST=headerlist
     20 rm -f ${LIST}
     21 mklist > ${LIST}
     22