Last change
on this file since 104 was
14,
checked in by bduin, 14 years ago
|
help-to-html commands added
|
File size:
736 bytes
|
Rev | Line | |
---|
[14] | 1 | %HELPTOHTML
|
---|
| 2 | %
|
---|
| 3 | % HELPTOHTML(TOOLBOX,DIR)
|
---|
| 4 | %
|
---|
| 5 | % Converts the help text of TOOLBOX, provided it is PRLab format, into html
|
---|
| 6 | % and stores them in DIR.
|
---|
| 7 | %
|
---|
| 8 | % Defaults: prtools, /data/franklin/httpd/prtools/html/prhtml
|
---|
| 9 |
|
---|
| 10 | function helptohtml(toolbox,dirname)
|
---|
| 11 |
|
---|
| 12 | if nargin < 2, dirname = []; end
|
---|
| 13 | if nargin < 1, toolbox = 'prtools'; end
|
---|
| 14 |
|
---|
| 15 | actdir = cd;
|
---|
| 16 |
|
---|
| 17 | switch toolbox
|
---|
| 18 | case 'prtools'
|
---|
| 19 | if isempty(dirname)
|
---|
| 20 | if isunix
|
---|
| 21 | dirname = '/data/franklin/httpd/prtools/html/prhtml';
|
---|
| 22 | elseif ispc
|
---|
| 23 | dirname = 's:/prt/prhtml';
|
---|
| 24 | end
|
---|
| 25 | end
|
---|
| 26 | cd(dirname)
|
---|
| 27 | prhelp2html;
|
---|
| 28 | prcontent2html('prtools');
|
---|
| 29 |
|
---|
| 30 | otherwise
|
---|
| 31 | if ~isempty(dirname)
|
---|
| 32 | cd(dirname);
|
---|
| 33 | prcontent2html(toolbox);
|
---|
| 34 | end
|
---|
| 35 | end
|
---|
| 36 |
|
---|
| 37 | cd(actdir)
|
---|
| 38 |
|
---|
| 39 | return
|
---|
| 40 |
|
---|
| 41 |
|
---|
| 42 |
|
---|
| 43 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.