view src/which.sh @ 14800:40e19745ad12 v8.1.0412

patch 8.1.0412: cannot build with GTK 2.4 commit https://github.com/vim/vim/commit/92cbf62b872c2cfccb2fe4f9c46881c69d488c8a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 19 22:40:03 2018 +0200 patch 8.1.0412: cannot build with GTK 2.4 Problem: Cannot build with GTK 2.4. Solution: Add back a few #ifdefs. (Ken Takata, closes https://github.com/vim/vim/issues/3447) Also support older GTK. (Tom Christensen)
author Christian Brabandt <cb@256bit.org>
date Wed, 19 Sep 2018 22:45: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