diff --git a/src/fdr2csv/build.cmd b/src/fdr2csv/build.cmd index 45f6c3c8d5e..b28124bdbb8 100644 --- a/src/fdr2csv/build.cmd +++ b/src/fdr2csv/build.cmd @@ -12,8 +12,11 @@ cmake -B build :: build cmake --build build --config Release +:: get current sha +for /f %%i in ('git rev-parse --short HEAD') do set GIT_SHA=%%i + :: copy result -copy build\Release\fdr2csv.exe . +copy build\Release\fdr2csv.exe fdr2csv_%GIT_SHA%.exe :: restore directory popd