forked from realXtend/tundra
-
Notifications
You must be signed in to change notification settings - Fork 1
/
win_update_deps_vs2010.bat
41 lines (35 loc) · 1.41 KB
/
win_update_deps_vs2010.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
echo.
:: If this file fails to find git.exe add it Git install
:: directorys 'bin' folder path to your PATH env variable
:: If you get git curl ssl cert errors 'error: error setting certificate verify locations' you can propably
:: fix that by updating to a newer git (tested to work with >=1.7.6) or doing a work around like
:: http://lostechies.com/keithdahlby/2010/09/26/msysgit-error-setting-certificate-verify-locations/
:: Essentialy you will be running a command below and running this batch file again
:: git config --global http.sslcainfo "C:\Program Files (x86)\Git\bin\curl-ca-bundle.crt"
:: this will make git find the curl certification file properly for the https repo clone.
:update_vs2010_dependency_submodule
echo -- Updatating git submodule path deps/vs2010
call git submodule init deps/vs2010
call git submodule update deps/vs2010
if exist "deps\vs2010\README" (
goto :remove_all_dlls_from_bin
) else (
echo ERROR: Could not find 'deps\vs2010\README', assuming git submodule init/update failed!
goto :end
)
:remove_all_dlls_from_bin
echo -- Removing all .dll files from /bin
del bin\*.dll /q
if exist "CMakeCache.txt" (
echo -- Removing CMakeCache.txt to get rid of cached dependency paths
del CMakeCache.txt /q
)
goto :copy_new_dlls_to_bin
:copy_new_dlls_to_bin
echo -- Copying new vs2010 dependencies to /bin
xcopy deps\vs2010\runtime_deps\*.* bin /S /C /Y /Q
goto :end
:end
echo.
pause