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: Mon, 03 Mar 2008 13:11:02
Message-Id: 47CBF955.3080305@gmail.com
In Reply to: Re: [gentoo-user] Set a property on a file and have it remove when the file is modified? by Daniel Iliev
1 Daniel Iliev skrev:
2 > Actually, if there are no other concerns, you'd have to keep only one
3 > file for reference. Then you could compare the modification times of all
4 > other files with this reference file.
5 >
6
7 Good idea! I implemented it and it reduced the number of cache
8 files/directories in the tree from 633 to 26. The only drawback is that
9 if the script is interrupted whilst checking a sequence of files with
10 equal mtime, it will have to start over with that sequence the next time
11 it is executed. (Files often get the same mtime if they are edited in an
12 IDE and then all saved when executing the build command.) But reducing
13 the number of cache files is worth that minor inconvenience.
14
15 In case anyone is curious, the script is here:
16 http://widelands.svn.sourceforge.net/viewvc/*checkout*/widelands/trunk/utils/spurious_source_code/detect
17 --
18 gentoo-user@l.g.o mailing list