Windows DatabaseebooksStatistical Information

LWE10347 : Howto update all clearcase streams from a cmd file at once. This can be used in autostart.

Symptom:

You would like to automatically update all your clearcase development streams at once.

Cause:

Clearcase is a nice CVS (concurrent versioning system) but lacks this option.

Solution:

The following batch program can be used to update all clearcase streams you are working with.

-----

echo off
rem echo ACHTUNG WARTEN MIT ABHOLEN!!!!
rem echo Wim
rem pause
c:
cd \projects

rem we search all the streams a user has
rem cleartool lsview |find /i "%username%" > c:\temp\allstreams.txt
dir /B c:\projects > c:\temp\allstreams.txt

echo going through all the streams
echo -----------------------------

for /F "tokens=1,2,3 delims=.:, " %%a IN (c:\temp\allstreams.txt) do (
echo %%a
cleartool update -log c:\temp\%%a.log %%a
)

for /F "tokens=1,2,3 delims=.:, " %%a IN (c:\temp\allstreams.txt) do (
echo %%a
notepad c:\temp\%%a.log
)

-----


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics