Changeset 602


Ignore:
Timestamp:
Apr 4, 2007, 12:11:10 PM (19 years ago)
Author:
John Small
Message:
  • Coded a workaround to the problem of 4OS2 reporting a false error

on a 'if exist ...' command

  • Changed the code so that it now uses BEGINLIBPATH instead of ENDLIBPATH

when it sets up command line access to WIC.EXE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/bld_fm2_wpi.cmd

    r596 r602  
    7171/* Add the files to the WPI   */
    7272   do
    73       if archive_previous_WPI == 1 then
    74          'if exist 'WPI.archivename' ren 'WPI.archivename WPI.archivename || '.' || time('S')
    75       else
    76          'if exist 'WPI.archivename' del 'WPI.archivename
     73      if stream(WPI.archivename, 'c', 'query exists') \= '' then
     74         if archive_previous_WPI == 1 then
     75            'ren 'WPI.archivename WPI.archivename || '.' || time('S')
     76         else
     77            'del 'WPI.archivename
    7778      do p = 1 to WPI.pkg.0
    7879         call SysFileTree WPI.pkg.p.dir || '\*', 'pkgfilelist.', 'FOS'
     
    177178   ext_libpath = SysQueryExtLibpath('B')
    178179   if pos( Warpin_pathentry, ';' || translate(SysQueryExtLibpath('B')) || ';' ) == 0 then
    179       do
    180          ext_libpath = SysQueryExtLibpath('E')
    181          if pos( Warpin_pathentry, ';' || translate(SysQueryExtLibpath('E')) || ';' ) == 0 then
    182             call SysSetExtLibpath Warpin_pathentry || ';' || ext_libpath, 'E'
    183       end
     180      call SysSetExtLibpath Warpin_pathentry || ';' || ext_libpath, 'B'
    184181
    185182   parse source . . thispgm
Note: See TracChangeset for help on using the changeset viewer.