view src/which.sh @ 7530:5d1b5fd708c6 v7.4.1066

commit https://github.com/vim/vim/commit/64496ffc9cfb0eb6f2074f22809de2b420b5f300 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 9 15:08:03 2016 +0100 patch 7.4.1066 Problem: Build fails on MS-Windows. Solution: Adjust the #ifdefs for "dll" options.
author Christian Brabandt <cb@256bit.org>
date Sat, 09 Jan 2016 15:15: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