view src/which.sh @ 14736:3e9b24eac417 v8.1.0380

patch 8.1.0380: "make proto" doesn't work well commit https://github.com/vim/vim/commit/32d19c1820305729c0d1b21536b18bae2d8378ed Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 13 17:26:54 2018 +0200 patch 8.1.0380: "make proto" doesn't work well Problem: "make proto" doesn't work well. Solution: Define a few more types for cproto. Update proto files. Fix that workshop didn't build.
author Christian Brabandt <cb@256bit.org>
date Thu, 13 Sep 2018 17:30:06 +0200
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