Commit 24ce0ea0 authored by Michał Siwek's avatar Michał Siwek

Abort building if no working C compiler found

parent c0cab698
......@@ -127,6 +127,7 @@ def install
puts "Unpacking archive, this may take a while..."
system "tar", "xf", meta[:filename]
if meta[:source] == true
abort "You don't have a working C compiler. Run 'crew install buildessential' to get one and try again." unless system("gcc", "--version")
topdir = `tar -tf #{meta[:filename]} | sed -e 's@/.*@@' | uniq`.chomp!
Dir.chdir CREW_BREW_DIR + topdir do
puts "Building from source, this may take a while..."
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment