Re: [PATCH] Don't use cpio in git-clone when not installed
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 31, 2007, 23:55 UTC
- Message-ID
- <Pine.LNX.4.64.0710312354180.4362@racer.site>
- In-Reply-To
- <7v4pg6hq8u.fsf@gitster.siamese.dyndns.org>
Hi,
On Wed, 31 Oct 2007, Junio C Hamano wrote:
> "type"? That's probably better than using "which", but sounds quite > wrong. Why not add Makefile target that the shell scripts depend on to > see if necessary tools are available and let the builder know if they > are not?
I thought the accord was that "cpio" is a _runtime_ dependency. But yes, I agree "type" is not necessarily the best choice. Maybe testing the exit code for 127 (not found) is the better choice?
Ciao, Dscho