Skip to content

Instantly share code, notes, and snippets.

@danil-z
Forked from TonyAnhTran/oclint.rb
Last active November 6, 2015 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save danil-z/ef8cb04472b69ccc0245 to your computer and use it in GitHub Desktop.
Save danil-z/ef8cb04472b69ccc0245 to your computer and use it in GitHub Desktop.
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.603daa8-x86_64-darwin-14.4.0.tar.gz'
version '0.9.dev.603daa8'
sha1 '9ee49d2fd167eec09e1a33a56081c1bb22721f0d'
def install
lib.install Dir['lib/clang']
lib.install Dir['lib/oclint']
bin.install Dir['bin/*']
end
def test
system "echo \"int main() { return 0; }\" > #{prefix}/test.m"
system "#{bin}/oclint #{prefix}/test.m -- -c"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment