Skip to content

Commit

Permalink
add neighbor mirah hook, ENV['MIRAH_HOME'] needs to be used BEFORE re…
Browse files Browse the repository at this point in the history
…quiring it
  • Loading branch information
hakunin committed Oct 19, 2010
1 parent 64cd0d4 commit 64bf1a2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/dubious/templates/base/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ rescue LoadError
exit 1
end

require 'rake/clean'
require 'mirah/appengine_tasks'

neighbor_mirah = File.expand_path '../mirah'

if File.exists?(neighbor_mirah)
ENV['MIRAH_HOME'] ||= neighbor_mirah
end

if ENV['MIRAH_HOME'] && File.exist?(ENV['MIRAH_HOME'] +'/lib/mirah.rb')
$: << File.expand_path(ENV['MIRAH_HOME'] +'/lib')
end

require 'rake/clean'
require 'mirah/appengine_tasks'


if File.exist?('../bitescript/lib/bitescript.rb')
$: << File.expand_path('../bitescript/lib/')
end
Expand Down

0 comments on commit 64bf1a2

Please sign in to comment.