Hitachi Vantara Pentaho Community Wiki
Child pages
  • Shell script alias to update all SVN projects in Eclipse workspace

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Here's a line you can add to your .bashrc (or other resource script) that will try an "svn update" on all the subdirectories of the current directory:

alias svn_upd_all='find . -type d | grep -v "/.*/" | sed -e "s/ /\\\\ /g" | xargs svn update'

To use, open a Terminal and navigate to the top-level directory (such as your Eclipse workspace directory), then type the following:

svn_upd_all

Although it will try to update non-Subversion directories, they will be skipped.