[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to set svn:ignore automatically in all subdirs?

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Wed, 20 Feb 2008 05:22:37 -0600

On Feb 20, 2008, at 03:08, Andreas Benzler wrote:

> For the executables this is a good point and I will check this.
> Because it would have a lot of other benefits. But we use corba in
> our projects and we have to compile a lot of idl files which in
> return create c++ headers and other stuff. These should stay in the
> source tree. It would be very inconvenient to change all includes
> of these file to a different location.
> So anyone out there already made a script for that purpose?

Only you know what files you want to ignore, so you should look at
the list of files produced by "svn st", specifically those lines
beginning with "?", and decide if and how you want to ignore them. Do
you want to ignore specific named files? Files with a certain
extension? Files with a certain prefix? All files? Only you know
this; a script can't decide it for you.

But, this might be a start:

svn st | sed -n -E 's%^\?.{6}([^/]+)$%\1%p' | sed -E 's%^.*(\..*)$%*
\1%' | sort | uniq

Run this, put its output in an editor, tweak it to your liking, then
set it as the directory's svn:ignore property.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-20 12:23:05 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.