Gentoo Archives: gentoo-user

From: Matthias Guede <matthias.guede@××××××××××.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:38:55
Message-Id: 50ba04d20803010838t55713774ge9ed320cfac5386e@mail.gmail.com
In Reply to: [gentoo-user] Set a property on a file and have it remove when the file is modified? by Erik
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

Replies