Skip to content

Commit

Permalink
make path relative for finding the bin on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbuddy committed Nov 28, 2011
1 parent 90736ff commit a8c99c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Rakefile
Expand Up @@ -33,6 +33,8 @@ task :build_vendor do
fsevent_path = File.expand_path("../lib/vendor/darwin/lib/rb-fsevent/fsevent.rb", __FILE__)
fsevent_contents = File.read(fsevent_path)
fsevent_contents.sub!(/fsevent_watch/, 'fsevent_watch_guard')
fsevent_contents.sub!(/'\.\.'/, "'..', '..', '..', '..'")

File.open(fsevent_path, 'w') { |f| f << fsevent_contents }
end

Expand Down
2 changes: 1 addition & 1 deletion lib/vendor/darwin/lib/rb-fsevent/fsevent.rb
Expand Up @@ -2,7 +2,7 @@ class FSEvent
class << self
class_eval <<-END
def root_path
"#{File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))}"
"#{File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', '..', '..'))}"
end
END
class_eval <<-END
Expand Down

0 comments on commit a8c99c9

Please sign in to comment.