You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
316 B
Ruby
14 lines
316 B
Ruby
#!/usr/bin/ruby
|
|
|
|
require 'fileutils'
|
|
|
|
RUBDIR = "#{Dir.home}/.rub"
|
|
TMPLDIR = "#{RUBDIR}/rub/templates"
|
|
|
|
File.mkdir RUBDIR unless File.exist? RUBDIR
|
|
FileUtils.cp_r(TMPLDIR, RUBDIR)
|
|
FileUtils.cp("templates.rb", RUBDIR)
|
|
FileUtils.chmod("+x", "rub")
|
|
FileUtils.cp("rub", "/usr/local/bin")
|
|
#FileUtils.cp_r(Dir.pwd, RUBDIR)
|