Changeset 1234


Ignore:
Timestamp:
Sep 16, 2008, 7:47:17 PM (17 years ago)
Author:
John Small
Message:

Ticket 282: Support wildcard masks in bld_fm2_dirs.txt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/warpin/ckfiles.cmd

    • Property svn:eol-style set to native
    • Property svn:keywords set to Id
    r962 r1234  
    1 /*      Check files to see if they have been updated */
     1/*
     2 *
     3 * $Id$
     4 *
     5 * Check files destined for the WPI file to see if they have been updated.
     6 * If so, appropriate lines are written to bld_wpi_dirs.in so that
     7 * these files can first be staged and then added to the WPI file.
     8 *
     9 */
    210
    311call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
     
    4957               if translate(word(line, 1)) = 'FILE:' then
    5058                  do
    51                      file  =  word(line, 2)
     59                     file_mask  =  word(line, 2)
    5260                     dir   =  word(line, 4)
    53                      file_date_time = GetDate( '..\' || dir || '\' || file )
    54                      if file_date_time > out_file_date_time then
    55                         do
    56                            if file_reset = 0 then
    57                               do
    58                                  file_reset = 1
    59                                  if stream(out_file, 'c', 'query exists') \= '' then
    60                                     '@del 'out_file
    61                                  call lineout out_file, '; Do not edit this file!'
    62                                  call lineout out_file, ';'
    63                                  call lineout out_file, '; Any desired edits should be done to BLD_FM2_WPIDIRS.TXT, instead.'
    64                                  call lineout out_file, ';'
    65                               end
    66                            call lineout out_file, line
    67                         end
     61                     call SysFileTree '..\' || dir || '\' || file_mask, 'filelist.', 'FO'
     62                     do f = 1 to filelist.0
     63                        file = filelist.f
     64                        file_date_time = GetDate( file )
     65                        if file_date_time > out_file_date_time then
     66                           do
     67                              if file_reset = 0 then
     68                                 do
     69                                    file_reset = 1
     70                                    if stream(out_file, 'c', 'query exists') \= '' then
     71                                       '@del 'out_file
     72                                    call lineout out_file, '; Do not edit this file!'
     73                                    call lineout out_file, ';'
     74                                    call lineout out_file, '; Any desired edits should be done to BLD_FM2_WPIDIRS.TXT, instead.'
     75                                    call lineout out_file, ';'
     76                                 end
     77                              call lineout out_file, 'FILE:' substr(file, lastpos('\', file) + 1) substr(line, wordindex(line, 3))
     78                           end
     79                     end
    6880                  end
    6981               else /* must be a NOFILESPACKAGE line */
Note: See TracChangeset for help on using the changeset viewer.