forked from photron/msys_setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsys_setup_msvcr90.bat
27 lines (20 loc) · 936 Bytes
/
msys_setup_msvcr90.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
if %sentinel% NEQ __sentinel__ exit
set msi=vcredist_x86.exe
set vcredist_url=http://download.microsoft.com/download/1/1/1/1116b75a-9ec3-481a-a3c8-1777b5381140
if exist %msys_dir%\bin\msvcr90.dll goto have_msvcr90
if exist %tmp%\vcredist_x86\vc_red\nosxs_msvcr90.dll goto copy_msvcr90
if exist %tmp%\vcredist_x86\vc_red.cab goto unpack_vc_red
if exist %tmp%\%msi% goto unpack_vcredist
echo downloading %msi% ...
%wget% %vcredist_url%/%msi% -O %tmp%\%msi%
:unpack_vcredist
echo unpacking %msi% ...
%zip% x -o%tmp%\vcredist_x86 %tmp%\vcredist_x86.exe
:unpack_vc_red
echo unpacking %tmp%\vcredist_x86\vc_red.cab ...
rem %zip% x -o%tmp%\vcredist_x86\vc_red %tmp%\vcredist_x86\vc_red.cab
if not exist %tmp%\vcredist_x86\vc_red mkdir %tmp%\vcredist_x86\vc_red
expand %tmp%\vcredist_x86\vc_red.cab -F:* %tmp%\vcredist_x86\vc_red
:copy_msvcr90
copy /Y %tmp%\vcredist_x86\vc_red\nosxs_msvcr90.dll %msys_dir%\bin\msvcr90.dll
:have_msvcr90