blob: 04bdfa90163d0875e57a1624784242dbdc7a1e96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/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
|