Changeset 1735


Ignore:
Timestamp:
Feb 21, 2014, 4:53:01 PM (12 years ago)
Author:
John Small
Message:

Ticket #462: Fixed/improved handling of enronment variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ReleaseTool.cmd

    r1725 r1735  
    274274               do /* Ensure the edits build */
    275275                  say
    276                   'set WARNALL=1'
     276                  myWarnall = SetEnv('WARNALL', '1')
    277277                  call ExecCmd 'wmake -a all | tee warnall.log |' cmd.pager
    278                   'set WARNALL='
     278                  call SetEnv 'WARNALL', myWarnall
    279279                  call ExecCmd 'diff.exe -rub warnall.base warnall.log > warnall.diff'
    280280                  call ExecCmd cmd.editor 'warnall.diff'
     
    304304            when user_choice = mainmenu.Build_all_for_release_num then
    305305               do /* Build for the release */
    306                   'set WARNALL='
    307                   'set FORTIFY='
    308                   'set DEBUG='
    309                   call ExecCmd 'wmake -a all | tee build.log'
     306                  myWarnall = SetEnv('WARNALL', '')
     307                  myFortify = SetEnv('FORTIFY', '')
     308                  myDebug   = SetEnv('DEBUG', '')
     309
     310                  call ExecCmd 'wmake -a all  | tee build.log'
     311
     312                  call SetEnv 'WARNALL', myWarnall
     313                  call SetEnv 'FORTIFY', myFortify
     314                  call SetEnv 'DEBUG', myDebug
    310315                  prev_user_choice = user_choice
    311316               end
     
    329334            when user_choice = mainmenu.LXLITE_build_num then
    330335               do /* Lxlite */
    331                   'wmake lxlite | tee lxlite.log'
     336                  myDebug = SetEnv('DEBUG', '')
     337
     338                  'wmake -a lxlite | tee lxlite.log'
     339
     340                  call SetEnv 'DEBUG', myDebug
    332341                  prev_user_choice = user_choice
    333342               end
     
    347356            when user_choice = mainmenu.Build_WPI_file_num then
    348357               do /* Build distro */
     358                  myWarnall = SetEnv('WARNALL', '')
     359                  myFortify = SetEnv('FORTIFY', '')
     360                  myDebug   = SetEnv('DEBUG', '')
     361
    349362                  call ExecCmd 'wmake dist | tee dist.log'
     363
     364                  call SetEnv 'WARNALL', myWarnall
     365                  call SetEnv 'FORTIFY', myFortify
     366                  call SetEnv 'DEBUG', myDebug
    350367                  prev_user_choice = user_choice
    351368               end
     
    24622479return
    24632480
     2481GetEnv: procedure expose (globals)
     2482   parse arg varname
     2483return value(varname,, 'OS2ENVIRONMENT')
     2484
     2485SetEnv: procedure expose (globals)
     2486   parse arg varname, varvalue
     2487   oldvarvalue = GetEnv(varname)
     2488   call value varname, varvalue, 'OS2ENVIRONMENT'
     2489return oldvarvalue
     2490
    24642491/* JBS: Disabled internal CFG code:
    24652492Configuration: procedure expose (globals)
Note: See TracChangeset for help on using the changeset viewer.