Skip to content

Instantly share code, notes, and snippets.

@cescoffier
Created August 19, 2012 07:38
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 cescoffier/3393346 to your computer and use it in GitHub Desktop.
Save cescoffier/3393346 to your computer and use it in GitHub Desktop.
jsdoc 3.0.1 homebrew formula
require 'formula'
class Jsdoc3 < Formula
homepage 'http://usejsdoc.org/'
url 'https://github.com/jsdoc3/jsdoc/tarball/v3.0.1'
sha1 '0c6ad2321d300a3eaa2e1d543f3fbf166ff1ce18'
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