openlayers/openlayers — pull request #187 by jorix (2012-01-28 19:31:49+00:00)
Title: Build: Allow import directories.

After 8047afd909c45b199665412518d08bc9487b93f4 can be used a directory name in `[exclude]` section in a configuration file.

This Pull Request proposes to extend the use of directory names to all other sections.

Implementation:
----------------------
Has been developed the method `importFiles` to import files from any section. This method imports the files if they have not previously been imported and are not excluded. If a directory name found walking through the directory and imports its files (when the `[include]` section is empty is equivalent to `./`)

The new code uses the `cfg` object on many points, so to avoid checks as `if cfg:`, always creates a ```cfg``` object still not reporting configuration file.

Care has been taken to the execution log is clearer separating the phases using a blank line.

Some changes in behavior:
--------------------------------------

* If a file is reported in the `[last]` section not it's necessary to ensure that previously reported on `[first]` or `[include]`
* Allows importing files outside the library, eg using `../my_directory/my_source.js`
* It is not possible to repeat a file (now is possible if reported in `[first]` and `[last]` simultaneously)