Mercurial > jwe > octave
view scripts/miscellaneous/isunix.m @ 21434:1da428cbf401
deprecate octave_config_info
* toplev.cc (F__octave_config_info__): Rename from
Foctave_config_info. Change all uses.
* doc/interpreter/system.texi: Remove entry for octave_config_info.
* scripts/deprecated/octave_config_info.m: New file.
* scripts/deprecated/module.mk (scripts_deprecated_FCN_FILES):
Add it to the list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 Mar 2016 19:00:37 -0500 |
parents | 516bb87ea72e |
children | bac0d6f07a3e |
line wrap: on
line source
## Copyright (C) 2004-2015 John W. Eaton ## ## This file is part of Octave. ## ## Octave is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 3 of the License, or (at ## your option) any later version. ## ## Octave is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with Octave; see the file COPYING. If not, see ## <http://www.gnu.org/licenses/>. ## -*- texinfo -*- ## @deftypefn {} {} isunix () ## Return true if Octave is running on a Unix-like system and false otherwise. ## @seealso{ismac, ispc} ## @end deftypefn function retval = isunix () if (nargin == 0) retval = __octave_config_info__ ("unix"); else print_usage (); endif endfunction %!assert (islogical (isunix ())) %!error isunix (1)