summaryrefslogtreecommitdiffstats
path: root/private/sdktools/rslm/rslmsplt.cmd
blob: f8a89374d6af6470ef06d708bae7af755b611bec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
REM -- splits off a subdir of a project into a seperate project under rslm
REM -- %1 == <subdir>
REM -- %2 == New Project server path
REM --
REM -- Must be invoked from <%1>\..

if "%1"=="" goto end
if not exist %1 goto end
if "%2"=="" goto end

cookie -w

status -rg | qgrep out
ync Does anyone have a file checked out?
if errorlevel==0 goto unlock

if exist rslm.ini set NEW_RSLM=
if not exist rslm.ini set NEW_RSLM=1
if "%NEW_RSLM%"=="" out -f rslm.ini
echo %1 %2 >> rslm.ini
ssync -r %1
delfile -krc "RSLM Split" %1
addproj -s %2 -p %1
cd %1
enlist -s %2 -p %1
addfile -rfc "RSLM Split"  *.*
cd ..
if "%NEW_RSLM%"=="" in -c "RSLM Split" rslm.ini
if "%NEW_RSLM%"=="1" addfile -c "RSLM Split"  rslm.ini

:unlock
cookie -f

:end