# mulle-bootstrap, yet another dependency manager for developers
* downloads [github](http://rants.arantius.com/github-sucks) repositories
(called here the "dependents")
* can deal with [cmake](http://blog.cppcms.com/post/54),
* instead of installing headers and libraries to `/usr/local`, mulle-bootstrap
installs to `./dependencies`
* can tag your repository and all dependents. dependents get a vendor tag
* installs brew taps and formulae
* installs gems and pips
* compiles dependents using the output of previous dependents
* written in portable shell script, will run eventually also on Linux
## How to install (OS X)
brew tap mulle-kybernetik/software
brew install mulle-bootstrap
> If that doesn't work for some reason, try to
> `brew untap mulle-kybernetik/software` it and then retry.
## What mulle-bootstrap can do for you
So you need a bunch of first and third party repositories to build your own
project ? **mulle-bootstrap init** does the initial setup of the `.bootstrap`
folder. Lets put the git repository URLs in a file called `.bootstrap/repositories`.
cat > .bootstrap/repositories
**mulle-bootstrap** will check them out into a common directory `.repos`. If
there is a local clone of the repository **MulleScion** in the parent directory
of the project, then mulle-bootstrap can clone (or even symlink) from there,
if you want.
After cloning **mulle-bootstrap** does a simple security check with respect to
`.bootstrap` shell scripts and Xcode script phases. Finally it looks for a
`.bootstrap` folder in the freshly checked out repositories! They might have
dependencies too, if they do, those dependencies are added to the source
Everything you need should be present at this time. so **mulle-bootstrap** will
now build a **Debug** and a **Release** version for each library, and place
the headers and the produced libraries into the "./dependencies" folder.
Your Xcode project can be optionally massaged by
**mulle-bootstrap xcode add** to have the "./dependencies" folder in its
## Commands for a project user
Download a project which is mulle-bootstrap enabled. Execute mulle-bootstrap
in it and you are all set:
`mulle-bootstrap` is a the shortened command of `mulle-bootstrap bootstrap`, which
in turn executes:
#### mulle-bootstrap fetch
Downloads all required libraries into a `.repos` folder.
#### mulle-bootstrap build
Compiles the required libraries contained in the `.repos` folder into
`./dependencies`. It compiles each project once for Release and once for Debug
(and given a file `.bootstrap/sdks` multiplied by the number of sdks needed)
## Commands for a project maintainer
#### mulle-bootstrap init
This is the first action. It sets up a `.bootstrap` folder in your project
directory root (e.g. alongside .git). At this point you should edit
`.bootstrap/repositories` to add git projects dependencies.
For each repository add a line like
In the file `.bootstrap/brews` you can specify homebrew projects that need to
be installed. These will be installed into `/usr/local` as usual though.
#### mulle-bootstrap setup-xcode
Prepares a Xcode project to use the libraries that are compiled into the
`./dependencies` folder. You still need to add the libraries to your targets
#### mulle-bootstrap tag
Tag your project and all fetched repositories, with a tag.