view sources/control-images/lfs-bootstrap/mnt/build/vim.nolink @ 1308:37371bb066c1

Add script.nolink option for packages that really don't like the whole 'tree of symlinks' thing. Migrate vim and remove the -L hack.
author Rob Landley <rob@landley.net>
date Wed, 01 Dec 2010 17:57:46 -0600
parents sources/control-images/lfs-bootstrap/mnt/build/vim.sh@07852d3a2e50
children f39204aaafc4
line wrap: on
line source

#!/bin/sh

sed -i '$a #define SYS_VIMRC_FILE "/etc/vimrc"' src/feature.h &&
sed -i 's/find /find -L /g' Makefile src/Makefile &&

./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