Changeset 15
- Timestamp:
- 02/22/11 21:46:01 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
prextra/prhelp2html.m
r14 r15 79 79 %[pp,name] = fileparts(file); 80 80 if isempty(subdir) 81 [ ~,subdir] = fileparts(fileparts(file));81 [xx,subdir] = fileparts(fileparts(file)); 82 82 end 83 83 if isempty(strmatch(subdir,char('prtools','@dataset','@datafile','@mapping'),'exact')) … … 102 102 103 103 title = listn(t,1); 104 [ ~,title] = strtok(title); % get rid of first word, probably name104 [qq,title] = strtok(title); % get rid of first word, probably name 105 105 s = [s '<h3>' title '</h3>' newline]; 106 106 s = [s '<p>' newline]; … … 167 167 168 168 if seealso % get rid of also 169 [ ~,posttok] = strtok(posttok);169 [qq,posttok] = strtok(posttok); 170 170 single = isempty(strtok(posttok)); 171 171 end … … 376 376 s = strrep(s,['<p>' newline ' '],'<p>'); 377 377 s = [s '</p>' content_manual '</body></html>']; 378 [ ~,name] = fileparts(name); % allows for names like dataset/show378 [qq,name] = fileparts(name); % allows for names like dataset/show 379 379 if exist(['./' subdir],'file') ~= 7 380 380 mkdir(subdir); … … 466 466 file = which(tok); 467 467 pp = fileparts(file); 468 [ ~,subdir] = fileparts(pp);468 [qq,subdir] = fileparts(pp); 469 469 htmlname = fullfile(subdir,htmlname); 470 470 if exist(htmlname,'file') == 2 … … 559 559 for n=1:length(dirs) 560 560 prtools_dir = fileparts(which(dirs{n})); 561 [ ~,prtools_dirname] = fileparts(prtools_dir); % get rid of root561 [qq,prtools_dirname] = fileparts(prtools_dir); % get rid of root 562 562 ff = dirnames(prtools_dir); 563 563 for j=1:length(ff) 564 [ ~,name] = fileparts(ff{j});564 [qq,name] = fileparts(ff{j}); 565 565 if n==1 566 566 feval(command,name); % prtools main commands
Note: See TracChangeset
for help on using the changeset viewer.