diff options
author | Jo Shields <jo.shields@xamarin.com> | 2016-02-23 18:01:42 +0300 |
---|---|---|
committer | Jo Shields <jo.shields@xamarin.com> | 2016-02-23 18:01:42 +0300 |
commit | 79f7cc4813f9d45df305460b2b60f945240dd8a7 (patch) | |
tree | cffc6e47cc770c07455ee579048b3b57914f72af | |
parent | ba2e5e42f342f2b64fedc3cee2ef925c57c4a325 (diff) |
[msvc] %PATH% is sometimes empty in Jenkins, so "powershell" doesn't runmono-4.3.2-branch-msvc
Try using a system-standard default variable which points to the required folder instead.
-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..184b2c0146e 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" +%PsModulePath%\..\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 |