Mercurial > hg > octave-nkf
comparison scripts/pkg/private/install.m @ 20038:9fc020886ae9
maint: Clean up m-files to follow Octave coding conventions.
Try to trim long lines to < 80 chars.
Use '##' for single line comments.
Use '(...)' around tests for if/elseif/switch/while.
Abut cell indexing operator '{' next to variable.
Abut array indexing operator '(' next to variable.
Use space between negation operator '!' and following expression.
Use two newlines between endfunction and start of %!test or %!demo code.
Remove unnecessary parens grouping between short-circuit operators.
Remove stray extra spaces (typos) between variables and assignment operators.
Remove stray extra spaces from ends of lines.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 23 Feb 2015 14:54:39 -0800 |
parents | 4197fc428c7d |
children |
comparison
equal
deleted
inserted
replaced
20037:a1acca0c2216 | 20038:9fc020886ae9 |
---|---|
320 for i = 1:length (descriptions) | 320 for i = 1:length (descriptions) |
321 if (descriptions{i}.autoload > 0) | 321 if (descriptions{i}.autoload > 0) |
322 nm = descriptions{i}.name; | 322 nm = descriptions{i}.name; |
323 for j = 1:length (installed_pkgs_lst) | 323 for j = 1:length (installed_pkgs_lst) |
324 if (strcmp (nm, installed_pkgs_lst{j}.name)) | 324 if (strcmp (nm, installed_pkgs_lst{j}.name)) |
325 idx (end + 1) = j; | 325 idx(end + 1) = j; |
326 break; | 326 break; |
327 endif | 327 endif |
328 endfor | 328 endfor |
329 endif | 329 endif |
330 endfor | 330 endfor |
331 load_packages_and_dependencies (idx, handle_deps, installed_pkgs_lst, | 331 load_packages_and_dependencies (idx, handle_deps, installed_pkgs_lst, |
332 global_install); | 332 global_install); |
333 endif | 333 endif |
334 | 334 |
335 ## If there's a NEWS file, mention it | 335 ## If there is a NEWS file, mention it. |
336 ## we are checking if desc exists too because it's possible to ge to this point | 336 ## Check if desc exists too because it's possible to get to this point |
337 ## without creating it such as giving an invalid filename for the package | 337 ## without creating it such as giving an invalid filename for the package |
338 if (exist ("desc", "var") && exist (fullfile (desc.dir, "packinfo", "NEWS"), "file")) | 338 if (exist ("desc", "var") |
339 && exist (fullfile (desc.dir, "packinfo", "NEWS"), "file")) | |
339 printf ("For information about changes from previous versions of the %s package, run 'news %s'.\n", | 340 printf ("For information about changes from previous versions of the %s package, run 'news %s'.\n", |
340 desc.name, desc.name); | 341 desc.name, desc.name); |
341 endif | 342 endif |
342 | 343 |
343 endfunction | 344 endfunction |