1 |
Matthias Guede skrev: |
2 |
> 2008/3/1, Erik <esigra@×××××.com>: |
3 |
> |
4 |
>> Is it possible to set a property on a file and have it remove |
5 |
>> automatically when the file is modified? |
6 |
>> |
7 |
>> Suppose that we have a style checker that checks a lot of source code |
8 |
>> files. Once it examined a file and found it to be clean, it should set a |
9 |
>> property on the file ("style-clean"). Whenever the style checker is |
10 |
>> executed it skips files with this property. Whenever the file is |
11 |
>> modified, the filesystem removes the property. |
12 |
>> |
13 |
>> Is this possible? Which filesystems does it work on? |
14 |
>> |
15 |
> |
16 |
> One solution would be using 'make'. With rules like the following |
17 |
> only modified files will |
18 |
> be proceeded: |
19 |
> |
20 |
> timestamp: myFile |
21 |
> doSomthingWidth myFile |
22 |
> touch timestamp |
23 |
> |
24 |
|
25 |
We have thought about that, but we would like to avoid having a parallel |
26 |
file hierarchy of timestamp files for our source tree. Therefore |
27 |
something like the archive attribute (suggested by Etanoi Shrdlu) would |
28 |
be better. |
29 |
-- |
30 |
gentoo-user@l.g.o mailing list |