Updating inuse and the reference copy on checkout
However, just to complicate the issue, CVS does not have a similar mechanism for triggering an event on checkout. So on NON-WINDOWS platforms the cvswrappers file is used, modify it with a single line:
* -f 'add2list.exe inuse %()\%s %s'
On WINDOWS platforms the cvswrappers -f option is not supported, so use a batch/shell script similar to:
@echo off
FOR %%Y in (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF %%Y~==checkout~ GOTO addit
FOR %%Y in (%1 %2 %3 %4 %5 %6 %7 %8 %9) DO IF %%Y~==release~ GOTO delit
:cvs
cvs %1 %2 %3 %4 %5 %6 %7 %8 %9
goto end
:addit
add2list inuse .\sources\%2 :cwd:%2
GOTO cvs
exit
:delit
GOTO cvs
exit
:end
If you are going to use this batch file, be sure to use it in later examples and not CVS directly. If you name the batch file/shell script cvs.bat the cvs.exe will actually be executed first, so March Hare recommend giving your batch file a different name (like bcvs.bat).
Keeping the Reference Copy up to date
Updating inuse and the reference copy on update
Taking Control
Taking control
Directory structure
Import to the CM Tool
Creating a Reference Copy
Keeping the Reference Copy up to date
Final Directory Structure
How to use the driver with a configuration management solution (cont.)
Releasing a form
Checking a form in
Releasing a form and application model
Releasing registers
Adding a form
Differences
Merging code changes
Final notes
$Revision: 1.11 $ $Date: 2011/02/28 02:56:33 $ | [go to top] |