annotate rDiff/src/set_rdiff_paths.m @ 3:29a698dc5c7e default tip

Merge multiple heads.
author Dave Bouvier <dave@bx.psu.edu>
date Mon, 27 Jan 2014 14:15:36 -0500
parents 0f80a5141704
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
1 function [rDiff_paths] = set_rdiff_paths()
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
2 % [difftest_paths] = set_rdiff_paths()
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
3
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
4 %Initialize rDiff_paths
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
5 rDiff_paths='';
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
6
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
7 %get the path to the source files
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
8 BASEPATH_SRC=getenv('RDIFF_SRC_PATH');
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
9
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
10 %Determine interpreter
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
11 if size(ver('Octave'),1)
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
12 INTERPR = 1;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
13 else
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
14 INTERPR = 0;
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
15 end
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
16
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
17
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
18 %Add paths to rDiff_paths
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
19 if INTERPR
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
20 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/octave/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
21 end
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
22 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/../mex/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
23 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tests/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
24 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tools/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
25 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/tools/read_utils/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
26 rDiff_paths=[rDiff_paths ':' [BASEPATH_SRC '/variance/']];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
27 rDiff_paths=[rDiff_paths ':' genpath([BASEPATH_SRC '/locfit/'])];
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
28 addpath(rDiff_paths);
0f80a5141704 version 0.3 uploaded
vipints
parents:
diff changeset
29