Subject: Re: toolchain/34551: Makefile.disklabel does too much find(1).
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: netbsd-bugs
Date: 09/18/2006 15:05:03
The following reply was made to PR toolchain/34551; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org,
	tsutsui@ceres.dti.ne.jp
Subject: Re: toolchain/34551: Makefile.disklabel does too much find(1).
Date: Tue, 19 Sep 2006 00:01:27 +0900

 yamt@mwd.biglobe.ne.jp wrote:
 
 > 	during "build.sh tools", tools/Makefile.disklabel seems to
 > 	perform find(1) on sys/arch several times.
 
 ---
 
 _ARCHDIR=	${.CURDIR}/../../sys/arch
  :
 _UFSDIR=	${.CURDIR}/../../sys/ufs
  :
 _UFS_INCS!=	cd ${_UFSDIR} && find ffs ufs -name '*.h'
 _ARCH_INCS!=	cd ${_ARCHDIR} && find . -name disklabel.h
 
 ---
 The problem would be searching all files even in arch/*/compile dir?
 Is it okay to search only arch/*/include dirs?
 
 _ARCH_INCS!=	cd ${_ARCHDIR} && find */include -name disklabel.h
 
 Or echo(1) is enough?
 
 _UFS_INCS!=	cd ${_UFSDIR} && echo ffs/*.h ufs/*.h
 _ARCH_INCS!=	cd ${_ARCHDIR} && echo */include/disklabel.h
 
 ---
 Izumi Tsutsui