view src/which.sh @ 15898:67729676d3f7 v8.1.0955

patch 8.1.0955: matchit autoload directory not in installer commit https://github.com/vim/vim/commit/66ae3d199fdcd732eb79266e913e4e6d2e82ee76 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 19 21:40:28 2019 +0100 patch 8.1.0955: matchit autoload directory not in installer Problem: Matchit autoload directory not in installer. (Chris Morgan) Solution: Adjust the NSIS script. (Christian Brabandt, closes https://github.com/vim/vim/issues/4006)
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Feb 2019 21:45:08 +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