Index: scripts/internal/embed_srcserver_info.bat =================================================================== diff -u -N --- scripts/internal/embed_srcserver_info.bat (revision 97b52ad5431de3a7cd67e180c428bc653318573c) +++ scripts/internal/embed_srcserver_info.bat (revision 0) @@ -1,57 +0,0 @@ -@echo off - -setlocal ENABLEDELAYEDEXPANSION - -if "%1" == "" ( - echo Usage: embed_srcserver_info.bat path_to_sources - goto end -) - -SET MainProjectDir=%~1 - -call config.bat -if errorlevel 1 ( - exit /b 1 -) - -call internal\prepare_env.bat -if errorlevel 1 ( - goto error -) - -SET _command=call "%SVNINDEXCMD%" /debug /source=%MainProjectDir%\src\ictranslate;%MainProjectDir%\src\libictranslate;%MainProjectDir%\src\libicpf;%MainProjectDir%\src;%MainProjectDir%\ext\sqlite3 /symbols=%MainProjectDir%\bin\release -!_command! >"%TmpDir%\command.log" -if errorlevel 1 ( - echo ERROR: Error encountered while embedding source server information. See the log below: - type "%TmpDir%\command.log" - exit /b 1 -) - -rem We expect all pdbs to be modified (currently 14 of them - 7/architecture) -SET IndexRes=Undefined -SET _command=type "%TmpDir%\command.log" -for /f %%a in ('!_command! ^| find /c "wrote"') do set IndexRes=%%a -if NOT "!IndexRes!" == "14" ( - echo Some source server information has not been embedded. See the log below: - type "%TmpDir%\command.log" - exit /b 1 -) - -echo ...embedded information in !IndexRes! files. -SET _command=type "%TmpDir%\command.log" -for /f %%a in ('!_command! ^| find /c "ERROR"') do set IndexRes=%%a -if NOT "!IndexRes!" == "0" ( - echo Error encountered when embedding source server information. See the log below: - type "%TmpDir%\command.log" - exit /b 1 -) - -SET _command=type "%TmpDir%\command.log" -for /f %%a in ('!_command! ^| find /c "WARNING"') do set IndexRes=%%a -if NOT "!IndexRes!" == "0" ( - echo Error encountered when embedding source server information. See the log below: - type "%TmpDir%\command.log" - exit /b 1 -) - -exit /b 0