On Aug 8, 2016, at 8:40 AM, Chris Forster <[email protected]> wrote:
> Is it (easily) feasible to put all files from a particular output target in a > subdirectory of the project root? This would clean up the project root, but > also help for some other purposes; for instance, I'm trying to use Pollen to > create partial LaTeX files, stow them in a subdirectory, and then recombine > them on demand (for, essentially, customized anthologies). It would be nice > to put all my latex partials in a single subdirectory so that other code > could reach in their and compile them (based on user selection, say, from the > web). > > I could accomplish this manually (I think), by doing raco pollen publish; > then, in the published directory making a bunch of subdirectories and moving > by file extension; but is there a way to do within Pollen? In general, it's not that I'm numb to the (occasional) pleas for better file-management options. I have two reservations. First, I haven't personally come across a need for it. So I would rather someone describe in detail how this new part of the system ought to work, rather than guessing (probably incorrectly). (Thank you for doing so here: I can visualize what you're trying to do & why) Second, anything that touches the file system is inherently more complicated. I don't want Pollen to duplicate (probably incorrectly) that which other tools do well. For instance, `raco pollen publish` makes sense as a Pollen operation because it requires rules about what is & isn't a publishable file in the Pollen universe. Whereas just copying / moving files into different directories ... seems like a job better suited to `make` or a shell script? (That is a non-rhetorical question. I don't know if that would suit your needs.) PS Of course, you could accomplish your goal "by hand" in the sense that you could have Pollen source files in your subdirectory that generate the LaTeX partials, but all they do is reach up into the parent directory to `require` their `doc` and `metas` from the right ".poly" file. -- You received this message because you are subscribed to the Google Groups "Pollen" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
