view src/which.sh @ 27126:e64dd0403963 v8.2.4092

patch 8.2.4092: MacOS CI: unnecessarily doing "Install packages" Commit: https://github.com/vim/vim/commit/ece07639f4989a300276d66b13553c21a7435030 Author: ichizok <gclient.gaap@gmail.com> Date: Fri Jan 14 21:28:59 2022 +0000 patch 8.2.4092: MacOS CI: unnecessarily doing "Install packages" Problem: MacOS CI: unnecessarily doing "Install packages". Solution: Only do "Install packages" for huge build. (Ozaki Kiichi, closes #9521)
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Jan 2022 22:30: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