We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 711ec1d commit 6ac262fCopy full SHA for 6ac262f
ms-windows/osgeo4w/configonly.bat
@@ -24,4 +24,23 @@ if "%ARCH%"=="x86" (
24
25
set CONFIGONLY=1
26
27
-package-nightly.cmd 3.1.0 99 qgis-test %ARCH%
+setlocal enabledelayedexpansion
28
+
29
+for /f "tokens=*" %%L in (..\..\CMakeLists.txt) do (
30
+ set L=%%L
31
+ set V=!L:SET(CPACK_PACKAGE_VERSION_=!
32
+ if not !V!==!L! (
33
+ set V=!V:"=!
34
+ set V=!V:^)=!
35
+ set _major=!V:MAJOR =!
36
+ set _minor=!V:MINOR =!
37
+ set _patch=!V:PATCH =!
38
+ if not !_major!==!V! set MAJOR=!_major!
39
+ if not !_minor!==!V! set MINOR=!_minor!
40
+ if not !_patch!==!V! set PATCH=!_patch!
41
+ )
42
+)
43
44
+package-nightly.cmd %MAJOR%.%MINOR%.%PATCH% 99 qgis-test %ARCH%
45
46
+endlocal
0 commit comments