Skip to content

Instantly share code, notes, and snippets.

@daisuzu
Created May 15, 2013 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daisuzu/5584432 to your computer and use it in GitHub Desktop.
Save daisuzu/5584432 to your computer and use it in GitHub Desktop.
#!/bin/sh
conf() {
./configure \
--with-features=huge \
--enable-multibyte \
--enable-gui=gtk2 \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-perlinterp \
--enable-luainterp \
--with-lua-prefix=/usr \
--enable-gpm \
--enable-xim \
--enable-cscope \
--enable-fontset \
--with-compiledby="daisuzu <daisuzu@gmail.com>" \
--prefix=$HOME/local "$*"
}
clean() {
hg revert -a &&\
rm -f $(hg st -in)
}
distclean() {
make distclean || rm src/auto/config.cache
}
build() {
distclean &&\
conf &&\
make &&\
sudo 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