view src/which.sh @ 12371:55359dabb6cc v8.0.1065

patch 8.0.1065: not all macro examples are included commit https://github.com/vim/vim/commit/c35e4cb4fe3ce524d15ac9fdc9a8aa923761bdfd Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 6 21:43:10 2017 +0200 patch 8.0.1065: not all macro examples are included Problem: Not all macro examples are included in the self-installing executable. (lkintact) Solution: Add the directories to the NSIS script. (closes #2065)
author Christian Brabandt <cb@256bit.org>
date Wed, 06 Sep 2017 21:45:04 +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