-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.rb
executable file
·35 lines (26 loc) · 1.36 KB
/
install.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env ruby -wKU
# encoding: utf-8
puts "Installing Ruby Language Extensions for Mac..."
if !File.exists? "/Library/Ruby/Site/1.8/universal-darwin10.0"
`sudo mkdir /Library/Ruby/Site/1.8/universal-darwin10.0`
end
if !File.exists? "/Library/Ruby/Site/1.8/universal-darwin12.0"
`sudo mkdir /Library/Ruby/Site/1.8/universal-darwin12.0`
end
if !File.exists? "/Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma"
`sudo rm -rf /Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma`
`sudo rm -rf /Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma.bundle`
`sudo ln -s "#{Dir.pwd}"/library/Jamoma.bundle /Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma.bundle`
`sudo ln -s "#{Dir.pwd}"/library/Jamoma /Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma`
end
if !File.exists? "/Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma"
`sudo rm -rf /Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma`
`sudo rm -rf /Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma.bundle`
`sudo ln -s "#{Dir.pwd}"/library/Jamoma.bundle /Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma.bundle`
`sudo ln -s "#{Dir.pwd}"/library/Jamoma /Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma`
end
#`cd library; make install`
#/Library/Ruby/Site/1.8/universal-darwin10.0/Jamoma.bundle
#/Library/Ruby/Site/1.8/universal-darwin12.0/Jamoma.bundle
puts
puts "=================DONE===================="