kvm-guest-drivers-windows

Форк
0
102 строки · 4.1 Кб
1
REM -----------------------------------------------------------------------
2
REM  Copyright (c) 2010-2017 Red Hat, Inc.
3
REM
4
REM  Author(s):
5
REM   Miki Mishael <mikim@daynix.com>
6
REM
7
REM  Redistribution and use in source and binary forms, with or without
8
REM  modification, are permitted provided that the following conditions
9
REM  are met :
10
REM  1. Redistributions of source code must retain the above copyright
11
REM     notice, this list of conditions and the following disclaimer.
12
REM  2. Redistributions in binary form must reproduce the above copyright
13
REM     notice, this list of conditions and the following disclaimer in the
14
REM     documentation and / or other materials provided with the distribution.
15
REM  3. Neither the names of the copyright holders nor the names of their contributors
16
REM     may be used to endorse or promote products derived from this software
17
REM     without specific prior written permission.
18
REM  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND
19
REM  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
REM  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
REM  ARE DISCLAIMED.IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE
22
REM  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
REM  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREM ENT OF SUBSTITUTE GOODS
24
REM  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25
REM  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26
REM  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27
REM  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28
REM  SUCH DAMAGE.
29
REM -----------------------------------------------------------------------
30
@echo off
31
cls
32
cls
33
Echo.
34
Echo          ***********************************************
35
Echo          *     Running SDV...  Don't close!             *
36
Echo          ***********************************************
37
:START
38

39
SETLOCAL
40
REM Set NATIVE ENV for running SDV Tool.
41
set vsVer=11
42
set arc=x86
43
call %~dp0Tools\SetVsEnv.bat %vsVer% %arc%
44
if %ERRORLEVEL% NEQ 0 goto Error3
45

46
SET ROOT_PATH=%1
47
SET PROJECT_XML_PATH=%2
48
SET PROJECT_DIR_PATH=%3
49
SET PROJECT_NAME=%4
50
title "DO Not Close!-Running SDV on %PROJECT_NAME% (ALL Configurations)"
51

52
if "%_NT_TARGET_VERSION%"=="" set _NT_TARGET_VERSION=0x602
53
if "%_BUILD_MAJOR_VERSION_%"=="" set _BUILD_MAJOR_VERSION_=101
54
if "%_BUILD_MINOR_VERSION_%"=="" set _BUILD_MINOR_VERSION_=58000
55
if "%_RHEL_RELEASE_VERSION_%"=="" set _RHEL_RELEASE_VERSION_=61
56

57
set /a _NT_TARGET_MAJ="(%_NT_TARGET_VERSION% >> 8) * 10 + (%_NT_TARGET_VERSION% & 255)"
58
set STAMPINF_VERSION=%_NT_TARGET_MAJ%.%_RHEL_RELEASE_VERSION_%.%_BUILD_MAJOR_VERSION_%.%_BUILD_MINOR_VERSION_%
59

60
cscript.exe %ROOT_PATH%\Tools\RunSdv.js  %ROOT_PATH% %PROJECT_XML_PATH% %PROJECT_DIR_PATH% %PROJECT_NAME% //Nologo
61
if %ERRORLEVEL% EQU 0 goto End
62
if %ERRORLEVEL% EQU 1 goto Error1
63
if %ERRORLEVEL% EQU 2 goto Error2
64

65
:Error2
66
Echo.
67
Echo       *********************************************************************
68
Echo       * Fatal Error Running SDV on %PROJECT_NAME%, Try Again, Good Bye... *
69
Echo       *********************************************************************
70
Echo.
71
ENDLOCAL
72
EXIT /B 1
73

74
REM Error in specific Configurations and platform
75
:Error1
76
Echo.
77
Echo       *********************************************************************
78
Echo       *  Error Running With Configurations and platform on %PROJECT_NAME% *
79
Echo       *********************************************************************
80
Echo.
81
ENDLOCAL
82
EXIT /B 1
83

84
:Error3
85
Echo.
86
Echo       *********************************************************************
87
Echo       *        Error Couldn't find VS installation                        *
88
Echo       *********************************************************************
89
Echo.
90
ENDLOCAL
91
EXIT /B 1
92

93
:End
94
Echo.
95
Echo       **********************************************************
96
Echo       *  Successful Running SDV on this project %PROJECT_NAME% *
97
Echo       **********************************************************
98
Echo.
99
Ping -n 3 127.0.0.1 > NUL
100
:FIN
101
ENDLOCAL
102
EXIT /B 0
103

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.