Changeset 2645

Show
Ignore:
Timestamp:
04/26/08 14:47:24 (7 months ago)
Author:
maxr
Message:

ada: check directory separator at the end of GELA_INCLUDE_PATH environment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tendra/src/producers/ada/asis/asis-gela-library.adb

    r2530 r2645  
    6767 
    6868   function Gela_Lib_Path return String is 
     69      Separator : constant Character := '/'; 
     70      Path      : constant String := Env; 
    6971   begin 
    70       return Env; 
     72      if Path'Length > 0 and then Path (Path'Last) /= Separator then 
     73         return Path & Separator; 
     74      else 
     75         return Env; 
     76      end if; 
    7177   end Gela_Lib_Path; 
    7278