Mercurial > hg > octave-lojdl
changeset 8231:df28b55d03c0
make rundemos with no arguments work
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Oct 2008 13:43:49 -0400 |
parents | 2ce2aef722c3 |
children | c6e9ff62c64a |
files | scripts/testfun/rundemos.m |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/testfun/rundemos.m +++ b/scripts/testfun/rundemos.m @@ -39,14 +39,15 @@ error ("rundemos: expecting argument to be a directory name"); endif endif - for i = 1:numel (dirs) - d = dirs{i}; - run_all_demos (d); - endfor else print_usage (); endif + for i = 1:numel (dirs) + d = dirs{i}; + run_all_demos (d); + endfor + endfunction function run_all_demos (directory)