[Libreoffice-commits] .: configure.in

Norbert Thiebaud nthiebaud at kemper.freedesktop.org
Sat Dec 31 08:40:22 PST 2011


 configure.in |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 9034973de5b7f62121a62c56757bf20e490de654
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date:   Sat Dec 31 10:39:55 2011 -0600

    fix PathFormat, use build_os not host_os

diff --git a/configure.in b/configure.in
index 1f8c5d0..ab10538 100644
--- a/configure.in
+++ b/configure.in
@@ -16,7 +16,7 @@ MINGW_EXTERNAL_DLLS=""
 PathFormat()
 {
     formatted_path="$1"
-    if test "$host_os" = "cygwin" ; then
+    if test "$build_os" = "cygwin" ; then
         pf_part1=
         pf_conv_to_dos=
         for pf_part in $formatted_path ; do
@@ -29,8 +29,8 @@ PathFormat()
         if test "$pf_conv_to_dos" = "yes" ; then
             formatted_path=`cygpath -d "$formatted_path"`
         fi
-        fp_count_colon=`cat "$formatted_path" | grep -c "[:]"`
-        fp_count_slash=`cat "$formatted_path" | grep -c "[/]"`
+        fp_count_colon=`echo "$formatted_path" | grep -c "[:]"`
+        fp_count_slash=`echo "$formatted_path" | grep -c "[/]"`
         if test "$fp_count_slash$fp_count_colon" != "00" ; then
             if test "$fp_count_colon" = "0" ; then
                 formatted_path=`realpath "$formatted_path"`


More information about the Libreoffice-commits mailing list