diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-01 18:17:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-01 18:20:09 +0100 |
commit | bd1cba5158ec900bd9df9a651d1080d85ba7c50d (patch) | |
tree | dd61e919541ebb79f6e505d5b97eb5bd39feaf02 /odk | |
parent | 736b040cb158308e002d24cee8c33e794b2f59a1 (diff) |
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
Diffstat (limited to 'odk')
-rw-r--r-- | odk/config/cfgWin.js | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/odk/config/cfgWin.js b/odk/config/cfgWin.js index c6148eb57d10..5157ebac48f1 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" + |