Skip to content

Commit 8ca41ba

Browse files
committed
support for non osx ruby platforms ;)
1 parent 54ad974 commit 8ca41ba

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -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+
15
update: install-vundle vundles install-command-t
26

37
install: cleanup update
@@ -12,4 +16,4 @@ vundles:
1216
vim -u ./vundles.vim +BundleInstall
1317

1418
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

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ '/opt/local/bin/vim' = `which vim` -a -e /opt/local/bin/ruby ]; then
4+
echo /opt/local/bin/ruby
5+
elif [ -e '/usr/bin/ruby' ]; then
6+
echo /usr/bin/ruby
7+
else
8+
which ruby
9+
fi

0 commit comments

Comments
 (0)