view src/which.sh @ 12638:52d928d016bc v8.0.1197

patch 8.0.1197: MS-Windows build instructions are not up to date commit https://github.com/vim/vim/commit/81b07b527e8b9c35d12fd45b63885d6938564723 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 21:43:21 2017 +0200 patch 8.0.1197: MS-Windows build instructions are not up to date Problem: MS-Windows build instructions are not up to date. Solution: Adjust the instructions. Fix the nsis script.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 21:45: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