view src/which.sh @ 14931:9c030bc201a6 v8.1.0477

patch 8.1.0477: tiny build fails commit https://github.com/vim/vim/commit/d95c3c253cfc026696219a290c580e554e956872 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 14 22:38:09 2018 +0200 patch 8.1.0477: tiny build fails Problem: Tiny build fails. Solution: Add a dummy declaration for funccal_entry_T.
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Oct 2018 22:45:05 +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