view src/which.sh @ 8100:ae50910ce279 v7.4.1344

commit https://github.com/vim/vim/commit/203219048fa007b5042d9b893fd647aef44722a0 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 17 12:30:17 2016 +0100 patch 7.4.1344 Problem: Can't compile Win32 GUI with tiny features. Solution: Add #ifdef. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Wed, 17 Feb 2016 12:45:03 +0100
parents 3fc0f57ecb91
children
line wrap: on
line source

#! /bin/sh
#
# which.sh -- find where an executable is located.  It's here because the
# "which" command is not supported everywhere.  Used by Makefile.

IFS=":"
for ac_dir in $PATH; do
	if test -f "$ac_dir/$1"; then
		echo "$ac_dir/$1"
		break
	fi
done