[Libreoffice-commits] core.git: odk/config

Stephan Bergmann sbergman at redhat.com
Mon Dec 1 09:20:50 PST 2014


 odk/config/cfgWin.js |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

New commits:
commit bd1cba5158ec900bd9df9a651d1080d85ba7c50d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Dec 1 18:17:37 2014 +0100

    Some Windows Command Prompt don't like if ... ( set PATH=... )
    
    ...it appears.  At least with Version 6.3.9600 on Windows 8.1, it results in
    spurious
    
      \Windows was unexpected at this time.
    
    past the first such construct.  Go figure.
    
    Change-Id: I21cdb4edce0e7b22f26ac8b2f8b884f18490879b

diff --git a/odk/config/cfgWin.js b/odk/config/cfgWin.js
index c6148eb..5157eba 100644
--- a/odk/config/cfgWin.js
+++ b/odk/config/cfgWin.js
@@ -973,11 +973,8 @@ function writeBatFile(fdir, file)
         "set PATH=%OO_SDK_HOME%\\bin;%OO_SDK_URE_BIN_DIR%;%OO_SDK_OFFICE_BIN_DIR%;%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +
         "\n" +
         "REM Set PATH appropriate to the output directory\n" +
-        "if defined OO_SDK_OUT (\n" +
-        "   set PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\n" +
-        " ) else (\n" +
-        "   set PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +
-        " )\n" +
+        "if defined OO_SDK_OUT set PATH=%OO_SDK_OUT%\\WINexample.out\\bin;%PATH%\n" +
+        "if not defined OO_SDK_OUT set PATH=%OO_SDK_HOME%\\WINexample.out\\bin;%PATH%\n" +
         "\n" +
         "REM Add directory of the command make to the path, if necessary.\n" +
         "if defined OO_SDK_MAKE_HOME set PATH=%OO_SDK_MAKE_HOME%;%PATH%\n" +
@@ -995,10 +992,8 @@ function writeBatFile(fdir, file)
         "if defined OO_SDK_CPP_HOME set PATH=%OO_SDK_CPP_HOME%;%PATH%\n" +
         "\n" +
         "REM Add directory of the Win SDK to the path, if necessary.\n" +
-        "if defined CPP_WINDOWS_SDK (\n" +
-		"   set PATH=%CPP_WINDOWS_SDK%\\bin;%PATH%\n" +
-		"   set INCLUDE=%CPP_WINDOWS_SDK%\\Include;%INCLUDE%\n" +
-        ")\n" +
+        "if defined CPP_WINDOWS_SDK set PATH=%CPP_WINDOWS_SDK%\\bin;%PATH%\n" +
+        "if defined CPP_WINDOWS_SDK set INCLUDE=%CPP_WINDOWS_SDK%\\Include;%INCLUDE%\n" +
         "REM Add directory of the C# and VB.NET compilers to the path, if necessary.\n" +
         "if defined OO_SDK_CLI_HOME set PATH=%OO_SDK_CLI_HOME%;%PATH%\n" +
         "\n" +


More information about the Libreoffice-commits mailing list