Skip to content

Instantly share code, notes, and snippets.

@thinca thinca/vimbuild
Created Jul 16, 2011

Embed
What would you like to do?
#!/bin/sh
conf() {
./configure \
--with-features=huge \
--with-compiledby="thinca <thinca@gmail.com>" \
--enable-multibyte \
--enable-gui=gtk2 \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-python3interp \
--enable-perlinterp \
--enable-tclinterp \
--enable-mzschemeinterp \
--enable-luainterp \
--with-lua-prefix=/usr \
--enable-gpm \
--enable-xim \
--enable-cscope \
--enable-fontset \
--prefix=$HOME/local "$*"
}
clean() {
hg revert -a &&\
/bin/rm -f $(hg st -in)
}
build() {
conf &&\
make &&\
paco -D make install &&\
clean
}
update() {
if hg incoming >/dev/null
then
hg pull &&\
hg rebase --dest default --keepbranches &&\
build
fi
}
${1:-update}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.