@@ -46,6 +46,8 @@ set SRCDIR=%CD%
46
46
if " %BUILDDIR:~1 ,1 % " == " :" %BUILDDIR:~0 ,2 %
47
47
cd %BUILDDIR%
48
48
49
+ if exist repackage goto package
50
+
49
51
if not exist build.log goto build
50
52
51
53
REM
@@ -92,9 +94,9 @@ cmake -G "Visual Studio 9 2008" ^
92
94
-D WITH_GLOBE=TRUE ^
93
95
-D CMAKE_BUILD_TYPE=%BUILDCONF% ^
94
96
-D CMAKE_CONFIGURATION_TYPES=%BUILDCONF% ^
95
- -D GEOS_LIBRARY=%OSGEO4W_ROOT % /lib/geos_c_i.lib ^
96
- -D SQLITE3_LIBRARY=%OSGEO4W_ROOT % /lib/sqlite3_i.lib ^
97
- -D SPATIALITE_LIBRARY=%OSGEO4W_ROOT % /lib/spatialite_i.lib ^
97
+ -D GEOS_LIBRARY=%O4W_ROOT % /lib/geos_c_i.lib ^
98
+ -D SQLITE3_LIBRARY=%O4W_ROOT % /lib/sqlite3_i.lib ^
99
+ -D SPATIALITE_LIBRARY=%O4W_ROOT % /lib/spatialite_i.lib ^
98
100
-D PYTHON_EXECUTABLE=%O4W_ROOT% /bin/python.exe ^
99
101
-D PYTHON_INCLUDE_PATH=%O4W_ROOT% /apps/Python27/include ^
100
102
-D PYTHON_LIBRARY=%O4W_ROOT% /apps/Python27/libs/python27.lib ^
@@ -107,8 +109,6 @@ cmake -G "Visual Studio 9 2008" ^
107
109
-D QT_PNG_LIBRARY=%O4W_ROOT% /lib/libpng13.lib ^
108
110
-D QWT_INCLUDE_DIR=%O4W_ROOT% /include/qwt ^
109
111
-D QWT_LIBRARY=%O4W_ROOT% /lib/qwt5.lib ^
110
- -D ZLIB_INCLUDE_DIR=%O4W_ROOT% /include ^
111
- -D ZLIB_LIBRARY=%O4W_ROOT% /lib/zlib.lib ^
112
112
-D CMAKE_INSTALL_PREFIX=%O4W_ROOT% /apps/%PACKAGENAME% ^
113
113
-D CMAKE_CXX_FLAGS_RELWITHDEBINFO=" /MD /ZI /Od /D NDEBUG" ^
114
114
-D FCGI_INCLUDE_DIR=%O4W_ROOT% /include ^
@@ -124,58 +124,129 @@ if not errorlevel 1 goto error
124
124
125
125
echo ZERO_CHECK: %DATE% %TIME% >> %LOG% 2 >& 1
126
126
%DEVENV% qgis%VERSION% .sln /Project ZERO_CHECK /Build %BUILDCONF% /Out %LOG% >> %LOG% 2 >& 1
127
- if errorlevel 1 goto error
127
+ if errorlevel 1 goto error
128
128
129
129
echo ALL_BUILD: %DATE% %TIME% >> %LOG% 2 >& 1
130
130
%DEVENV% qgis%VERSION% .sln /Project ALL_BUILD /Build %BUILDCONF% /Out %LOG% >> %LOG% 2 >& 1
131
- if errorlevel 1 goto error
131
+ if errorlevel 1 goto error
132
132
133
133
echo INSTALL: %DATE% %TIME% >> %LOG% 2 >& 1
134
134
%DEVENV% qgis%VERSION% .sln /Project INSTALL /Build %BUILDCONF% /Out %LOG% >> %LOG% 2 >& 1
135
135
if errorlevel 1 goto error
136
136
137
+ :package
137
138
echo PACKAGE: %DATE% %TIME% >> %LOG% 2 >& 1
138
139
139
140
cd ..
140
- sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' postinstall.bat > %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% .bat
141
- sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' preremove.bat > %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% .bat
141
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' postinstall-common.bat > %OSGEO4W_ROOT% \etc\postinstall\\%PACKAGENAME% -common.bat
142
+
143
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' postinstall-desktop.bat > %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% .bat
144
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' preremove-desktop.bat > %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% .bat
142
145
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' qgis.bat.tmpl > %OSGEO4W_ROOT% \bin\%PACKAGENAME% .bat.tmpl
143
146
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' browser.bat.tmpl > %OSGEO4W_ROOT% \bin\%PACKAGENAME% -browser.bat.tmpl
144
147
sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' qgis.reg.tmpl > %OSGEO4W_ROOT% \apps\%PACKAGENAME% \bin\qgis.reg.tmpl
145
148
149
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' postinstall-server.bat > %OSGEO4W_ROOT% \etc\postinstall\%PACKAGENAME% -server.bat
150
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' preremove-server.bat > %OSGEO4W_ROOT% \etc\preremove\%PACKAGENAME% -server.bat
151
+ sed -e 's/@ package@ /%PACKAGENAME% /g' -e 's/@ version@ /%VERSION% /g' -e 's/@ grassversion@ /%GRASS_VERSION% /g' httpd.conf.tmpl > %OSGEO4W_ROOT% \httpd.d\httpd_%PACKAGENAME% .conf.tmpl
152
+
146
153
REM sed -e 's/%OSGEO4W_ROOT:\=\\\\\\\\%/@osgeo4w@/' %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py > %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py.tmpl
147
154
REM if errorlevel 1 goto error
148
155
149
156
REM del %OSGEO4W_ROOT%\apps\%PACKAGENAME%\python\qgis\qgisconfig.py
150
157
151
158
touch exclude
152
159
160
+ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -common-%VERSION% -%PACKAGE% .tar.bz2 ^
161
+ --exclude-from exclude ^
162
+ --exclude " *.pyc" ^
163
+ " apps/%PACKAGENAME% /bin/Microsoft.VC90.CRT.manifest" ^
164
+ " apps/%PACKAGENAME% /bin/msvcm90.dll" ^
165
+ " apps/%PACKAGENAME% /bin/msvcp90.dll" ^
166
+ " apps/%PACKAGENAME% /bin/msvcr90.dll" ^
167
+ " apps/%PACKAGENAME% /bin/qgispython.dll" ^
168
+ " apps/%PACKAGENAME% /bin/qgis_analysis.dll" ^
169
+ " apps/%PACKAGENAME% /bin/qgis_networkanalysis.dll" ^
170
+ " apps/%PACKAGENAME% /bin/qgis_core.dll" ^
171
+ " apps/%PACKAGENAME% /bin/qgis_gui.dll" ^
172
+ " apps/%PACKAGENAME% /doc/" ^
173
+ " apps/%PACKAGENAME% /plugins/delimitedtextprovider.dll" ^
174
+ " apps/%PACKAGENAME% /plugins/diagramoverlay.dll" ^
175
+ " apps/%PACKAGENAME% /plugins/gdalprovider.dll" ^
176
+ " apps/%PACKAGENAME% /plugins/gpxprovider.dll" ^
177
+ " apps/%PACKAGENAME% /plugins/memoryprovider.dll" ^
178
+ " apps/%PACKAGENAME% /plugins/ogrprovider.dll" ^
179
+ " apps/%PACKAGENAME% /plugins/osmprovider.dll" ^
180
+ " apps/%PACKAGENAME% /plugins/postgresprovider.dll" ^
181
+ " apps/%PACKAGENAME% /plugins/spatialiteprovider.dll" ^
182
+ " apps/%PACKAGENAME% /plugins/sqlanywhereprovider.dll" ^
183
+ " apps/%PACKAGENAME% /plugins/qgissqlanyconnection.dll" ^
184
+ " apps/%PACKAGENAME% /plugins/wfsprovider.dll" ^
185
+ " apps/%PACKAGENAME% /plugins/wmsprovider.dll" ^
186
+ " apps/%PACKAGENAME% /plugins/mssqlprovider.dll" ^
187
+ " apps/%PACKAGENAME% /resources/qgis.db" ^
188
+ " apps/%PACKAGENAME% /resources/spatialite.db" ^
189
+ " apps/%PACKAGENAME% /resources/srs.db" ^
190
+ " apps/%PACKAGENAME% /resources/symbology-ng-style.xml" ^
191
+ " apps/%PACKAGENAME% /svg/" ^
192
+ " apps/%PACKAGENAME% /crssync.exe" ^
193
+ " etc/postinstall/%PACKAGENAME% -common.bat" ^
194
+ >> %LOG% 2 >& 1
195
+ if errorlevel 1 goto error
196
+
197
+ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -server-%VERSION% -%PACKAGE% .tar.bz2 ^
198
+ --exclude-from exclude ^
199
+ --exclude " *.pyc" ^
200
+ " apps/%PACKAGENAME% /bin/qgis_mapserv.fcgi.exe" ^
201
+ " apps/%PACKAGENAME% /bin/admin.sld" ^
202
+ " apps/%PACKAGENAME% /bin/wms_metadata.xml" ^
203
+ " httpd.d/httpd_%PACKAGENAME% .conf.tmpl" ^
204
+ " etc/postinstall/%PACKAGENAME% -server.bat" ^
205
+ " etc/preremove/%PACKAGENAME% -server.bat" ^
206
+ >> %LOG% 2 >& 1
207
+ if errorlevel 1 goto error
208
+
153
209
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -%VERSION% -%PACKAGE% .tar.bz2 ^
154
210
--exclude-from exclude ^
155
211
--exclude " *.pyc" ^
156
- --exclude " apps/%PACKAGENAME% /themes/classic/grass" ^
157
- --exclude " apps/%PACKAGENAME% /themes/default/grass" ^
158
- --exclude " apps/%PACKAGENAME% /themes/gis/grass" ^
159
- --exclude " apps/%PACKAGENAME% /grass" ^
160
- --exclude " apps/%PACKAGENAME% /bin/qgisgrass.dll" ^
161
- --exclude " apps/%PACKAGENAME% /plugins/grassrasterprovider.dll" ^
162
- --exclude " apps/%PACKAGENAME% /plugins/grassplugin.dll" ^
163
- --exclude " apps/%PACKAGENAME% /plugins/grassprovider.dll" ^
164
- --exclude " apps/%PACKAGENAME% /plugins/globeplugin.dll" ^
165
- apps/%PACKAGENAME% ^
166
- bin/%PACKAGENAME% .bat.tmpl ^
167
- bin/%PACKAGENAME% -browser.bat.tmpl ^
168
- etc/postinstall/%PACKAGENAME% .bat ^
169
- etc/preremove/%PACKAGENAME% .bat ^
212
+ " apps/%PACKAGENAME% /bin/qbrowser.exe" ^
213
+ " apps/%PACKAGENAME% /bin/qgis.exe" ^
214
+ " apps/%PACKAGENAME% /bin/qgis.reg.tmpl" ^
215
+ " apps/%PACKAGENAME% /i18n/" ^
216
+ " apps/%PACKAGENAME% /icons/" ^
217
+ " apps/%PACKAGENAME% /images/" ^
218
+ " apps/%PACKAGENAME% /plugins/coordinatecaptureplugin.dll" ^
219
+ " apps/%PACKAGENAME% /plugins/delimitedtextplugin.dll" ^
220
+ " apps/%PACKAGENAME% /plugins/dxf2shpconverterplugin.dll" ^
221
+ " apps/%PACKAGENAME% /plugins/evis.dll" ^
222
+ " apps/%PACKAGENAME% /plugins/georefplugin.dll" ^
223
+ " apps/%PACKAGENAME% /plugins/gpsimporterplugin.dll" ^
224
+ " apps/%PACKAGENAME% /plugins/interpolationplugin.dll" ^
225
+ " apps/%PACKAGENAME% /plugins/offlineeditingplugin.dll" ^
226
+ " apps/%PACKAGENAME% /plugins/oracleplugin.dll" ^
227
+ " apps/%PACKAGENAME% /plugins/rasterterrainplugin.dll" ^
228
+ " apps/%PACKAGENAME% /plugins/roadgraphplugin.dll" ^
229
+ " apps/%PACKAGENAME% /plugins/spatialqueryplugin.dll" ^
230
+ " apps/%PACKAGENAME% /plugins/spitplugin.dll" ^
231
+ " apps/%PACKAGENAME% /plugins/sqlanywhereplugin.dll" ^
232
+ " apps/%PACKAGENAME% /plugins/zonalstatisticsplugin.dll" ^
233
+ " apps/%PACKAGENAME% /plugins/heatmapplugin.dll" ^
234
+ " apps/%PACKAGENAME% /qgis_help.exe" ^
235
+ " apps/%PACKAGENAME% /python/" ^
236
+ " apps/%PACKAGENAME% /resources/context_help/" ^
237
+ " apps/%PACKAGENAME% /resources/function_help/" ^
238
+ " apps/%PACKAGENAME% /resources/customization.xml" ^
239
+ " apps/%PACKAGENAME% /resources/qgis_help.db" ^
240
+ " bin/%PACKAGENAME% .bat.tmpl" ^
241
+ " bin/%PACKAGENAME% -browser.bat.tmpl" ^
242
+ " etc/postinstall/%PACKAGENAME% .bat" ^
243
+ " etc/preremove/%PACKAGENAME% .bat" ^
170
244
>> %LOG% 2 >& 1
171
245
if errorlevel 1 goto error
172
246
173
247
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -grass-plugin-%VERSION% -%PACKAGE% .tar.bz2 ^
174
248
--exclude-from exclude ^
175
249
--exclude " *.pyc" ^
176
- " apps/%PACKAGENAME% /themes/classic/grass" ^
177
- " apps/%PACKAGENAME% /themes/default/grass" ^
178
- " apps/%PACKAGENAME% /themes/gis/grass" ^
179
250
" apps/%PACKAGENAME% /grass" ^
180
251
" apps/%PACKAGENAME% /bin/qgisgrass.dll" ^
181
252
" apps/%PACKAGENAME% /plugins/grassrasterprovider.dll" ^
@@ -185,18 +256,33 @@ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME%-grass-plugin-%VERSION%-%PACKAGE%.tar.bz
185
256
if errorlevel 1 goto error
186
257
187
258
tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -globe-plugin-%VERSION% -%PACKAGE% .tar.bz2 ^
259
+ --exclude-from exclude ^
260
+ --exclude " *.pyc" ^
188
261
" apps/%PACKAGENAME% /globe" ^
189
262
" apps/%PACKAGENAME% /plugins/globeplugin.dll" ^
190
263
>> %LOG% 2 >& 1
191
264
if errorlevel 1 goto error
192
265
266
+ tar -C %OSGEO4W_ROOT% -cjf %PACKAGENAME% -devel-%VERSION% -%PACKAGE% .tar.bz2 ^
267
+ --exclude-from exclude ^
268
+ --exclude " *.pyc" ^
269
+ " apps/%PACKAGENAME% /FindQGIS.cmake" ^
270
+ " apps/%PACKAGENAME% /include/" ^
271
+ " apps/%PACKAGENAME% /lib/" ^
272
+ >> %LOG% 2 >& 1
273
+ if errorlevel 1 goto error
274
+
193
275
goto end
194
276
195
277
:error
196
278
echo BUILD ERROR %ERRORLEVEL% : %DATE% %TIME%
197
279
echo BUILD ERROR %ERRORLEVEL% : %DATE% %TIME% >> %LOG% 2 >& 1
280
+ if exist %PACKAGENAME% -common-%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -common-%VERSION% -%PACKAGE% .tar.bz2
198
281
if exist %PACKAGENAME% -%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -%VERSION% -%PACKAGE% .tar.bz2
282
+ if exist %PACKAGENAME% -server-%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -server-%VERSION% -%PACKAGE% .tar.bz2
283
+ if exist %PACKAGENAME% -devel-%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -devel-%VERSION% -%PACKAGE% .tar.bz2
199
284
if exist %PACKAGENAME% -grass-plugin-%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -grass-plugin-%VERSION% -%PACKAGE% .tar.bz2
285
+ if exist %PACKAGENAME% -globe-plugin-%VERSION% -%PACKAGE% .tar.bz2 del %PACKAGENAME% -globe-plugin-%VERSION% -%PACKAGE% .tar.bz2
200
286
201
287
:end
202
288
echo FINISHED: %DATE% %TIME% >> %LOG% 2 >& 1
0 commit comments