No BSD License  

Highlights from
Add folders to path excluding .svn

Be the first to rate this file! 3 Downloads (last 30 days) File Size: 1.83 KB File ID: #15393

Add folders to path excluding .svn

by H. Brian Hui

 

21 Jun 2007 (Updated 22 Jun 2007)

Changes to genpath to exclude the .svn to the path

| Watch this File

File Information
Description

We use SVN for our Matlab toolbox Brainstorm. A .svn sub folder is created within every folder in the repository by SVN. When I was trying to add folders(including sub folders) to path, It will add all these .svn folders to the path. Then I found out you can simply add one line to the GENPATH function, and use
ddpath(genpath('My folder'))
to add to the path.

The line to be added in is at #48 in GENPATH function for Matlab R2006b:
 ~strcmp( dirname,'.svn') &...

Alternatively, you can replace the attached function with the default one. (Remember to make a backup copy)

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
genpath H. Brian Hui 22 Oct 2008 09:16:52
addpath H. Brian Hui 22 Oct 2008 09:16:52
svn H. Brian Hui 22 Oct 2008 09:16:52
addpath m 06 Jan 2010 17:09:46
addpath David 07 May 2010 04:12:52
genpath Peter Li 24 May 2011 17:48:48
svn Peter Li 24 May 2011 17:49:03

Contact us at files@mathworks.com