diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-02-23 19:03:11 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2016-02-23 19:03:11 +0300 |
commit | 22cc7b350e13473429e08060f5f573fed7525dd8 (patch) | |
tree | 76cd0ef594ba433fe3a631cf1ac386ece39d63ad /msvc/winsetup.bat | |
parent | 087088f3fab87f42c69f8d196be7763981077f6c (diff) |
[msvc] %PATH% is sometimes empty in Jenkins, so "powershell" doesn't run
Try using a system-standard default variable which points to the required folder instead.
Diffstat (limited to 'msvc/winsetup.bat')
-rwxr-xr-x | msvc/winsetup.bat | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msvc/winsetup.bat b/msvc/winsetup.bat index 336778204f2..73f2a1b5cfa 100755 --- a/msvc/winsetup.bat +++ b/msvc/winsetup.bat @@ -4,7 +4,7 @@ if exist config.h if not exist cygconfig.h copy config.h cygconfig.h if exist eglib\config.h if not exist eglib\cygconfig.h copy eglib\config.h eglib\cygconfig.h copy winconfig.h config.h copy eglib\winconfig.h eglib\config.h -powershell -Command "(Get-Content config.h) -replace '#MONO_VERSION#', (Select-String -path configure.ac -pattern 'AC_INIT\(mono, \[(.*)\]').Matches[0].Groups[1].Value | Set-Content config.h" +%windir%\system32\WindowsPowerShell\v1.0\powershell.exe -Command "(Get-Content config.h) -replace '#MONO_VERSION#', (Select-String -path configure.ac -pattern 'AC_INIT\(mono, \[(.*)\]').Matches[0].Groups[1].Value | Set-Content config.h" goto end :error echo fatal error: the VSDepenancies directory was not found in the "mono" directory |