view src/which.sh @ 11749:01480914715f v8.0.0757

patch 8.0.0757: libvterm MSVC Makefile not included in the distribution commit https://github.com/vim/vim/commit/9c5589c7cef9bacc41e2c359f60c53ed67c010de Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 23 17:15:18 2017 +0200 patch 8.0.0757: libvterm MSVC Makefile not included in the distribution Problem: Libvterm MSVC Makefile not included in the distribution. Solution: Add the file to the list.
author Christian Brabandt <cb@256bit.org>
date Sun, 23 Jul 2017 17:30:04 +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