forked from keymanapp/lexical-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.cmd
24 lines (24 loc) · 834 Bytes
/
build.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
rem
rem If we call Git Bash directly then we keep the same console
rem which gives us feedback in CI builds. Note Teamcity agent
rem running on 32-bit Java requires programw6432 env var to
rem find git reliably...
rem
setlocal
set bash_shell=
if exist "%programfiles%\git\usr\bin\bash.exe" (
echo Found bash in "%programfiles%\git\usr\bin\bash.exe"
set bash_shell="%programfiles%\git\usr\bin\bash.exe" --login
) else (
if exist "%programfiles(x86)%\git\usr\bin\bash.exe" (
echo Found bash in "%programfiles(x86)%\git\usr\bin\bash.exe"
set bash_shell="%programfiles(x86)%\git\usr\bin\bash.exe" --login
) else (
if exist "%programw6432%\git\usr\bin\bash.exe" set bash_shell="%programw6432%\git\usr\bin\bash.exe" --login
)
)
echo.
echo Using bash shell command: %bash_shell%
echo.
%bash_shell% .\build.sh