Mercurial > vim
view src/which.sh @ 16503:17f5563d1285 v8.1.1255
patch 8.1.1255: building desktop files fails on FreeBSD
commit https://github.com/vim/vim/commit/12e91862c14a1af44b537d478e8a5021893044fe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 3 21:20:03 2019 +0200
patch 8.1.1255: building desktop files fails on FreeBSD
Problem: Building desktop files fails on FreeBSD. (Adam Weinberger)
Solution: Avoid using non-portable construct in Makefile. (closes https://github.com/vim/vim/issues/4332)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 May 2019 21:30: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