-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateView.bat
More file actions
17 lines (15 loc) · 842 Bytes
/
CreateView.bat
File metadata and controls
17 lines (15 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
echo Usage: CreateView.bat CLEARCASE_ROOT(e.g. M:) VIEW_NAME REGION [CONFIG_SPEC(Latest)] [ENABLE_WINKIN(true)]
SET CLEARCASE_ROOT=%1
SET VIEW_NAME=%2
SET REGION=%3
SET CONFIG_SPEC=Latest
if NOT "%4"=="" SET CONFIG_SPEC=%4
SET WINKIN=n
if /I "%5"=="true" SET WINKIN=
SET PATH_TO_CONFIG_SPECS=ABSOLUTE_PATH_TO_FOLDER_CONTAINING_YOUR_CONFIG_SPECS
echo Creating new view at %CLEARCASE_ROOT%\%VIEW_NAME% on %COMPUTERNAME% with Config Spec %CONFIG_SPEC% in Region %REGION%
if "%WINKIN%"=="n" (echo WINKIN IS DISABLED ON THIS VIEW) else (echo WINKIN IS ENABLED ON THIS VIEW)
cleartool mkview -tag %VIEW_NAME% -region %REGION% -%WINKIN%shareable_dos \\%COMPUTERNAME%\views\%VIEW_NAME%.vws
cd /d %CLEARCASE_ROOT%\%VIEW_NAME%
if /I NOT "%CONFIG_SPEC%"=="latest" cleartool setcs %PATH_TO_CONFIG_SPECS%\%CONFIG_SPEC%
cleartool catcs