Mercurial > vim
view src/which.sh @ 19172:73f893d8776a v8.2.0145
patch 8.2.0145: using #error for compilation errors should be OK now
Commit: https://github.com/vim/vim/commit/2c02d3843a103826a3eb44357eaab09b7deb256b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 23 16:52:01 2020 +0100
patch 8.2.0145: using #error for compilation errors should be OK now
Problem: Using #error for compilation errors should be OK now.
Solution: Use #error. (Ken Takata, closes https://github.com/vim/vim/issues/5299)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jan 2020 17:00: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