Permalink
Browse files

Tell the user they need wget if they don't have it

  • Loading branch information...
1 parent 7c66bb6 commit ad6b61b07170e39b3363811f55464bdb0fef6714 @wycats wycats committed Mar 31, 2010
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
@@ -1,8 +1,13 @@
-desc "Install oniguruma"
+desc "Install oniguruma (Make sure you have wget)"
task :install_onig do
+ if `which wget`.empty?
+ puts "You need wget to install oniguruma. Please install it."
+ exit
+ end
+
system "wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.8.0.tar.gz"
system "tar zxvf onig-5.8.0.tar.gz"
-
+
Dir.chdir("onig-5.8.0") do
system "./configure"
system "make"

0 comments on commit ad6b61b

Please sign in to comment.