-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.txt
31 lines (24 loc) · 1.88 KB
/
build.txt
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
name:
giti
build:
&dev:WorksOfBarry
//Requied table for CRTSQLRPGI.. :(
runsql sql('CREATE TABLE QTEMP/GITLOG ( commit_id int generated always as identity not null, commit_hash char(7) not null, commit_auth char(64) not null, commit_date char(64) not null, commit_text char(128) not null )') COMMIT(*NONE)
CRTSRCPF FILE(&INTOLIB/Source) RCDLEN(112)
CPYFRMSTMF FROMSTMF('&DIR/Source/giti.cmd') TOMBR('/QSYS.lib/&INTOLIB.lib/Source.file/GITI.mbr') MBROPT(*ADD)
CPYFRMSTMF FROMSTMF('&DIR/Source/screen.dspf') TOMBR('/QSYS.lib/&INTOLIB.lib/Source.file/SCREEN.mbr') MBROPT(*ADD)
//Create display file
CRTDSPF FILE(&INTOLIB/SCREEN) SRCFILE(&INTOLIB/Source) SRCMBR(SCREEN) REPLACE(*YES)
//Create modules
CRTRPGMOD MODULE(&INTOLIB/PASECALL) SRCSTMF('&DIR/Source/pasecall.rpgle') REPLACE(*YES) OPTION(*EVENTF) DBGVIEW(*SOURCE)
CRTSQLRPGI OBJ(&INTOLIB/GITLOGPRSE) SRCSTMF('&DIR/Source/gitlogprse.sqlrpgle') COMMIT(*NONE) OBJTYPE(*MODULE) OPTION(*EVENTF) REPLACE(*YES) DBGVIEW(*SOURCE)
CRTSQLRPGI OBJ(&INTOLIB/GITBRANCH) SRCSTMF('&DIR/Source/gitbranch.sqlrpgle') COMMIT(*NONE) OBJTYPE(*MODULE) OPTION(*EVENTF) REPLACE(*YES) DBGVIEW(*SOURCE)
CRTSQLRPGI OBJ(&INTOLIB/GITSTATUS) SRCSTMF('&DIR/Source/gitstatus.sqlrpgle') COMMIT(*NONE) OBJTYPE(*MODULE) OPTION(*EVENTF) REPLACE(*YES) DBGVIEW(*SOURCE)
CRTSQLRPGI OBJ(&INTOLIB/MAIN) SRCSTMF('&DIR/Source/main.sqlrpgle') COMMIT(*NONE) OBJTYPE(*MODULE) OPTION(*EVENTF) REPLACE(*YES) DBGVIEW(*SOURCE)
//Create program
CRTPGM PGM(MAIN) MODULE(&INTOLIB/MAIN &INTOLIB/GITBRANCH &INTOLIB/GITLOGPRSE &INTOLIB/GITSTATUS &INTOLIB/PASECALL)
//Create command
CRTCMD CMD(&INTOLIB/GITI) PGM(&INTOLIB/MAIN) SRCFILE(&INTOLIB/Source) SRCMBR(GITI) REPLACE(*YES) TEXT('Launch giti application')
//Now we have to delete this so the giti runs correctly on first run
DLTOBJ OBJ(&INTOLIB/Source) OBJTYPE(*FILE)
DLTOBJ OBJ(QTEMP/GITLOG) OBJTYPE(*FILE)