Changeset 2774 for trunk/tools


Ignore:
Timestamp:
Feb 14, 2000, 3:31:35 PM (26 years ago)
Author:
bird
Message:

msvcrt directory contains tree dlls.
wnetap32 fix is now here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/APIImport.cmd

    r2757 r2774  
    1 /* $Id: APIImport.cmd,v 1.1 2000-02-11 14:21:19 bird Exp $
     1/* $Id: APIImport.cmd,v 1.2 2000-02-14 14:31:35 bird Exp $
    22 *
    33 * Helper script which invokes APIImport.exe with the correct .def file.
     
    1111
    1212    sDllName = filespec('name', directory());
    13     call MakeTempDeffile sDllName, 'APIImport.def';
    1413
    1514    parse source sD1 sD2 sSrc;
    1615
    1716    sSrc = filespec('drive', sSrc) || filespec('path', sSrc);
    18     sSrc||'APIImport.exe APIImport.def';
    19 
     17    sAPIImport= sSrc||'APIImport.exe';
     18    if (sDllName = 'msvcrt') then
     19    do
     20        call MakeTempDeffile sDllName, 'APIImport.def';
     21        sAPIImport || ' APIImport.def';
     22        call MakeTempDeffile sDllName||'20', 'APIImport20.def';
     23        sAPIImport || ' APIImport20.def';
     24        call MakeTempDeffile sDllName||'40', 'APIImport40.def';
     25        sAPIImport || ' APIImport40.def';
     26    end
     27    else
     28    do
     29        if (translate(sDllName) = 'WNETAP32') then
     30            sDllName = 'netapi32';
     31        call MakeTempDeffile sDllName, 'APIImport.def';
     32        sAPIImport || ' APIImport.def';
     33    end
    2034    exit(rc);
    2135
     
    3044    do
    3145        rc = SysFileTree('*.def', 'asFiles', 'FO');
    32         if rc == 0 then
     46        if rc = 0 then
    3347        do
    3448            do i = 1 to asFiles.0
Note: See TracChangeset for help on using the changeset viewer.