-
Notifications
You must be signed in to change notification settings - Fork 12
/
msys_setup.bat
658 lines (414 loc) · 26 KB
/
msys_setup.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
@echo off
set sentinel=__sentinel__
rem ===========================================================================
rem some general variables
rem ===========================================================================
set base_dir=%CD%
set wget=%base_dir%\wget.exe
set zip_dir=%base_dir%\7z\Files\7-Zip
set zip=%zip_dir%\7z.exe
set tmp=%base_dir%\tmp
set msys_dir=%base_dir%\msys
set mingw_dir=%base_dir%\mingw
set git_dir=%base_dir%\git
set python_dir=%base_dir%\python
set perl_dir=%base_dir%\perl
set go_dir=%base_dir%\go
set msys_url=http://downloads.sourceforge.net/mingw
set mingw_url=http://downloads.sourceforge.net/mingw
set PATH=%msys_dir%\bin;%PATH%
call msys_config.bat
if %install_libvirt_scripts% == yes set install_gnutls=yes
if %install_libvirt_scripts% == yes set install_zlib=yes
if %install_libvirt_scripts% == yes set install_python=yes
if %install_python% == yes set install_msvcr90=yes
if %install_virtmanager_scripts% == yes set install_gtk=yes
if %install_gtk% == yes set install_atk=yes
if %install_gtk% == yes set install_pango=yes
if %install_gtk% == yes set install_cario=yes
if %install_gtk% == yes set install_libpng=yes
if %install_gtk% == yes set install_msvcr90=yes
if %install_cario% == yes set install_freetype=yes
if %install_cario% == yes set install_fontconfig=yes
if %install_cario% == yes set install_libpng=yes
if %install_libpng% == yes set install_zlib=yes
if %compile_everything_from_source% == yes set install_libiconv=no
if %compile_everything_from_source% == yes set install_zlib=no
rem ===========================================================================
rem check for wget.exe
rem ===========================================================================
if exist %wget% goto have_wget
echo error: wget.exe is missing in %base_dir%
goto exit
:have_wget
rem ===========================================================================
rem check for tmp directory and create if necessary
rem ===========================================================================
if exist %tmp% goto have_tmp
echo creating %tmp% ...
mkdir %tmp%
:have_tmp
rem ===========================================================================
rem create wget_and_copy.bat script
rem ===========================================================================
set out=%tmp%\wget_and_copy.bat
echo @echo off > %out%
echo rem usage: baseurl filename dstdir >> %out%
echo set src=%%1/%%2 >> %out%
echo set dst=%%tmp%%\%%2 >> %out%
echo set part=%%tmp%%\%%2.part >> %out%
echo set done=%%tmp%%\%%2.done >> %out%
echo if exist %%dst%% goto copy >> %out%
echo echo downloading %%2 ... >> %out%
echo if exist %%part%% del %%part%% >> %out%
echo %%wget%% %%src%% -O %%part%% ^&^& ren %%part%% %%2 >> %out%
echo if not exist %%dst%% goto error >> %out%
echo :copy >> %out%
echo if exist %%done%% goto done >> %out%
echo echo copying %%2 ... >> %out%
echo copy /y %%dst%% %%3 ^> nul ^&^& echo done ^> %%done%% >> %out%
echo if not exist %%done%% goto error >> %out%
echo goto done >> %out%
echo :error >> %out%
echo echo error: see possible messages above >> %out%
echo :done >> %out%
rem ===========================================================================
rem create wget_and_install.bat script
rem ===========================================================================
set out=%tmp%\wget_and_install.bat
echo @echo off > %out%
echo rem usage: baseurl filename dstdir >> %out%
echo set src=%%1/%%2 >> %out%
echo set dst=%%tmp%%\%%2 >> %out%
echo set part=%%tmp%%\%%2.part >> %out%
echo set done=%%tmp%%\%%2.done >> %out%
echo if exist %%dst%% goto unpack >> %out%
echo echo downloading %%2 ... >> %out%
echo if exist %%part%% del %%part%% >> %out%
echo %%wget%% %%src%% -O %%part%% ^&^& ren %%part%% %%2 >> %out%
echo if not exist %%dst%% goto error >> %out%
echo :unpack >> %out%
echo if exist %%done%% goto done >> %out%
echo echo unpacking %%2 ... >> %out%
echo msiexec /a %%dst%% TARGETDIR=%%3 /qb ^&^& echo done ^> %%done%% >> %out%
echo if not exist %%done%% goto error >> %out%
echo goto done >> %out%
echo :error >> %out%
echo echo error: see possible messages above >> %out%
echo :done >> %out%
rem ===========================================================================
rem create wget_and_unpack1.bat script
rem ===========================================================================
set out=%tmp%\wget_and_unpack1.bat
echo @echo off > %out%
echo rem usage: baseurl filename dstdir >> %out%
echo set src=%%1/%%2 >> %out%
echo set dst=%%tmp%%\%%2 >> %out%
echo set part=%%tmp%%\%%2.part >> %out%
echo set done=%%tmp%%\%%2.done >> %out%
echo if exist %%dst%% goto unpack >> %out%
echo echo downloading %%2 ... >> %out%
echo if exist %%part%% del %%part%% >> %out%
echo %%wget%% %%src%% -O %%part%% ^&^& ren %%part%% %%2 >> %out%
echo if not exist %%dst%% goto error >> %out%
echo :unpack >> %out%
echo if exist %%done%% goto done >> %out%
echo echo unpacking %%2 ... >> %out%
echo %%zip%% x -o%%3 -y %%dst%% ^&^& echo done ^> %%done%% >> %out%
echo if not exist %%done%% goto error >> %out%
echo goto done >> %out%
echo :error >> %out%
echo echo error: see possible messages above >> %out%
echo :done >> %out%
rem ===========================================================================
rem create wget_and_unpack2.bat script
rem ===========================================================================
set out=%tmp%\wget_and_unpack2.bat
echo @echo off > %out%
echo rem usage: baseurl filename ext dstdir >> %out%
echo set src=%%1/%%2.%%3 >> %out%
echo set dst=%%tmp%%\%%2.%%3 >> %out%
echo set part=%%tmp%%\%%2.%%3.part >> %out%
echo set done=%%tmp%%\%%2.%%3.done >> %out%
echo if exist %%dst%% goto unpack_outer >> %out%
echo echo downloading %%2.%%3 ... >> %out%
echo if exist %%part%% del %%part%% >> %out%
echo %%wget%% %%src%% -O %%part%% ^&^& ren %%part%% %%2.%%3 >> %out%
echo if not exist %%dst%% goto error >> %out%
echo :unpack_outer >> %out%
echo if exist %%tmp%%\%%2 goto unpack_inner >> %out%
echo echo unpacking %%2.%%3 ... >> %out%
echo %%zip%% x -o%%tmp%% -y %%dst%% >> %out%
echo if not exist %%tmp%%\%%2 goto error >> %out%
echo :unpack_inner >> %out%
echo if exist %%done%% goto done >> %out%
echo echo unpacking %%2 ... >> %out%
echo %%zip%% x -o%%4 -y %%tmp%%\%%2 ^&^& echo done ^> %%done%% >> %out%
echo if not exist %%done%% goto error >> %out%
echo goto done >> %out%
echo :error >> %out%
echo echo error: see possible messages above >> %out%
echo :done >> %out%
rem ===========================================================================
rem create install_file.bat script
rem ===========================================================================
set out=%tmp%\install_file.bat
echo @echo off > %out%
echo rem usage: src dst >> %out%
echo echo install %%1 ... >> %out%
echo copy /y %%1 %%2 ^> nul >> %out%
echo if not %%ERRORLEVEL%%==0 echo ERROR: installing %%1 failed >> %out%
rem ===========================================================================
rem create install_file_silent.bat script
rem ===========================================================================
set out=%tmp%\install_file_silent.bat
echo @echo off > %out%
echo rem usage: src dst >> %out%
echo copy /y %%1 %%2 ^> nul >> %out%
echo if not %%ERRORLEVEL%%==0 echo ERROR: installing %%1 failed >> %out%
rem ===========================================================================
rem create install_patch.bat script
rem ===========================================================================
set out=%tmp%\install_patch.bat
echo @echo off > %out%
echo rem usage: filename >> %out%
echo echo install %base_dir%\%%1 ... >> %out%
echo copy /y %base_dir%\%%1 %msys_dir%\src\%%1 ^> nul >> %out%
echo if not %%ERRORLEVEL%%==0 echo ERROR: installing %base_dir%\%%1 failed >> %out%
echo %msys_dir%\bin\sh.exe -ec "sed -e 's/\r\n$//' /src/%%1 > /src/%%1.sed && mv /src/%%1.sed /src/%%1" >> %out%
rem ===========================================================================
rem create remove_file_silent.bat script
rem ===========================================================================
set out=%tmp%\remove_file_silent.bat
echo @echo off > %out%
echo rem usage: path >> %out%
echo if exist %%1 del %%1 ^> nul >> %out%
echo if not %%ERRORLEVEL%%==0 echo ERROR: removing %%1 failed >> %out%
rem ===========================================================================
rem download and unpack 7zip using msiexec
rem ===========================================================================
call msys_setup_7zip.bat
rem ===========================================================================
rem check for msys directory and create if necessary
rem ===========================================================================
if exist %msys_dir% goto have_msys_dir
echo creating %msys_dir% ...
mkdir %msys_dir%
:have_msys_dir
if exist %msys_dir%\src goto have_msys_src_dir
echo creating %msys_dir%\src ...
mkdir %msys_dir%\src
:have_msys_src_dir
rem ===========================================================================
rem download msys
rem ===========================================================================
set out=%tmp%\msys_lzma_packages.txt
echo msysCORE-1.0.11-msys-1.0.11-base-bin.tar > %out%
echo coreutils-5.97-2-msys-1.0.11-bin.tar >> %out%
echo coreutils-5.97-2-msys-1.0.11-ext.tar >> %out%
echo bash-3.1.17-2-msys-1.0.11-bin.tar >> %out%
echo make-3.81-2-msys-1.0.11-bin.tar >> %out%
echo tar-1.22-1-msys-1.0.11-bin.tar >> %out%
echo gzip-1.3.12-1-msys-1.0.11-bin.tar >> %out%
echo sed-4.2.1-1-msys-1.0.11-bin.tar >> %out%
echo grep-2.5.4-1-msys-1.0.11-bin.tar >> %out%
echo gawk-3.1.7-1-msys-1.0.11-bin.tar >> %out%
echo patch-2.5.9-1-msys-1.0.11-bin.tar >> %out%
echo diffutils-2.8.7.20071206cvs-2-msys-1.0.11-bin.tar >> %out%
echo findutils-4.4.2-1-msys-1.0.11-bin.tar >> %out%
rem necessary for autogen.sh
echo libcrypt-1.1_1-2-msys-1.0.11-dll-0.tar >> %out%
echo autoconf-2.63-1-msys-1.0.11-bin.tar >> %out%
echo automake-1.11-1-msys-1.0.11-bin.tar >> %out%
echo libtool-2.2.7a-1-msys-1.0.11-bin.tar >> %out%
echo cvs-1.12.13-1-msys-1.0.11-bin.tar >> %out%
echo m4-1.4.13-1-msys-1.0.11-bin.tar >> %out%
echo bsdcpio-2.7.1-1-msys-1.0.11-bin.tar >> %out%
echo libarchive-2.7.1-1-msys-1.0.11-dll-2.tar >> %out%
echo libopenssl-0.9.8k-1-msys-1.0.11-dll-098.tar >> %out%
echo zlib-1.2.3-2-msys-1.0.13-dll.tar >> %out%
set A=for /F %%F in (%tmp%\msys_lzma_packages.txt) do
set B=call %tmp%\wget_and_unpack2.bat %msys_url% %%F lzma %msys_dir%
set C=if not exist %%F.done goto error
%A% %B%; %C%
set out=%tmp%\msys_gz_packages.txt
echo xz-4.999.9beta_20100401-1-msys-1.0.13-bin.tar > %out%
echo liblzma-4.999.9beta_20100401-1-msys-1.0.13-dll-1.tar >> %out%
echo libbz2-1.0.5-1-msys-1.0.11-dll-1.tar >> %out%
set A=for /F %%F in (%tmp%\msys_gz_packages.txt) do
set B=call %tmp%\wget_and_unpack2.bat %msys_url% %%F gz %msys_dir%
set C=if not exist %%F.done goto error
%A% %B%; %C%
echo %mingw_dir% /mingw > %msys_dir%\etc\fstab
echo %go_dir% /go >> %msys_dir%\etc\fstab
echo %zip_dir% /sevenzip >> %msys_dir%\etc\fstab
echo %perl_dir% /perl >> %msys_dir%\etc\fstab
if exist %msys_dir%\etc\profile.d goto have_msys_etc_profiled_dir
echo creating %msys_dir%\etc\profile.d ...
mkdir %msys_dir%\etc\profile.d
:have_msys_etc_profiled_dir
echo export autom4te_perllibdir="/share/autoconf" > %msys_dir%\etc\profile.d\autoconf.sh
echo export AUTOCONF="/bin/autoconf" >> %msys_dir%\etc\profile.d\autoconf.sh
echo export AUTOHEADER="/bin/autoheader" >> %msys_dir%\etc\profile.d\autoconf.sh
echo export GOARCH=386 > %msys_dir%\etc\profile.d\go.sh
echo export GOBIN=/go/bin >> %msys_dir%\etc\profile.d\go.sh
echo export GOROOT=/go >> %msys_dir%\etc\profile.d\go.sh
echo export GOOS=windows >> %msys_dir%\etc\profile.d\go.sh
echo export PATH=$GOBIN:$PATH >> %msys_dir%\etc\profile.d\go.sh
echo export PATH=/sbin:$PATH > %msys_dir%\etc\profile.d\basics.sh
echo export PATH=/sevenzip:$PATH > %msys_dir%\etc\profile.d\sevenzip.sh
rem ftp://ftp.zlatkovic.com/libxml/ <- for xsltproc
if exist %msys_dir%\bin\wget goto have_msys_wget
if exist %msys_dir%\bin\wget.exe goto have_msys_wget
call %tmp%\install_file.bat %wget% %msys_dir%\bin\wget.exe
:have_msys_wget
rem don't let coreutil's expand.exe shadow the Windows expand.exe
if exist %msys_dir%\bin\expand.exe move %msys_dir%\bin\expand.exe %msys_dir%\bin\expand.exe.msys
rem ===========================================================================
rem check for mingw directory and create if necessary
rem ===========================================================================
if exist %mingw_dir% goto have_mingw_dir
echo creating %mingw_dir% ...
mkdir %mingw_dir%
:have_mingw_dir
set out=%tmp%\mingw_gz_packages.txt
echo mingwrt-3.18-mingw32-dll.tar > %out%
echo mingwrt-3.18-mingw32-dev.tar >> %out%
echo w32api-3.14-mingw32-dev.tar >> %out%
echo gdb-7.1-2-mingw32-bin.tar >> %out%
echo binutils-2.20-1-mingw32-bin.tar >> %out%
echo libbz2-1.0.5-2-mingw32-dll-2.tar >> %out%
echo bzip2-1.0.5-2-mingw32-bin.tar >> %out%
set A=for /F %%F in (%tmp%\mingw_gz_packages.txt) do
set B=call %tmp%\wget_and_unpack2.bat %mingw_url% %%F gz %mingw_dir%
set C=if not exist %%F.done goto error
%A% %B%; %C%
set out=%tmp%\mingw_lzma_packages.txt
echo gcc-core-4.5.0-1-mingw32-bin.tar > %out%
echo gcc-c++-4.5.0-1-mingw32-bin.tar >> %out%
echo libgcc-4.5.0-1-mingw32-dll-1.tar >> %out%
echo libstdc++-4.5.0-1-mingw32-dll-6.tar >> %out%
echo libgmp-5.0.1-1-mingw32-dll-10.tar >> %out%
echo libmpc-0.8.1-1-mingw32-dll-2.tar >> %out%
echo libmpfr-2.4.1-1-mingw32-dll-1.tar >> %out%
set A=for /F %%F in (%tmp%\mingw_lzma_packages.txt) do
set B=call %tmp%\wget_and_unpack2.bat %mingw_url% %%F lzma %mingw_dir%
set C=if not exist %%F.done goto error
%A% %B%; %C%
rem remove pthread files installed by previous version of the script
call %tmp%\remove_file_silent.bat %mingw_dir%\include\pthread.h
call %tmp%\remove_file_silent.bat %mingw_dir%\include\sched.h
call %tmp%\remove_file_silent.bat %mingw_dir%\include\semaphore.h
call %tmp%\remove_file_silent.bat %mingw_dir%\lib\libpthread.dll.a
call %tmp%\remove_file_silent.bat %mingw_dir%\mingw32\include\pthread.h
call %tmp%\remove_file_silent.bat %mingw_dir%\mingw32\include\sched.h
call %tmp%\remove_file_silent.bat %mingw_dir%\mingw32\include\semaphore.h
call %tmp%\remove_file_silent.bat %mingw_dir%\mingw32\lib\libpthread.a
rem ===========================================================================
rem install various libs
rem ===========================================================================
call msys_setup_perl.bat
call msys_setup_glib.bat
call msys_setup_pkgconfig.bat
call msys_setup_intltool.bat
call msys_setup_gettext.bat
call msys_setup_expat.bat
if %install_libiconv% == yes call msys_setup_libiconv.bat
if %install_gnutls% == yes call msys_setup_gnutls.bat
if %install_gtk% == yes call msys_setup_gtk.bat
if %install_atk% == yes call msys_setup_atk.bat
if %install_cario% == yes call msys_setup_cairo.bat
if %install_pango% == yes call msys_setup_pango.bat
if %install_freetype% == yes call msys_setup_freetype.bat
if %install_fontconfig% == yes call msys_setup_fontconfig.bat
if %install_git% == yes call msys_setup_git.bat
if %install_msvcr90% == yes call msys_setup_msvcr90.bat
if %install_python% == yes call msys_setup_python.bat
if %install_zlib% == yes call msys_setup_zlib.bat
if %install_libpng% == yes call msys_setup_libpng.bat
if %install_nsinstall% == yes call msys_setup_nsinstall.bat
rem ===========================================================================
rem install compile scripts and patches
rem ===========================================================================
if %install_libvirt_scripts% NEQ yes goto skip_libvirt_scripts
call %tmp%\install_file.bat %base_dir%\utilslib.sh %msys_dir%\bin\utilslib.sh
call %tmp%\install_file.bat %base_dir%\compile_libiconv.sh %msys_dir%\bin\compile_libiconv.sh
call %tmp%\install_file.bat %base_dir%\compile_xhtml1-dtds.sh %msys_dir%\bin\compile_xhtml1-dtds.sh
call %tmp%\install_file.bat %base_dir%\compile_portablexdr.sh %msys_dir%\bin\compile_portablexdr.sh
call %tmp%\install_patch.bat portablexdr-4.9.1-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libxml2.sh %msys_dir%\bin\compile_libxml2.sh
call %tmp%\install_patch.bat libxml2-2.7.6-mingw.patch
call %tmp%\install_patch.bat libxml2-2.7.7-mingw.patch
call %tmp%\install_patch.bat libxml2-2.9.0-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_polarssl.sh %msys_dir%\bin\compile_polarssl.sh
call %tmp%\install_patch.bat polarssl-0.13.1-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_yassl.sh %msys_dir%\bin\compile_yassl.sh
call %tmp%\install_file.bat %base_dir%\compile_libnss.sh %msys_dir%\bin\compile_libnss.sh
call %tmp%\install_file.bat %base_dir%\compile_libcurl.sh %msys_dir%\bin\compile_libcurl.sh
call %tmp%\install_patch.bat curl-7.19.7-gnutls.patch
call %tmp%\install_patch.bat curl-7.21.1-gnutls.patch
call %tmp%\install_patch.bat curl-7.21.2-gnutls.patch
call %tmp%\install_patch.bat curl-7.21.7-gnutls.patch
call %tmp%\install_patch.bat curl-7.27.0-gnutls.patch
call %tmp%\install_file.bat %base_dir%\compile_libssh2.sh %msys_dir%\bin\compile_libssh2.sh
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.0.sh %msys_dir%\bin\compile_libvirt-0.8.0.sh
call %tmp%\install_patch.bat libvirt-0.8.0-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.1.sh %msys_dir%\bin\compile_libvirt-0.8.1.sh
call %tmp%\install_patch.bat libvirt-0.8.1-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.3.sh %msys_dir%\bin\compile_libvirt-0.8.3.sh
call %tmp%\install_patch.bat libvirt-0.8.3-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.4.sh %msys_dir%\bin\compile_libvirt-0.8.4.sh
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.5.sh %msys_dir%\bin\compile_libvirt-0.8.5.sh
call %tmp%\install_patch.bat libvirt-0.8.5-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.6.sh %msys_dir%\bin\compile_libvirt-0.8.6.sh
call %tmp%\install_patch.bat libvirt-0.8.6-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.7.sh %msys_dir%\bin\compile_libvirt-0.8.7.sh
call %tmp%\install_patch.bat libvirt-0.8.7-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.8.8.sh %msys_dir%\bin\compile_libvirt-0.8.8.sh
call %tmp%\install_patch.bat libvirt-0.8.8-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.0.sh %msys_dir%\bin\compile_libvirt-0.9.0.sh
call %tmp%\install_patch.bat libvirt-0.9.0-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.1.sh %msys_dir%\bin\compile_libvirt-0.9.1.sh
call %tmp%\install_patch.bat libvirt-0.9.1-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.2.sh %msys_dir%\bin\compile_libvirt-0.9.2.sh
call %tmp%\install_patch.bat libvirt-0.9.2-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.3.sh %msys_dir%\bin\compile_libvirt-0.9.3.sh
call %tmp%\install_patch.bat libvirt-0.9.3-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.4.sh %msys_dir%\bin\compile_libvirt-0.9.4.sh
call %tmp%\install_patch.bat libvirt-0.9.4-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.10.sh %msys_dir%\bin\compile_libvirt-0.9.10.sh
call %tmp%\install_patch.bat libvirt-0.9.10-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.9.11.sh %msys_dir%\bin\compile_libvirt-0.9.11.sh
call %tmp%\install_patch.bat libvirt-0.9.11-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-0.10.2.sh %msys_dir%\bin\compile_libvirt-0.10.2.sh
call %tmp%\install_patch.bat libvirt-0.10.2-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_libvirt-git-snapshot.sh %msys_dir%\bin\compile_libvirt-git-snapshot.sh
call %tmp%\install_patch.bat libvirt-git-snapshot-mingw.patch
call %tmp%\install_file.bat %base_dir%\gather_libvirt.sh %msys_dir%\bin\gather_libvirt.sh
call %tmp%\install_file.bat %base_dir%\rewriteimports.c %msys_dir%\src\rewriteimports.c
call %tmp%\install_file.bat %base_dir%\rewritepython.c %msys_dir%\src\rewritepython.c
call %tmp%\install_file.bat %base_dir%\download_libvirt-fedora.sh %msys_dir%\bin\download_libvirt-fedora.sh
:skip_libvirt_scripts
if %install_virtmanager_scripts% NEQ yes goto skip_virtmanager_scripts
call %tmp%\install_file.bat %base_dir%\compile_pycurl.sh %msys_dir%\bin\compile_pycurl.sh
call %tmp%\install_patch.bat pycurl-7.19.0-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_urlgrabber.sh %msys_dir%\bin\compile_urlgrabber.sh
call %tmp%\install_file.bat %base_dir%\compile_virt-install.sh %msys_dir%\bin\compile_virt-install.sh
call %tmp%\install_patch.bat virtinst-0.500.4-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_gtk-vnc.sh %msys_dir%\bin\compile_gtk-vnc.sh
call %tmp%\install_patch.bat gtk-vnc-0.4.2-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_virt-manager.sh %msys_dir%\bin\compile_virt-manager.sh
call %tmp%\install_patch.bat virt-manager-0.8.5-mingw.patch
:skip_virtmanager_scripts
call %tmp%\install_file.bat %base_dir%\compile_lua.sh %msys_dir%\bin\compile_lua.sh
call %tmp%\install_patch.bat lua-5.1.4-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_glib.sh %msys_dir%\bin\compile_glib.sh
call %tmp%\install_file.bat %base_dir%\compile_zlib.sh %msys_dir%\bin\compile_zlib.sh
call %tmp%\install_patch.bat zlib-1.2.5-mingw.patch
call %tmp%\install_file.bat %base_dir%\compile_cairo.sh %msys_dir%\bin\compile_cairo.sh
call %tmp%\install_file.bat %base_dir%\compile_pixman.sh %msys_dir%\bin\compile_pixman.sh
goto exit
:error
echo error
pause
:exit