![]() If NOT EXIST " %WD%mintty.exe " goto startsh If "x %MSYSCON% " = "xdefterm " goto startsh If "x %MSYSCON% " = "xconemu " goto startconemu If "x %MSYSCON% " = "xmintty.exe " goto startmintty Rem Collect remaining command line arguments to be passed to shellįor /f "tokens= %msys2_shiftCounter%,* delims=, = " %%i in ( " !msys2_full_cmd! ") do set SHELL_ARGS = %%j ![]() If " %msys2_param% " = "x-no-start " shift & set /a msys2_shiftCounter +=1 & set MSYS2_NOSTART =yes & goto : checkparamsĮcho Shell not specified for -shell parameter. ) & shift & shift & set /a msys2_shiftCounter +=1 & goto : checkparams Rem (Note that this form of FOR IN loop uses same delimiters as parameters.)įor %%a in ( " !msys2_arg! ") do set /a msys2_shiftCounter += 1 Rem Increment msys2_shiftCounter by number of words in argument (as cmd.exe saw it). Set CHERE_INVOKING =enabled_from_arguments 1 >&2Įcho Cannot set specified working diretory " %~2 ". If " %msys2_param% " = "x-here " shift & set /a msys2_shiftCounter +=1 & set CHERE_INVOKING =enabled_from_arguments & goto : checkparamsĮcho Working directory is not specified for -where parameter. If " %msys2_param% " = "x-use-full-path " shift & set /a msys2_shiftCounter +=1 & set MSYS2_PATH_TYPE =inherit & goto : checkparams If " %msys2_param% " = "x-full-path " shift & set /a msys2_shiftCounter +=1 & set MSYS2_PATH_TYPE =inherit & goto : checkparams If " %msys2_param% " = "x-defterm " shift & set /a msys2_shiftCounter +=1 & set MSYSCON =defterm & goto : checkparams If " %msys2_param% " = "x-conemu " shift & set /a msys2_shiftCounter +=1 & set MSYSCON =conemu & goto : checkparams If " %msys2_param% " = "x-mintty " shift & set /a msys2_shiftCounter +=1 & set MSYSCON =mintty.exe & goto : checkparams If " %msys2_param% " = "x-mingw " shift & set /a msys2_shiftCounter +=1 & (if exist " %WD%.\.\mingw64 " (set MSYSTEM=MINGW64) else (set MSYSTEM=MINGW32)) & goto : checkparams If " %msys2_param% " = "x-mingw64 " shift & set /a msys2_shiftCounter +=1 & set MSYSTEM =MINGW64 & goto : checkparams If " %msys2_param% " = "x-mingw32 " shift & set /a msys2_shiftCounter +=1 & set MSYSTEM =MINGW32 & goto : checkparams ![]() If " %msys2_param% " = "x-msys2 " shift & set /a msys2_shiftCounter +=1 & set MSYSTEM =MSYS & goto : checkparams If " %msys2_param% " = "x-msys " shift & set /a msys2_shiftCounter +=1 & set MSYSTEM =MSYS & goto : checkparams ![]() Rem Remove double quotes to prevent syntax error when passing parameters with quotes to bash Rem To export full current PATH from environment into MSYS2 use '-use-full-path' parameter Rem set MSYS=error_start:%WD%././mingw64/bin/qtcreator.exe^ |-debug^ |^ Rem To activate windows native symlinks uncomment next line If NOT EXIST " %WD%msys-2.0.dll " set " WD = %~dp0usr\bin\ " ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |