view src/which.sh @ 10544:a3cef16bea27 v8.0.0162

patch 8.0.0162: build error on Fedora 23 commit https://github.com/vim/vim/commit/009c7b2640b6e04c101118cc7d0dc5785f9aa116 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 9 20:30:27 2017 +0100 patch 8.0.0162: build error on Fedora 23 Problem: Build error on Fedora 23 with small features and gnome2. Solution: Undefine ngettext(). (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Mon, 09 Jan 2017 20:45:04 +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