mapbox/osm-bright — pull request #27 by llimllib (2012-02-04 04:34:17+00:00)
Title: Add an "install" and a "pull" command

1. Add a "name" config option, which sets the "name" property in project.mml and functions as the directory name for the installed project in the mapbox projects directory. Defaults to "OSM bright"

2. Add a "path" config option, which specifies the directory containing the user's mapbox projects. This enables us both to install the project for them, and pull back changes to be committed into the repository.

3. Unfortunately, adds a `lib` directory with one file, `utils.py` containing one function, `copy_tree`. I didn't want to jam this function into make.py, but if you prefer that organization I will understand as it sucks to add a dir just for this one function. I tried hard to use the stdlib's functions, but none of them worked exactly right.

4. Moves `configure.py` to a `configure.py.sample` file; this will avoid anyone accidentally checking in their credentials.

5. Adds an "install" command to `make.py`, which copies `build` to `config[path]/config[name]`. It will only overwrite any files in the install directory which match files in the `build` dir. (i.e. if you add a file to the install dir, it won't get blown away by "install"ing.

"Install" will mangle the name of config[name] so that it is a valid directory. It will turn a name like "My OSM Map" into "MyOSMMap".

6. Adds a "pull" command to `make.py` which pulls changes back from the install directory to the osm-bright repo so they can be easily committed.