diff options
author | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
---|---|---|
committer | Adam <you@example.com> | 2020-05-17 05:51:50 +0200 |
commit | e611b132f9b8abe35b362e5870b74bce94a1e58e (patch) | |
tree | a5781d2ec0e085eeca33cf350cf878f2efea6fe5 /public/tools/spltenls.cmd | |
download | NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2 NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip |
Diffstat (limited to 'public/tools/spltenls.cmd')
-rw-r--r-- | public/tools/spltenls.cmd | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/public/tools/spltenls.cmd b/public/tools/spltenls.cmd new file mode 100644 index 000000000..232a42d5e --- /dev/null +++ b/public/tools/spltenls.cmd @@ -0,0 +1,46 @@ +@rem SpltEnls will split %NTPROJECTS% by server and start four MyEnlist in parallel +@rem + +@if "%_echo%"=="" echo off +if not "%Verbose%"=="" echo on + +for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage +for %%a in (1 2 3 4) do if "%1" == "%%a" goto SubSet + +set SAVEPROJECTS=%NTPROJECTS% + +call spltproj %NTPROJECTS% + +set NTPROJECTS=%list1% +start call %0 1 +set NTPROJECTS=%list2% +start call %0 2 +set NTPROJECTS=%list3% +start call %0 3 +set NTPROJECTS=%list4% +start call %0 4 + +set NTPROJECTS=%SAVEPROJECTS% +set SAVEPROJECTS= +set list1= +set list2= +set list3= +set list4= + +goto end + +REM This part is called by the main procedure. It calls MyEnlist for each subset of NTPROJECTS + +:SubSet + call MyEnlist + @if "_echo"=="" echo off + +goto end + +:usage + +echo %0 will split NTPROJECTS by server and start four MyEnlists in parallel +echo. +echo usage: %0 + +:end |