summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-11-17 00:27:18 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-11-17 00:27:18 -0800
commit8594579dbc8d124b034dcf7c96045d37cffd9117 (patch)
treec94880093d1c4e0ec4b37eaf168b5e230b2ee5b8 /ext
parentbc8c2bc1d3ab87b19e54d661d6d5e0dd2c7a5958 (diff)
downloadffi-yajl-8594579dbc8d124b034dcf7c96045d37cffd9117.tar.gz
raise some exceptions
Diffstat (limited to 'ext')
-rw-r--r--ext/libyajl2/extconf.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/libyajl2/extconf.rb b/ext/libyajl2/extconf.rb
index 73cd2b0..f16b625 100644
--- a/ext/libyajl2/extconf.rb
+++ b/ext/libyajl2/extconf.rb
@@ -32,11 +32,11 @@ unless libyajl2_ok
# ENV['CFLAGS'] = $CFLAGS
# ENV['LDFLAGS'] = $LDFLAGS
# ENV['CC'] = RbConfig::MAKEFILE_CONFIG['CC']
- system "wget -O yajl-2.0.1.tar.gz http://github.com/lloyd/yajl/tarball/2.0.1"
- system "tar xvf yajl-2.0.1.tar.gz"
- Dir.chdir "lloyd-yajl-f4b2b1a"
- system "./configure --prefix=#{prefix} > /tmp/libyajl.out"
- system "make install >> /tmp/libyajl.out"
+ system "wget -O yajl-2.0.1.tar.gz http://github.com/lloyd/yajl/tarball/2.0.1" or raise "wget failed"
+ system "tar xvf yajl-2.0.1.tar.gz" or raise "tar xvf failed"
+ Dir.chdir "lloyd-yajl-f4b2b1a" or raise "chdir failed"
+ system "./configure --prefix=#{prefix} > /tmp/libyajl.out" or raise "configure failed"
+ system "make install >> /tmp/libyajl.out" or raise "make install failed
Dir.chdir ".."
end