On May 11, 2005, at 5:28 PM, William Scott wrote:
Hi folks:
I've noticed that when fink starts to unpack and build stuff in /sw/ src, spotlight immediately kicks in and compilations are significantly slower as a consequence. Also, since the build directories have an evanescent existence, there isn't much point in indexing these files. I've therefore turned off Spotlight indexing in root's control panel for /sw/src, but is there any unix-type command in 10.4 that could be put in an info file to turn off spotlight indexing in an individual build directory? (I assume anything modifying a plist file would violate the primary directive, but if there is a way to just tag the directory made, without doing anything outside of /sw/src/mypackage, it might be helpful to have that option).
See http://www.macosxhints.com/article.php?story=2005050222125145 for a discussion on this. In a nutshell, the file /.Spotlight-V100/ _rules.plist can contain an array of paths to include or exclude from indexing. I suppose you could use the "defaults" command to manipulate the plist, but it seems easier to just disable indexing for all of /sw/src like "sudo defaults write /.Spotlight-V100/ _rules.plist EXCLUDE -array-add '/sw/src'". A caveat is that the file will be converted to binary plist format by "defaults", which makes it non human-readable (the system won't care).
-- Daniel Johnson [EMAIL PROTECTED] PGP public key: http://homepage.mac.com/danielj7/publickey.txt
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Fink-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fink-devel
