Changeset 1295 for trunk


Ignore:
Timestamp:
Nov 23, 2008, 12:02:27 PM (17 years ago)
Author:
John Small
Message:

ReleaseTool/Edit: 1) Improved handling of missing or invalid trace option
parameter; 2) (ReleaseEdit) Ignore 'NOTREADY' condition on closing the
repository file.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseEdit.cmd

    r1294 r1295  
    4242 *       - Improved "usage" routine
    4343 *       - Suppressed output of 'del' commands
     44 *    23 Nov 08 JBS Improved handling of invalid or missing <trace-option>
     45 *       and a 'NOTREADY' condition when closing the repository.
    4446 *
    4547*/
    4648
    4749n = setlocal()
     50
     51/*
     52   sed_separator:
     53     - used only for SED edits of DEF file descriptions
     54     - MUST be a character not found in ANY DEF file description!
     55     - MUST be a character acceptable to SED as a separator
     56*/
     57sed_separator = '&'
     58
     59call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
     60call SysLoadFuncs
    4861
    4962parse arg args
     
    5770         if verify(translate(traceopt), '?ACEFILNOR') = 0 & length(traceopt) < 3 then
    5871            trace value traceopt
     72         else
     73            call Usage
     74      else
     75         do
     76            parse source . called_as .
     77            if called_as = 'COMMAND' then
     78               call Usage
     79            else
     80               nop /* traceopt = '' OK for ReleaseEdit because it is usually called from ReleaseTool? */
     81         end
    5982   end
     83else
     84   traceopt = ''
    6085
    6186signal on Error
     
    6893signal on novalue             /* for debugging */
    6994*/
    70 /*
    71    sed_separator:
    72      - used only for SED edits of DEF file descriptions
    73      - MUST be a character not found in ANY DEF file description!
    74      - MUST be a character acceptable to SED as a separator
    75 */
    76 sed_separator = '&'
    7795
    7896/* Change to proper directory */
     
    99117
    100118/* Prepare temporary file */
    101 call RxFuncAdd 'SysTempFilename', 'REXXUTIL', 'SysTempFilename'
    102119tmpfile = SysTempFilename('redittmp.???')
    103120'@copy' file tmpfile '1>nul 2>nul'
     
    147164         fixpack_ver    = GetFromRepository( 'fixpack_ver', '', 11 )
    148165         description    = GetFromRepository( 'desc.' || left(file, pos('.', file) - 1), '', 579 /* i.e. disable length check */ )
     166         signal off NOTREADY
    149167         call stream repository, 'c', 'close'
     168         signal on NOTREADY name Error
    150169
    151170         option_description = '@#' || vendor || ':' || revision || '#@##1## ' || ,
  • trunk/ReleaseTool.cmd

    r1294 r1295  
    3636 *       - Support for EDITOR env var
    3737 *       - Improved "usage" routine
     38 *    23 Nov 08 JBS Improved handling of invalid or missing <trace-option>
    3839 *
    3940*/
     
    6465         if verify(translate(traceopt), '?ACEFILNOR') = 0 & length(traceopt) < 3 then
    6566            trace value traceopt
     67         else
     68            call Usage
     69      else
     70         do
     71            parse source . called_as .
     72            if called_as = 'COMMAND' then
     73               call Usage
     74            else
     75               nop /* traceopt = '' OK for ReleaseEdit because it is usually called from ReleaseTool? */
     76         end
    6677   end
    6778else
Note: See TracChangeset for help on using the changeset viewer.