-
Notifications
You must be signed in to change notification settings - Fork 1
/
grass_packager_master.bat
80 lines (62 loc) · 1.49 KB
/
grass_packager_master.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@echo off
set HOME=C:\Users\landamar\grass_packager
cd %HOME%
REM
echo Clean-up...
REM
REM call :cleanUp
REM
echo Compiling GRASS GIS...
REM
REM C:\msys64\usr\bin\bash.exe .\grass_compile.sh 85
pause
REM
echo Clean-up for packaging...
REM
call:cleanUpPkg
REM
echo Preparing packages...
REM
call:preparePkg
REM
echo Finding latest package and update info...
REM
C:\msys64\usr\bin\bash.exe .\grass_osgeo4w.sh 85
C:\msys64\usr\bin\bash.exe .\grass_rev_info.sh 85
REM
echo Creating standalone installer...
REM
call:createPkg
pause
REM
REM Create md5sum files
REM
REM C:\msys32\usr\bin\bash.exe .\grass_md5sum.sh 32 73
C:\msys64\usr\bin\bash.exe .\grass_md5sum.sh 85
REM
echo Building addons...
REM
REM C:\msys32\usr\bin\bash.exe .\grass_addons.sh 32
REM C:\msys64\usr\bin\bash.exe .\grass_addons.sh 64 85
pause
REM
echo Publishing packages...
REM
REM C:\msys32\usr\bin\bash.exe .\grass_copy_wwwroot.sh 32
REM C:\msys64\usr\bin\bash.exe .\grass_copy_wwwroot.sh 64
exit /b %ERRORLEVEL%
:cleanUp
REM for /d %%G in ("C:\OSGeo4W%~1\apps\grass\grass7*") do rmdir /S/Q "%%G"
exit /b 0
:cleanUpPkg
if exist .\grass81 rmdir /S/Q .\grass85
xcopy C:\msys64\usr\src\grass85\mswindows\* .\grass81 /S/V/I > NUL
exit /b 0
:preparePkg
cd .\grass85
call .\GRASS-Packager.bat > .\GRASS-Packager.log
cd ..
exit /b 0
:createPkg
C:\DevTools\makensis.exe .\grass85\GRASS-Installer.nsi > .\grass85\GRASS-Installer.log
exit /b 0