blob: 67e284a45ae33c111ae556e6b4f82913c719089d (
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
36
37
38
39
40
41
42
43
44
45
|
@rem Script to enlist in all projects contained in %NTPROJECTS%.
@rem Assumes tc.exe is in %Path%
@rem __________________________________________________________________________
@if "%_echo%"=="" echo off
if not "%Verbose%"=="" echo on
setlocal
if "%1" == "" goto SetProjects
for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage
%_ntdrive%
path=%path%;%_ntdrive%\nt\public\tools
:TopOfProjectLoop
if "%1" == "" goto BreakOutOfProjectLoop
call projects %1 2>nul
if "%project%" == "" echo Don't know %1 project & goto BottomOfProjectLoop
tc junk %proj_path%
cd %proj_path%
if exist slm.ini echo Already enlisted in %1 project & goto BottomOfProjectLoop
enlist -fgs %slm_root% -p %project%
ssync -rfu
:BottomOfProjectLoop
echo.
shift
goto TopOfProjectLoop
:BreakOutOfProjectLoop
goto End
:SetProjects
if not "%NTPROJECTS%" == "" call %0 %NTPROJECTS%
goto End
:Usage
echo Usage: %0
:End
endlocal
|