You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by yd...@apache.org on 2014/09/09 17:35:43 UTC
svn commit: r1623850 -
/openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm
Author: ydario
Date: Tue Sep 9 15:35:43 2014
New Revision: 1623850
URL: http://svn.apache.org/r1623850
Log:
#i118923# OS/2 port, use forward slashes for paths in installer scripts.
Modified:
openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm
Modified: openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm?rev=1623850&r1=1623849&r2=1623850&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm (original)
+++ openoffice/trunk/main/solenv/bin/modules/pre2par/parameter.pm Tue Sep 9 15:35:43 2014
@@ -152,6 +152,15 @@ sub make_path_absolute
}
}
+ if ( $pre2par::globals::isos2 )
+ {
+ if (!($$pathref =~ /^\s*\w\:/)) # this is a relative os2 path
+ {
+ $$pathref = cwd() . $pre2par::globals::separator . $$pathref;
+ $$pathref =~ s/\\/\//g;
+ }
+ }
+
$$pathref =~ s/\Q$pre2par::globals::separator\E\s*$//; # removing ending slashes
}