Changeset 607


Ignore:
Timestamp:
Apr 19, 2007, 12:39:21 AM (19 years ago)
Author:
John Small
Message:
  • Changed to support improved WPI build process
  • Other minor code improvements
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/bld_fm2_wpi.cmd

    r602 r607  
    7171/* Add the files to the WPI   */
    7272   do
     73/*
    7374      if stream(WPI.archivename, 'c', 'query exists') \= '' then
    7475         if archive_previous_WPI == 1 then
     
    7677         else
    7778            'del 'WPI.archivename
     79*/
    7880      do p = 1 to WPI.pkg.0
    7981         call SysFileTree WPI.pkg.p.dir || '\*', 'pkgfilelist.', 'FOS'
     
    8688      end
    8789      if delete_files_afterwards = 1 then
    88          do pkgnum = 1 to WPI.pkg.0
    89             call EmptyDir WPI.pkg.pkgnum.dir
    90          end
    91    end
    92 
    93 /* Add the script file to the WPI   */
    94 /*
    95 'eautil 'WPI.scriptname' NUL /s'
    96 */
    97 WPI.WIC_pgm WPI.archivename' -s 'WPI.scriptname
    98 if rc \= 0 then
    99    call ErrorExit 4 rc
     90         call clean_wpidirs
     91   end
     92   do
     93      /* Add the script file to the WPI   */
     94      /*
     95      'eautil 'WPI.scriptname' NUL /s'
     96      */
     97      WPI.WIC_pgm WPI.archivename' -s 'WPI.scriptname
     98      if rc \= 0 then
     99         call ErrorExit 4 rc
     100   end
    100101
    101102/*
     
    139140   WPI.retval = 0
    140141   WPI.scriptonly = 0
    141 /*
    142    parse arg WPI.archivename WPI.scriptname .
    143    if WPI.archivename == '' then
    144       WPI.archivename = WPI.default_archivename
    145    if WPI.scriptname == '' then
    146       WPI.scriptname = left(WPI.archivename, length(WPI.archivename) - 3) || 'wis'
    147 */
    148142   WPI.archivename = WPI.default_archivename
    149143   WPI.scriptname = left(WPI.archivename, length(WPI.archivename) - 3) || 'wis'
     
    177171
    178172   ext_libpath = SysQueryExtLibpath('B')
    179    if pos( Warpin_pathentry, ';' || translate(SysQueryExtLibpath('B')) || ';' ) == 0 then
    180       call SysSetExtLibpath Warpin_pathentry || ';' || ext_libpath, 'B'
     173   if pos( Warpin_pathentry, ';' || translate(ext_libpath) || ';' ) == 0 then
     174      call SysSetExtLibpath Warpin_Path || ';' || ext_libpath, 'B'
    181175
    182176   parse source . . thispgm
     
    199193return
    200194*/
    201 
    202 Emptydir: procedure
    203    parse arg dir
    204    call SysFileTree dir'\*', 'dirs.', 'DO'
    205    do i = 1 to dirs.0
    206       call EmptyDir dirs.i
    207    end
    208    call SysFileTree dir'\*', 'files.', 'FO'
    209    do i = 1 to files.0
    210       '@attrib -r -s -h 'files.i' >NUL 2>NUL'
    211       '@del 'files.i' >NUL 2>NUL'
    212    end
    213    '@rd 'dir
    214 return
    215195
    216196novalue:
Note: See TracChangeset for help on using the changeset viewer.