comparison scripts/pkg/pkg.m @ 19833: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 7fa1970a655d
comparison
equal deleted inserted replaced
19832:a1acca0c2216 19833:9fc020886ae9
388 388
389 local_files = {}; 389 local_files = {};
390 unwind_protect 390 unwind_protect
391 391
392 if (octave_forge) 392 if (octave_forge)
393 [urls, local_files] = cellfun ("get_forge_download", files, "uniformoutput", false); 393 [urls, local_files] = cellfun ("get_forge_download", files,
394 [files, succ] = cellfun ("urlwrite", urls, local_files, "uniformoutput", false); 394 "uniformoutput", false);
395 [files, succ] = cellfun ("urlwrite", urls, local_files,
396 "uniformoutput", false);
395 succ = [succ{:}]; 397 succ = [succ{:}];
396 if (! all (succ)) 398 if (! all (succ))
397 i = find (! succ, 1); 399 i = find (! succ, 1);
398 error ("could not download file %s from url %s", local_files{i}, urls{i}); 400 error ("could not download file %s from url %s",
401 local_files{i}, urls{i});
399 endif 402 endif
400 endif 403 endif
401 404
402 install (files, deps, auto, prefix, archprefix, verbose, local_list, 405 install (files, deps, auto, prefix, archprefix, verbose, local_list,
403 global_list, global_install); 406 global_list, global_install);