view src/which.sh @ 2220:b1c70c500de4 vim73

Found a way to make the MS-Windows installer wait for the uninstaller to finish, no need for the user to press Enter.
author Bram Moolenaar <bram@vim.org>
date Tue, 25 May 2010 21:02:00 +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