diff options
author | Vladimir Glazunov <vg@openoffice.org> | 2009-12-10 14:44:25 +0100 |
---|---|---|
committer | Vladimir Glazunov <vg@openoffice.org> | 2009-12-10 14:44:25 +0100 |
commit | 79a277daedbd034b1dfcf74fa9b9c1a2a93e3605 (patch) | |
tree | 6a0b1d2d074aef7161a80116c0161003412e1d98 /set_soenv.in | |
parent | d844e062d0717f8665c0b705a36dd40427635dfb (diff) | |
parent | e3d2c430f8637e7a39ce0f0d6f0f7e8652491fce (diff) |
CWS-TOOLING: integrate CWS ause106
Diffstat (limited to 'set_soenv.in')
-rw-r--r-- | set_soenv.in | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/set_soenv.in b/set_soenv.in index 16edc29334d0..e1655da4a928 100644 --- a/set_soenv.in +++ b/set_soenv.in @@ -646,7 +646,6 @@ elsif ( $platform =~ m/cygwin/ ) $PATH_SEPERATOR = ';'; $outfile = "winmingw.set"; $COM = "GCC"; - $COMPATH =~ s/\/bin$//i; $CVER = "C341"; $OUTPATH = "wntgcci"; $INPATH = $OUTPATH.$PROEXT; @@ -655,8 +654,6 @@ elsif ( $platform =~ m/cygwin/ ) else # The MSVC section starts here { $outfile = "winenv.set"; $COM = "MSC"; - # COMPATH for MSC is differently used - $COMPATH =~ s/\/bin$//i; $OUTPATH = "wntmsci@COMEX@"; $INPATH = $OUTPATH.$PROEXT; $COMEX = '@COMEX@'; @@ -979,12 +976,10 @@ if ( $platform =~ m/darwin/ ) $WORK_STAMP = "@SOURCEVERSION@"; # Location of the source. $SOLARSRC = '$SRC_ROOT'; - -# SOURCE_ROOT_DIR equals $SOLARSRC/.. -my @list1 = split( /\// , $SOLARSRC ); -pop @list1; -$SOURCE_ROOT_DIR = join ( '/' , @list1 ); - +# Location of the repository. +my @splitlist = split( /\//, $SRC_ROOT ); +pop @splitlist; +$SOURCE_ROOT_DIR = join("/", @splitlist); # $DEVROOT = '$SRC_ROOT'; # Set solenv and solver to given or default values. @@ -1323,9 +1318,7 @@ if ($platform =~ m/solaris/) $L.$LIB. $L.$USR_LIB; if ( $CC =~ "gcc" ) { - my $temp = $COMPATH; - $temp =~ s:/bin$::; - $SOLARLIB .= $L.$temp.$LIB; + $SOLARLIB .= $L.$COMPATH.$LIB; } $SOLARLIB .= $L.$USR_LOCAL.$LIB. $L.$USR_DT.$LIB. @@ -1394,9 +1387,8 @@ $SOLARINC .= '/SC5 '; } # Platform dependent include path at the top of this list of include paths if ($platform =~ m/solaris/) -{ my $temp; - $temp =~ s:$COMPATH:/bin\$:; - $SOLARINC .= $I.$temp.$ds."include"; +{ + $SOLARINC .= $I.$COMPATH.$ds."include"; } if ($platform =~ m/linux/) { |