Skip to content

Instantly share code, notes, and snippets.

@johnbintz
Created August 4, 2011 13:57
Show Gist options
  • Save johnbintz/1125204 to your computer and use it in GitHub Desktop.
Save johnbintz/1125204 to your computer and use it in GitHub Desktop.
Build latest MacVim, activating and deactivating all the right things along the way
#!/bin/bash
if [ ! -z $(which ruby | grep '.rvm') ]; then
echo "Switch to system ruby!"
exit 1
fi
echo "Building latest MacVim..."
sudo port activate libiconv
git pull
sudo port deactivate -f libiconv
rvm system
cd src
make clean
./configure --with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-perlinterp \
--enable-cscope
make
sudo port activate libiconv
cp -Rpv MacVim/build/Release/MacVim.app /Applications
cd /Applications
open MacVim.app
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment