view scripts/legacy/module.mk @ 26202:368dc1142072

makeValidName.m, makeUniqueStrings.m: Clean up functions to use Octave conventions. * NEWS: Alphabetize list of newly added functions. * var.txi: Add matlab.lang.makeValidName, matlab.lang.makeUniqueStrings to manual. * makeUniqueStrings.m: Use standard copyright block for Octave. Rename input "str" from "x". Rename output "uniqstr" from "y". Rename "converttochar" to "convert2char". Set default for maxlength to Inf (disabling maxlength restriction). Drop periods from end of all error messages. Use variable names from documentation in error messages. Use isindex() to simplify input validation. Delete istruncated variable and re-use ismodified variable. Add FIXME note about calls to ismember being slow. Rename temporary variable 'z' to "tmp". Check that error messages are correct in input validation BIST tests. * makeValidName.m: Use standard copyright block for Octave. Rename input "str" from "x". Rename output "varname" from "y". Rename "converttochar" to "convert2char". Use @table to describe "ReplacementStyle" option. Drop periods from end of all error messages. Use variable names from documentation in error messages. Use strcmp() rather than ismember() for speed. Replace subfunction isvalidname() with built-in isvarname(). Check that error messages are correct in input validation BIST tests. * scripts/legacy/genvarname.m: Move m-file to legacy directory. Add note at top of docstring that this function should not be used in modern code. Add seealso references to makeUniqueStrings and makeValidName. * scripts/legacy/module.mk: Add genvarname.m to legacy directory. * scripts/miscellaneous/module.mk: Remove genvarname.m from miscellaneous dir.
author Rik <rik@octave.org>
date Tue, 11 Dec 2018 13:14:09 -0800
parents e04c56bbbace
children 8f5e625062f3
line wrap: on
line source

FCN_FILE_DIRS += scripts/legacy

%canon_reldir%_FCN_FILES = \
  %reldir%/findstr.m \
  %reldir%/flipdim.m \
  %reldir%/genvarname.m \
  %reldir%/isdir.m \
  %reldir%/isequalwithequalnans.m \
  %reldir%/isstr.m \
  %reldir%/setstr.m \
  %reldir%/strmatch.m \
  %reldir%/strread.m \
  %reldir%/textread.m

%canon_reldir%dir = $(fcnfiledir)/legacy

%canon_reldir%_DATA = $(%canon_reldir%_FCN_FILES)

FCN_FILES += $(%canon_reldir%_FCN_FILES)

PKG_ADD_FILES += %reldir%/PKG_ADD

DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)