Mercurial > octave-nkf
comparison scripts/miscellaneous/version.m @ 19221:b54093acb8fe
ver.m: Overhaul function.
Add ability to call "ver PKG_NAME". Add ability to call "pkg list PKG_NAME".
* ver.m: Redo docstring. Rename output variable to retval rather than
unnecessary use of varargout. Add ability to call "ver PKG_NAME" by passing
PKG_NAME to 'pkg list' command.
* pkg.m: Redo docstring for 'list' to explain new ability to supply a PKG_NAME.
Use numel() rather than length() for clarity. Use isempty() rather than
length() == 0 for clarity.
* installed_packages.m: Add additional input argument pkgname. Use unique()
rather than double for loop to uniquify package list. Add code to report
only on package pkgname if given. Use numel() rather than length() for
clarity. Replace for loops with cellfun calls to determine max length of
string entries.
* version.m: Add seealso reference to ver in docstring.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 30 Sep 2014 08:29:16 -0700 |
parents | d63878346099 |
children | 4197fc428c7d |
comparison
equal
deleted
inserted
replaced
19220:1111d2d5ff95 | 19221:b54093acb8fe |
---|---|
16 ## along with Octave; see the file COPYING. If not, see | 16 ## along with Octave; see the file COPYING. If not, see |
17 ## <http://www.gnu.org/licenses/>. | 17 ## <http://www.gnu.org/licenses/>. |
18 | 18 |
19 ## -*- texinfo -*- | 19 ## -*- texinfo -*- |
20 ## @deftypefn {Function File} {} version () | 20 ## @deftypefn {Function File} {} version () |
21 ## Return the version number of Octave, as a string. | 21 ## Return the version number of Octave as a string. |
22 ## | 22 ## |
23 ## This is an alias for the function @w{@env{OCTAVE_VERSION}} provided for | 23 ## This is an alias for the function @w{@env{OCTAVE_VERSION}} provided for |
24 ## compatibility. | 24 ## compatibility. |
25 ## @seealso{OCTAVE_VERSION} | 25 ## @seealso{OCTAVE_VERSION, ver} |
26 ## @end deftypefn | 26 ## @end deftypefn |
27 | 27 |
28 ## Author: jwe | 28 ## Author: jwe |
29 | 29 |
30 function vs = version () | 30 function vs = version () |