FS-11513: [Build-System] Fix Windows versioning.

This commit is contained in:
Andrey Volk committed 2019-07-16 22:23:38 +04:00
1 parent abec4deaa1
commit 89c2dc04a0
3 files changed
+19 -6

No files matched your search

+2 -1
View File
@@ -5,5 +5,6 @@ FOR /f "delims=" %%i in ('FIND /N "AC_INIT" ..\..\configure.ac') DO SET version_
FOR /f "tokens=2 delims=," %%a in ("%version_contained_string%") DO SET dirty_version=%%a
SET almost_clean_version=%dirty_version:[=%
SET version_with_spaces=%almost_clean_version:]=%
SET full_version=%version_with_spaces: =%
SET version_with_dash=%version_with_spaces: =%
FOR /f "tokens=1 delims=-" %%a in ("%version_with_dash%") DO SET full_version=%%a
echo %full_version%