comparison scripts/pkg/pkg.m @ 6025:bb0c9f97fe4f

[project @ 2006-10-03 19:21:09 by jwe]
author jwe
date Tue, 03 Oct 2006 19:21:09 +0000
parents f542445f6b7a
children dcecca0396e6
comparison
equal deleted inserted replaced
6024:500d884ae373 6025:bb0c9f97fe4f
1066 if (isempty(dirs{j})) 1066 if (isempty(dirs{j}))
1067 error("Package %s is not installed\n", files{j}); 1067 error("Package %s is not installed\n", files{j});
1068 endif 1068 endif
1069 endfor 1069 endfor
1070 endif 1070 endif
1071 addpath(dirs{:}); 1071 if (length(dirs) > 0)
1072 addpath(dirs{:});
1073 endif
1072 1074
1073 ## Add local binaries, if any, to the EXEC_PATH 1075 ## Add local binaries, if any, to the EXEC_PATH
1074 for i = 1:length(dirs) 1076 for i = 1:length(dirs)
1075 if (exist ([dirs{i} "/bin"],"dir")) 1077 if (exist ([dirs{i} "/bin"],"dir"))
1076 EXEC_PATH ([dirs{i} "/bin:" EXEC_PATH()]); 1078 EXEC_PATH ([dirs{i} "/bin:" EXEC_PATH()]);