@echo off
setlocal
if "%1"=="" goto error_format
if not exist %1 goto error_notexist
set curpath=%~p0
set cvs=C:\xdev\Borland\TeamSource\Bin\teamsrc.exe
set buildpath=%curpath%build
set errfile=%buildpath%\error.txt
set prjfile=%~p1%1\Archives\%1.cpj
if not exist %prjfile% goto error_prjnotfound
%cvs% %prjfile% -D%buildpath% -P%errfile%
if exist %errfile% del %errfile%
if exist %buildpath%\*.tsr del %buildpath%\*.tsr
if exist %buildpath%\*.tsl del %buildpath%\*.tsl
set prjfile=
set errfile=
set buildpath=
set cvs=
set curpath=
goto end
:error_format
echo Format: make.bat PROJECT_DIR
goto end
:error_notexist
echo File '%1' not found
goto end
:error_prjnotfound
echo Project '%prjfile%' not found
:end
endlocal
Bat/Wsh/Powershell Справочник v0.05 © 2007-2025 Igor Salnikov aka SunDoctor