forked from qgis/QGIS
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfigonly.bat
46 lines (40 loc) · 1.7 KB
/
configonly.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@echo off
REM ***************************************************************************
REM configonly.cmd
REM ---------------------
REM begin : June 2018
REM copyright : (C) 2018 by Juergen E. Fischer
REM email : jef at norbit dot de
REM ***************************************************************************
REM * *
REM * This program is free software; you can redistribute it and/or modify *
REM * it under the terms of the GNU General Public License as published by *
REM * the Free Software Foundation; either version 2 of the License, or *
REM * (at your option) any later version. *
REM * *
REM ***************************************************************************
set ARCH=%1
if "%ARCH%"=="x86" (
set CMAKEGEN=Visual Studio 14 2015
) else (
set CMAKEGEN=Visual Studio 14 2015 Win64
set ARCH=x86_64
)
set CONFIGONLY=1
setlocal enabledelayedexpansion
for /f "tokens=*" %%L in (..\..\CMakeLists.txt) do (
set L=%%L
set V=!L:SET(CPACK_PACKAGE_VERSION_=!
if not !V!==!L! (
set V=!V:"=!
set V=!V:^)=!
set _major=!V:MAJOR =!
set _minor=!V:MINOR =!
set _patch=!V:PATCH =!
if not !_major!==!V! set MAJOR=!_major!
if not !_minor!==!V! set MINOR=!_minor!
if not !_patch!==!V! set PATCH=!_patch!
)
)
package-nightly.cmd %MAJOR%.%MINOR%.%PATCH% 99 qgis-test %ARCH%
endlocal