Mercurial > hg > control-images
comparison images/lfs-bootstrap/mnt/build/vim.nolink @ 0:bcd2e358d57f
Start by copying the existing control image building infrastructure from Aboriginal Linux, and shuffling the layout around a bit.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 03 Jul 2011 17:23:26 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bcd2e358d57f |
---|---|
1 #!/bin/sh | |
2 | |
3 sed -i '$a #define SYS_VIMRC_FILE "/etc/vimrc"' src/feature.h && | |
4 | |
5 ./configure --prefix=/usr --enable-multibyte && | |
6 make -j $CPUS || exit 1 | |
7 | |
8 if [ ! -z "$CHECK" ] | |
9 then | |
10 make test || exit 1 | |
11 fi | |
12 | |
13 make install && | |
14 ln -sf vim /usr/bin/vi || exit 1 | |
15 for i in /usr/share/man/man1/vim.1 /usr/share/man/*/man1/vim.1 | |
16 do | |
17 ln -sf vim.1 $(dirname $i)/vi.1 || exit 1 | |
18 done | |
19 | |
20 cat > /etc/vimrc << "EOF" | |
21 set nocompatible | |
22 set backspace=2 | |
23 syntax on | |
24 if (&term == "iterm") || (&term == "putty") | |
25 set background=dark | |
26 endif | |
27 EOF |