view src/which.sh @ 23719:1a7c2685d780 v8.2.2401

patch 8.2.2401: build fails without +profiling feature Commit: https://github.com/vim/vim/commit/f002a41d127d49cfe5a59819d1498bc0ff8b594a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 24 13:34:18 2021 +0100 patch 8.2.2401: build fails without +profiling feature Problem: Build fails without +profiling feature. Solution: Add #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Sun, 24 Jan 2021 13: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