Created
May 15, 2013 14:35
-
-
Save daisuzu/5584432 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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