We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ad974 commit 8ca41baCopy full SHA for 8ca41ba
Makefile
@@ -1,3 +1,7 @@
1
+# find out where ruby is. can override this by providing environment or command
2
+# line variable
3
+RUBY ?= $(shell ./find-ruby.sh)
4
+
5
update: install-vundle vundles install-command-t
6
7
install: cleanup update
@@ -12,4 +16,4 @@ vundles:
12
16
vim -u ./vundles.vim +BundleInstall
13
17
14
18
install-command-t:
15
- cd bundle/Command-T/ruby/command-t/ && /opt/local/bin/ruby extconf.rb && make
19
+ cd bundle/Command-T/ruby/command-t/ && $(RUBY) extconf.rb && make
find-ruby.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+if [ '/opt/local/bin/vim' = `which vim` -a -e /opt/local/bin/ruby ]; then
+ echo /opt/local/bin/ruby
+elif [ -e '/usr/bin/ruby' ]; then
+ echo /usr/bin/ruby
+else
8
+ which ruby
9
+fi
0 commit comments