<commit_before>@echo off

rem Pull down SDL2 from mercurial repository
IF EXIST ./3rdParty/SDL2/repo/.hg GOTO :SDLCLONED
echo Cloning down SDL2 release-2.0.3
cd ./3rdParty/SDL2
cd
rem hg init
rem hg pull -f http://hg.libsdl.org/SDL
rem hg update release-2.0.3
hg clone --updaterev release-2.0.3 http://hg.libsdl.org/SDL repo
cd ../../
cd
:SDLCLONED

rem Pause if an error occured
:error
pause<commit_msg>Completed windows batch script for initial setup.<commit_after>@echo off

echo Init and Update GIT submodules ...
git submodule init
git submodule update

rem Pull down SDL2 from mercurial repository
IF EXIST ./3rdParty/SDL2/repo GOTO :SDL_CLONED
	echo Cloning down SDL2 release-2.0.3
	cd ./3rdParty/SDL2
	cd
	
	hg clone --updaterev release-2.0.3 http://hg.libsdl.org/SDL repo
	cd ../../
	cd
:SDL_CLONED

IF NOT EXIST ./3rdParty/SDL2/repo GOTO :SDL_CLONE_FAILED
	IF EXIST ./3rdParty/SDL2/include GOTO :SDL_INCLUDE_COPIED
		echo Copying header files ...
		xcopy "./3rdParty/SDL2/repo/include" "./3rdParty/SDL2/include" /E /H /C /R /Q /Y /I /S /L
	:SDL_INCLUDE_COPIED
	
	IF EXIST ./3rdParty/SDL2/src GOTO :SDL_SRC_COPIED
		echo Copying source files ...
		xcopy "./3rdParty/SDL2/repo/src" "./3rdParty/SDL2/src" /E /H /C /R /Q /Y /I /S /L
	:SDL_SRC_COPIED
	
	IF EXIST ./3rdParty/SDL2/cmake GOTO :SDL_CMAKE_COPIED
		echo Copying cmake files ...
		xcopy "./3rdParty/SDL2/repo/cmake" "./3rdParty/SDL2/cmake" /E /H /C /R /Q /Y /I /S /L
	:SDL_CMAKE_COPIED
	
	echo Copying config files ...
	xcopy "./3rdParty/SDL2/repo/sdl2-config.in" "./3rdParty/SDL2/sdl2-config.in" /C /R /Y /F /I
	xcopy "./3rdParty/SDL2/repo/sdl2.pc.in" "./3rdParty/SDL2/sdl2.pc.in" /C /R /Y /F /I
	xcopy "./3rdParty/SDL2/repo/SDL2.spec.in" "./3rdParty/SDL2/SDL2.spec.in" /C /R /Y /F /I
	xcopy "./3rdParty/SDL2/repo/sdl2.m4" "./3rdParty/SDL2/sdl2.m4" /C /R /Y /F /I
:SDL_CLONE_FAILED

rem Pause if an error occured
:error
pause
{'fraction_non_alphanumeric': 0.14383923849814914, 'fraction_numerical': 0.03860391327340032, 'mean_word_length': 2.9010309278350515, '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': '3125108', 'n_tokens_mistral': 904, 'n_tokens_neox': 789, 'n_words': 216}