Skip to content

Instantly share code, notes, and snippets.

@zhoutuo
Forked from cescoffier/jsdoc3.rb
Last active December 17, 2015 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhoutuo/5562459 to your computer and use it in GitHub Desktop.
Save zhoutuo/5562459 to your computer and use it in GitHub Desktop.
require 'formula'
class Jsdoc3 < Formula
homepage 'http://usejsdoc.org/'
url 'https://github.com/jsdoc3/jsdoc/archive/releases/3.2.zip'
def install
libexec.install Dir['*']
# Custom invoker that just passes on whatever arguments you give it
system "/bin/echo '#!/bin/sh' > jsdoc"
system "/bin/echo '#{libexec}/jsdoc $@' >> jsdoc"
bin.install "jsdoc"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment