Robochameleon
v1.0
|
Robochameleon utility to increase class version safetly. More...
Go to the source code of this file.
Functions | |
function | increaseClassVersion (in classInputText, in varargin) |
Increase the class version safetly and creates a new class file. More... | |
Robochameleon utility to increase class version safetly.
This utility creates a new file with an increased version number and changes all the internal references to the previous version number in an automated way. If the target file is in the MATLAB PATH the script can be from any folder, and the new file will be placed in the same folder as the original file.
On unix systems it also checks that the source file is git-clean (no modifications present). In both Linux and Windows it provides instructions on how to properly increase the version number without loosing modifications tracking in git.
The proper way to proceed is:
Example:
Definition in file increaseClassVersion.m.
function increaseClassVersion | ( | in | classInputText, |
in | varargin | ||
) |
Increase the class version safetly and creates a new class file.
classInputText | The class name or the class file name |
varargin{1} | Force flag. If 'true' force overwriting the destination file and ignore git checks. Possible value: {'force'}. [Default: disabled] |