File: build_vim.sh

package info (click to toggle)
vim-ultisnips 3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,924 kB
  • sloc: python: 8,353; sh: 64; makefile: 38
file content (26 lines) | stat: -rwxr-xr-x 517 bytes parent folder | download | duplicates (2)
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/bash

set -o errexit
set -o verbose

cd /src/vim

if [[ $PYTHON_VERSION =~ ^2\. ]]; then
   PYTHON_BUILD_CONFIG="--enable-pythoninterp"
else
   PYTHON_BUILD_CONFIG="--enable-python3interp"
fi

export CFLAGS="$(python-config --cflags)"
echo $CFLAGS
./configure \
   --disable-nls \
   --disable-sysmouse \
   --disable-gpm \
   --enable-gui=no \
   --enable-multibyte \
   --with-features=huge \
   --with-tlib=ncurses \
   --without-x \
   $PYTHON_BUILD_CONFIG || cat $(find . -name 'config.log')
make install