Skip to content

Instantly share code, notes, and snippets.

@todthomson
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save todthomson/b17380d32807041d17dd to your computer and use it in GitHub Desktop.

Select an option

Save todthomson/b17380d32807041d17dd to your computer and use it in GitHub Desktop.
# brew install https://gist.github.com/akunzai/bbcac93646ca08bd8569/raw/scriptcs.rb
require 'formula'
class Scriptcs < Formula
homepage 'https://github.com/scriptcs/scriptcs'
url 'https://github.com/scriptcs/scriptcs.git', :tag => "v0.12"
depends_on "mono" => :recommended
def install
system "./build.sh"
libexec.install Dir["src/ScriptCs/bin/Release/*"]
(libexec/"scriptcs.sh").write <<-EOS.undent
#!/usr/bin/env bash
mono /usr/local/opt/scriptcs/libexec/scriptcs.exe $@
EOS
(libexec/"scriptcs.sh").chmod 0755
bin.install_symlink libexec/"scriptcs.sh" => "scriptcs"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment