Changeset 190 for trunk/tools


Ignore:
Timestamp:
Jul 17, 2017, 4:31:51 AM (8 years ago)
Author:
David Azarewicz
Message:

Added MSI support.

Location:
trunk/tools
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/AddToFile.cmd

    r179 r190  
    1111call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
    1212call SysLoadFuncs
    13 parse arg OutFile','String','Function','Parm1','Parm2','Parm3','Parm4;
     13parse arg OutFile','String','Function','Parm1','Parm2','Parm3','Parm4','Parm5;
    1414
    1515if (OutFile='') then do
     
    3333  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    3434  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';
    3636  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    3737  call 'AddToFile.cmd' MyCmd;
     
    9292    /* get fixpack from SVN version */
    9393    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);
    9495
    9596    parse var Parm2 major'.'minor'.'ProjVersion;
     
    100101    end
    101102
    102     NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||'::::'||ProjVersion||'::'||Parm4||'@@'||Parm3;
     103    NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||':'||Parm5||':::'||ProjVersion||'::'||Parm4||'@@'||Parm3;
    103104    if (Type='2') then do
    104105      /*OutStr=String||' "@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||'::::'||ProjVersion||'::'||Parm4||'@@'||Parm3||'"';*/
     
    134135  when (Function='DATEDAY') then do
    135136    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);
    136147    RepLoc=Pos('%A', String);
    137148    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.