1 |
2008/3/1, Erik <esigra@×××××.com>: |
2 |
> Is it possible to set a property on a file and have it remove |
3 |
> automatically when the file is modified? |
4 |
> |
5 |
> Suppose that we have a style checker that checks a lot of source code |
6 |
> files. Once it examined a file and found it to be clean, it should set a |
7 |
> property on the file ("style-clean"). Whenever the style checker is |
8 |
> executed it skips files with this property. Whenever the file is |
9 |
> modified, the filesystem removes the property. |
10 |
> |
11 |
> Is this possible? Which filesystems does it work on? |
12 |
|
13 |
One solution would be using 'make'. With rules like the following |
14 |
only modified files will |
15 |
be proceeded: |
16 |
|
17 |
timestamp: myFile |
18 |
doSomthingWidth myFile |
19 |
touch timestamp |
20 |
-- |
21 |
gentoo-user@l.g.o mailing list |