1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/devel/agide/files/check_vim
Pav Lucistnik c795389cc9 Add agide, a A-A-P GUI IDE, a framework in which separate tools like vim
or gdb can work together.

PR:		ports/57885
Submitted by:	Rui Lopes <rui@ruilopes.com>
2003-12-26 21:33:24 +00:00

27 lines
563 B
Bash

#!/bin/sh
# $FreeBSD$
#
# This script detects if installed vim has our required options.
# -- Rui Lopes <rui@ruilopes.com>
check() {
str=`{ vim --version|grep "$1";} 2>/dev/null`
if test "x$str" != x; then
return 0
fi
return 1
}
no_gui() {
echo
echo "The installed Vim does not have GUI support, please install Vim with"
echo "GUI support. You can install it with:"
echo
echo "# cd /usr/ports/editors/vim && make -DWITH_GTK2 install"
echo "NOTE: You should consult the vim port for more options."
echo
exit 1
}
check ' with .* GUI\.' || no_gui