Mercurial > octave
annotate scripts/miscellaneous/version.m @ 30564:796f54d4ddbf stable
update Octave Project Developers copyright for the new year
In files that have the "Octave Project Developers" copyright notice,
update for 2021.
In all .txi and .texi files except gpl.txi and gpl.texi in the
doc/liboctave and doc/interpreter directories, change the copyright
to "Octave Project Developers", the same as used for other source
files. Update copyright notices for 2022 (not done since 2019). For
gpl.txi and gpl.texi, change the copyright notice to be "Free Software
Foundation, Inc." and leave the date at 2007 only because this file
only contains the text of the GPL, not anything created by the Octave
Project Developers.
Add Paul Thomas to contributors.in.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 Dec 2021 18:22:40 -0500 |
parents | 7854d5752dd2 |
children | 597f3ee61a48 |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 ######################################################################## |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 ## |
30564
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
29359
diff
changeset
|
3 ## Copyright (C) 1994-2022 The Octave Project Developers |
27918
b442ec6dda5c
use centralized file for copyright info for individual contributors
John W. Eaton <jwe@octave.org>
parents:
27898
diff
changeset
|
4 ## |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 ## See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 ## distribution or <https://octave.org/copyright/>. |
2313 | 7 ## |
8 ## This file is part of Octave. | |
9 ## | |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23220
diff
changeset
|
10 ## Octave is free software: you can redistribute it and/or modify it |
2313 | 11 ## under the terms of the GNU General Public License as published by |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23220
diff
changeset
|
12 ## the Free Software Foundation, either version 3 of the License, or |
22755
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22330
diff
changeset
|
13 ## (at your option) any later version. |
2313 | 14 ## |
15 ## Octave is distributed in the hope that it will be useful, but | |
16 ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
22755
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22330
diff
changeset
|
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22330
diff
changeset
|
18 ## GNU General Public License for more details. |
2313 | 19 ## |
20 ## You should have received a copy of the GNU General Public License | |
7016 | 21 ## along with Octave; see the file COPYING. If not, see |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23220
diff
changeset
|
22 ## <https://www.gnu.org/licenses/>. |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 ## |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 ######################################################################## |
861 | 25 |
3301 | 26 ## -*- texinfo -*- |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
27 ## @deftypefn {} {@var{v} =} version () |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
28 ## @deftypefnx {} {[@var{v}, @var{d}] =} version () |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
29 ## @deftypefnx {} {@var{v} =} version (@var{feature}) |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
30 ## Get version information for Octave. |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
31 ## |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
32 ## If called without input argument, the first return value @var{v} gives the |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
33 ## version number of Octave as a string. The second return value @var{d} holds |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
34 ## the release date as a string. |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
35 ## |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
36 ## The following options can be passed for @var{feature}: |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
37 ## |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
38 ## @table @asis |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
39 ## @item @qcode{"-date"} |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
40 ## for the release date of the running build, |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11523
diff
changeset
|
41 ## |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
42 ## @item @qcode{"-description"} |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
43 ## for a description of the release (always an empty string), |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
44 ## |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
45 ## @item @qcode{"-release"} |
23187
41a01755a7b9
version.m: document that "-release" returns an empty string (bug #50294)
Mike Miller <mtmiller@octave.org>
parents:
23083
diff
changeset
|
46 ## for the name of the running build (always an empty string), |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
47 ## |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
48 ## @item @qcode{"-java"} |
22330
53e246fd8124
doc: Spellcheck documentation ahead of 4.2 release.
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
49 ## for version information of the Java @nospell{VM}, |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
50 ## |
21600
184b85b31e03
more updates for version function
mmuetzel <markus.muetzel@gmx.de>
parents:
21597
diff
changeset
|
51 ## @item @qcode{"-fftw"} |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
52 ## for version information for the linked @sc{fftw}, |
21600
184b85b31e03
more updates for version function
mmuetzel <markus.muetzel@gmx.de>
parents:
21597
diff
changeset
|
53 ## |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
54 ## @item @qcode{"-blas"} |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
55 ## for version information for the linked @sc{blas}, |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
56 ## |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
57 ## @item @qcode{"-lapack"} |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
58 ## for version information for the linked @sc{lapack}. |
24746
52ca22ba4474
include hg ID in displayed version info
John W. Eaton <jwe@octave.org>
parents:
24714
diff
changeset
|
59 ## |
52ca22ba4474
include hg ID in displayed version info
John W. Eaton <jwe@octave.org>
parents:
24714
diff
changeset
|
60 ## @item @qcode{"-hgid"} |
52ca22ba4474
include hg ID in displayed version info
John W. Eaton <jwe@octave.org>
parents:
24714
diff
changeset
|
61 ## the mercurial ID of the sources used to build Octave. |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
62 ## @end table |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
63 ## |
27830
06bb894770e8
BLAS and LAPACK information might be wrong (bug #57112).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27701
diff
changeset
|
64 ## The information returned for the @qcode{"-blas"} and @qcode{"-lapack"} |
06bb894770e8
BLAS and LAPACK information might be wrong (bug #57112).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27701
diff
changeset
|
65 ## options might be unreliable. It might report which library was linked in |
06bb894770e8
BLAS and LAPACK information might be wrong (bug #57112).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27701
diff
changeset
|
66 ## when Octave was built instead of which library is currently used. |
06bb894770e8
BLAS and LAPACK information might be wrong (bug #57112).
Markus Mützel <markus.muetzel@gmx.de>
parents:
27701
diff
changeset
|
67 ## |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
68 ## The variant with no input and output argument is an alias for the function |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
69 ## @w{@env{OCTAVE_VERSION}} provided for compatibility. |
19187 | 70 ## @seealso{OCTAVE_VERSION, ver} |
3301 | 71 ## @end deftypefn |
861 | 72 |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
73 function [v, d] = version (feature) |
861 | 74 |
28789
28de41192f3c
Eliminate unneeded verification of nargin, nargout in m-files.
Rik <rik@octave.org>
parents:
27923
diff
changeset
|
75 if (nargin == 1 && (nargout > 1 || ! ischar (feature))) |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
76 print_usage (); |
861 | 77 endif |
78 | |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
79 if (nargin == 0) |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
80 v = OCTAVE_VERSION (); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
81 |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
82 if (nargout > 1) |
21600
184b85b31e03
more updates for version function
mmuetzel <markus.muetzel@gmx.de>
parents:
21597
diff
changeset
|
83 d = __octave_config_info__ ("release_date"); |
28947
b73a54c31152
maint: Use Octave-specific end keywords rather than just 'end'.
Rik <rik@octave.org>
parents:
28789
diff
changeset
|
84 endif |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
85 else |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
86 switch (lower (feature)) |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
87 case "-date" |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
88 v = __octave_config_info__ ("release_date"); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
89 case "-description" |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
90 v = ""; |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
91 case "-release" |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
92 v = ""; |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
93 case "-java" |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
94 try |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
95 jversion = javaMethod ("getProperty", "java.lang.System", ... |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
96 "java.runtime.version"); |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
97 jvendor = javaMethod ("getProperty", "java.lang.System", ... |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
98 "java.vendor"); |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
99 jname = javaMethod ("getProperty", "java.lang.System", ... |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
100 "java.vm.name"); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
101 jjitmode = javaMethod ("getProperty", "java.lang.System", ... |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
102 "java.vm.info"); |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
103 v = ["Java " jversion " with " jvendor " " jname " " jjitmode]; |
27701
ca48da9ab16c
* version.m: Include more information if invoking Java fails (bug #57202).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26376
diff
changeset
|
104 catch err |
ca48da9ab16c
* version.m: Include more information if invoking Java fails (bug #57202).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26376
diff
changeset
|
105 v = sprintf ("no usable Java Runtime Environment (%s) found:\n%s", ... |
ca48da9ab16c
* version.m: Include more information if invoking Java fails (bug #57202).
Markus Mützel <markus.muetzel@gmx.de>
parents:
26376
diff
changeset
|
106 uname ().machine, err.message); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
107 end_try_catch |
21600
184b85b31e03
more updates for version function
mmuetzel <markus.muetzel@gmx.de>
parents:
21597
diff
changeset
|
108 case "-fftw" |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
109 v = __octave_config_info__ ("fftw_version"); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
110 case "-blas" |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
111 v = __blas_version__ (); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
112 case "-lapack" |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
113 v = __lapack_version__ (); |
24746
52ca22ba4474
include hg ID in displayed version info
John W. Eaton <jwe@octave.org>
parents:
24714
diff
changeset
|
114 case "-hgid" |
52ca22ba4474
include hg ID in displayed version info
John W. Eaton <jwe@octave.org>
parents:
24714
diff
changeset
|
115 v = __octave_config_info__ ("hg_id"); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
116 otherwise |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
117 error ("version: invalid FEATURE"); |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
118 endswitch |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
119 endif |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
120 |
861 | 121 endfunction |
7411 | 122 |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
123 |
14363
f3d52523cde1
Use Octave coding conventions in all m-file %!test blocks
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
124 %!assert (ischar (version ())) |
7411 | 125 |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
126 %!test |
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
127 %! [v, d] = version (); |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
128 %! assert (v, OCTAVE_VERSION); |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
129 %! assert (d, __octave_config_info__ ("release_date")); |
7411 | 130 |
21600
184b85b31e03
more updates for version function
mmuetzel <markus.muetzel@gmx.de>
parents:
21597
diff
changeset
|
131 %!assert (version ("-date"), __octave_config_info__ ("release_date")) |
21597
fe1447ae68cf
Add more info to version.m and store build info in the binary (bug #45659)
mmuetzel <markus.muetzel@gmx.de>
parents:
20852
diff
changeset
|
132 |
23187
41a01755a7b9
version.m: document that "-release" returns an empty string (bug #50294)
Mike Miller <mtmiller@octave.org>
parents:
23083
diff
changeset
|
133 %!assert (version ("-description"), "") |
41a01755a7b9
version.m: document that "-release" returns an empty string (bug #50294)
Mike Miller <mtmiller@octave.org>
parents:
23083
diff
changeset
|
134 %!assert (version ("-release"), "") |
24714
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
135 %!assert (ischar (version ("-blas"))) |
d2c727a438ab
Add "-blas" and "-lapack" options to "version" (bug #45659).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24534
diff
changeset
|
136 %!assert (ischar (version ("-LAPACK"))) |
23187
41a01755a7b9
version.m: document that "-release" returns an empty string (bug #50294)
Mike Miller <mtmiller@octave.org>
parents:
23083
diff
changeset
|
137 |
21601
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
138 ## Test input validation |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
139 %!error version ("-date", "-release") |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
140 %!error [v, d] = version ("-date") |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
141 %!error version (1) |
25fd18a15a6c
version.m: Use more Octave coding standards.
Rik <rik@octave.org>
parents:
21600
diff
changeset
|
142 %!error <invalid FEATURE> version ("-foobar") |