LKBEN10906: 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!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.