On 24/11/2014 21:08, Marvin Humphrey wrote:
It should be possible to know a file's parcel given:
* where it lives in the file system
* the contents of a .cfp parcel file living above it
For example:
# cookbook.md belongs to whatever parcel is spelled out in foo.cfp
foo/foo.cfp
foo/docs/cookbook.md
Deriving the parcel from a file's location is more of course elegant.
We've discussed this before but haven't worked out the details. Shall we
proceed?
Yes, let's give it another try. My main goals for now are
* Mechanism to find all .cfh files that belong to a prerequisite
parcel without parsing every file in the include directory tree.
* Mechanism to find a file's parcel (.cfp file) given its path
(mainly in source directories).
I still favor an approach where every parcel lives in a completely separate
directory. This would make both of these goals easy to achieve.
Nick