Changeset 1539


Ignore:
Timestamp:
May 31, 2010, 5:47:04 PM (15 years ago)
Author:
John Small
Message:

ReleaseTool: Add support for PAGER env. variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1534 r1539  
    4141 *    29 May 10 GKY Use TEE to generate log files for the build options
    4242 *       - Use DIFF to compare changes in WARNALL builds
     43 *    31 May 10 JBS Add support of use of PAGER env. variable to the the pager used.
    4344 *
    4445*/
     
    185186            'wmake -a all | tee warnall.log |' pager
    186187            'diff -rub warnall.base warnall.log > warnall.diff'
    187             editor 'warnall.diff' 
    188             'set WARNALL=' 
     188            editor 'warnall.diff'
     189            'set WARNALL='
    189190            prev_action = action
    190191         end
     
    419420   version_filelist = version_filelist 'dll\copyright.h'
    420421
    421    if SysSearchPath( 'PATH', 'less.exe') \= '' then
    422       pager = 'less'
    423    else
    424       pager = 'more'
     422   pager = value('PAGER',,'OS2ENVIRONMENT')
     423   if pager = '' then
     424      if SysSearchPath( 'PATH', 'less.exe') \= '' then
     425         pager = 'less'
     426      else
     427         pager = 'more'
    425428   prev_action = 'N/A'
    426429return
Note: See TracChangeset for help on using the changeset viewer.