view src/which.sh @ 17296:49ef396af986 v8.1.1647

patch 8.1.1647: build error with GTK and hangulinput feature commit https://github.com/vim/vim/commit/d84b2c3d88b08722dd4f686256a22c26788ea122 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 7 19:16:58 2019 +0200 patch 8.1.1647: build error with GTK and hangulinput feature Problem: Build error with GTK and hangulinput feature, im_get_status() defined twice. (Dominique Pelle) Solution: Adjust im_get_status(). (closes #4628)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jul 2019 19:30:05 +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