view src/which.sh @ 16507:7c6fe15778cf v8.1.1257

patch 8.1.1257: MSVC: name of object directory now always right commit https://github.com/vim/vim/commit/819d3e52a1eab35409ea7e0ebdb2340507a42684 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 3 22:15:03 2019 +0200 patch 8.1.1257: MSVC: name of object directory now always right Problem: MSVC: name of object directory now always right. Solution: Adjust comment. Don't use different directory for DIRECTX. Do use different directory for USE_MSVCRT. (Ken Takata, closes #4333)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 May 2019 22:30: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