I am writing a windows batch script which has a if condition that checks if a new baseline was created i.e. if any new changes were submitted.
I tried:
SET REBASE_RETURN="No rebase needed"
SET FLAG=true
for /f usebackq %%F in (`cleartool desc -fmt %%[latest_bls]Cp\ stream:%INTSTREAM%@\%PVOB%`) do (
cleartool rebase -baseline %%F@\%PVOB% -complete | findstr !REBASE_RETURN!
IF ERRORLEVEL 0 SET FLAG=false)
But this is not working as i expected.
Is there a way i can run a clearcase command, just to get a boolean or some return value. So that i know if a new baseline was created.