[Libreoffice-commits] .: solenv/bin

Tor Lillqvist tml at kemper.freedesktop.org
Wed Mar 30 04:03:28 PDT 2011


 solenv/bin/striplanguagetags.sh |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 8efad18a67c6442926516ca33da7df2c45b8ca76
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Wed Mar 30 13:59:20 2011 +0300

    Don't pass a Cygwin path no a non-Cygwin program

diff --git a/solenv/bin/striplanguagetags.sh b/solenv/bin/striplanguagetags.sh
index 46d88e0..9216a09 100755
--- a/solenv/bin/striplanguagetags.sh
+++ b/solenv/bin/striplanguagetags.sh
@@ -7,7 +7,13 @@
 #All a bit hacky, but it should work
 
 tempfoo=`basename $0`
+
 XSL=`mktemp /tmp/${tempfoo}.XXXXXX`
+
+# On Windows, xsltproc is a non-Cygwin program, so we can't pass
+# a Cygwin /tmp path to it
+[ "$COM" == MSC ] && XSL=`cygpath -m -s $XSL`
+
 if [ $? -ne 0 ]; then
     echo "$0: Can't create temp file, exiting..."
     exit 1


More information about the Libreoffice-commits mailing list