2 rem -------------------------------------------------------------------------
\r
4 rem - File: verify.cmd
\r
5 rem - Description: This command verifies the installation of Rational
\r
7 rem - Author: Andrew@DeFaria.com
\r
8 rem - Created: Mon Mar 28 14:52:00 PST 2004
\r
9 rem - Language: Dumb CMD stuff! :-(
\r
10 rem - Parameters: There is only one parameter that is taken and that is
\r
11 rem - the number of seconds that cqverify should wait
\r
12 rem - before starting. This is only needed if this cmvery
\r
13 rem - command is run from the various install scripts.
\r
15 rem -------------------------------------------------------------------------
\r
16 set ccperl=C:\Program Files\Rational\Clearcase\bin\ccperl.exe
\r
17 set cqperl=C:\Program Files\Rational\Common\cqperl.exe
\r
18 set ccverify=\\rtnlprod02\viewstore\PMO\CM_TOOLS\bin\ccverify.pl
\r
19 set cqverify=\\rtnlprod02\viewstore\PMO\CM_TOOLS\bin\cqverify.pl
\r
20 set wait=\\rtnlprod02\viewstore\PMO\CM_TOOLS\bin\wait.pl
\r
21 set logfile=\\rtnlprod02\viewstore\PMO\CM_TOOLS\log\%COMPUTERNAME%.log
\r
23 rem Clear out logfile
\r
24 if exist %logfile% del /q /f %logfile%
\r
26 rem Check for necessary tools
\r
28 if not exist "%ccperl%" set msg=Clearcase is not installed
\r
29 if not exist "%ccverify%" set msg=Unable to find ccverify script (%ccverify%)!
\r
31 if not "%msg%" == "" goto Error
\r
33 rem Since we found ccperl assume that the installation was done so now
\r
34 rem we'll check the configuration
\r
35 "%ccperl%" %ccverify%
\r
37 rem Wait for Clearquest/TUP install to finish
\r
38 if not "%1" == "" echo Waitng for Clearquest/TUP installation to finish&& "%ccperl%" %wait% %1
\r
41 if not exist "%cqperl%" set msg=Clearquest/TUP is not installed
\r
42 if not exist "%cqverify%" set msg=Unable to find cqverify script (%cqverify%)!
\r
44 if not "%msg%" == "" goto Error
\r
46 "%cqperl%" %cqverify%
\r
51 echo %msg% >> %logfile%
\r