SIGNFILE
SIGNFILE will help you maintain up-to-date information related to your files or toolboxes. If you have a particular message, or simply the author's info, that you want to appear right at the end of the help section of your mfile(s), use SIGNFILE. It will use special characters to wrap your info so that the next time you will call SIGNFILE it will overwrite the old info.
SIGNFILE is particularly useful to update author's info of a collection of files. To run SIGNFILE on multiple files you can use FUF, which you can freely download from the MATLAB Central File Exchange.
SIGNFILE adds a blank line after the help section, followed by the signature (message); any previous signature stamped by SIGNIFILE would get replaced by the new one. If the file has no help section, SIGNFILE will place the signature
(message) after the function declaration.
SIGNFILE will also work with functions that have the help section before the function declaration.
SIGNFILE encloses the signature (message) between '-$-$-$-' so as to recognize previous automatic signatures, which will be overridden.
REMARKS
- SIGNFILE runs under MATLAB 6.5 (it uses short circuit operators)
- SIGNFILE signs only .m file functions ; it does not process m scripts. A warning message is prompetd for each file that can't be executed and the stream flow continues
- SIGNFILE does not overwrite the original files, but marks them as .old;
- SIGNFILE requires SMARTINDENT, which can be downloaded from MATLAB Central;
- SIGNFILE can process read only file by changing the attributes during the computation. Eigther the two new files created, .m and .old, will keep the original attributes.
SIGNFILE requires SMARTINDENT, which can also be downloaded from the MATLAB Central File Exchange.
Cite As
Francesco di Pierro (2024). SIGNFILE (https://www.mathworks.com/matlabcentral/fileexchange/3621-signfile), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Programming > Files and Folders > File Operations >
- MATLAB > Programming > Functions > Scope Variables and Generate Names >
Tags
Acknowledgements
Inspired by: SMARTINDENT
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |