annotate scripts/miscellaneous/ver.m @ 19631:db92e7e28e1f

strip trailing whitespace from most source files * NEWS, doc/interpreter/contributors.in, doc/interpreter/func.txi, doc/interpreter/genpropdoc.m, doc/interpreter/octave_logo.eps, doc/interpreter/plot.txi, doc/interpreter/stmt.txi, examples/data/Makefile.am, libinterp/corefcn/data.cc, libinterp/corefcn/debug.cc, libinterp/corefcn/error.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/gl-render.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/graphics.in.h, libinterp/corefcn/load-path.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/pt-jit.cc, libinterp/corefcn/strfind.cc, libinterp/corefcn/toplev.cc, libinterp/corefcn/toplev.h, libinterp/corefcn/urlwrite.cc, libinterp/corefcn/variables.cc, libinterp/octave-value/ov-classdef.cc, libinterp/octave-value/ov-classdef.h, libinterp/octave.cc, libinterp/parse-tree/lex.h, libinterp/parse-tree/oct-parse.in.yy, libinterp/parse-tree/pt-classdef.h, liboctave/system/file-ops.cc, liboctave/system/oct-env.cc, m4/acinclude.m4, scripts/deprecated/finite.m, scripts/deprecated/fmod.m, scripts/deprecated/fnmatch.m, scripts/deprecated/luinc.m, scripts/deprecated/octave_tmp_file_name.m, scripts/deprecated/syl.m, scripts/deprecated/usage.m, scripts/general/inputParser.m, scripts/general/interp1.m, scripts/general/interp2.m, scripts/general/interp3.m, scripts/general/isequal.m, scripts/general/private/__isequal__.m, scripts/geometry/voronoi.m, scripts/image/image.m, scripts/image/imshow.m, scripts/image/ind2rgb.m, scripts/linear-algebra/bandwidth.m, scripts/linear-algebra/isbanded.m, scripts/miscellaneous/bzip2.m, scripts/miscellaneous/cast.m, scripts/miscellaneous/copyfile.m, scripts/miscellaneous/delete.m, scripts/miscellaneous/fullfile.m, scripts/miscellaneous/getappdata.m, scripts/miscellaneous/gunzip.m, scripts/miscellaneous/isappdata.m, scripts/miscellaneous/ls.m, scripts/miscellaneous/mex.m, scripts/miscellaneous/movefile.m, scripts/miscellaneous/orderfields.m, scripts/miscellaneous/recycle.m, scripts/miscellaneous/rmappdata.m, scripts/miscellaneous/setfield.m, scripts/miscellaneous/symvar.m, scripts/miscellaneous/tar.m, scripts/miscellaneous/tmpnam.m, scripts/miscellaneous/unpack.m, scripts/miscellaneous/ver.m, scripts/miscellaneous/what.m, scripts/miscellaneous/xor.m, scripts/miscellaneous/zip.m, scripts/optimization/fminbnd.m, scripts/optimization/sqp.m, scripts/path/private/getsavepath.m, scripts/path/savepath.m, scripts/pkg/pkg.m, scripts/pkg/private/installed_packages.m, scripts/plot/draw/plotyy.m, scripts/plot/draw/polar.m, scripts/plot/draw/private/__quiver__.m, scripts/plot/draw/private/__scatter__.m, scripts/plot/draw/private/__stem__.m, scripts/plot/draw/surface.m, scripts/plot/draw/surfnorm.m, scripts/plot/util/copyobj.m, scripts/plot/util/hgload.m, scripts/plot/util/hgsave.m, scripts/plot/util/isprop.m, scripts/plot/util/linkprop.m, scripts/plot/util/private/__go_draw_axes__.m, scripts/set/setdiff.m, scripts/set/union.m, scripts/signal/periodogram.m, scripts/sparse/eigs.m, scripts/sparse/ilu.m, scripts/sparse/qmr.m, scripts/sparse/sprand.m, scripts/sparse/sprandn.m, scripts/specfun/beta.m, scripts/specfun/ellipke.m, scripts/specfun/isprime.m, scripts/statistics/base/lscov.m, scripts/testfun/__run_test_suite__.m, scripts/testfun/test.m: Strip trailing whitespace.
author John W. Eaton <jwe@octave.org>
date Tue, 20 Jan 2015 10:29:54 -0500
parents 0e1f5a750d00
children 4197fc428c7d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17744
d63878346099 maint: Update copyright notices for release.
John W. Eaton <jwe@octave.org>
parents: 16491
diff changeset
1 ## Copyright (C) 2005-2013 William Poetra Yoga Hadisoeseno
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
2 ##
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
3 ## This file is part of Octave.
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
4 ##
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6615
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6615
diff changeset
8 ## your option) any later version.
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
9 ##
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
13 ## General Public License for more details.
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
14 ##
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
7016
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6615
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
93c65f2a5668 [project @ 2007-10-12 06:40:56 by jwe]
jwe
parents: 6615
diff changeset
17 ## <http://www.gnu.org/licenses/>.
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
18
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
19 ## -*- texinfo -*-
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
20 ## @deftypefn {Function File} {} ver
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
21 ## @deftypefnx {Function File} {} ver Octave
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
22 ## @deftypefnx {Function File} {} ver @var{package}
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
23 ## @deftypefnx {Function File} {v =} ver (@dots{})
19627
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
24 ##
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
25 ## Display a header containing the current Octave version number, license
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
26 ## string, and operating system. The header is followed by a list of installed
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
27 ## packages, versions, and installation directories.
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
28 ##
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
29 ## Use the package name @var{package} or Octave to limit the listing to a
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
30 ## desired component.
16491
b10a23fe80bb doc: Tweak docstrings of functions changed for Texinfo 5.0 compatibility.
Rik <rik@octave.org>
parents: 16489
diff changeset
31 ##
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
32 ## When called with an output argument, return a vector of structures
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
33 ## describing Octave and each installed package. The structure includes the
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
34 ## following fields.
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
35 ##
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
36 ## @table @code
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
37 ## @item Name
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
38 ## Package name.
10821
693e22af08ae Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents: 8920
diff changeset
39 ##
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
40 ## @item Version
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
41 ## Version of the package.
10821
693e22af08ae Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents: 8920
diff changeset
42 ##
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
43 ## @item Revision
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
44 ## Revision of the package.
10821
693e22af08ae Grammarcheck documentation of m-files
Rik <octave@nomad.inbox5.com>
parents: 8920
diff changeset
45 ##
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
46 ## @item Date
16491
b10a23fe80bb doc: Tweak docstrings of functions changed for Texinfo 5.0 compatibility.
Rik <rik@octave.org>
parents: 16489
diff changeset
47 ## Date of the version/revision.
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
48 ## @end table
12208
9611014e7cf1 Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents: 11587
diff changeset
49 ##
19226
8a8a7bc2a09d Improve docstrings and mark documentation m-files as tested in miscellaneous/ dir.
Rik <rik@octave.org>
parents: 19221
diff changeset
50 ## @seealso{version, octave_config_info, usejava, pkg}
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
51 ## @end deftypefn
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
52
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
53 ## Author: William Poetra Yoga Hadisoeseno <williampoetra@gmail.com>
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
54
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
55 function retval = ver (package = "")
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
56
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
57 if (nargin > 1)
6046
34f96dd5441b [project @ 2006-10-10 16:10:25 by jwe]
jwe
parents: 5642
diff changeset
58 print_usage ();
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
59 endif
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
60
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
61 if (nargout == 0)
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
62 [unm, err] = uname ();
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
63
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
64 if (err)
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
65 os_string = "unknown";
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
66 else
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
67 os_string = sprintf ("%s %s %s %s",
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
68 unm.sysname, unm.release, unm.version, unm.machine);
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
69 endif
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
70
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
71 hbar(1:70) = "-";
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
72 desc = {hbar
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
73 ["GNU Octave Version: " OCTAVE_VERSION]
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
74 ["GNU Octave License: " license]
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
75 ["Operating System: " os_string]
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
76 hbar};
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
77
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
78 printf ("%s\n", desc{:});
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
79
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
80 if (isempty (package))
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
81 pkg ("list");
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
82 elseif (strcmpi (package, "Octave"))
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
83 ## Nothing to do, Octave version was already reported
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
84 else
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
85 pkg ("list", package);
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
86 endif
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
87 else
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
88 ## Get the installed packages
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
89 if (isempty (package))
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
90 lst = pkg ("list");
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
91 ## Start with the version info for Octave
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
92 retval = struct ("Name", "Octave", "Version", version,
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
93 "Release", [], "Date", []);
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
94 for i = 1:numel (lst)
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
95 retval(end+1) = struct ("Name", lst{i}.name, "Version", lst{i}.version,
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
96 "Release", [], "Date", lst{i}.date);
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
97 endfor
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
98 elseif (strcmpi (package, "Octave"))
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
99 retval = struct ("Name", "Octave", "Version", version,
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
100 "Release", [], "Date", []);
19631
db92e7e28e1f strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 19630
diff changeset
101 else
19221
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
102 lst = pkg ("list", package);
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
103 if (isempty (lst))
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
104 retval = struct ("Name", "", "Version", [],
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
105 "Release", [], "Date", []);
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
106 else
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
107 retval = struct ("Name", lst{1}.name, "Version", lst{1}.version,
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
108 "Release", [], "Date", lst{1}.date);
b54093acb8fe ver.m: Overhaul function.
Rik <rik@octave.org>
parents: 17744
diff changeset
109 endif
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
110 endif
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
111 endif
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
112
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
113 endfunction
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
114
14363
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
115
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
116 %!test
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
117 %! result = ver;
14363
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
118 %! assert (result(1).Name, "Octave");
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
119 %! assert (result(1).Version, version);
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
120 %! result = ver ("octave");
14363
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
121 %! assert (result(1).Name, "Octave");
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
122 %! assert (result(1).Version, version);
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
123
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
124 %!test
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
125 %! lst = pkg ("list");
14363
f3d52523cde1 Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents: 14138
diff changeset
126 %! for n = 1:numel (lst)
7499
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
127 %! expected = lst{n}.name;
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
128 %! result = ver (expected);
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
129 %! assert (result.Name, expected);
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
130 %! assert (isfield (result, "Version"), true);
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
131 %! assert (isfield (result, "Release"), true);
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
132 %! assert (isfield (result, "Date"), true);
94d0cdd60dda Added pkg version info and matlab compatibility.
Ben Abbott <bpabbott@mac.com>
parents: 7017
diff changeset
133 %! endfor
5546
3ebf0e35156c [project @ 2005-11-29 17:30:50 by jwe]
jwe
parents:
diff changeset
134