From: Johannes Schindelin Date: Wed, 31 Oct 2007 23:55:58 GMT Subject: Re: [PATCH] Don't use cpio in git-clone when not installed Message-ID: 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