view src/which.sh @ 13388:cfc2451da509 v8.0.1568

patch 8.0.1568: can't build on older Mac, header file is missing commit https://github.com/vim/vim/commit/24fe4758941a5a59669f135e45ea7ec69d16fe9f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 5 10:54:53 2018 +0100 patch 8.0.1568: can't build on older Mac, header file is missing Problem: Can't build on older Mac, header file is missing. Solution: Remove the header file. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2691)
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Mar 2018 11:00:07 +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