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

Re: Build configuration records

From: Edvard Majakari <edvard.majakari_at_staselog.com>
Date: 2004-09-24 07:34:15 CEST

"Max Bowsher" <maxb@ukf.net> writes:

> That would be me.

My apologies for the laziness :)

[...]
> It removes the files just fine for me, so please don't say never.
> I'd be interested to hear if you discover whatever weirdness is causing it
> not to work properly for you.

I'm sorry. I didn't mean to say it doesn't work for you (or with others) -
that it never works for me. I thought I'd look at it more carefully now,
and realized it really handles DRYRUN correctly. Then I echoed what rm
gets in $i

 if [ -z "$DRYRUN" ]; then
      rm -vrf "$i"
 fi

and realized there's extra whitespace in front of every $i. The reason was
then quickly found: sed only removed the first two whitespaces. Replacing

for i in `${SVN-svn} status --no-ignore "$@" | sed -n 's/^[I\?] //p'`

with

for i in `${SVN-svn} status --no-ignore "$@" | sed -n 's/^[I\?] *//p'`

made the script work for me. Thanks for the script!

-- 
# Edvard Majakari		Software Engineer
# PGP PUBLIC KEY available    	Soli Deo Gloria!
$_ = '456476617264204d616a616b6172692c20612043687269737469616e20'; print
join('',map{chr hex}(split/(\w{2})/)),uc substr(crypt(60281449,'es'),2,4),"\n";
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 24 07:35:04 2004

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.