[Scons-users] Cleaning up the cache

Chris BeHanna chris at behanna.org
Thu Jul 12 12:58:09 EDT 2012


On Jul 12, 2012, at 07:09 , TOM TANNER (BLOOMBERG/ LONDON) wrote:


> How do people generally set about removing old / unused information from the scons-cache?


AGE="+7" # days

find /path/to/scons-cache ! -type -mtime +$AGE -delete

and stuff a script that does that into a crontab someplace (or into /etc/cron.daily). This will blow away everything older than 7 days. It's not as intelligent as some other schemes I've seen, but it's computationally cheap and very easy to tune.

It'd be great if scons had some kind of LRU pruning, but that's much lower on the importance list than build-time performance.

--
Chris BeHanna
chris at behanna.org



More information about the Scons-users mailing list