Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Update All of the SVN Version Controlled Projects in a Directory (See related posts)

I have all of my projects in a directory like ~/PROJECTS. Each day when I come to work, I want to ensure that everything on my workstation is up to date. Rather than cd into each directory and issue "svn update" by hand, I kludged the following shell script together. Comments appreciated.


 for X in `find . -maxdepth 2 -type d -name ".svn" | cut -d / -f 2`; do svn update ./$X; done  

Comments on this post

agy posts on Mar 26, 2006 at 19:29
You might want to checkout the svn:externals property.

Set the property for your toplevel directory (~/PROJECTS in your case) and a simple: 'svn update' will update all your projects.

Reference:
http://svnbook.red-bean.com/nightly/en/svn.advanced.externals.html

You need to create an account or log in to post comments to this site.


Related Posts