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

RE: Feature request: svn clean

From: Bax, Arjen <ABax_at_AEGON.NL>
Date: 2005-03-21 15:54:41 CET

Martin Aliger asks for a command to remove left-over build artifacts.

Sounds like something like:

svn st topdir | perl -wlne 's/\s+$//; /^\?/ and unlink substr($_, 7)'

I love using Perl. :-)

Warning: use at your own risk.
Warning: does not work with files with names ending in spaces.

You might test it first with 'print' instead of 'unlink'. ;-)

HTH,
Arjen Bax

-- 
Violence is the last refuge of the incompetent - Isaac Asimov
Received on Mon Mar 21 16:16:49 2005

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.