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 |