| 1 | @echo off |
| 2 | :: |
| 3 | :: The problem with /usr/bin/protoc is that it accepts colon separated (:) paths at its parameters. |
| 4 | :: This makes C:/ being parsed as 2 paths: C and /, which of course both fail. |
| 5 | :: To overcome this problem, we use bash_execute.sh, which replaces all occurences of C: with /c. |
| 6 | :: |
| 7 | set "batch_dir=%~dp0" |
| 8 | set "batch_dir=%batch_dir:\=/%" |
| 9 | C:\msys64\usr\bin\bash.exe %batch_dir%/bash_execute.sh protoc %* |