<commit_before>@echo off
if "%1" == "" goto paramErr
if "%VSINSTALLDIR%" == "" goto envErr

rem Determine CMake generator
if "%1" == "vc71" set GENERATOR="Visual Studio 7 .NET 2003"
if "%1" == "vc8" set GENERATOR="Visual Studio 8 2005"
if "%1" == "vc8_x64" set GENERATOR="Visual Studio 8 2005 Win64"
if "%1" == "vc9" set GENERATOR="Visual Studio 9 2008"
if "%1" == "vc9_x64" set GENERATOR="Visual Studio 9 2008 Win64"
if "%1" == "vc10" set GENERATOR="Visual Studio 10"
if "%1" == "vc10_x64" set GENERATOR="Visual Studio 10 Win64"

if %GENERATOR% == "" goto paramErr

set BUILD_DIR=%1

if "%2" == "clean" rmdir /Q/S %BUILD_DIR%
mkdir %BUILD_DIR%
pushd %BUILD_DIR%
rem call CMake
cmake -DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=TRUE -DOGRE_INSTALL_MEDIA:BOOL=TRUE -DOGRE_INSTALL_DOCS:BOOL=TRUE -G%GENERATOR% ..\..\..
if errorlevel 1 goto cmakeerror

rem Detect whether we're using full version of VStudio or Express
devenv /?

if errorlevel 1 goto tryexpress
set DEVENV=devenv
goto detecteddevenv
:tryexpress
set DEVENV=VCExpress
:detecteddevenv

%DEVENV% OGRE.sln /build "Debug" /project "INSTALL"
%DEVENV% OGRE.sln /build "Release" /project "INSTALL"<commit_msg>Explicitly build doc target in SDK build since INSTALL doesn't depend on it<commit_after>@echo off
if "%1" == "" goto paramErr
if "%VSINSTALLDIR%" == "" goto envErr

rem Determine CMake generator
if "%1" == "vc71" set GENERATOR="Visual Studio 7 .NET 2003"
if "%1" == "vc8" set GENERATOR="Visual Studio 8 2005"
if "%1" == "vc8_x64" set GENERATOR="Visual Studio 8 2005 Win64"
if "%1" == "vc9" set GENERATOR="Visual Studio 9 2008"
if "%1" == "vc9_x64" set GENERATOR="Visual Studio 9 2008 Win64"
if "%1" == "vc10" set GENERATOR="Visual Studio 10"
if "%1" == "vc10_x64" set GENERATOR="Visual Studio 10 Win64"

if %GENERATOR% == "" goto paramErr

set BUILD_DIR=%1

if "%2" == "clean" rmdir /Q/S %BUILD_DIR%
mkdir %BUILD_DIR%
pushd %BUILD_DIR%
rem call CMake
cmake -DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=TRUE -DOGRE_INSTALL_MEDIA:BOOL=TRUE -DOGRE_INSTALL_DOCS:BOOL=TRUE -G%GENERATOR% ..\..\..
if errorlevel 1 goto cmakeerror

rem Detect whether we're using full version of VStudio or Express
devenv /?

if errorlevel 1 goto tryexpress
set DEVENV=devenv
goto detecteddevenv
:tryexpress
set DEVENV=VCExpress
:detecteddevenv

rem build docs explicitly since INSTALL doesn't include it
%DEVENV% OGRE.sln /build "Release" /project "doc"

%DEVENV% OGRE.sln /build "Debug" /project "INSTALL"
%DEVENV% OGRE.sln /build "Release" /project "INSTALL"
{'fraction_non_alphanumeric': 0.13174858984689766, 'fraction_numerical': 0.05076551168412571, 'mean_word_length': 5.27020202020202, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4785560', 'n_tokens_mistral': 1007, 'n_tokens_neox': 887, 'n_words': 302}