Re: Best practice for distributing a standalone clojure command line utility

2011-06-17 Thread Miki
Not my idea, can't recall where I've seen it first (nvidia driver?) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with y

Re: Best practice for distributing a standalone clojure command line utility

2011-06-17 Thread Michael T. Nygard
If you use Cake to build your project, then "cake bin" will create a standalone executable. Cheers, -Michael On Jun 16, 2011, at 2:08 PM, Damon Snyder wrote: > Hi Everyone, > I'm have a side project that I'm working on that I want to distribute > as a standalone script. This is probably best il

Re: Best practice for distributing a standalone clojure command line utility

2011-06-17 Thread Damon Snyder
Hi Miki, Thats an interesting idea that I had not thought of. It nicely encapsulates everything in one package. Thanks! Damon On Jun 16, 6:15 pm, Miki wrote: > One more option is to embed the jar in base64 encoding in a script, extract > the jar to a temp location and run it. > The following Per

Re: Best practice for distributing a standalone clojure command line utility

2011-06-16 Thread Miki
One more option is to embed the jar in base64 encoding in a script, extract the jar to a temp location and run it. The following Perl script does that (it uses the base64 executable, but you can probably use MIME::Base64 as well). #!/usr/bin/env perl $jar = "/tmp/lp-$ENV{USER}.jar"; unless (-e

Re: Best practice for distributing a standalone clojure command line utility

2011-06-16 Thread Miki
> A few approaches I have thought about: 1) Upload the stand alone jar > to github and have the "gantry" script pull down the standalone into > ~/.gantry and construct the command line. 2) Create a cake wrapper > (not preferred because it introduces a dependency). 3) Forget the > wrapper and

Best practice for distributing a standalone clojure command line utility

2011-06-16 Thread Damon Snyder
Hi Everyone, I'm have a side project that I'm working on that I want to distribute as a standalone script. This is probably best illustrated as an example. What I would like to be able to do is give users a script, so they can do: gantry -H example.host.com -f examples/tasks.clj uptime Instead