Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.35 kb
require 'rake'
desc "install the script files into user's 'bin' directory"
task :install do
Dir.chdir(ENV['HOME']) { Dir.mkdir("bin") } unless File.directory? "#{ENV['HOME']}/bin"
Dir['bin/*'].each do |file|
puts "copy #{file} to -> #{ENV['HOME']}/bin"
`cp -i #{file} #{ENV['HOME']}/bin`
`chmod 777 #{ENV['HOME']}/#{file}`
end
end
Jump to Line
Something went wrong with that request. Please try again.