Changeset 190 for trunk/tools
- Timestamp:
- Jul 17, 2017, 4:31:51 AM (8 years ago)
- Location:
- trunk/tools
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/AddToFile.cmd
r179 r190 11 11 call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs' 12 12 call SysLoadFuncs 13 parse arg OutFile','String','Function','Parm1','Parm2','Parm3','Parm4 ;13 parse arg OutFile','String','Function','Parm1','Parm2','Parm3','Parm4','Parm5; 14 14 15 15 if (OutFile='') then do … … 33 33 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 34 34 call 'AddToFile.cmd' MyCmd; 35 MyCmd=MyFile||',option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack ';35 MyCmd=MyFile||',option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd'; 36 36 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 37 37 call 'AddToFile.cmd' MyCmd; … … 92 92 /* get fixpack from SVN version */ 93 93 if (Parm4='SVN') then Parm4='SVN'||SvnVersion(); 94 if (Parm2='DATE') then Parm2=SUBSTR(DATE('S'), 1, 4)||'.'||SUBSTR(DATE('S'), 5, 2)||'.'||SUBSTR(DATE('S'), 7, 2); 94 95 95 96 parse var Parm2 major'.'minor'.'ProjVersion; … … 100 101 end 101 102 102 NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||': :::'||ProjVersion||'::'||Parm4||'@@'||Parm3;103 NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||':'||Parm5||':::'||ProjVersion||'::'||Parm4||'@@'||Parm3; 103 104 if (Type='2') then do 104 105 /*OutStr=String||' "@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||'::::'||ProjVersion||'::'||Parm4||'@@'||Parm3||'"';*/ … … 134 135 when (Function='DATEDAY') then do 135 136 NewStr=FORMAT(SUBSTR(DATE('S'), 7, 2)); 137 RepLoc=Pos('%A', String); 138 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2); 139 else OutStr=String||' '||NewStr; 140 rc=lineout(OutFile, OutStr); 141 rc=lineout(OutFile); 142 end 143 144 when (Function='DATE1') then do 145 parse value Date('N') with MyDay MyMonth MyYear; 146 NewStr=MyYear||'-'||MyMonth||'-'||Right(MyDay, 2, 0); 136 147 RepLoc=Pos('%A', String); 137 148 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2);
Note:
See TracChangeset
for help on using the changeset viewer.