Monday, September 18, 2006
I Heart Unix
I just recently figured out how to use svn propset. At last I can have proper svn:ignore properties for those hundreds of 'target' directories in my source folder.
The trouble is, svn doesn't allow you to set a property like svn:ignore 'target' recursively. At last count (ok, it was two minutes ago) that would be 334 directories I would need to update. That sounds insane, right? Unix to the rescue.
for dir in `find . -name 'project.xml' -execdir pwd \;`;do svn propset svn:ignore 'target' $dir;done
It takes longer to write about it than to do it. :-)