Changeset 854


Ignore:
Timestamp:
Oct 10, 2007, 2:18:48 AM (18 years ago)
Author:
John Small
Message:

Changed the "find Warpin" code so that it will no longer mistakenly find
a WIC.EXE on the PATH which may not be Warpin's WIC.EXE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/bld_fm2_wpi.cmd

    r664 r854  
    55 *    John Small
    66 *    jsmall@os2world.net
     7 *
     8 * Hostory
     9 *    09 Oct 07 jbs: Changed the "find Warpin" code so that it will no longer
     10 *       mistakenly find a WIC.EXE on the PATH which may not be Warpin's
     11 *       WIC.EXE
    712 *
    813 * Requirements/assumptions
     
    153158      end
    154159   end
    155    WPI.WIC_pgm = 'WIC.EXE'
    156    WIC_filename = SysSearchPath( 'PATH', 'WIC.EXE' )
    157    if WIC_filename == '' then
    158       do
    159          parse value SysIni( , 'WarpIN', 'Path' ) with Warpin_Path '00'x .
    160          WPI.WIC_pgm = Warpin_Path || '\WIC.EXE'
    161          if stream( WPI.WIC_pgm, 'C', 'query exists') = '' then
    162             call ErrorExit 2
    163       end
    164    else
    165       Warpin_Path = left(WIC_filename, lastpos('\', WIC_filename) - 1)
    166 
     160   parse value SysIni( , 'WarpIN', 'Path' ) with Warpin_Path '00'x .
     161   WPI.WIC_pgm = Warpin_Path || '\WIC.EXE'
     162   if stream( WPI.WIC_pgm, 'C', 'query exists') = '' then
     163      call ErrorExit 2
    167164   Warpin_pathentry = ';' || translate(Warpin_path) || ';'
    168165
Note: See TracChangeset for help on using the changeset viewer.