[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Efficiently find out if <file> is source or not

From: Stefan Monnier
Subject: [Gnu-arch-users] Efficiently find out if <file> is source or not
Date: 11 Mar 2004 16:35:23 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Let's say I'm given a file name and I need to figure out whether it's
considered as a source file by Arch or not.

How can I do that efficiently [ i.e. in constant time ] ?
Ideally this should work even if tla is not installed.
The only way I could come up with is to do something akin to:

    tla inventory -s `dirname $file` | grep $file

but this can take a long time.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]