Created
November 18, 2017 01:21
-
-
Save ryochack/88ea1136efc7be27105e541fab7903dd 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 | |
# sh build.sh ${target} | |
set -eu | |
if [ $# -eq 0 ]; then | |
echo "target none, exit" | |
exit 1 | |
fi | |
target=$1 | |
cd `dirname $0`; | |
script_dir=$PWD | |
prefix=$HOME/local | |
echo "target=${target}" | |
if [ "${target}" = "all" -o "${target}" = "vim" ]; then | |
echo "build vim..." | |
cd vim/ | |
make distclean | |
./configure --prefix="${prefix}" \ | |
--disable-darwin \ | |
--disable-smack \ | |
--disable-selinux \ | |
--enable-FEATURE \ | |
--enable-luainterp=yes \ | |
--enable-mzschemeinterp \ | |
--enable-perlinterp=yes \ | |
--enable-pythoninterp=yes \ | |
--enable-python3interp=yes \ | |
--enable-tclinterp=yes \ | |
--enable-rubyinterp=yes \ | |
--enable-cscope \ | |
--enable-multibyte \ | |
--enable-xim \ | |
--enable-fontset \ | |
--enable-gui=no \ | |
--enable-terminal \ | |
--with-local-dir="${prefix}" \ | |
--with-features=huge \ | |
--with-lua-prefix=/usr \ | |
--with-ruby-command=ruby \ | |
cd src | |
make | |
make install | |
cd "${script_dir}" | |
fi | |
if [ "${target}" = "all" -o "${target}" = "go" ]; then | |
echo "build go..." | |
export GOROOT_BOOTSTRAP=${script_dir}/go1.4-bootstrap | |
cd go/src | |
./all.bash | |
cd "${script_dir}" | |
fi | |
if [ "${target}" = "gdb-dashboard" ]; then | |
echo "build gdb-dashboard..." | |
cp gdb-dashboard/.gdbinit ~/ | |
# for embedded-rust. refs: http://blog.japaric.io/quickstart/ | |
echo 'set auto-load safe-path /' >> ~/.gdbinit | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment