Changeset 1091

Show
Ignore:
Timestamp:
07/21/08 06:26:37 (7 weeks ago)
Author:
jbs
Message:

Ticket 114: Added code to set an initial value for the new user-definable
string of environment variables.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cfgmgr.cmd

    r622 r1091  
    4848if cfg.userabort = 1 then 
    4949   signal NormalExit 
     50 
     51if cfg.operation = 'INSTALL' then 
     52   call UpdateFM2Ini 
    5053 
    5154cfg.action_taken = 0 
     
    532535return retval 
    533536 
     537UpdateFM2Ini: procedure expose (globals) 
     538   parse source . . thispgm 
     539   thisdir = left(thispgm, lastpos('\', thispgm)) 
     540   inifile = thisdir || 'fm3.ini' 
     541   EnvVarList = strip(SysIni(inifile, 'FM/3', 'TreeEnvVarList')) 
     542   if EnvVarList = '' | EnvVarList = 'ERROR:' then 
     543      call SysIni inifile, 'FM/3', 'TreeEnvVarList', 'PATH;DPATH;LIBPATH;HELP;BOOKSHELF;LIB;INCLUDE;LOCPATH;SMINCLUDE;LPATH;CODELPATH' 
     544return 
     545