view src/which.sh @ 15575:6effd97a0429 v8.1.0795

patch 8.1.0795: cannot build without popup menu commit https://github.com/vim/vim/commit/f88af6e6757b2e373cf6cd366d6a81a066a6ade0 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 22 22:55:00 2019 +0100 patch 8.1.0795: cannot build without popup menu Problem: Cannot build without popup menu. Solution: Add #ifdef
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Jan 2019 23:00:05 +0100
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