generate_whatis(Path)
Add here a paragraph of the function description. Other paragraph can be added
Add here a paragraph of the function description
Add here scilab instructions and comments
//Fonction qui génère un fichier whatis.htm //à partir de tous les fichiers htm trouvés //dans le repertoire pointé par Path function generate_whatis(Path) //lisf=return_listfile(Path,'htm') lines(0); whatis_title='Help chapter' head=["<html>" "<head>" " <meta http-equiv=""Content-Type"" content=""text/html; charset=ISO-8859-1"">" " <title>"+whatis_title+"</title>" "</head>" "<body bgcolor=""#FFFFFF"">" "<dl>"]; for i=1:size(lisf,1) name=part(lisf(i,1),1:length(lisf(i,1))-4); if fileinfo(xml_path+lang+'/'+name+'.xml')==[] then lisf(i,2)=name else lisf(i,2)=return_xml_sdesc(xml_path+lang+'/'+name+'.xml') end line(i)="<dd><A HREF="""+lisf(i,1)+""">"+name+"</A> - "+lisf(i,2)+"</dd>"; end text = [head;gsort(line,'g','i');"</dl></body></html>"]; mputl(text,Path+"whatis.htm"); endfunction