[pedevel] Re: jam integration with pe

On Thu, 27 May 2004, Andrew Bachmann wrote:

> Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx> wrote:
> > On Wed, 26 May 2004, Andrew Bachmann wrote:
> >
> > A common MIME type sounds like a good idea. I wonder though, if it
> > should better include a vendor string, like text/x-vnd.perforce.jam?
>
> Either way sounds okay to me.
>
> > BTW, you haven't by accident written a MIME sniffer rule to recognize jam
> > files? That would be cool, though I suspect, it's quite hard to do.
>
> I haven't, but I suspect that checking for these would be pretty good:
>
> SubDir .... ;
> rule ... { .... }
> include ... ;
> # ... jam ...
>
> The SubDir rule would catch pretty much any Jamfile in the OBOS tree,
> I think.  The last one could be used intentionally to force a hit.

Yep, SubDir works fine for Jamfiles, but their name gives them away
anyway. I was thinking more of the build system files that have other
names (like the ones in Pe's build system). `rule ... {' or `actions ...
{' might catch most of them, though. Unless they start with too much
comments.

CU, Ingo

Other related posts: