cns_rename
cns_rename oldname newname cns_rename oldname newname subdir1 subdir2 ... |
oldname
cns_rename
will locate the package by looking for a file called oldname.m
in your MATLAB path.
newname
subdir1 subdir2 ...
cns_rename
only renames files in the package directory itself. Here you may optionally add any subdirectories in which you also want files to be renamed. These are assumed to be relative to (i.e. underneath) the package directory.
oldname_
will be renamed to start with newname_
. The function
line inside each ".m"
file is also updated.Any references to the old function names that may exist in function bodies are not updated.
The package directory itself is not renamed.