hasciiの日記

多分プログラミング関係

vim make 時のconfigure

違うサーバでインストールするとき毎回忘れてヘルプ読んでる気がするので
Vim コンパイルしてインストールするときのソース取得, こんふぃぎゃー, makeメモ

ついでにはてなでのソースコード貼付けテスト

#!/bin/bash
function make_work_dir(){
  [ -d $1 ] || mkdir -p $1 || { echo "${1}: mkdir error"; exit 1; }
}

SRC_DIR=$HOME/src
make_work_dir $SRC_DIR
hg clone https://vim.googlecode.com/hg $SRC_DIR/vim
cd $SRC_DIR/vim || { echo "${SRC_DIR}: cd error"; exit 1; }

# before this, you should install ncurses and gettext
BUILD_DIR=$HOME/build
make_work_dir $BUILD_DIR
./configure --with-features=huge --enable-multibyte --enable-fontset --enable-rubyinterp --prefix=$HOME/build/vim73 --enable-nls
make
make install
# dont forget set path at rc file

>|bash| はsyntax highlight は無いのね