Mike Perham

On Ruby, software and the Internet

Using svn:externals

October 19th, 2007 · No Comments

Subversion allows you to pull external code into your code by using the svn:externals property. It’s pretty simple to use; assume we have a library “foo” which we want to pull into the current directory.  This script will add the external reference for you:

TMP=current.tmp

svn pg --strict svn:externals > $TMP
echo "$1 $2" >> $TMP
svn ps svn:externals --file $TMP .
rm $TMP
svn up

Call it like this:

extern foo https://svn.myhost.com/source/libraries/foo

Tags: Software

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment