Gentoo Archives: gentoo-user

From: Erik <esigra@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Set a property on a file and have it remove when the file is modified?
Date: Sat, 01 Mar 2008 16:46:55
Message-Id: 47C9891E.9010902@gmail.com
In Reply to: Re: [gentoo-user] Set a property on a file and have it remove when the file is modified? by Matthias Guede
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

Replies

Subject Author
Re: [gentoo-user] Set a property on a file and have it remove when the file is modified? Daniel Iliev <daniel.iliev@×××××.com>