view images/lfs-bootstrap/mnt/build/vim.nolink @ 40:ef471ef37665 draft default tip

Yank reliance on ash.
author Rob Landley <rob@landley.net>
date Sat, 18 Jul 2015 01:39:24 -0500
parents bcd2e358d57f
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