Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[TIP] Rebuild all of your {SVN,CVS,GIT,HG} Packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Sun Jan 28, 2007 7:02 pm    Post subject: [TIP] Rebuild all of your {SVN,CVS,GIT,HG} Packages Reply with quote

This is from my .zshrc:

Code:
emerge-svn () {
        find /var/db/pkg -name INHERITED -and -exec grep -H -E 'cvs|subversion|git|mercurial' {} \; | cut -d '/' -f 5-6 | sed -e 's/^/=/' | xargs emerge -1
}


This rebuilds every installed package that utilizes cvs|subversion|git|mercurial eclass.
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
boniek
Guru
Guru


Joined: 26 Mar 2005
Posts: 373

PostPosted: Sun Feb 04, 2007 8:17 am    Post subject: Reply with quote

Good stuff.
Same, but for paludis users:
Code:
  --dl-reinstall-scm     When to reinstall scm packages
      never                Never (default)
      always               Always
      daily                If they are over a day old
      weekly               If they are over a week old

_________________
[HOWTO]New freetype subpixel font rendering for lcd monitors
Back to top
View user's profile Send private message
funklord
Tux's lil' helper
Tux's lil' helper


Joined: 29 May 2004
Posts: 78

PostPosted: Sat Feb 10, 2007 2:37 am    Post subject: Reply with quote

I prefer to run it this way:

Code:

emerge -va `find /var/db/pkg -name INHERITED -and -exec grep -H -E 'cvs|subversion|git|mercurial' {} \; | cut -d '/' -f 5-6 | sed -e 's/^/=/'`


... but, thanks for the tip! I was looking for something just like this and happened to run across it by accident.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum