view src/which.sh @ 15667:e093e8809467 v8.1.0841

patch 8.1.0841: travis config to get Lua on MacOS is too complicated commit https://github.com/vim/vim/commit/2339fa335fcce46226f871b2c95c433966c711e9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 28 22:59:36 2019 +0100 patch 8.1.0841: travis config to get Lua on MacOS is too complicated Problem: Travis config to get Lua on MacOS is too complicated. Solution: Use an addons entry. (Ozaki Kiichi, closes 3876)
author Bram Moolenaar <Bram@vim.org>
date Mon, 28 Jan 2019 23:00:06 +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