Permalink
Browse files

Really install --here

Reported by cutthroat.
  • Loading branch information...
1 parent fea3adc commit dde4a7748f5aa773477fbd0b0f84d2b897497cbc @chneukirchen committed May 7, 2010
Showing with 6 additions and 5 deletions.
  1. +6 −5 bin/rup
View
11 bin/rup
@@ -235,6 +235,7 @@ end
case ARGV.shift
when "install"
+ here = File.expand_path(".")
ARGV.replace ["."] if ARGV.empty?
ARGV.each { |dir|
Dir.chdir(dir) {
@@ -262,12 +263,12 @@ when "install"
}
end
when :here
- logging ".ruby/lib/.#{package}.rup" do
- do_install("bin", ".ruby/bin", 0755, :fix_shebang => true)
- do_install("sbin", ".ruby/bin", 0755, :fix_shebang => true)
- do_install("lib", ".ruby/lib", 0644)
+ logging File.join(here, ".ruby/lib/.#{package}.rup") do
+ do_install("bin", File.join(here, ".ruby/bin"), 0755, :fix_shebang => true)
+ do_install("sbin", File.join(here, ".ruby/bin"), 0755, :fix_shebang => true)
+ do_install("lib", File.join(here, ".ruby/lib"), 0644)
extdirs.each { |extdir|
- do_install(extdir, ".ruby/lib", 0755, :ext_only => true)
+ do_install(extdir, File.join(here, ".ruby/lib"), 0755, :ext_only => true)
}
end
end

0 comments on commit dde4a77

Please sign in to comment.