view src/which.sh @ 16527:5412fcd03ecb v8.1.1267

patch 8.1.1267: cannot check if GPM mouse support is working commit https://github.com/vim/vim/commit/4b8366b56edbf4f3efcaeedbaba491c49c5788ca Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 4 17:34:34 2019 +0200 patch 8.1.1267: cannot check if GPM mouse support is working Problem: Cannot check if GPM mouse support is working. Solution: Add the "mouse_gpm_enable" feature.
author Bram Moolenaar <Bram@vim.org>
date Sat, 04 May 2019 17:45:06 +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