Browse files

changed ./package/install to ./package/compile and symlink commands t…

…o ~/bin
  • Loading branch information...
1 parent f57cc22 commit 6596a9b316368a34c2d8754bd828ecd6c4091e14 TJ Vanderpoel committed Apr 15, 2008
Showing with 10 additions and 1 deletion.
  1. +10 −1 tasks/emash_tasks.rake
View
11 tasks/emash_tasks.rake
@@ -6,6 +6,7 @@ namespace :emash do
tarball = download_runit
runit_dir = extract_runit(tarball)
compile_runit(runit_dir)
+ usage
end
def download_runit
@@ -36,6 +37,14 @@ namespace :emash do
def compile_runit(dir)
Dir.chdir(dir)
- puts %x{./package/install}
+ puts %x{./package/compile}
+ FileUtils.mkpath(bin_dir = File.join((ENV["REAL_HOME"] || ENV["HOME"]), "bin"))
+ Dir["command/*"].each do |command|
+ FileUtils.symlink(File.expand_path(command), File.join(bin_dir, File.basename(command)))
+ end
+ end
+
+ def usage
+ puts "Runit Successfully Installed"
end
end

0 comments on commit 6596a9b

Please sign in to comment.