morgant/tools-osx — pull request #10 by dpkendal (2012-01-10 13:32:57+00:00)
Title: Revising directory structure and Rakefile

Rationale
-------------
* The Rakefile now uses rake's built-in methods for simulating
Unix file commands. These report what they're doing as they
do it, so there's no need for us to give our own diagnostics.
* We now have a more traditional `rake`; `rake install` procedure
for installation. This doesn't force `sudo` on people who don't
need it. (Homebrew chmods /usr/local/bin to be writable, so we
don't need sudo for people who've installed Homebrew.)
* We now have a clean framework for allowing future scripts to
be compiled (in C/C++/Objective-C/MacRuby...) separately from
their installation.

Antirationale
----------
* Only one script is being compiled right now; the rest are just
copied verbatim from src to bin. Although the extensibility of
this approach is admirable, it might be better to wait until
someone writes some more scripts in C/etc/MacRuby.

Ideas
------
* Support switches `--no-{script}` to suppress installation of a
particular script.
* Support switch `--base` to allow installing somewhere other than
/usr/local/bin/