Permalink
Browse files

changed bindir when running under gem.

  • Loading branch information...
1 parent 336490e commit 430e9adb819fd46cb75704361c58ebfbe34dfbd2 @tdtds committed Dec 1, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 ext/kindlegen/extconf.rb
View
6 ext/kindlegen/extconf.rb
@@ -5,7 +5,11 @@
require 'rbconfig'
File::open( 'Makefile', 'w' ) do |w|
- w.puts RbConfig.expand( DATA.read )
+ if Dir::pwd.include? 'gems'
+ w.puts RbConfig.expand( DATA.read, { 'bindir' => '../../../../bin' } )
+ else
+ w.puts RbConfig.expand( DATA.read )
+ end
end
__END__

0 comments on commit 430e9ad

Please sign in to comment.