-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.bat
More file actions
29 lines (24 loc) · 905 Bytes
/
build.bat
File metadata and controls
29 lines (24 loc) · 905 Bytes
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
::! Copyright (c) 2017 Denis Kuzmin <x-3F@outlook.com> github/3F
::! Copyright (c) hMSBuild contributors https://github.com/3F/hMSBuild/graphs/contributors
::! Licensed under the MIT License (MIT).
::! See accompanying License.txt file or visit https://github.com/3F/hMSBuild
@echo off
if not exist GetNuTool/..sln (
git submodule update --init GetNuTool || goto err
)
set "reltype=%~1" & if not defined reltype set reltype=Release
setlocal
cd GetNuTool & if [%~1]==[#] build #
call build Release || goto err
endlocal
call GetNuTool\packages\vsSolutionBuildEvent\cim.cmd ~x ~c %reltype% || goto err
setlocal enableDelayedExpansion
cd tests
call a initAppVersion Hms
call a execute "..\bin\Release\hMSBuild -h" & call a msgOrFailAt 1 "hMSBuild %appversionHms%" || goto err
call a printMsgAt 1 3F "Completed as a "
endlocal
exit /B 0
:err
echo Failed build>&2
exit /B 1