view src/which.sh @ 11623:b89dd2d3f8fb v8.0.0694

patch 8.0.0694: building in shadow directory does not work commit https://github.com/vim/vim/commit/a34293ae0a87a35eb422f145ef999295705f3731 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 7 12:22:55 2017 +0200 patch 8.0.0694: building in shadow directory does not work Problem: Building in shadow directory does not work. Running Vim fails. Solution: Add the new libvterm directory. Add missing change in command list.
author Christian Brabandt <cb@256bit.org>
date Fri, 07 Jul 2017 12:30:03 +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