0001 function [stat,h1] = doc_LUKE(dkepath)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 if nargin == 0,
0012
0013 dkepath = load_structures_yp('dkepath','','');
0014
0015 end
0016
0017 if nargin == 1 && isempty(dkepath),
0018
0019 dkepath = load_structures_yp('dkepath','','');
0020
0021 end
0022
0023 if nargin > 1,error('Too many input arguments in doc_LUKE.m');end
0024
0025 if ~exist([dkepath.luke_root,'Help/index.html'])
0026
0027 disp('The LUKE help has not been created on this computer during the install process.');
0028
0029 doc_opt = input('Do you want to build it now (WARNING: it may take long minutes) (y/n)? [y] : ','s');
0030
0031 if strcmp(doc_opt,'y'),
0032
0033 dirinit = pwd;
0034 cd(dkepath.luke_root);
0035
0036 eval('install_doc_LUKE');
0037
0038 cd(dirinit);
0039 end
0040 else
0041 web(['file://',dkepath.luke_root,'Help/index.html'], '-new');
0042 end