view sources/control-images/lfs-bootstrap/mnt/build/vim.nolink @ 1311:f39204aaafc4

A nolink build doesn't need the find -L hack.
author Rob Landley <rob@landley.net>
date Thu, 02 Dec 2010 20:59:07 -0600
parents 37371bb066c1
children
line wrap: on
line source

#!/bin/sh

sed -i '$a #define SYS_VIMRC_FILE "/etc/vimrc"' src/feature.h &&

./configure --prefix=/usr --enable-multibyte &&
make -j $CPUS || exit 1

if [ ! -z "$CHECK" ]
then
  make test || exit 1
fi

make install &&
ln -sf vim /usr/bin/vi || exit 1
for i in /usr/share/man/man1/vim.1 /usr/share/man/*/man1/vim.1
do
  ln -sf vim.1 $(dirname $i)/vi.1 || exit 1
done

cat > /etc/vimrc << "EOF"
set nocompatible
set backspace=2
syntax on
if (&term == "iterm") || (&term == "putty")
  set background=dark
endif
EOF