Skip to content

Instantly share code, notes, and snippets.

@thinca
Created July 16, 2011 18:01
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinca/1086597 to your computer and use it in GitHub Desktop.
Save thinca/1086597 to your computer and use it in GitHub Desktop.
#!/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