-
Notifications
You must be signed in to change notification settings - Fork 1
/
grass_packager.bat
77 lines (62 loc) · 1.52 KB
/
grass_packager.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
@echo off
set HOME=C:\Users\landamar\grass_packager
cd %HOME%
REM
echo Clean-up...
REM
call :cleanUp
REM
echo Compiling GRASS GIS...
REM
C:\msys64\usr\bin\bash.exe .\grass_compile.sh
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
C:\msys64\usr\bin\bash.exe .\grass_rev_info.sh
REM
echo Creating standalone installer...
REM
call:createPkg
REM
echo Create md5sum files
REM
C:\msys64\usr\bin\bash.exe .\grass_md5sum.sh
REM
echo Building addons...
REM
C:\msys64\usr\bin\bash.exe .\grass_addons.sh
REM
echo Publishing packages...
REM
C:\msys64\usr\bin\bash.exe .\grass_copy_scp.sh
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 .\grass84 rmdir /S/Q .\grass84
xcopy C:\msys64\usr\src\grass84\mswindows\* .\grass84 /S/V/I > NUL
if exist .\grass85 rmdir /S/Q .\grass85
xcopy C:\msys64\usr\src\grass85\mswindows\* .\grass85 /S/V/I > NUL
exit /b 0
:preparePkg
cd .\grass84
call .\GRASS-Packager.bat > .\GRASS-Packager.log
cd ..
cd .\grass85
call .\GRASS-Packager.bat > .\GRASS-Packager.log
cd ..
exit /b 0
:createPkg
C:\DevTools\makensis.exe .\grass84\GRASS-Installer.nsi > .\grass84\GRASS-Installer.log
C:\DevTools\makensis.exe .\grass85\GRASS-Installer.nsi > .\grass85\GRASS-Installer.log
exit /b 0