-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_rel.bat
More file actions
52 lines (40 loc) · 1.65 KB
/
build_rel.bat
File metadata and controls
52 lines (40 loc) · 1.65 KB
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
@ECHO OFF
CD %~dp0
CALL "group\clean.bat"
ECHO:
ECHO * Build WINS Release...
ECHO ===============================================================================
CALL "group\build_wins.bat" rel
IF ERRORLEVEL 1 PAUSE & EXIT /B 1
ECHO:
START "" \EPOC32\Release\WINS\Rel\INFORM6.EXE
ECHO ===============================================================================
ECHO * Build MARM Release...
ECHO ===============================================================================
ECHO * Compile inform6.exe...
ECHO -------------------------------------------------------------------------------
CALL "group\build_marm.bat" rel
IF ERRORLEVEL 1 PAUSE & EXIT /B 1
ECHO * Copy PunyInform Library...
COPY /Y "PunyInform\lib\*.h" "release\lib"
COPY /Y "PunyInform\releasenotes.txt" "release\lib\releasenotes.txt"
COPY /Y "PunyInform\LICENSE" "release\licences\puny-licence.txt"
COPY /Y "PunyInform\*.inf" "release\howto"
REM # (the test-bench will never run in the RAM limits of a Psion)
DEL /F /Q "release\howto\testbench.inf" >NUL 2>NUL
COPY /Y "PunyInform\howto\*.inf" "release\howto"
COPY /Y "PunyInform\documentation\PunyInformQuickRef_*.md" ^
"release\QuickRef.txt"
ECHO:
ECHO * Make release bundle...
SET "BIN_ZIP=bin\7zip\7za.exe"
PUSHD "release"
REM # copy over the compiled executable into the release folder
COPY /Y "\EPOC32\Release\MARM\Rel\INFORM6.EXE" /B "inform6.exe" /B >NUL
REM # remove the old release ZIP file
DEL /F /Q "inform6*.zip" >NUL 2>NUL
..\%BIN_ZIP% a "inform636-epoc32-puny34.zip" ^
-bso0 -bsp1 -bse0 -tzip -r -mx9 -mfb258 -mpass15 ^
-x!Desktop.ini -x!Thumbs.db -x!.* -- *
IF ERRORLEVEL 1 PAUSE
POPD