2010-01-27

Bulk svn:ignore Idea's .iml files

Pay some attention to the line break just after the .iml, this one is required.
for t in *; do if cd $t; 
then pwd; svn propset svn:ignore "$t.iml
`svn propget svn:ignore`" .;  cd ..; fi; done;
Bash rules, yeah.

2 comments:

Ian said...

if you have a more complicated maven project with many levels deep:

find . -name "pom.xml" | while read i; do
svn propset svn:ignore "*.iml `svn propget svn:ignore`" `dirname $i`;
done;

Anton S. Kraievoy said...

Oh... thanks!

PS: Pleased to know this helped someone!