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


This article has not been checked!

LKB | Created: 02/04/2020 | Version: 0 | Language: EN | Rating: 0 | Outdated: False | Marked for deletion: False

Author: Wim Peeters - Keskon GmbH & Co. KG


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
)

-----

About the Author

Wim 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 in different European countries and different European languages. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform where he is one of the most important contributors and the main developer.

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!