MATLAB Function Reference | ![]() ![]() |
Get name of source control system, and for PVCS, get project filename
Graphical Interface
As an alternative to cmopts
, use preferences. Select File -> Preferences in the MATLAB desktop, and then select General -> Source Control.
Syntax
cmopts
out = cmopts('DefaultConfigFile
')
Description
cmopts
returns the name of the source control system you selected using preferences, which is one of the following:
clearcase pvcs rcs sourcesafe
If you have not selected a source control system, cmopts
returns
none
out = cmopts('
returns the name of the project configuration file. This is used for the PVCS source control system only.DefaultConfigFile
'
)
Specifying a Source Control System
To specify the source control system:
For PVCS Only: Specifying the Project Configuration File
If you use the PVCS source control system, you must specify a project configuration file in cmopts.m
. The cmopts.m
file is located in $matlabroot\toolbox\local
, where $matlabroot
is the directory in which MATLAB is installed.
Open cmopts.m
in the MATLAB Editor or another text editor. Specify the project configuration file in the section that starts with % BEGIN CUSTOMIZATION SECTION
. Assign the name of your project file, including the full pathname, to the variable 'DefaultConfigFile'
. Then save cmopts.m
.
Example - Specify the Project Configuration File for PVCS
If the project configuration file is Projmgr.cfg
, add the following line in cmopts.m
.
DefaultConfigFile = 'c:\\PVCS\\PVCSPROJ\\Projmgr.prj\\Projmgr.cfg'
cmopts('DefaultConfigFile')
'c:\\PVCS\\PVCSPROJ\\Projmgr.prj\\Projmgr.cfg'
See Also
checkin
, checkout
, customverctrl
![]() | closereq | colamd | ![]() |