Changeset 679 for GPL/trunk/tools


Ignore:
Timestamp:
Mar 18, 2021, 8:57:36 PM (5 years ago)
Author:
David Azarewicz
Message:

Merge changes from Paul's uniaud32next branch.

Location:
GPL/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/tools/AddToFile.cmd

    r608 r679  
    33 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net
    44 *
    5  * @#D Azarewicz:1.03#@##1## 02 Mar 2020              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2020
     5 * @#D Azarewicz:1.04#@##1## 02 Jan 2021              DAZAR1    ::::::@@AddToFile.cmd (c) David Azarewicz 2021
    66 * V1.01 16-Sep-2016 First official release
    77 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1
    88 * V1.03 02-Mar-2020 Added STRING function
     9 * V1.04 02-Jan-2021 Added FILESIZE function
    910 *
    1011 * The following line is for the help sample code for the VAR function:
     
    3031  Say '  STRING - Adds the string with %Y substitution.';
    3132  Say '  VAR - Adds the value of the specified variable from a specified file.';
     33  Say '  FILESIZE - Adds the file size.';
    3234  Say '  FILE - Adds the contents of a file.';
    3335  Say 'Examples:';
     
    6870  call 'AddToFile.cmd' MyCmd;
    6971  MyCmd=MyFile||',#define XYZ "%A",VAR,EXAMPLEVAR=,AddToFile.cmd';
     72  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
     73  call 'AddToFile.cmd' MyCmd;
     74  MyCmd=MyFile||',#define FSIZE,FILESIZE,addtofile.cmd';
    7075  rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd);
    7176  call 'AddToFile.cmd' MyCmd;
     
    9297
    9398  when (LEFT(Function,8)='BLDLEVEL') then do
     99    /*  option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd';
     100     *  String            ,Function,Parm1 ,Parm2,Parm3      ,Parm4  ,Parm5
     101     */
    94102    Type=SUBSTR(Function,9,1);
    95103
     
    111119    end
    112120
     121    /*           Vendor     TextVersion        Date/Time/Host    ASD            Revision         Fixpack      Desc */
    113122    NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||':'||Parm5||':::'||ProjVersion||'::'||Parm4||'@@'||Parm3;
    114123    if (Type='2') then do
     
    209218    end;
    210219    rc=stream(String,'c','close');
     220    rc=lineout(OutFile);
     221  end
     222
     223  when (Function="FILESIZE") then do
     224    NewStr=stream(Parm1,'c','query size');
     225    RepLoc=Pos('%A', String);
     226    if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2);
     227    else OutStr=String||' '||NewStr;
     228    rc=lineout(OutFile, OutStr);
    211229    rc=lineout(OutFile);
    212230  end
  • GPL/trunk/tools/header.mif

    r598 r679  
    1717!endif
    1818WATCOM=$(%WATCOM)
    19 
    20 #Always build KEE version
    21 KEE = 1
    2219
    2320!if "$(DEBUG)" == "1"
     
    4441.SUFFIXES: .lst .obj .lib .cpp .cpp16 .c .c16 .asm .def
    4542
     43CPPFLAGS = -xd
     44ASFLAGS  = -Mb -Li -Sv:M510
     45CFLAGS   = -bt=os2v2 -5r -omlinear -s -wx -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei
     46CFLAGS16 = $(CFLAGS) -mc -zu -zc
     47CFLAGS  += -mf
     48
    4649!if "$(DEBUG)" == "1"
    47 CFLAGS = -dDEBUG -bt=os2v2 -hc -5r -omlinear -s -wx -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei
    48 CPPFLAGS= -xd
    49 ASFLAGS = -D:DEBUG -Mb -Li -Sv:M510
    50 !else
    51 CFLAGS = -bt=os2v2 -5r -omlinear -s -wx -ze -zdp -zl -zq -nt=CODE32 -zff -zgf -ei
    52 CPPFLAGS= -xd
    53 ASFLAGS = -Mb -Li -Sv:M510
     50CFLAGS  += -dDEBUG -hc
     51ASFLAGS += -D:DEBUG
    5452!endif
    5553
     
    5856!else
    5957CFLAGS += -zp4
    60 !endif
    61 
    62 !if $(KEE) == 1
    63 CFLAGS16 = $(CFLAGS) -mc -zu -zc
    64 CFLAGS += -mf -DKEE -DFLATSTACK
    65 ASFLAGS += -D:KEE -D:FLATSTACK
    66 !else
    67 CFLAGS16 = $(CFLAGS) -mc -zu -zc
    68 CFLAGS += -mf -DFLATSTACK
    69 ASFLAGS += -D:FLATSTACK
    7058!endif
    7159
     
    9179LINK = wlink $(LFLAGS)
    9280!else
    93 LD2TARGETFLAGS =/PDD /OLDcpp /map /linenumbers
     81LD2TARGETFLAGS = /PDD /nologo /noe /packcode /packdata /nod /OLDcpp
    9482!if "$(DEBUG)" == "1"
    95 LD2FLAGS = /nologo /noe /map /packcode /packdata /nod /debug $(LD2TARGETFLAGS)
     83LD2FLAGS = /linenumbers /debug $(LD2TARGETFLAGS)
    9684!else
    97 LD2FLAGS = /nologo /noe /map /packcode /packdata /exepack:2 /nod $(LD2TARGETFLAGS)
     85LD2FLAGS = /exepack:2 $(LD2TARGETFLAGS)
    9886!endif
    9987LINK = ilink $(LD2FLAGS)
  • GPL/trunk/tools/mkversion.cmd

    r587 r679  
    88
    99/* I don't this will ever change from Netlabs */
    10 projVendor    = EnvVar_Get_If('VENDOR', 'Netlabs');
     10projVendor    = EnvVar_Get_If('VENDOR', 'Netlabs <www.netlabs.org>');
    1111projProduct   = "OS/2 Universal Audio 32 Driver";
    12 projVendorNam = "Netlabs <www.netlabs.org>";
    13 projAdapter   = "OS/2 Universal Audio";
    1412
    1513/* uniaud.inc is located in the base gpl directory and
     
    6967parse value versionIn with major'.'minor'.'projVersion
    7068
    71 if fixpack="" then
    72   projVers = versionIn;
    73 else
    74   projVers = versionIn||'-'||fixpack;
    75 
    7669projVers2 = major||minor||projVersion;
    7770
     
    9386  say 'alsalevel='||alsalevel;
    9487  say 'ProjVersion='||ProjVersion;
    95   say 'projVers='||projVers;
    9688  say 'projVers2='||projVers2;
    9789  say 'Fixpack='||Fixpack;
     
    109101    call lineout versMak, '#       Generated by mkversion.cmd, do NOT edit !'
    110102    call lineout versMak, '#'
    111     call lineout versMak, 'BLDLVL_VENDOR = '||projVendor;
     103    call lineout versMak, 'BLDLVL_VENDOR = '||Translate(projVendor,,'><');
    112104    call lineout versMak, 'BLDLVL_VERSION = '||versionIn;
    113105    call lineout versMak, 'BLDLVL_FIXPACK = '||Fixpack;
     
    140132    call lineout versHdr, '#define VENDOR_NAME             "'||projVendor||'"';
    141133    call lineout versHdr, '#define PRODUCT_TIMESTAMP       '||projDate2||'       // YYYYMMDD';
    142     call lineout versHdr, '#define UNIAUD_VERSION          "'||projVers||'"';
     134    call lineout versHdr, '#define UNIAUD_VERSION          "'||versionIn||'"';
    143135    call lineout versHdr, '#define ALSA_VERSION            "'||alsalevel||'"';
    144136    call lineout versHdr, ' '
    145137    call lineout versHdr, ' '
    146138    call lineout versHdr, '#define RM_VERSION              '||projVers2;
     139    call lineout versHdr, '#define RM_VMAJOR               '||format(major);
     140    call lineout versHdr, '#define RM_VMINOR               '||format(minor);
    147141    call lineout versHdr, '#define RM_DRIVER_NAME          "UNIAUD32.SYS"';
    148142    call lineout versHdr, '#define RM_DRIVER_DESCRIPTION   "'||projProduct||'"';
    149     call lineout versHdr, '#define RM_ADAPTER_NAME         "'||projAdapter||'"';
    150     call lineout versHdr, '#define RM_DRIVER_VENDORNAME    "'||projVendorNam||'"';
     143    call lineout versHdr, '#define RM_DRIVER_VENDORNAME    "'||projVendor||'"';
    151144    call lineout versHdr, '#define RM_DRIVER_BUILDYEAR     (PRODUCT_TIMESTAMP / 10000)';
    152145    call lineout versHdr, '#define RM_DRIVER_BUILDMONTH    ((PRODUCT_TIMESTAMP / 100) % 100)';
Note: See TracChangeset for help on using the changeset viewer.