Fixing driver script for FSharp suite to properly handle paths with spaces (changeset 1234889)

--- tests/fsharp/single-test-run.bat
+++ tests/fsharp/single-test-run.bat
@@ -14,15 +14,14 @@
   goto :ERROR
 )

-REM NOTE: There is an expectation here that the full path to FSC, FSi and other tools be given.
-REM This is reasonable for testing, because you want to know exactly which binary you are running.
-REM Ideally we would use 'where' here, but WinXP does not support that.
-REM Trying do define my own WHERE
-
-call :WHERE %FSC%
-if errorlevel 1 goto :ERROR
-call :WHERE %FSI%
-if errorlevel 1 goto :ERROR
+if not exist "%FSC%" (
+  set ERRORMSG=%ERRORMSG% fsc.exe not found at the location "%FSC%"
+  goto :ERROR
+)
+if not exist "%FSI%" (
+  set ERRORMSG=%ERRORMSG% fsi.exe not found at the location "%FSI%"
+  goto :ERROR
+)

 set sources=
 if exist testlib.fsi (set sources=%sources% testlib.fsi)
@@ -315,10 +314,4 @@
     )
   )
 )
-goto :EOF
-
-:WHERE
-for /f %%i in ("%~1") do set _WHERE=%%~$PATH:i
-if not defined _WHERE set ERRORMSG=%ERRORMSG% %~1 not found;
-set _WHERE > NUL 2>&1
-goto :EOF
+goto :EOF


Update bld.bat

Update bld.bat

--- conda/python-scons/bld.bat
+++ conda/python-scons/bld.bat
@@ -1,8 +1,8 @@
-"%PYTHON%" setup.py install --standard-lib
+python bootstrap.py build\scons
 if errorlevel 1 exit 1
-
-:: Add more build steps here, if they are necessary.
-
-:: See
-:: http://docs.continuum.io/conda/build.html
-:: for a list of environment variables that are set during the build process.
+cd build\scons
+if errorlevel 1 exit 1
+python setup.py install --standard-lib
+if errorlevel 1 exit 1
+:: "%PYTHON%" setup.py install --standard-lib
+:: if errorlevel 1 exit 1


Update version to v1.0.4

Update version to v1.0.4

--- nuget/publish.cmd
+++ nuget/publish.cmd
@@ -1,3 +1,2 @@
-nuget pack
-
-nuget push FSharp.Data.1.0.2.nupkg+nuget pack
+nuget push FSharp.Data.1.0.4.nupkg


more fixups to build R64

more fixups to build R64

--- src/cpp/tools/install-r-devel.cmd
+++ src/cpp/tools/install-r-devel.cmd
@@ -1,29 +1,38 @@
-REM This script installs R-devel from source on Windows.
-REM Update the variables up here as new versions of R are released;
-REM we attempt to build from tarballs.
+REM This script installs R-devel from SVN trunk on Windows.
 REM
 REM This script assumes you have 'wget' on your path, as it
 REM is used to download. You can find a binary here:
 REM
 REM     https://eternallybored.org/misc/wget/wget64.exe
 REM
-REM Ensure that this is run from a command prompt with administrator
-REM privileges! Otherwise, files can be created _without_ read permissions
-REM and all manner of weird failures can and will happen.
+REM We use SVN to checkout R trunk from SVN.
+REM If you need a Windows SVN client, you can download SlikSVN here:
 REM
-REM If you find that the build is failing for strange reason, ensure that
-REM everyone has access to the source tree with
+REM     https://sliksvn.com/download/
 REM
-REM     icacls "." /grant Everyone:(F) /T
+REM Be sure to place the installed binary directory on your PATH.
 REM
-REM to just indiscriminately give everyone full access to the folder.
+REM If you modify the configuration below, be sure to use
+REM a directory _within the %USERPROFILE%; ie, your user
+REM directory; otherwise you will almost certainly run into
+REM very bizarre permission issues on build.

 REM ---------------------------------
 REM - BEGIN CONFIGURATION VARIABLES -
 REM ---------------------------------

+REM Set to 32 for a 32bit build.
+REM TODO Build both in one go.
+SET "WIN=64"
+
 IF NOT DEFINED WGET (
-	SET "WGET=wget"
+	where /q wget && (
+		SET "WGET=wget"
+	) || (
+		where /q wget && (
+			SET "WGET=wget64"
+		)
+	)
 )

 IF NOT DEFINED SVN (
@@ -31,7 +40,7 @@
 )

 IF NOT DEFINED ROOT_DIR (
-	SET "ROOT_DIR=C:\R-src"
+	SET "ROOT_DIR=%USERPROFILE%\R-src"
 )

 if NOT DEFINED RTOOLS_DIR (
@@ -43,35 +52,37 @@
 )

 IF NOT DEFINED TMPDIR (
-	SET "TMPDIR=C:\tmp"
+	SET "TMPDIR=%USERPROFILE%\tmp"
 )

 REM -------------------------------
 REM - END CONFIGURATION VARIABLES -
 REM -------------------------------

+REM Set some variables both for cleanup + download of
+REM required tools.
+SET "OLDDIR=%CD%"
 SET "CRAN=http://cran.r-project.org"
 SET "RTOOLS_VERSION=33"
 SET "R_HOME=%ROOT_DIR%\trunk"

 REM Ensure that some essential tools are on the PATH.
-WHERE /Q %WGET% || (
-	ECHO 'wget' not found on PATH; exiting
+where /Q %WGET% || (
+	ECHO wget [%WGET%] not found on PATH; exiting
 	exit /b
 )

 where /Q %SVN% || (
-	ECHO 'svn' not found on PATH; exiting
+	ECHO svn [%SVN%] not found on PATH; exiting
 	exit /b
 )
-

 REM Set the current directory.
 if not exist "%ROOT_DIR%" (
 	mkdir "%ROOT_DIR%"
 )
 cd "%ROOT_DIR%"
-SET OLDPATH=%PATH%
+SET "OLDPATH=%PATH%"

 REM URI to RTools.exe
 SET "RTOOLS_URL=%CRAN%/bin/windows/Rtools/Rtools%RTOOLS_VERSION%.exe"
@@ -108,20 +119,15 @@
 move mingw64 %RTOOLS_DIR%\gcc492_64

 REM Download the R sources. Get the latest R-devel sources using SVN.
-REM
-REM If you need a Windows SVN client, you can download SlikSVN here:
-REM
-REM     https://sliksvn.com/download/
-REM
-REM Be sure to place the installed binary directory on your PATH.
 svn checkout https://svn.r-project.org/R/trunk/
 cd trunk

 REM Copy in the 'extras' for a 64bit build. This includes tcltk
 REM plus some other libraries. Note that the R64 directory should
 REM have been populated by the RTools installation.
-xcopy /E /Y C:\R %R_HOME%\trunk\
-REM xcopy /E /Y C:\R64 %R_HOME%\trunk\
+REM xcopy /E /Y C:\R %R_HOME%\trunk\
+rmdir /S /Q %R_HOME%\Tcl
+xcopy /E /Y C:\R64 %R_HOME%\

 REM Ensure the temporary directory exists.
 if not exist "%TMPDIR%" (
@@ -163,9 +169,8 @@
 sed -i 's/^# EXT_LIBS/EXT_LIBS/g' MkRules.local

 REM Attempt to fix up permissions before the build.
-cacls %RTOOLS_DIR% /T /E /G BUILTIN\Users:R > NUL
 cacls %R_HOME% /T /E /G BUILTIN\Users:R > NUL
-cacls %TMDIR% /T /E /G BUILTIN\Users:R > NUL
+cacls %TMPDIR% /T /E /G BUILTIN\Users:R > NUL

 REM Make it!
 REM For this part, we ensure only Rtools is on the PATH. This
@@ -176,17 +181,11 @@
 REM to compare sorted files. Probably just placing Rtools first
 REM on the PATH is sufficient, but this is fine too.
 SET "PATH=C:\Rtools\bin"
-make clean
-
-REM We need to build all of the R library DLLs first, and then
-REM copy them to locations where R will find them. Not sure why
-REM this step is necessary.
-make rlibs
-cp ..\extra\graphapp\Rgraphapp.dll Rgraphapp.dll
-cp ..\extra\win_iconv\Riconv.dll Riconv.dll
+make distclean

 REM Now we should be able to build R + recommended packages.
-make all recommended
+make WIN=%WIN% all recommended

 REM Clean up.
 SET "PATH=%OLDPATH%"
+cd %OLDDIR%


Re-synchronize our fork of startGroovy.bat with that of Groovy HEAD.

--- scripts/bin/startGroovy.bat
+++ scripts/bin/startGroovy.bat
@@ -10,7 +10,7 @@
 @rem

 @rem Set local scope for the variables with windows NT shell
-if "%OS%"=="Windows_NT" setlocal
+if "%OS%"=="Windows_NT" setlocal enabledelayedexpansion

 set DIRNAME=%~1
 shift
@@ -33,7 +33,24 @@
 :check_JAVA_HOME
 @rem Make sure we have a valid JAVA_HOME
 if not "%JAVA_HOME%" == "" goto have_JAVA_HOME
-for %%P in (%PATH%) do if exist %%P\..\bin\java.exe set JAVA_HOME=%%P\..
+set PATHTMP=%PATH%
+:loop
+for /f "delims=; tokens=1*" %%i in ("!PATHTMP!") do (
+    if exist "%%i\..\bin\java.exe" (
+        set "JAVA_HOME=%%i\.."
+        goto found_JAVA_HOME
+    )
+    set PATHTMP=%%j
+    goto loop
+)
+goto check_default_JAVA_EXE
+
+:found_JAVA_HOME
+@rem Remove trailing \bin\.. from JAVA_HOME
+if "%JAVA_HOME:~-7%"=="\bin\.." SET "JAVA_HOME=%JAVA_HOME:~0,-7%"
+set JAVA_EXE=%JAVA_HOME%\bin\java.exe
+
+:check_default_JAVA_EXE
 if not "%JAVA_HOME%" == "" goto valid_JAVA_HOME
 java -version 2>NUL
 if not ERRORLEVEL 1 goto default_JAVA_EXE
@@ -220,17 +237,17 @@
 set STARTER_MAIN_CLASS=org.codehaus.groovy.tools.GroovyStarter
 if "%STARTER_CONF%" == "" set STARTER_CONF=%GROOVY_HOME%\conf\groovy-starter.conf

-if "%JAVA_OPTS%" == "" set JAVA_OPTS="-Xmx128m"
-set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name="%PROGNAME%"
-set JAVA_OPTS=%JAVA_OPTS% -Dgroovy.home="%GROOVY_HOME%"
-if not "%TOOLS_JAR%" == "" set JAVA_OPTS=%JAVA_OPTS% -Dtools.jar="%TOOLS_JAR%"
-set JAVA_OPTS=%JAVA_OPTS% -Dgroovy.starter.conf="%STARTER_CONF%"
-set JAVA_OPTS=%JAVA_OPTS% -Dscript.name="%GROOVY_SCRIPT_NAME%"
+if "%GROOVY_OPTS%" == "" set GROOVY_OPTS="-Xmx128m"
+set GROOVY_OPTS=%GROOVY_OPTS% -Dprogram.name="%PROGNAME%"
+set GROOVY_OPTS=%GROOVY_OPTS% -Dgroovy.home="%GROOVY_HOME%"
+if not "%TOOLS_JAR%" == "" set GROOVY_OPTS=%GROOVY_OPTS% -Dtools.jar="%TOOLS_JAR%"
+set GROOVY_OPTS=%GROOVY_OPTS% -Dgroovy.starter.conf="%STARTER_CONF%"
+set GROOVY_OPTS=%GROOVY_OPTS% -Dscript.name="%GROOVY_SCRIPT_NAME%"

 if exist "%USERPROFILE%/.groovy/postinit.bat" call "%USERPROFILE%/.groovy/postinit.bat"

 @rem Execute Groovy
-"%JAVA_EXE%" %JAVA_OPTS% -classpath "%STARTER_CLASSPATH%" %STARTER_MAIN_CLASS% --main %CLASS% --conf "%STARTER_CONF%" --classpath "%CP%" %CMD_LINE_ARGS%
+"%JAVA_EXE%" %GROOVY_OPTS% %JAVA_OPTS% -classpath "%STARTER_CLASSPATH%" %STARTER_MAIN_CLASS% --main %CLASS% --conf "%STARTER_CONF%" --classpath "%CP%" %CMD_LINE_ARGS%

 :end
 @rem End local scope for the variables with windows NT shell


change build_setup_help_on_windows to run unit test on anaconda

--- build_setup_help_on_windows.bat
+++ build_setup_help_on_windows.bat
@@ -51,6 +51,7 @@

 :utpy34_64:
 set pythonexe="c:\Python34_x64\python"
+:custom_python:
 %pythonexe% setup.py write_version
 %pythonexe% -u setup.py clean_space
 if %errorlevel% neq 0 exit /b %errorlevel%
@@ -58,9 +59,6 @@
 if %errorlevel% neq 0 exit /b %errorlevel%
 echo #######################################################

-:setup34_x64_msi_wheel:
-set pythonexe="c:\Python34_x64\python"
-:custom_python:
 %pythonexe% setup.py clean_pyd
 %pythonexe% setup.py sdist --formats=gztar,zip --verbose
 if %errorlevel% neq 0 exit /b %errorlevel%


Update language/visualsrc/rpwibuild.bat

Update language/visualsrc/rpwibuild.bat


small addendum to PR#13790

small addendum to PR#13790

--- dist/bin/scaladoc.bat
+++ dist/bin/scaladoc.bat
@@ -98,7 +98,7 @@

 @rem output parameter: _CLASS_PATH
 :classpathArgs
-for /f %%f in ("%_PROG_HOME%\.") do set "_LIB_DIR=%%~dpflib"
+for /f "delims=" %%f in ("%_PROG_HOME%\.") do set "_LIB_DIR=%%~dpflib"
 set _CLASS_PATH=
 @rem keep list in sync with bash script `bin\scaladoc` !
 call :updateClasspath "scaladoc"


Deploy feet version to own folder

Deploy feet version to own folder

--- GeocacheHeight/build.bat
+++ GeocacheHeight/build.bat
@@ -11,8 +11,8 @@

 copy "src\%BASENAME%_feet.meta.js" .
 copy /b "src\%BASENAME%_feet.meta.js" + src\header.js + "src\formatHeight_feet.js" + "src\%BASENAME%.js" + src\footer.js ".\%BASENAME%_feet.user.js"
-copy %BASENAME%_feet.meta.js %DEPLOYPATH%
-copy %BASENAME%_feet.user.js %DEPLOYPATH%
+copy %BASENAME%_feet.meta.js %DEPLOYPATH%_(feet)
+copy %BASENAME%_feet.user.js %DEPLOYPATH%_(feet)

 set BASENAME=
 set BASEPATH=


jihun:win64

--- IlmBase/vc/buildLUTs.cmd
+++ IlmBase/vc/buildLUTs.cmd
@@ -1,6 +1,6 @@
-@cl /nologo /GR /GX ..\..\..\..\Half\toFloat.cpp /FetoFloat.exe
+@cl /nologo /GR /EHsc ..\..\..\..\Half\toFloat.cpp /FetoFloat.exe
 @.\toFloat.exe > ..\..\..\..\Half\toFloat.h
 @del .\toFloat.obj .\toFloat.exe
-@cl /nologo /GR /GX ..\..\..\..\Half\eLut.cpp /FeeLut.exe
+@cl /nologo /GR /EHsc ..\..\..\..\Half\eLut.cpp /FeeLut.exe
 @.\eLut.exe > ..\..\..\..\Half\eLut.h
 @del .\eLut.exe .\eLut.obj


fix setup batch

fix setup batch

--- build_setup_help_on_windows.bat
+++ build_setup_help_on_windows.bat
@@ -58,7 +58,7 @@
 echo #######################################################

 :setup34:
-IF NOT EXIST c:\Python34 GOTO setup34_x64_msi_wheel:
+IF NOT EXIST c:\Python34 GOTO utpy34_64:
 set pythonexe="c:\Python34\python"
 %pythonexe% setup.py clean_pyd
 %pythonexe% setup.py build bdist_wininst --plat-name=win-amd64


Fixed build script on MyGet.org.

Fixed build script on MyGet.org.

--- Scripts/MyGet.bat
+++ Scripts/MyGet.bat
@@ -69,7 +69,7 @@

   echo.
   echo. todo: Add unit tests for MyGet build server.
-  echo goto PostTests
+  goto PostTests
 )

 "%GallioEcho%" Projects\CQRSMagic.Specifications\bin\Release\CQRSMagic.Specifications.dll


is ginkgo the problem???

is ginkgo the problem???

--- ci/tasks/cats-windows-diego.bat
+++ ci/tasks/cats-windows-diego.bat
@@ -19,7 +19,7 @@
 	MOVE %CD%\cf-cli_winx64.exe ..\cf.exe
 popd

-REM go get -v github.com/onsi/ginkgo/ginkgo
+go get -v github.com/onsi/ginkgo/ginkgo
 REM
 REM cd %GATSPATH%
 REM ginkgo.exe -r -slowSpecThreshold=120 -nodes=2 -skip=NO_DIEGO_SUPPORT . apps backend_compatibility detect docker internet_dependent security_groups ssh routing


Revert "Version 2.5.4-SNAPSHOT"

Revert "Version 2.5.4-SNAPSHOT"

This reverts commit b2efde46d7b12621eef232c594b4cd0d56a41904.

--- qrelease.bat
+++ qrelease.bat
@@ -1,6 +1,52 @@
 setlocal
 echo Setting JAVA_HOME to %JAVA6_HOME%.
 set JAVA_HOME=%JAVA6_HOME%
+
+echo Performing a full clean build.
+rem pause
+call mvn clean install -DperformRelease -Pall
+echo Full clean build completed.
+rem pause
+
+echo Setting new version to %1.
+rem pause
+call mvn versions:set -Pall -DnewVersion=%1
+echo Version was set to %1.
+rem pause
+call mvn versions:commit -Pall
+echo Version %1 committed.
+rem pause
+
+echo Performing a full clean build.
+rem pause
+call mvn clean install -Pall -DperformRelease
+echo Full clean build completed.
+rem pause
+
+echo Checking in version %1.
+rem pause
+git commit -a -m "Version %1"
+echo Version %1 was checked in.
+rem pause
+
+echo Tagging version %1.
+rem pause
+git tag -a %1 -m "Version %1"
+echo Version %1 was tagged.
+rem pause
+
+echo Pushing version %1.
+rem pause
+git push origin master
+git push --tags origin master
+echo Version %1 was pushed.
+rem pause
+
+echo Performing full clean deploy.
+rem pause
+call mvn -DperformRelease -Psonatype-oss-release,all clean deploy
+echo Full clean deploy done.
+rem pause

 echo Setting new version to %2.
 rem pause


Update to work with common

Update to work with common

--- Source/wb-git.cmd
+++ Source/wb-git.cmd
@@ -1,8 +1,11 @@
 setlocal
+set PYTHONPATH=%BUILDER_TOP_DIR%\Source;%BUILDER_TOP_DIR%\Source\Common
+
 set BUILDER_START_DIR=
 set BUILDER_TOP_DIR=
 set BUILDROOT_DIR=
 set __CMD_INIT_RUN__=

+echo PYTHONPATH %PYTHONPATH%
 %PYTHON% wb_git_main.py %*
 endlocal


Fix labels in the cmd script

Fix labels in the cmd script

--- popcorn.cmd
+++ popcorn.cmd
@@ -5,6 +5,8 @@
 set "times=1"

 :help
+
+goto :eof

 :parseArgs

@@ -35,6 +37,7 @@
 )

 shift
+goto parseArgs

 :curl


Change baseline path for Win to avoid problematic drive letter

--- scripts/tests/run_tests.bat
+++ scripts/tests/run_tests.bat
@@ -21,7 +21,7 @@
 md failed

 set OSP_LIBS=build\Release
-set BASELINE_DIR=N:\OSPRay\test-data\img\
+set BASELINE_DIR=\\sdvis-nas\NAS\OSPRay\test-data\img\

 set PATH=%PATH%;%OSP_LIBS%;%embree_DIR%\bin


Make tests run much faster. (Note: runtests.bat doesn't build, use Visual Studio for that.)

--- runtests.bat
+++ runtests.bat
@@ -1,13 +1,13 @@
 @echo off
 cls

-echo Compiling project...
-"%VS100COMNTOOLS%\..\IDE\devenv" /nologo /rebuild Debug Kyru.sln
-if %errorlevel% neq 0 goto end
+rem echo Compiling project...
+rem "%VS100COMNTOOLS%\..\IDE\devenv" /nologo /build Debug Kyru.sln
+rem if %errorlevel% neq 0 goto end

-echo.
-echo Running tests...
-Tests\lib\Gallio.Echo.exe /nl Tests\bin\Debug\Tests.dll
+rem echo.
+rem echo Running tests...
+Tests\lib\Gallio.Echo.exe /nl /r:Local Tests\bin\Debug\Tests.dll
 if %errorlevel% neq 0 goto end

 :end


Changed Javadoc directory from doc/html to doc/api

--- src/makedoc.bat
+++ src/makedoc.bat
@@ -1 +1 @@
-javadoc -d ..\doc\html -overview jade-main.html -author -windowtitle "JADE 1.0 API Reference" jade jade.core jade.core.behaviours jade.lang.acl jade.domain jade.proto
+javadoc -d ..\doc\api -overview jade-main.html -author -windowtitle "JADE 1.0 API Reference" jade jade.core jade.core.behaviours jade.lang.acl jade.domain jade.proto


Correct the handling of parameters in the installer making batch file.

--- installer/MakeX64.bat
+++ installer/MakeX64.bat
@@ -16,11 +16,13 @@
 set DLLBUILD=no

 :getparam
-if /i "%1:~0,8%" == "Drivers=" (
-	set DLLBUILD=%1:~8%
+set para=%1
+echo para="%para%"
+if /i "%para:~1%" == "Drivers" (
+	if "%para:~0,1%" == "+" set DLLBUILD=yes
 	shift
 	goto getparam
-) else if /i "%1" == "clean" (
+) else if /i "%para%" == "clean" (
 	set CLEANUP=yes
 	shift
 	goto getparam


Do not cd

Do not cd

--- release.bat
+++ release.bat
@@ -1,6 +1,6 @@
 rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above

-cd %~dp0
+pushd %~dp0

 @if not exist version.txt (
 	echo.
@@ -30,4 +30,5 @@
 popd

 move %SystemDrive%\buildsd\windows.zip "serve-d_%Version%-windows.zip"
+popd
 pause


Changed release date

Changed release date

--- release.cmd
+++ release.cmd
@@ -1,7 +1,7 @@
 @echo off
 setlocal

-set ReleaseDate=20150617
+set ReleaseDate=YYYYMMDD
 set ProjectPath=.
 set Releases=RELEASES.TXT


update choco script

update choco script

--- windows/choco-setup.bat
+++ windows/choco-setup.bat
@@ -3,27 +3,28 @@
 @powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

 rem Dev
-choco install wget
-choco install curl
+choco install -y wget
+choco install -y curl
 rem choco install git
-choco install expresso
-choco install imagemagick
+choco install -y expresso
+choco install -y imagemagick

 rem Apps
-choco install google-chrome-x64
+choco install -y google-chrome-x64
 rem issue with chrome double check
-choco install lastpass
-choco install javaruntime
+choco install -y lastpass
+choco install -y javaruntime
 rem choco install calibre
-choco install notepadplusplus.install
-choco install vlc
-choco install skype
+choco install -y notepadplusplus.install
+choco install -y vlc
+choco install -y skype
 rem choco install dropbox
-choco install teamviewer
-choco install winrar
-choco install FoxitReader
-choco install f.lux
+choco install -y teamviewer
+choco install -y winrar
+choco install -y FoxitReader
+choco install -y f.lux
 rem choco install avastfreeantivirus
+choco install -y steam

 rem Network
 choco install winscp


script update: 只顯示 docker 最後 100 筆 logs (原本是預設值 all)

--- restart.cmd
+++ restart.cmd
@@ -3,7 +3,7 @@
 docker restart columns

 :wait
-docker logs columns -t
+docker logs columns -t --tail 100
 @echo --
 @choice /T 5 /D N /C YNC /M "Press Y for re-generate web site. (N: do not re-gen, C: cancel looping)"
 if %ERRORLEVEL% EQU 1 goto start


0.0.11 VCbind.bat Parameter Filtering Completed

Checks on all of the direct parameter errors are complete

--- dev/VCbinder/devBind/VCbind.bat
+++ dev/VCbinder/devBind/VCbind.bat
@@ -1,5 +1,5 @@
 @echo off
-rem VCbind.zip\VCbind.bat 0.0.10       UTF-8                    dh:2016-11-15
+rem VCbind.zip\VCbind.bat 0.0.11       UTF-8                       2016-11-15
 rem -----1---------2---------3---------4---------5---------6---------7-------*

 rem                  SETTING VC++ COMMAND-SHELL ENVIRONMENT
@@ -14,12 +14,12 @@
 rem <http://nfoWare.com/dev/2016/11/d161101.htm> and check for the latest
 rem version at <http://nfoWare.com/dev/2016/11/d161101b.htm>.

-rem DETERMINE IF TERSE OR VERBOSE
+rem SELECT TERSE OR VERBOSE
 rem     %1 value "*" selects terse operation
 rem     don't shift it out until Command Extensions confirmed.
 SET VCterse=
 IF "%1" == "*" SET VCterse=^>NUL
-rem                used to dump verbose echos
+rem                used to dump verbose echoes

 rem ANNOUNCE THIS SCRIPT
 IF "%1" == "*" GOTO :WHISPER
@@ -30,7 +30,7 @@
 CLS
 ECHO:
 :WHISPER
-ECHO: [VCbind] 0.0.10 SETTING UP VC++ COMMAND-SHELL ENVIRONMENT
+ECHO: [VCbind] 0.0.11 SETTING UP VC++ COMMAND-SHELL ENVIRONMENT
 IF NOT CMDEXTVERSION 2 GOTO :FAIL0
 ECHO:          %TIME% %DATE% on %USERNAME%'s %COMPUTERNAME%
 ECHO:          %~f0
@@ -77,20 +77,40 @@
 rem    other VC* environment-variable names are used transiently and will
 rem    be altered without checking whether they are already defined.

-rem    XXX: For now, assume no VC* parameters are requested on the
-rem         VCbind.bat command-line.
-
 IF "%1" == "*" SHIFT /1
-SET VCasked=%VCbound%
+
 SET VCaskedConfig=x86
-
+IF NOT "%1" == "" SET VCaskedConfig=%1
+
+SET VCasked=140
+IF DEFINED VCboud SET VCasked=%VCbound%
+IF NOT "%2" == "" SET VCasked=%2
+
+rem VERIFY CONFIG
+IF "%VCaskedConfig%" == "x86"  GOTO :CHECKTOOLSET
+IF "%VCaskedConfig%" == "amd64" GOTO :CHECKTOOLSET
+IF "%VCaskedConfig%" == "x86_amd64" GOTO :CHECKTOOLSET
+IF NOT "%VCaskedConfig%" == "amd64_x86" GOTO :FAIL7
+
+:CHECKTOOLSET
+rem VERIFY TOOLSET
+IF "%VCasked%" == "140" GOTO :CHECKCONFLICT
+IF "%VCasked%" == "120" GOTO :CHECKCONFLICT
+IF "%VCasked%" == "110" GOTO :CHECKCONFLICT
+IF "%VCasked%" == "100" GOTO :CHECKCONFLICT
+IF NOT "%VCasked%" ==  "90" GOTO :FAIL7
+
+:CHECKCONFLICT
 rem CHECK WHETHER VCBIND SETTINGS HAVE ALREADY BEEN MADE
 IF DEFINED VCbound GOTO :ALREADY

 rem CHECK WHETHER THERE HAS BEEN SOME OTHER BINDING ALREADY
 IF DEFINED VCINSTALLDIR GOTO :FAIL4

-rem FIND LATEST-AVAILABLE RELEASED VC++ BUILD TOOLS
+rem FIND LATEST-AVAILABLE RELEASED TOOLSET
+rem      starting from VCasked (default 140)
+
+GOTO :TRY%VCasked%

 :TRY140
 IF NOT DEFINED VS140COMNTOOLS GOTO :TRY120
@@ -155,7 +175,6 @@
 GOTO :SUCCESS

 :SUCCESS
-
 SET VCbound=%VCasked%
 SET VCboundConfig=%VCaskedConfig%
 SET VCboundVer=%VisualStudioVersion%
@@ -164,6 +183,13 @@
 IF "%VCterse%" == "" PAUSE
 EXIT /B 0

+:FAIL7
+ECHO:          *** UNSUPPORTED VCBIND PARAMETER ***
+ECHO:          Invalid: %*
+ECHO:          %VCterse%
+ECHO:          NO CHANGES HAVE BEEN MADE
+GOTO :BAIL
+
 :FAIL6
 ECHO:          *** NO VC++ BUILD TOOLS FOUND ***
 ECHO:          VCbind-supported build tools could not be located.   %VCterse%
@@ -237,7 +263,7 @@
 :BAIL
 ECHO:
 IF NOT ERRORLEVEL 2 SET ERRORLEVEL=2
-IF NOT "%VCterese%" == "" EXIT /B %ERRORLEVEL%
+IF NOT "%VCterse%" == "" EXIT /B %ERRORLEVEL%
 COLOR 74
 rem   Soft White background and Red text
 ECHO:
@@ -265,6 +291,7 @@

 rem -----1---------2---------3---------4---------5---------6---------7-------*

+rem 0.0.11 2016-11-15-17:21 Complete Parameter Filtering
 rem 0.0.10 2016-11-15-14:31 Introduce Terse operation;  smooth messages.
 rem 0.0.9 2016-11-15-11:03 Define parameters, choose "config" naming of
 rem       platform types, and smooth messages and comments some more.


Added error logging

Added error logging

--- disablestrongnamevalidation.cmd
+++ disablestrongnamevalidation.cmd
@@ -1,2 +1,3 @@
 set VsDevCmd ="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat"
+if not exist %VsDevCmd% echo "Error: '%VsDevCmd%' does not exist."
 %VsDevCmd% sn -Vr *,31bf3856ad364e35


MINOR: Update kafka-run-class.bat to handle spaces in classpath

handle existing classpath with spaces
list each lib dependency individually

Author: Jon Freedman <jon.freedman@zoho.com>

Reviewers: Guozhang Wang <wangguoz@gmail.com>

Closes #2433 from jonfreedman/trunk

--- bin/windows/kafka-run-class.bat
+++ bin/windows/kafka-run-class.bat
@@ -90,7 +90,9 @@
 )

 rem Classpath addition for release
-call :concat %BASE_DIR%\libs\*
+for %%i in (%BASE_DIR%\libs\*) do (
+	call :concat %%i
+)

 rem Classpath addition for core
 for %%i in (%BASE_DIR%\core\build\libs\kafka_%SCALA_BINARY_VERSION%*.jar) do (
@@ -174,7 +176,7 @@
 	EXIT /B 2
 )

-set COMMAND=%JAVA% %KAFKA_HEAP_OPTS% %KAFKA_JVM_PERFORMANCE_OPTS% %KAFKA_JMX_OPTS% %KAFKA_LOG4J_OPTS% -cp %CLASSPATH% %KAFKA_OPTS% %*
+set COMMAND=%JAVA% %KAFKA_HEAP_OPTS% %KAFKA_JVM_PERFORMANCE_OPTS% %KAFKA_JMX_OPTS% %KAFKA_LOG4J_OPTS% -cp "%CLASSPATH%" %KAFKA_OPTS% %*
 rem echo.
 rem echo %COMMAND%
 rem echo.
@@ -184,7 +186,7 @@
 goto :eof
 :concat
 IF ["%CLASSPATH%"] EQU [""] (
-  set CLASSPATH="%1"
+  set "CLASSPATH=%1"
 ) ELSE (
-  set CLASSPATH=%CLASSPATH%;"%1"
+  set "CLASSPATH=%CLASSPATH%;%1"
 )


improved dox configuration

improved dox configuration

--- gen-doc.cmd
+++ gen-doc.cmd
@@ -1,26 +1,53 @@
 @echo off
-echo Cleaning...
-if exist target\site rd /s /q target\site
+setlocal
+
+set TOP_LEVEL_PACKAGE=hx.strings
+set OWNER=http://vegardit.com
+
+REM extract project version from haxelib.json
+for /f "tokens=*" %%a in ( 'findstr version haxelib.json' ) do (set textLine=%%a)
+set PROJECT_VERSION=%textLine:"version": "=%
+set PROJECT_VERSION=%PROJECT_VERSION:",=%
+
+REM extract project name from haxelib.json
+for /f "tokens=*" %%a in ( 'findstr name haxelib.json' ) do (set textLine=%%a)
+set PROJECT_NAME=%textLine:"name": "=%
+set PROJECT_NAME=%PROJECT_NAME:",=%
+
+REM extract project description from haxelib.json
+for /f "tokens=*" %%a in ( 'findstr description haxelib.json' ) do (set textLine=%%a)
+set PROJECT_DESCRIPTION=%textLine:"description": "=%
+set PROJECT_DESCRIPTION=%PROJECT_DESCRIPTION:",=%

 haxelib list | findstr dox >NUL
-if errorlevel 1 (
+if %errorlevel% neq 0 (
     echo Installing [dox]...
     haxelib install dox
 )

+if exist target\site (
+    echo Cleaning target/site...
+    rd /s /q target\site
+)
+
 echo Analyzing source code...
-haxe -xml target/doc.xml -cp src --macro include('hx.strings')
+haxe -cp src --no-output -D doc-gen -xml target/doc.xml --macro include('%TOP_LEVEL_PACKAGE%')

+REM https://github.com/HaxeFoundation/dox/wiki/Commandline-arguments-overview
 echo Generating HTML files...
 haxelib run dox ^
-  -in "^hx" ^
-  -ex "^hx\.strings\.internal" ^
-  -ex "^haxe" ^
-  -ex "^[A-Z]" ^
+  --title "%PROJECT_NAME% %PROJECT_VERSION% API documentation" ^
+  --toplevel-package "%TOP_LEVEL_PACKAGE%" ^
+  -D themeColor 0x27B33A ^
+  -D version "%RELEASE_VERSION%" ^
+  -D description "%PROJECT_NAME%: %PROJECT_DESCRIPTION%" ^
+  -D website "%COPYRIGHT%" ^
+  -ex "^%OWNER:.=\.%\.internal" ^
   -i target/doc.xml ^
   -o target/site

-setlocal
 set pwd=%~dp0
+echo.
 echo Documentation generated at [file:///%pwd:\=/%target/site/index.html]...
+
 endlocal


petit oubli dans l'automatisation

petit oubli dans l'automatisation

--- build_setup_help_on_windows.bat
+++ build_setup_help_on_windows.bat
@@ -59,6 +59,7 @@
 if not exist dist\html2 mkdir dist\html2
 if not exist dist\html3 mkdir dist\html3
 if not exist dist\latex mkdir dist\latex
+xcopy /E /C /I /Y _doc\presentation\build\html dist\html_pres
 xcopy /E /C /I /Y _doc\sphinxdoc\build\html dist\html
 xcopy /E /C /I /Y _doc\sphinxdoc\build2\html dist\html2
 xcopy /E /C /I /Y _doc\sphinxdoc\build3\html dist\html3


try an alternative option to include only enaml related tests

--- appveyor-test.cmd
+++ appveyor-test.cmd
@@ -1,6 +1,6 @@
 set ETS_TOOLKIT=qt4
 coverage run -m nose.core -v --exclude-dir=pyface/ui/wx --exclude="enaml"
 if %errorlevel% neq 0 exit /b %errorlevel%
-coverage run -a -m nose.core -v "pyface/tasks/tests/*enaml*"
+coverage run -a -m nose.core -v pyface/tasks/tests/test_enaml*
 if %errorlevel% neq 0 exit /b %errorlevel%
 coverage report


Added AppVeyorZipDolphinVM.CMD to zip release VM

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

--- AppVeyorZipDolphinVM.cmd
+++ AppVeyorZipDolphinVM.cmd
@@ -0,0 +1,2 @@
+ECHO Zip Dolphin VM Binaries
+7z a DolphinVM.zip %APPVEYOR_BUILD_FOLDER%\Release\*.dll %APPVEYOR_BUILD_FOLDER%\Release\*.exe


[KARAF-4349] Use the same approach of KARAF-4330 in karaf.bat script

--- assemblies/features/base/src/main/resources/resources/bin/karaf.bat
+++ assemblies/features/base/src/main/resources/resources/bin/karaf.bat
@@ -211,6 +211,21 @@
     set JAVA=%JAVA_HOME%\bin\java
 :Check_JAVA_END

+:CheckRootInstance
+    set ROOT_INSTANCE_RUNNING=false
+    if exist "%KARAF_HOME%\instances\instance.properties" (
+        for /f "delims=" %%x in ( 'findstr "item.0.pid" "%KARAF_HOME%\instances\instance.properties" ' ) do @set pid=%%x
+        for /f "delims=" %%i in ( 'findstr "item.0.name" "%KARAF_HOME%\instances\instance.properties" ' ) do @set name=%%i
+    )
+    set ROOT_INSTANCE_PID=%pid:~13%
+
+    set ROOT_INSTANCE_NAME=%name:~14%
+    if not "%ROOT_INSTANCE_PID%"=="0" (
+        tasklist /fi "PID eq %ROOT_INSTANCE_PID%" /fi "STATUS eq running" /fo 2>NUL
+        if "%ERRORLEVEL%"=="0" set ROOT_INSTANCE_RUNNING=true
+    )
+
+
 if not exist "%JAVA_HOME%\bin\server\jvm.dll" (
     if not exist "%JAVA_HOME%\jre\bin\server\jvm.dll" (
         echo WARNING: Running Karaf on a Java HotSpot Client VM because server-mode is not available.
@@ -267,6 +282,8 @@
 goto :EOF

 :CLASSPATH_END
+
+SET CHECK_ROOT_INSTANCE_RUNNING=true

 rem Execute the JVM or the load the profiler
 if "%KARAF_PROFILER%" == "" goto :RUN
@@ -292,15 +309,18 @@

 :EXECUTE_STOP
     SET MAIN=org.apache.karaf.main.Stop
+    SET CHECK_ROOT_INSTANCE_RUNNING=false
     shift
     goto :RUN_LOOP

 :EXECUTE_STATUS
     SET MAIN=org.apache.karaf.main.Status
+    SET CHECK_ROOT_INSTANCE_RUNNING=false
     shift
     goto :RUN_LOOP

 :EXECUTE_CONSOLE
+    SET CHECK_ROOT_INSTANCE_RUNNING=false
     shift
     goto :RUN_LOOP

@@ -317,6 +337,7 @@

 :EXECUTE_CLIENT
     SET OPTS=-Dkaraf.startLocalConsole=true -Dkaraf.startRemoteShell=false
+    SET CHECK_ROOT_INSTANCE_RUNNING=false
     shift
     goto :RUN_LOOP

@@ -344,6 +365,10 @@
         MOVE /Y "%KARAF_HOME%\lib.next" "%KARAF_HOME%\lib"
     )

+    SET IS_RUNNABLE=false
+    if "%ROOT_INSTANCE_RUNNING%" == "false" SET IS_RUNNABLE=true
+    if "%CHECK_ROOT_INSTANCE_RUNNING%" == "false" SET IS_RUNNABLE=true
+    if "%IS_RUNNABLE%" == "true" (
     "%JAVA%" %JAVA_OPTS% %OPTS% ^
         -classpath "%CLASSPATH%" ^
         -Djava.endorsed.dirs="%JAVA_HOME%\jre\lib\endorsed;%JAVA_HOME%\lib\endorsed;%KARAF_HOME%\lib\endorsed" ^
@@ -357,6 +382,10 @@
         -Dkaraf.data="%KARAF_DATA%" ^
         -Djava.util.logging.config.file="%KARAF_BASE%\etc\java.util.logging.properties" ^
         %KARAF_OPTS% %MAIN% %ARGS%
+    ) else (
+        echo There is a Root instance already running with name %ROOT_INSTANCE_NAME% and pid %ROOT_INSTANCE_PID%
+        goto :END
+    )

     rem If KARAF_DAEMON is defined, auto-restart is bypassed and control given
     rem back to the operating system


Fix quoting of ES_JAVA_OPTS in plugin script

This commit fixes the quoting of ES_JAVA_OPTS in the plugin script on
Windows.

--- distribution/src/bin/elasticsearch-plugin.bat
+++ distribution/src/bin/elasticsearch-plugin.bat
@@ -3,7 +3,7 @@
 setlocal enabledelayedexpansion
 setlocal enableextensions

-set ES_JAVA_OPTS="--add-opens java.base/sun.security.provider=ALL-UNNAMED %ES_JAVA_OPTS%"
+set ES_JAVA_OPTS=--add-opens java.base/sun.security.provider=ALL-UNNAMED %ES_JAVA_OPTS%
 set ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli
 set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli
 call "%~dp0elasticsearch-cli.bat" ^


LUCENE-9266: correct windows gradle wrapper download script - wrong placement of the quote.

--- gradlew.bat
+++ gradlew.bat
@@ -80,7 +80,7 @@

 @rem LUCENE-9266: verify and download the gradle wrapper jar if we don't have one.
 set GRADLE_WRAPPER_JAR=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
-"%JAVA_EXE%" --source 11 "%APP_HOME%"/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java "%GRADLE_WRAPPER_JAR%"
+"%JAVA_EXE%" --source 11 "%APP_HOME%/buildSrc/src/main/java/org/apache/lucene/gradle/WrapperDownloader.java" "%GRADLE_WRAPPER_JAR%"
 IF %ERRORLEVEL% NEQ 0 goto fail

 @rem Setup the command line


adding gradle startup script for Windows

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

--- gradlew.bat
+++ gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windowz variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+if "%@eval[2+2]" == "4" goto 4NT_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+goto execute
+
+:4NT_args
+@rem Get arguments from the 4NT Shell from JP Software
+set CMD_LINE_ARGS=%$
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega


add --user for pip (#26440)

add --user for pip (#26440)

--- paddle/scripts/paddle_build.bat
+++ paddle/scripts/paddle_build.bat
@@ -28,21 +28,24 @@
 if not defined PYTHON_ROOT set PYTHON_ROOT=C:\Python37
 set PATH=%PYTHON_ROOT%;%PYTHON_ROOT%\Scripts;%PATH%

-set PYTHON_EXECUTABLE=%PYTHON_ROOT%\python.exe
-%PYTHON_EXECUTABLE% -m pip install virtualenv
-%PYTHON_EXECUTABLE% -m virtualenv paddle_winci
-call paddle_winci\Scripts\activate.bat
+rem ToDo: virtual environment can't be deleted safely, some process not exit when task is canceled
+rem Now use system python environment temporarily
+rem set PYTHON_EXECUTABLE=%PYTHON_ROOT%\python.exe
+rem %PYTHON_EXECUTABLE% -m pip install virtualenv
+rem %PYTHON_EXECUTABLE% -m virtualenv paddle_winci
+rem call paddle_winci\Scripts\activate.bat

 rem ------pre install requirement----------
 where python
 where pip
-pip install --upgrade pip
-pip install wheel
-pip install gym
-pip install -U -r %work_dir%\python\requirements.txt
+pip install --upgrade pip --user
+pip install wheel --user
+pip install gym --user
+pip install -U -r %work_dir%\python\requirements.txt --user
 if %ERRORLEVEL% NEQ 0 (
-    call paddle_winci\Scripts\deactivate.bat
-    exit /b %ERRORLEVEL%
+    call paddle_winci\Scripts\deactivate.bat 2>NUL
+    echo pip install requirements.txt failed!
+    exit /b 7
 )

 rem ------initialize common variable------
@@ -127,9 +130,9 @@
 goto:eof

 :cmake_error
-call paddle_winci\Scripts\deactivate.bat
+call paddle_winci\Scripts\deactivate.bat 2>NUL
 echo Cmake failed, will exit!
-exit /b 1
+exit /b 7

 rem ---------------------------------------------------------------------------------------------
 :build
@@ -140,12 +143,12 @@

 set build_times=1
 :build_tp
-echo Build third_party the %build_times% time:
-msbuild /m /p:Configuration=Release /verbosity:quiet third_party.vcxproj
+echo Build third_party for %build_times% time:
+msbuild /m /p:Configuration=Release /verbosity:minimal third_party.vcxproj
 if %ERRORLEVEL% NEQ 0 (
     set /a build_times=%build_times%+1
     if %build_times% GTR 3 (
-        exit /b 1
+        exit /b 7
     ) else (
         echo Build third_party failed, will retry!
         goto :build_tp
@@ -155,12 +158,12 @@

 set build_times=1
 :build_paddle
-echo Build Paddle the %build_times% time:
-msbuild /m /p:Configuration=Release /verbosity:minimal paddle.sln
+echo Build Paddle for %build_times% time:
+msbuild /m /p:Configuration=Release /verbosity:quiet paddle.sln
 if %ERRORLEVEL% NEQ 0 (
     set /a build_times=%build_times%+1
     if %build_times% GTR 2 (
-        exit /b 1
+        exit /b 7
     ) else (
         echo Build Paddle failed, will retry!
         goto :build_paddle
@@ -170,7 +173,7 @@
 goto:eof

 :build_error
-call paddle_winci\Scripts\deactivate.bat
+call paddle_winci\Scripts\deactivate.bat 2>NUL
 echo Build Paddle failed, will exit!
 exit /b 7

@@ -182,16 +185,21 @@
 dir /s /b python\dist\*.whl > whl_file.txt
 set /p PADDLE_WHL_FILE_WIN=< whl_file.txt

-pip install -U %PADDLE_WHL_FILE_WIN%
-if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
-
-echo import paddle.fluid;print(paddle.__version__) > test_whl.py
-python test_whl.py
+pip uninstall -y paddlepaddle
+pip uninstall -y paddlepaddle-gpu
+pip install -U %PADDLE_WHL_FILE_WIN% --user
+if %ERRORLEVEL% NEQ 0 (
+    call paddle_winci\Scripts\deactivate.bat 2>NUL
+    echo pip install whl package failed!
+    exit /b 3
+)
+
+python %work_dir%\paddle\scripts\installation_validate.py
 goto:eof

 :test_whl_pacakage_error
-call paddle_winci\Scripts\deactivate.bat
-echo Pip install whl package failed, will exit!
+call paddle_winci\Scripts\deactivate.bat 2>NUL
+echo Test import paddle failed, will exit!
 exit /b 3

 rem ---------------------------------------------------------------------------------------------
@@ -208,11 +216,11 @@
 dir %THIRD_PARTY_PATH:/=\%\install\warpctc\bin

 set PATH=%THIRD_PARTY_PATH:/=\%\install\openblas\lib;%THIRD_PARTY_PATH:/=\%\install\openblas\bin;%THIRD_PARTY_PATH:/=\%\install\zlib\bin;%THIRD_PARTY_PATH:/=\%\install\mklml\lib;%THIRD_PARTY_PATH:/=\%\install\mkldnn\bin;%THIRD_PARTY_PATH:/=\%\install\warpctc\bin;%PATH%
-ctest.exe --output-on-failure -C Release -j 7
+ctest.exe --output-on-failure -C Release -j 8
 goto:eof

 :unit_test_error
-call paddle_winci\Scripts\deactivate.bat
+call paddle_winci\Scripts\deactivate.bat 2>NUL
 echo Running unit tests failed, will exit!
 exit /b 8

@@ -228,7 +236,7 @@
 goto:eof

 :test_inference_error
-call paddle_winci\Scripts\deactivate.bats
+call paddle_winci\Scripts\deactivate.bat 2>NUL
 echo Testing fluid library for inference failed!
 exit /b 5

@@ -303,8 +311,8 @@
 goto:eof

 :check_change_of_unittest_error
-call paddle_winci\Scripts\deactivate.bat
-exit /b 6
+call paddle_winci\Scripts\deactivate.bat 2>NUL
+exit /b 1

 rem ---------------------------------------------------------------------------------------------
@@ -322,7 +330,10 @@
 taskkill /f /im vctip.exe 2>NUL
 taskkill /f /im cvtres.exe 2>NUL
 taskkill /f /im rc.exe 2>NUL
-call paddle_winci\Scripts\deactivate.bat
+taskkill /f /im %cd%\paddle\fluid\pybind\Release\op_function_generator.exe  2>NUL
+taskkill /f /im python.exe  2>NUL
+call paddle_winci\Scripts\deactivate.bat 2>NUL
+taskkill /f /im python.exe  2>NUL
 echo Windows CI run successfully!
 exit /b 0


added build bat script for wasm example

added build bat script for wasm example

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

--- examples/wasm_example/build.bat
+++ examples/wasm_example/build.bat
@@ -0,0 +1,5 @@
+cd ..\..\buildtools
+emmake make -f Makefile.linux CXX="emcc -O2 -s WASM=1" AR="emcc -O2 -o" SUFFIX=.o FLAGS="-DSLEEPY_CUSTOM_CLIENT" ISCUSTOM="TRUE"
+xcopy libsleepy_discord.o ..\examples\wasm_example /y
+cd ..\examples\wasm_example
+em++ -O2 -std=c++11 -I ../../include -I ../../include/sleepy_discord/IncludeNonexistent libsleepy_discord.o wasm_websocket.cpp --pre-js mod.js --js-library websocket.js --js-library session.js -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 --bind -o wasm_discord.js


Adding cygwin startup script for ssh

Adding cygwin startup script for ssh

error: pathspec '.dotenv/other/sshd.cmd' did not match any file(s) known to git

--- .dotenv/other/sshd.cmd
+++ .dotenv/other/sshd.cmd
@@ -0,0 +1,6 @@
+SET PATH=%PATH%;C:\cygwin\bin
+
+C:
+chdir C:\cygwin
+
+start "" "C:\cygwin\startup\hstart.exe" /noconsole /elevate "C:\cygwin\usr\sbin\sshd.exe -D"


Update publish script to include 3.0.1 version


corrected reference to start.bat

corrected reference to start.bat

--- install.bat
+++ install.bat
@@ -31,6 +31,6 @@

   echo The default H2 DB has been installed

-  echo   Please run start.sh to launch the Smockin Application
+  echo   Please run start.bat to launch the Smockin Application

 )


Revert change in MSVC env setup script

Revert change in MSVC env setup script

Reverts 04513372d7d5859ea865252095c3b5ce0762228f

Fixes #1232.
Fixes #1233.

--- install.bat
+++ install.bat
@@ -1022,7 +1022,7 @@
 	f:write(S[[
 @ECHO OFF
 SETLOCAL ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
-$COMPILER_ENV_CMD >NUL
+$COMPILER_ENV_CMD
 SET "LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%"
 IF NOT "%LUA_PATH_5_2%"=="" (
    SET "LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%"


Windows installer required /P argument to be first or would overwrite other values cleanup temp batch file in case of elevation

--- install.bat
+++ install.bat
@@ -6,8 +6,8 @@

 vars.PREFIX = [[C:\LuaRocks]]
 vars.VERSION = "2.1"
-vars.SYSCONFDIR = [[C:\LuaRocks]]
-vars.ROCKS_TREE = [[C:\LuaRocks]]
+vars.SYSCONFDIR = nil
+vars.ROCKS_TREE = nil
 vars.SCRIPTS_DIR = nil
 vars.LUA_INTERPRETER = nil
 vars.LUA_PREFIX = nil
@@ -163,8 +163,6 @@
 			os.exit(0)
 		elseif name == "/P" then
 			vars.PREFIX = option.value
-			vars.SYSCONFDIR = option.value
-			vars.ROCKS_TREE = option.value
 			P_SET = true
 		elseif name == "/CONFIG" then
 			vars.SYSCONFDIR = option.value
@@ -425,7 +423,11 @@
 	return false
 end

----
+
+-- ***********************************************************
+-- Installer script start
+-- ***********************************************************
+
 -- Poor man's command-line parsing
 local config = {}
 local with_arg = { -- options followed by an argument, others are flags
@@ -466,7 +468,7 @@
 for k,v in pairs(oarg) do if k < 1 then arg[k] = v end end -- copy 0 and negative indexes
 oarg = nil

-
+-- build config option table with name and value elements
 local i = 1
 while i <= #arg do
 	local opt = arg[i]
@@ -499,10 +501,11 @@
 		local runner = os.getenv("TEMP").."\\".."LuaRocks_Installer.bat"
 		local f = io.open(runner, "w")
 		f:write("@echo off\n")
-		f:write("CHDIR /D "..arg[0]:match("(.+)%\\.-$").."\n")  -- return to current die, elevation changes current path
+		f:write("CHDIR /D "..arg[0]:match("(.+)%\\.-$").."\n")  -- return to current dir, elevation changes current path
 		f:write('"'..arg[-1]..'" "'..table.concat(arg, '" "', 0)..'"\n')
 		f:write("ECHO Press any key to close this window...\n")
 		f:write("PAUSE > NUL\n")
+		f:write('DEL "'..runner..'"')  -- temp batch file deletes itself
 		f:close()
 		-- run the created temp batch file in elevated mode
 		exec("PowerShell -Command (New-Object -com 'Shell.Application').ShellExecute('"..runner.."', '', '', 'runas')\n")
@@ -515,6 +518,8 @@
 	print("Admin priviledges available for installing")
 end

+vars.SYSCONFDIR = vars.SYSCONFDIR or vars.PREFIX
+vars.ROCKS_TREE = vars.ROCKS_TREE or vars.PREFIX
 vars.FULL_PREFIX = S"$PREFIX\\$VERSION"
 vars.BINDIR = vars.FULL_PREFIX
 vars.LIBDIR = vars.FULL_PREFIX
@@ -644,8 +649,13 @@
 end

+-- ***********************************************************
+-- Configure LuaRocks
+-- ***********************************************************
+
 print()
 print("Configuring LuaRocks...")
+
 -- Create a site-config file
 if exists(S[[$LUADIR\luarocks\site_config.lua]]) then
 	exec(S[[RENAME "$LUADIR\luarocks\site_config.lua" site_config.lua.bak]])


Added BAT file for "npm start"

Added BAT file for "npm start"

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

--- tasks/start.bat
+++ tasks/start.bat
@@ -0,0 +1,2 @@
+cd ..
+call npm start


win-py.bat

win-py.bat

--- jenkins/win-py.bat
+++ jenkins/win-py.bat
@@ -12,6 +12,7 @@
 cd build
 "c:\program files (x86)\cmake\bin\cmake" -G "Visual Studio 10 2010" ..
 C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe ALL_BUILD.vcxproj /p:Configuration=Release
+if errorlevel 1 exit /B 1
 C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe INSTALL.vcxproj /p:Configuration=Release
 if errorlevel 1 exit /B 1
 cd ..


nuget push

nuget push

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

--- nugetpush.cmd
+++ nugetpush.cmd
@@ -0,0 +1 @@
+nuget push distribution\*.nupkg


remove old startup script

remove old startup script

--- startup.bat
+++ startup.bat
@@ -1,6 +0,0 @@
-@ECHO OFF
-ECHO Starting PHP FastCGI...
-set PATH=C:\PHP;%PATH%
-bin\RunHiddenConsole.exe php-cgi -b 127.0.0.1:9000
-ECHO Starting Mailhog...
-bin\RunHiddenConsole.exe bin\mailhog.exe


switch to official Doxygen repo

switch to official Doxygen repo

--- build_doxygen.bat
+++ build_doxygen.bat
@@ -1,8 +1,7 @@
 setlocal
 call settings.bat

-rem svn checkout http://svn.osgeo.org/geos/trunk geos-svn
-git clone --depth 10 https://github.com/alex85k/doxygen.git
+git clone --depth 10 https://github.com/doxygen/doxygen.git

 cd doxygen
 mkdir build


added project-creation batch script

added project-creation batch script

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

--- QuickNotes/enproject.bat
+++ QuickNotes/enproject.bat
@@ -0,0 +1,5 @@
+@echo off
+set CURDIR=%CD%
+set PROJNAME=%*
+"%CURDIR%\..\AHK\CreateProject.exe" "%PROJNAME%"
+@echo on


Changing MSBuild path

Changing MSBuild path

--- src/build.bat
+++ src/build.bat
@@ -14,7 +14,7 @@
 	set nuget=nuget
 )

-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Lemonade.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
+("C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe") Lemonade.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false

 mkdir Build
 mkdir Build\lib


give all args to vagrant

give all args to vagrant

--- test/precise32/vagrantd.bat
+++ test/precise32/vagrantd.bat
@@ -1 +1 @@
-call vagrant %1 --debug 2>vagrant-%1-err.txt >vagrant-%1-out.txt
+call vagrant %* --debug 2>vagrant-%1-err.log >vagrant-%1-out.log


v4.13 - fix TLS issue with PowerShell

v4.13 - fix TLS issue with PowerShell

--- updater.bat
+++ updater.bat
@@ -3,10 +3,10 @@

 REM ## arkenfox user.js updater for Windows
 REM ## author: @claustromaniac
-REM ## version: 4.12
+REM ## version: 4.13
 REM ## instructions: https://github.com/arkenfox/user.js/wiki/3.3-Updater-Scripts

-SET v=4.12
+SET v=4.13

 VERIFY ON
 CD /D "%~dp0"
@@ -51,9 +51,7 @@
 		CALL :message "Updating script..."
 		REM Uncomment the next line and comment out the PowerShell call for testing.
 		REM COPY /B /Y "!_myname!.bat" "[updated]!_myname!.bat" >nul
-		(
-			PowerShell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/arkenfox/user.js/master/updater.bat', '[updated]!_myname!.bat')"
-		) >nul 2>&1
+		CALL :psdownload https://raw.githubusercontent.com/arkenfox/user.js/master/updater.bat "[updated]!_myname!.bat"
 		IF EXIST "[updated]!_myname!.bat" (
 			START /min CMD /C "[updated]!_myname!.bat" !_myparams!
 		) ELSE (
@@ -132,9 +130,7 @@
 )
 IF EXIST user.js.new (DEL /F "user.js.new")
 CALL :message "Retrieving latest user.js file from github repository..."
-(
-	PowerShell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/arkenfox/user.js/master/user.js', 'user.js.new')"
-) >nul 2>&1
+CALL :psdownload https://raw.githubusercontent.com/arkenfox/user.js/master/user.js "user.js.new"
 IF EXIST user.js.new (
 	IF DEFINED _rfpalts (
 		CALL :message "Activating RFP Alternatives section..."
@@ -216,6 +212,13 @@
 ECHO:  %~1
 IF NOT "2"=="%_log%" (ECHO:)
 ENDLOCAL
+GOTO :EOF
+
+::::::::::::: Download :::::::::::::
+:psdownload
+(
+	PowerShell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('%~1', '%~2')"
+) >nul 2>&1
 GOTO :EOF

 ::::::::::::::: Activate Section :::::::::::::::


vcbuild.bat for building libuv with msbuild

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

--- vcbuild.bat
+++ vcbuild.bat
@@ -0,0 +1,76 @@
+@echo off
+
+cd %~dp0
+
+if /i "%1"=="help" goto help
+if /i "%1"=="--help" goto help
+if /i "%1"=="-help" goto help
+if /i "%1"=="/help" goto help
+if /i "%1"=="?" goto help
+if /i "%1"=="-?" goto help
+if /i "%1"=="--?" goto help
+if /i "%1"=="/?" goto help
+
+@rem Bail out early if not running in VS build env.
+if not defined VCINSTALLDIR goto msbuild-not-found
+
+@rem Process arguments.
+set config=Debug
+set target=Build
+set noprojgen=
+set run=
+
+:next-arg
+if "%1"=="" goto args-done
+if /i "%1"=="debug"        set config=Debug&goto arg-ok
+if /i "%1"=="release"      set config=Release&goto arg-ok
+if /i "%1"=="test"         set run=run-tests.exe&goto arg-ok
+if /i "%1"=="bench"        set run=run-benchmarks.exe&goto arg-ok
+if /i "%1"=="clean"        set target=Clean&goto arg-ok
+if /i "%1"=="noprojgen"    set noprojgen=1&goto arg-ok
+:arg-ok
+shift
+goto next-arg
+:args-done
+
+
+@rem Skip project generation if requested.
+if defined noprojgen goto msbuild
+
+:project-gen
+@rem Generate the VS project.
+call create-msvs-files.bat
+if errorlevel 1 goto create-msvs-files-failed
+if not exist all.sln goto create-msvs-files-failed
+
+:msbuild
+@rem Build the sln with msbuild.
+msbuild all.sln /t:%target% /p:Configuration=%config% /clp:NoSummary;NoItemAndPropertyList;Verbosity=minimal /nologo
+if errorlevel 1 goto exit
+
+:run
+@rem Run tests if requested.
+if "%run%"=="" goto exit
+if not exist %config%\%run% goto exit
+%config%\%run%
+goto exit
+
+:create-msvs-files-failed
+echo Failed to create vc project files.
+goto exit
+
+:msbuild-not-found
+echo Failed to build.  In order to build the solution this file needs
+echo to run from VS command script.
+goto exit
+
+:help
+echo This script must run from VS command prompt.
+echo vcbuild.bat [debug/release] [test/bench] [clean] [noprojgen]
+echo Examples:
+echo   vcbuild.bat              : builds debug build
+echo   vcbuild.bat test         : builds debug build and runs tests
+echo   vcbuild.bat release bench: builds release build and runs benchmarks
+goto exit
+
+:exit


version.cmd: Use the term "Git for Windows" instead of "msysGit"

The latter is the name of the development environment for the deprecated
Git for Windows 1.x.

--- version.cmd
+++ version.cmd
@@ -2,7 +2,7 @@

 setlocal enabledelayedexpansion

-rem Read the msysGit installation path from the Registry.
+rem Read the Git for Windows installation path from the Registry.
 :REG_QUERY
 for /f "skip=2 delims=: tokens=1*" %%a in ('reg query HKLM\SOFTWARE%WOW%\Microsoft\Windows\CurrentVersion\Uninstall\Git_is1 /v InstallLocation 2^> nul') do (
     for /f "tokens=3" %%i in ("%%a") do (


Fixed issue caused by the directory change

git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@1817 6f19259b-4bc3-4df7-8a09-765794883524

--- Tools/bin/SAVerify.bat
+++ Tools/bin/SAVerify.bat
@@ -32,7 +32,7 @@

 :all
   @echo off
-  @for /R %%a in (*.msa *.fpd *.spd) do @ant -q -f %WORKSPACE%\Tools\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%%a
+  @for /R %%a in (*.msa *.fpd *.spd) do @ant -q -f %WORKSPACE%\Tools\Java\Source\SurfaceArea\build.xml validate -DSURFACE_AREA_FILE=%%a
   @echo on
   @goto end


Call msbuild from build script

Call msbuild from build script

--- makezip.bat
+++ makezip.bat
@@ -1,4 +1,16 @@
 @echo off
+
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\CacheViewer\CacheViewer.sln"
+if %ERRORLEVEL% NEQ 0 pause
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\LifeDISA\LifeDISA.sln"
+if %ERRORLEVEL% NEQ 0 pause
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\MemoryViewer\MemoryViewer.sln"
+if %ERRORLEVEL% NEQ 0 pause
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\TrackDISA\TrackDISA.sln"
+if %ERRORLEVEL% NEQ 0 pause
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\VarsViewer\VarsViewer.sln"
+if %ERRORLEVEL% NEQ 0 pause
+
 "%PROGRAMFILES%\7-Zip\7z" a -tzip "AITD-tools.zip" ^
  ".\CacheViewer\CacheViewer\bin\Release\*.exe" ^
  ".\LifeDISA\LifeDISA\bin\Release\*.exe" ^
@@ -9,4 +21,6 @@
  ".\MemoryViewer\MemoryViewer\bin\Release\SDL2_image.dll" ^
  ".\MemoryViewer\MemoryViewer\bin\Release\Shared.dll" ^
  ".\TrackDISA\TrackDISA\bin\Release\*.exe" ^
- ".\VarsViewer\VarsViewer\bin\Release\*.exe"
+ ".\VarsViewer\VarsViewer\bin\Release\*.exe" ^
+ "-mx=9"
+if %ERRORLEVEL% NEQ 0 pause


Change allfontsgen command

Change allfontsgen command

--- update-core.bat
+++ update-core.bat
@@ -34,6 +34,6 @@

 if exist "%~dp0\..\fonts" rmdir /S /Q "%~dp0\..\fonts"
 mkdir "%~dp0\..\fonts"
-"core\build\bin\AllFontsGen\win_%OS%.exe" --input="%~dp0\..\core-fonts" --allfonts-web="%~dp0\..\sdkjs\common\AllFonts.js" --allfonts="%~dp0\FileConverter\bin\AllFonts.js" --images="%~dp0\..\sdkjs\common\Images" --selection="%~dp0\FileConverter\bin\font_selection.bin" --output-web="%~dp0\..\fonts" --use-system="true"
+"core\build\bin\win_%OS%\allfontsgen.exe" --input="%~dp0\..\core-fonts" --allfonts-web="%~dp0\..\sdkjs\common\AllFonts.js" --allfonts="%~dp0\FileConverter\bin\AllFonts.js" --images="%~dp0\..\sdkjs\common\Images" --selection="%~dp0\FileConverter\bin\font_selection.bin" --output-web="%~dp0\..\fonts" --use-system="true"

 :ERROR


Fix cecho not being found prior to VSConfig.cmd adds the dir to PATH

--- tools/Windows/BuildDeps.cmd
+++ tools/Windows/BuildDeps.cmd
@@ -6,7 +6,7 @@

 :: Make sure we're running in Visual Studio Command Prompt
 IF "%VSINSTALLDIR%"=="" (
-   cecho {0C}Batch file not executed from Visual Studio Command Prompt - cannot proceed!{# #}{\n}
+   %TOOLS%\Utils\cecho {0C}Batch file not executed from Visual Studio Command Prompt - cannot proceed!{# #}{\n}
    GOTO :ERROR
 )


Avoid failure when deleting project.lock.json

--- Restore.cmd
+++ Restore.cmd
@@ -12,6 +12,7 @@

 echo Deleting project.lock.json files
 pushd "%~dp0src"
+echo "Dummy lock file to avoid error when there is no project.lock.json file" > project.lock.json
 del /s /q project.lock.json
 popd


Update prerun_checks_and_tasks.bat

Update prerun_checks_and_tasks.bat

--- resources/functions/prerun_checks_and_tasks.bat
+++ resources/functions/prerun_checks_and_tasks.bat
@@ -14,7 +14,7 @@
 :: CHECKS ::
 ::::::::::::

-:: Admin rights check
+:: CHECK: Admin rights
 :: Skip this check if we're in Safe Mode because Safe Mode command prompts always start with Admin rights
 SETLOCAL ENABLEDELAYEDEXPANSION
 if /i not "%SAFE_MODE%"=="yes" (
@@ -36,10 +36,10 @@
 		exit 1
 	)
 )
-SETLOCAL DISABLEDELAYEDEXPANSION
+ENDLOCAL DISABLEDELAYEDEXPANSION

-:: Check if we're on an unsupported OS. If we are, complain to the user and bail out
+:: CHECK: Detect unsupported OS. If we are, complain to the user and bail out
 if "%WIN_VER:~0,19%"=="Windows Server 2016" (
 	if /i %DEV_MODE%==no (
 		color 0c
@@ -60,7 +60,7 @@
 )

-:: Make sure we're not running from the %TEMP% directory
+:: CHECK: Make sure we're not running from the %TEMP% directory
 if "%~dp0"=="%TEMP%\tron\" (
 	color 0c
 	cls
@@ -81,7 +81,7 @@
 )

-:: Make sure we're not running from %SystemDrive%\TEMP
+:: CHECK: Make sure we're not running from %SystemDrive%\TEMP
 if "%~dp0"=="%SystemDrive%\temp\tron\" (
 	color 0c
 	cls


Update stage_2_de-bloat.bat

Update stage_2_de-bloat.bat

--- resources/stage_2_de-bloat/stage_2_de-bloat.bat
+++ resources/stage_2_de-bloat/stage_2_de-bloat.bat
@@ -133,8 +133,6 @@
 )
 call functions\log_with_date.bat "   Done."

-pause
-

 :: JOB: Remove crapware programs, phase 2: unwanted toolbars and BHOs by GUID
 title Tron v%TRON_VERSION% [stage_2_de-bloat] [Remove toolbars by GUID]


One input, multiple kernel convolutions (features) Only for element-element kernels (non matrix) for now fixed compile script to not use Vulkan 1.1, shaders recompiled new example (id=3) on feature convolutions

--- shaders/compile.bat
+++ shaders/compile.bat
@@ -1,22 +1,22 @@
-glslangvalidator -V vkFFT_single_c2c.comp -o vkFFT_single_c2c.spv --target-env
-glslangvalidator -V vkFFT_single_c2r.comp -o vkFFT_single_c2r.spv --target-env
-glslangvalidator -V vkFFT_single_r2c.comp -o vkFFT_single_r2c.spv --target-env
-glslangvalidator -V vkFFT_single_c2c_afterR2C.comp -o vkFFT_single_c2c_afterR2C.spv --target-env
-glslangvalidator -V vkFFT_single_c2c_beforeC2R.comp -o vkFFT_single_c2c_beforeC2R.spv --target-env
-glslangvalidator -V vkFFT_grouped_c2c.comp -o vkFFT_grouped_c2c.spv --target-env
-glslangvalidator -V vkFFT_transpose_inplace.comp -o vkFFT_transpose_inplace.spv --target-env
-glslangvalidator -V vkFFT_grouped_convolution_1x1.comp -o vkFFT_grouped_convolution_1x1.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_1x1.comp -o vkFFT_single_convolution_1x1.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_afterR2C_1x1.comp -o vkFFT_single_convolution_afterR2C_1x1.spv --target-env
-glslangvalidator -V vkFFT_grouped_convolution_symmetric_2x2.comp -o vkFFT_grouped_convolution_symmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_symmetric_2x2.comp -o vkFFT_single_convolution_symmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_afterR2C_symmetric_2x2.comp -o vkFFT_single_convolution_afterR2C_symmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_grouped_convolution_nonsymmetric_2x2.comp -o vkFFT_grouped_convolution_nonsymmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_nonsymmetric_2x2.comp -o vkFFT_single_convolution_nonsymmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_afterR2C_nonsymmetric_2x2.comp -o vkFFT_single_convolution_afterR2C_nonsymmetric_2x2.spv --target-env
-glslangvalidator -V vkFFT_grouped_convolution_symmetric_3x3.comp -o vkFFT_grouped_convolution_symmetric_3x3.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_symmetric_3x3.comp -o vkFFT_single_convolution_symmetric_3x3.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_afterR2C_symmetric_3x3.comp -o vkFFT_single_convolution_afterR2C_symmetric_3x3.spv --target-env
-glslangvalidator -V vkFFT_grouped_convolution_nonsymmetric_3x3.comp -o vkFFT_grouped_convolution_nonsymmetric_3x3.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_nonsymmetric_3x3.comp -o vkFFT_single_convolution_nonsymmetric_3x3.spv --target-env
-glslangvalidator -V vkFFT_single_convolution_afterR2C_nonsymmetric_3x3.comp -o vkFFT_single_convolution_afterR2C_nonsymmetric_3x3.spv --target-env
+glslangvalidator -V vkFFT_single_c2c.comp -o vkFFT_single_c2c.spv
+glslangvalidator -V vkFFT_single_c2r.comp -o vkFFT_single_c2r.spv
+glslangvalidator -V vkFFT_single_r2c.comp -o vkFFT_single_r2c.spv
+glslangvalidator -V vkFFT_single_c2c_afterR2C.comp -o vkFFT_single_c2c_afterR2C.spv
+glslangvalidator -V vkFFT_single_c2c_beforeC2R.comp -o vkFFT_single_c2c_beforeC2R.spv
+glslangvalidator -V vkFFT_grouped_c2c.comp -o vkFFT_grouped_c2c.spv
+glslangvalidator -V vkFFT_transpose_inplace.comp -o vkFFT_transpose_inplace.spv
+glslangvalidator -V vkFFT_grouped_convolution_1x1.comp -o vkFFT_grouped_convolution_1x1.spv
+glslangvalidator -V vkFFT_single_convolution_1x1.comp -o vkFFT_single_convolution_1x1.spv
+glslangvalidator -V vkFFT_single_convolution_afterR2C_1x1.comp -o vkFFT_single_convolution_afterR2C_1x1.spv
+glslangvalidator -V vkFFT_grouped_convolution_symmetric_2x2.comp -o vkFFT_grouped_convolution_symmetric_2x2.spv
+glslangvalidator -V vkFFT_single_convolution_symmetric_2x2.comp -o vkFFT_single_convolution_symmetric_2x2.spv
+glslangvalidator -V vkFFT_single_convolution_afterR2C_symmetric_2x2.comp -o vkFFT_single_convolution_afterR2C_symmetric_2x2.spv
+glslangvalidator -V vkFFT_grouped_convolution_nonsymmetric_2x2.comp -o vkFFT_grouped_convolution_nonsymmetric_2x2.spv
+glslangvalidator -V vkFFT_single_convolution_nonsymmetric_2x2.comp -o vkFFT_single_convolution_nonsymmetric_2x2.spv
+glslangvalidator -V vkFFT_single_convolution_afterR2C_nonsymmetric_2x2.comp -o vkFFT_single_convolution_afterR2C_nonsymmetric_2x2.spv
+glslangvalidator -V vkFFT_grouped_convolution_symmetric_3x3.comp -o vkFFT_grouped_convolution_symmetric_3x3.spv
+glslangvalidator -V vkFFT_single_convolution_symmetric_3x3.comp -o vkFFT_single_convolution_symmetric_3x3.spv
+glslangvalidator -V vkFFT_single_convolution_afterR2C_symmetric_3x3.comp -o vkFFT_single_convolution_afterR2C_symmetric_3x3.spv
+glslangvalidator -V vkFFT_grouped_convolution_nonsymmetric_3x3.comp -o vkFFT_grouped_convolution_nonsymmetric_3x3.spv
+glslangvalidator -V vkFFT_single_convolution_nonsymmetric_3x3.comp -o vkFFT_single_convolution_nonsymmetric_3x3.spv
+glslangvalidator -V vkFFT_single_convolution_afterR2C_nonsymmetric_3x3.comp -o vkFFT_single_convolution_afterR2C_nonsymmetric_3x3.spv


update header for new member

update header for new member

--- src/application.bat
+++ src/application.bat
@@ -1,4 +1,5 @@
-###application.bat-201x-Jourdain###
+###application.bat-201x-Jourdain Boishardy Alex###
+
 version="2"
 build_hour= "11H00"


fix(ci): use submodules in AppVeyor CI build script

--- appveyor.install.bat
+++ appveyor.install.bat
@@ -18,6 +18,8 @@

 if not exist thirdparty.cached set nocache=1
 if not exist %BOOST_ROOT% set nocache=1
+
+git submodule update --init

 if %nocache% == 1 (
 	pushd C:\Libraries


[MUI] Win32 環境に libevent.dll を添付するようにした

[MUI] Win32 環境に libevent.dll を添付するようにした

--- archive.bat
+++ archive.bat
@@ -4,4 +4,9 @@
 dub build -c mui -a %1 -b %2

 powershell -Command Compress-Archive -Path fukuro.exe, LICENSE, README.md, docs, libeay32.dll, ssleay32.dll -DestinationPath moecoop-%1.zip
+
+if %1==x86 (
+    powershell -Command Compress-Archive -Path libevent.dll -DestinationPath moecoop-%1.zip -Update
+)
+
 del fukuro.exe


Fix psake.cmd file

Fix psake.cmd file

added a missed braces.

--- psake.cmd
+++ psake.cmd
@@ -1,4 +1,2 @@
 @echo Executing psake build
-rem Helper script for those who want to run psake from cmd.exe
-
-powershell -NoProfile -ExecutionPolicy unrestricted -Command "& {Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted; Install-Module -Force -Name psake -Scope CurrentUser; invoke-psake %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"+powershell -NoProfile -ExecutionPolicy unrestricted -Command "& {Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted; Install-Module -Force -Name psake -Scope CurrentUser; invoke-psake %*; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }}"


Adding auth test to testing batch file

Adding auth test to testing batch file

--- buildAndRunTests.bat
+++ buildAndRunTests.bat
@@ -18,13 +18,17 @@
 %NUGET% restore
 %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1

+CD ..\..\auth
+%NUGET% restore
+%MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1
+
 @ECHO OFF
 IF %FAILED% NEQ 0 GOTO failed_case
 ENDLOCAL
 ECHO SUCCEEDED
-EXIT /b
+EXIT /b

 :failed_case
 ENDLOCAL
 ECHO FAILED
-EXIT /b 1+EXIT /b 1


Phoebe

Phoebe

--- GitRelease.bat
+++ GitRelease.bat
@@ -1,3 +1,5 @@
+@rem ̃tH_̃[J Repo ܂ x99999999_Repo (Repo=[X̃|Wg) ł邱ƁB
+
 IF NOT EXIST .\GitRelease.bat GOTO END
 CALL qq
 C:\Factory\SubTools\GitFactory.exe /ow . C:\huge\GitHub\CSharp


starting work on release.bat to release from window

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

--- build/release.bat
+++ build/release.bat
@@ -0,0 +1,41 @@
+@echo off
+set olddir=%CD%
+
+if "%1"=="" goto blank
+goto setupvars
+
+:setupvars
+set scriptdir=%~dp0
+set rootdir=%scriptdir%\..\
+set tagName=%1
+set releaseBranch=rb-%tagName%
+set versionFile=version_%tagName%.info
+chdir %rootdir%
+goto checkoutnewreleasebranch
+
+:checkoutnewreleasebranch
+echo ======================================
+echo Creating release branch $releaseBranch
+echo ======================================
+call git checkout -b %releaseBranch%
+goto builddocs
+
+:builddocs
+echo .
+echo .
+echo ===========================================================
+echo Building documentation using Jekyll and the gh-pages branch
+echo ===========================================================
+call mkdir docs
+call git checkout gh-pages
+call jekyll --safe --pygments docs
+
+goto done
+
+:blank
+echo Useage: ./release.sh {tag name}
+goto done
+
+:done
+chdir %olddir%
+pause


Mark make/vcbuild.at as executable

Mark make/vcbuild.at as executable

git-svn-id: df58bffb5a937f084eff32b23172f75a46061293@4480 0b15d6fc-ce89-4483-8625-0b0fabc32e25


Fix broken build

Fix broken build

--- compile.cmd
+++ compile.cmd
@@ -19,8 +19,8 @@

 FOR %%P IN (mx64) DO (
   FOR %%B IN (Debug,Release) DO (
-    CALL :BUILDAPP %%P %%B 45  v4.5   "DESKTOP;FW4;FW45"
-    CALL :BUILDAPP %%P %%B 46  v4.6   "DESKTOP;FW4;FW46"
+    CALL :BUILDAPP %%P %%B 45  v4.5   "CLASSIC;DESKTOP;FW4;FW45"
+    CALL :BUILDAPP %%P %%B 46  v4.6   "CLASSIC;DESKTOP;FW4;FW46"
   )
 )


每次编译之前先清空原来的日志文件

每次编译之前先清空原来的日志文件

--- SIM808M32.bat
+++ SIM808M32.bat
@@ -3,6 +3,8 @@
 rem set path=%CD%\build\winmake;%path%
 set path=%CD%\build\winmake;

+echo. > output/log/output.log
+
 rem make -f build\Makefile --debug=b PROJ=%~n0 CFG=user %1
 make -f build\Makefile PROJ=%~n0 CFG=user %1
 @pause


new ewseditor

new ewseditor

--- add_links.cmd
+++ add_links.cmd
@@ -9,7 +9,7 @@
 call :set_link false py			"%ProgramFiles(x86)%\Python 3.5\python.exe" "%ProgramFiles(x86)%\Python35-32\python.exe"
 call :set_link true npp			"%ProgramFiles(x86)%\Notepad++\notepad++.exe" "%windir%\system32\notepad.exe" "%windir%\notepad.exe"
 call :set_link true windbg		"%SystemDrive%\debuggers\windbg.exe"
-call :set_link true ewseditor	"%~d0\Apps\EWSEditor 1.13 - bin\EWSEditor.exe"
+call :set_link true ewseditor	"%~d0\Apps\EWSEditor 1.17 - bin\EWSEditor.exe" "%~d0\Apps\EWSEditor 1.13 - bin\EWSEditor.exe"
 call :set_link true ie			"%ProgramFiles%\Internet Explorer\iexplore.exe"
 call :set_link true stylecopeditor "%ProgramFiles(x86)%\StyleCop 4.7\StyleCopSettingsEditor.exe"
 call :set_link true snip			"%WINDIR%\system32\snippingtool.exe"


Fix broken NuGet build

Fix broken NuGet build

--- Nuget/packit.cmd
+++ Nuget/packit.cmd
@@ -5,8 +5,9 @@

 DEL /q *.nupkg > nul 2> nul

-IF not exist lib mkdir lib   > nul 2> nul
-IF not exist tools mkdir tools > nul 2> nul
+IF not exist content mkdir content > nul 2> nul
+IF not exist lib     mkdir lib     > nul 2> nul
+IF not exist tools   mkdir tools   > nul 2> nul

 CALL :BUILD AM.Core            core
 CALL :BUILD ManagedIrbis       core


update setup.bat

update setup.bat

--- Plugin/setup.bat
+++ Plugin/setup.bat
@@ -1,7 +1,7 @@
 @echo off

 echo "downloading external libararies..."
-powershell.exe -Command "(new-object System.Net.WebClient).DownloadFile('https://github.com/unity3d-jp/AlembicImporter/releases/download/20180122/External.7z', 'External/External.7z')"
+powershell.exe -Command "[System.Net.ServicePointManager]::SecurityProtocol=[System.Net.SecurityProtocolType]::Tls12; wget https://github.com/unity3d-jp/AlembicImporter/releases/download/20180122/External.7z -OutFile External/External.7z"
 cd External
 7z\7za.exe x -aos External.7z
 cd ..


HBASE-13589 [WINDOWS] hbase.cmd script is broken

--- bin/hbase.cmd
+++ bin/hbase.cmd
@@ -88,8 +88,8 @@
   goto :eof
 )

-set JAVA_HEAP_MAX=""
-set JAVA_OFFHEAP_MAX=""
+set JAVA_HEAP_MAX=
+set JAVA_OFFHEAP_MAX=

 rem check envvars which might override default args
 if defined HBASE_HEAPSIZE (
@@ -118,8 +118,8 @@
   )

   if not exist "%cached_classpath_filename%" (
-      echo "As this is a development environment, we need %cached_classpath_filename% to be generated from maven (command: mvn install -DskipTests)"
-	  goto :eof
+    echo "As this is a development environment, we need %cached_classpath_filename% to be generated from maven (command: mvn install -DskipTests)"
+    goto :eof
   )

   for /f "delims=" %%i in ('type "%cached_classpath_filename%"') do set CLASSPATH=%CLASSPATH%;%%i
@@ -251,7 +251,7 @@
   set HBASE_LOG_PREFIX=hbase-%hbase-command%-%COMPUTERNAME%
   set HBASE_LOGFILE=!HBASE_LOG_PREFIX!.log
   if not defined HBASE_ROOT_LOGGER (
-	set HBASE_ROOT_LOGGER=INFO,DRFA
+    set HBASE_ROOT_LOGGER=INFO,DRFA
   )
   set HBASE_SECURITY_LOGGER=INFO,DRFAS
   set loggc=!HBASE_LOG_DIR!\!HBASE_LOG_PREFIX!.gc
@@ -294,7 +294,7 @@
 )
 set HBASE_OPTS=%HBASE_OPTS% -Dhbase.security.logger="%HBASE_SECURITY_LOGGER%"

-set HEAP_SETTINGS="%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%"
+set HEAP_SETTINGS=%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%
 set java_arguments=%HEAP_SETTINGS% %HBASE_OPTS% -classpath "%CLASSPATH%" %CLASS% %hbase-command-arguments%

 if defined service_entry (


Turn ECHO off

Turn ECHO off

Same thing as in the other file.

--- obj2bco.bat
+++ obj2bco.bat
@@ -1,2 +1,3 @@
+@echo off
 python "%~dp0mkdd-collision-creator.py" %*
-pause+pause


removed empty lines

removed empty lines

--- bootstrap.bat
+++ bootstrap.bat
@@ -1,11 +1,10 @@
 @ECHO OFF

-:: git pull origin master;
-:: git submodule init
-:: git submodule update
+git pull origin master;
+git submodule init
+git submodule update

 SET arg1=%1
-

 IF /I "%arg1%"=="-f" (
 	CALL :doIt


Update buildtest batchfile

Update buildtest batchfile

--- misc/buildtestall.bat
+++ misc/buildtestall.bat
@@ -4,7 +4,7 @@
 set PATH=C:\MinGW\bin;%PATH%

 set TEST_PY=25,26,27,30,31,32
-set TEST_MPI=mpich2_win,deinompi,msmpi
+set TEST_MPI=mpich2,deinompi,msmpi
 set TEST_CC=msvc,mingw32

 for %%A in (%TEST_PY%)  do (
@@ -26,9 +26,9 @@
 set PYTHONDIR=C:\Python%PYVERSION%
 set PYTHON="%PYTHONDIR%\python.exe"
 set MPIDIR=
-if %MPICONF%==deinompi   set MPIDIR=%ProgramFiles%\DeinoMPI
-if %MPICONF%==mpich2_win set MPIDIR=%ProgramFiles%\MPICH2
-if %MPICONF%==msmpi      set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK
+if %MPICONF%==deinompi set MPIDIR=%ProgramFiles%\DeinoMPI
+if %MPICONF%==mpich2   set MPIDIR=%ProgramFiles%\MPICH2
+if %MPICONF%==msmpi    set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK
 set MPIEXEC="%MPIDIR%\bin\mpiexec.exe"

 echo Py: %PYVERSION% - MPI: %MPICONF% - CC: %COMPILER%


somehow the CR/LF stuff was wacked in only this batch file.

git-svn-id: 28d9401aa571d5108e51b194aae6f24ca5964c06@4463 8cc4aa7f-3514-0410-904f-f2cc9021211c

--- bin/dosupd.bat
+++ bin/dosupd.bat
@@ -1,22 +1,22 @@
-@echo off
-
-  rem *** This batch file should verify if contents of two files differ.
-  rem *** If they do, we copy file given as first argument into second.
-  rem *** If they don't, we do nothing
-  rem *** In any case we remove first file
-
-  if not exist %2 goto docopy
-  cmp -s %1 %2
-  if errorlevel 1 goto docopy
-  goto doremove
-
-:docopy
-  cp -f %1 %2
-
-:doremove
-  del %1 >nul
-
-  if /%WINDIR%/ == // goto nowindoze
-  sleep 2
-
-:nowindoze
+@echo off
+
+  rem *** This batch file should verify if contents of two files differ.
+  rem *** If they do, we copy file given as first argument into second.
+  rem *** If they don't, we do nothing
+  rem *** In any case we remove first file
+
+  if not exist %2 goto docopy
+  cmp -s %1 %2
+  if errorlevel 1 goto docopy
+  goto doremove
+
+:docopy
+  cp -f %1 %2
+
+:doremove
+  del %1 >nul
+
+  if /%WINDIR%/ == // goto nowindoze
+  sleep 2
+
+:nowindoze


initial version

initial version

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

--- bin/mallet.bat
+++ bin/mallet.bat
@@ -0,0 +1,64 @@
+@echo off
+
+rem This batch file serves as a wrapper for several
+rem  MALLET command line tools.
+
+if not "%MALLET_HOME%" == "" goto gotMalletHome
+
+echo MALLET requires an environment variable MALLET_HOME.
+goto :eof
+
+:gotMalletHome
+
+set MALLET_CLASSPATH=%MALLET_HOME%\class;%MALLET_HOME%\lib\mallet-deps.jar
+set MALLET_MEMORY=1G
+set MALLET_ENCODING=UTF-8
+
+set CMD=%1
+shift
+
+set CLASS=
+if "%CMD%"=="import-dir" set CLASS=cc.mallet.classify.tui.Text2Vectors
+if "%CMD%"=="import-file" set CLASS=cc.mallet.classify.tui.Csv2Vectors
+if "%CMD%"=="train-classifier" set CLASS=cc.mallet.classify.tui.Vectors2Classify
+if "%CMD%"=="train-topics" set CLASS=cc.mallet.topics.tui.Vectors2Topics
+if "%CMD%"=="infer-topics" set CLASS=cc.mallet.topics.tui.InferTopics
+if "%CMD%"=="hlda" set CLASS=cc.mallet.topics.tui.HierarchicalLDATUI
+if "%CMD%"=="prune" set CLASS=cc.mallet.classify.tui.Vectors2Vectors
+if "%CMD%"=="split" set CLASS=cc.mallet.classify.tui.Vectors2Vectors
+if "%CMD%"=="bulk-load" set CLASS=cc.mallet.util.BulkLoader
+if "%CMD%"=="run" set CLASS=%1 & shift
+
+if not "%CLASS%" == "" goto gotClass
+
+
+echo Mallet 2.0 commands:
+echo   import-dir        load the contents of a directory into mallet instances (one per file)
+echo   import-file       load a single file into mallet instances (one per line)
+echo   train-classifier  train a classifier from Mallet data files
+echo   train-topics      train a topic model from Mallet data files
+echo   infer-topics      use a trained topic model to infer topics for new documents
+echo   hlda              train a topic model using Hierarchical LDA
+echo   prune             remove features based on frequency or information gain
+echo   split             divide data into testing, training, and validation portions
+echo Include --help with any option for more information
+
+
+goto :eof
+
+:gotClass
+
+set MALLET_ARGS=
+
+:getArg
+
+if "%1"=="" goto run
+set MALLET_ARGS=%MALLET_ARGS% %1
+shift
+goto getArg
+
+:run
+
+java -Xmx%MALLET_MEMORY% -ea -Dfile.encoding=%MALLET_ENCODING% -classpath %MALLET_CLASSPATH% %CLASS% %MALLET_ARGS%
+
+:eof


Added clear bin script

Added clear bin script

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

--- clear-bin.bat
+++ clear-bin.bat
@@ -0,0 +1,2 @@
+FOR /F "tokens=*" %%G IN ('DIR /B /AD /S bin') DO RMDIR /S /Q "%%G"
+FOR /F "tokens=*" %%G IN ('DIR /B /AD /S publish') DO RMDIR /S /Q "%%G"


Assue executeCommand appends and not overwrite log data

--- install/ci-windows/ci/runCI.bat
+++ install/ci-windows/ci/runCI.bat
@@ -51,7 +51,7 @@

 rem Fail when the exit status is not equal to 0
 :executeCommand
-%* > "%logFile%"
+%* >> "%logFile%"
 SET /A status=%ERRORLEVEL%
 IF %status% NEQ 0 (
     rem No message needed as we post before anyway


fix curl cmd

fix curl cmd


add nuget bat file

add nuget bat file

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

--- Wombat/Wombat.Core/nuget.bat
+++ Wombat/Wombat.Core/nuget.bat
@@ -0,0 +1,2 @@
+nuget.exe pack Wombat.Core.csproj -Build -Properties Configuration=Release -Version 0.1.0.0 -IncludeReferencedProjects
+pause


Building 0.00 version with LATEST in name.

--- Setup/Publish.cmd
+++ Setup/Publish.cmd
@@ -5,12 +5,12 @@
 SET  FILES_EXECUTABLE="..\Binaries\VhdAttach.exe" "..\Binaries\VhdAttachService.exe"
 SET       FILES_OTHER="..\Binaries\ReadMe.txt"

-SET      COMPILE_TOOL="%PROGRAMFILES(X86)%\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe"
+SET      COMPILE_TOOL="%PROGRAMFILES(X86)%\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe"
 SET        SETUP_TOOL="%PROGRAMFILES(x86)%\Inno Setup 5\iscc.exe"

 SET         SIGN_TOOL="%PROGRAMFILES(X86)%\Windows Kits\8.0\bin\x86\signtool.exe"
 SET         SIGN_HASH="EB41D6069805B20D87219E0757E07836FB763958"
-SET SIGN_TIMESTAMPURL="http://www.startssl.com/timestamp/"
+SET SIGN_TIMESTAMPURL="http://timestamp.comodoca.com/rfc3161"

 ECHO --- BUILD SOLUTION
@@ -59,6 +59,22 @@
 ECHO.

+ECHO --- RENAME LATEST
+ECHO.
+
+SET _OLDSETUPEXE=%_SETUPEXE%
+SET _SETUPEXE=%_SETUPEXE:000=-LATEST%
+IF NOT %_OLDSETUPEXE%==%_SETUPEXE% (
+    ECHO Renaming %_OLDSETUPEXE% to %_SETUPEXE%
+    MOVE .\Temp\%_OLDSETUPEXE% .\Temp\%_SETUPEXE%
+) ELSE (
+    ECHO No rename needed.
+)
+
+ECHO.
+ECHO.
+
+
 CERTUTIL -silent -verifystore -user My %SIGN_HASH% > NUL
 IF %ERRORLEVEL%==0 (
     ECHO --- SIGN SETUP


Update jenkins_build32.bat

Update jenkins_build32.bat

--- HelperScripts/jenkins_build32.bat
+++ HelperScripts/jenkins_build32.bat
@@ -31,5 +31,5 @@
 )
 mkdir build
 cd build
-cmake -DINCLUDE_QT_WALLET=TRUE -G "Visual Studio 12" ../bitsharesx || exit /b 28
-msbuild.exe /M:%NUMBER_OF_PROCESSORS% /p:Configuration=RelWithDebinfo /p:Platform=Win32 /target:rebuild /v:diag BitShares.sln || exit /b 30
+cmake -DINCLUDE_QT_WALLET=TRUE -G "Visual Studio 12" -T "v120_xp" ../bitsharesx || exit /b 28
+msbuild.exe /M:%NUMBER_OF_PROCESSORS% /p:Configuration=Release /p:Platform=Win32 /target:BitSharesX:rebuild /v:diag BitShares.sln || exit /b 30


xmx for the gant

xmx for the gant

--- build/lib/gant-1.7.0/bin/gant.bat
+++ build/lib/gant-1.7.0/bin/gant.bat
@@ -96,7 +96,7 @@

 set STARTER_CONF=%GANT_HOME%\conf\gant-starter.conf

-set JAVA_OPTS=%JAVA_OPTS% -Dgant.home="%GANT_HOME%" -Dant.home="%ANT_HOME%"
+set JAVA_OPTS=%JAVA_OPTS% -Dgant.home="%GANT_HOME%" -Dant.home="%ANT_HOME%" -Xmx512m


More typo fixes

More typo fixes

--- bin/fix-libvulkan-1.dll-missing-error.cmd
+++ bin/fix-libvulkan-1.dll-missing-error.cmd
@@ -8,7 +8,7 @@
 @exit
 )
 :--------------------------------------
-@TITLE Compatibility hotfix with LunarG build of KhronosGroup Vulkan loader for programs buiilt with MSYS2 MinGW-W64
+@TITLE Compatibility hotfix with LunarG build of KhronosGroup Vulkan loader for programs built with MSYS2 MinGW-W64
 @IF NOT EXIST "%windir%\system32\vulkan-1.dll" (
 @echo FATAL ERROR: KhronosGroup Vulkan loader is missing. Please download and install latest Vulkan runtime from
 @echo https://vulkan.lunarg.com/
@@ -17,7 +17,7 @@
 @exit
 )
 @echo This tool implements a compatibility hotfix with LunarG build of KhronosGroup Vulkan loader for programs
-@echo buiilt with MSYS2 MinGW-W64. LunarG build of KhronosGroup Vulkan loader is avaible as both
+@echo built with MSYS2 MinGW-W64. LunarG build of KhronosGroup Vulkan loader is avaible as both
 @echo standalone download and as a component of Vulkan graphics drivers.
 @echo If the compatibility hotfix is in place, this tool offers the option to remove it.
 @echo.


[JBWS-2151] fixing windows shell script

[JBWS-2151] fixing windows shell script

--- modules/resources/src/main/resources/bin/wsrunclient.bat
+++ modules/resources/src/main/resources/bin/wsrunclient.bat
@@ -38,22 +38,22 @@
 set JBOSS_ENDORSED_DIRS=%JBOSS_HOME%\lib\endorsed

 rem Setup the tool classpath
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/activation.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/javassist.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxb-api.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxb-impl.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossall-client.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jboss-xml-binding.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-common.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-framework.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-spi.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/FastInfoset.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/log4j.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/mail.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/stax-api.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/xmlsec.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar"
-set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxws-api.jar"
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/activation.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/javassist.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxb-api.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxb-impl.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossall-client.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jboss-xml-binding.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-common.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-framework.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jbossws-spi.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/FastInfoset.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/log4j.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/mail.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/stax-api.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/xmlsec.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/wsdl4j.jar
+set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/jaxws-api.jar

 rem stack specific libs
 set WSRUNCLIENT_CLASSPATH=%WSRUNCLIENT_CLASSPATH%;%JBOSS_HOME%/client/asm.jar


Configure script for Windows

Configure script for Windows

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

--- DB2/Backup/configureArchiveLogs.bat
+++ DB2/Backup/configureArchiveLogs.bat
@@ -0,0 +1,19 @@
+@echo off
+REM
+REM Author: Christoph Stoettner
+REM E-Mail: christoph.stoettner@stoeps.de
+REM
+REM History: 20140408 Christoph Stoettner Initial version
+
+REM Needed for variable expansion
+SETLOCAL ENABLEDELAYEDEXPANSION
+REM Set Backup-Directory, change to your environment
+set DBLOGPATH=D:\db2\logs
+REM get all databases of db2 instance and loop through the list
+FOR /F "tokens=3 delims== " %%a IN ('DB2CMD.EXE -c -w -i DB2 list DATABASE DIRECTORY ^| findstr /i "Alias"') DO (
+				set DATABASES=%%a,!DATABASES!
+				title Starting database %%a Log configuration on %date% at %time%...
+                REM DB2CMD.EXE -c -w -i DB2 UPDATE DATABASE CONFIGURATION FOR %%a using LOGARCHMETH1 LOGRETAIN AUTO_DEL_REC_OBJ ON num_db_backups 1 rec_his_retentn 0 logarchmeth1 disk:%DBLOGPATH%
+                DB2 UPDATE DATABASE CONFIGURATION FOR %%a using LOGARCHMETH1 LOGRETAIN AUTO_DEL_REC_OBJ ON num_db_backups 1 rec_his_retentn 0 logarchmeth1 disk:%DBLOGPATH%
+				)
+ECHO Successfull configured logs for %DATABASES% in %DBLOGPATH%


DEV | enhanced coverage config

DEV | enhanced coverage config

--- run_coverage.cmd
+++ run_coverage.cmd
@@ -3,5 +3,5 @@
 nuget install OpenCover -Version 4.6.519 -OutputDirectory tools
 nuget install coveralls.net -Version 0.7.0 -OutputDirectory tools

-.\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe -targetargs:".\Alfred.Tests\bin\Release\Alfred.Tests.dll .\Alfred.Model.Implementation.Tests\bin\Release\Alfred.Model.Implementation.Tests.dll" -filter:"+[Alfred*]* -[*.Tests]* -[*]*ObjectDiffPatch*" -register:user
+.\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.4.1\tools\nunit3-console.exe -targetargs:".\**\*.Tests.dll" -filter:"+[Alfred*]* -[*.Tests]* -[*]*ObjectDiffPatch*" -register:user
 .\tools\coveralls.net.0.7.0\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml


no windows support needed

no windows support needed

--- install.bat
+++ install.bat
@@ -1,5 +0,0 @@
-cd deploy_cloud_vm
-go get
-go build
-go install
-cd ..


Support VS tool chain 2017 or higher

Support VS tool chain 2017 or higher

--- install.bat
+++ install.bat
@@ -446,7 +446,7 @@
 	return nil
 end

-local function get_visual_studio_directory()
+local function get_visual_studio_directory_from_registry()
 	assert(type(vars.LUA_RUNTIME)=="string", "requires vars.LUA_RUNTIME to be set before calling this function.")
 	local major, minor = vars.LUA_RUNTIME:match('VCR%u*(%d+)(%d)$') -- MSVCR<x><y> or VCRUNTIME<x><y>
 	if not major then
@@ -469,6 +469,47 @@
 	return nil
 end

+local function get_visual_studio_directory_from_vswhere()
+	assert(type(vars.LUA_RUNTIME)=="string", "requires vars.LUA_RUNTIME to be set before calling this function.")
+	local major, minor = vars.LUA_RUNTIME:match('VCR%u*(%d+)(%d)$')
+	if not major then
+		print(S[[    Cannot auto-detect Visual Studio version from $LUA_RUNTIME]])
+		return nil
+	end
+	if tonumber(major) < 14 then
+		return nil
+	end
+	local program_dir = os.getenv('PROGRAMFILES(X86)')
+	if not program_dir then
+		return nil
+	end
+	local vswhere = program_dir.."\\Microsoft Visual Studio\\Installer\\vswhere.exe"
+	if not exists(vswhere) then
+		return nil
+	end
+	local f, msg = io.popen('"'..vswhere..'" -products * -property installationPath')
+	if not f then return nil, "failed to run vswhere: "..msg end
+	local vsdir = nil
+	while true do
+		local l, err = f:read()
+		if not l then
+			if err then
+				f:close()
+				return nil, err
+			else
+				break
+			end
+		end
+		vsdir = l
+	end
+	f:close()
+	if not vsdir then
+		return nil
+	end
+	print("    Visual Studio 2017 or higher found in: "..vsdir)
+	return vsdir
+end
+
 local function get_windows_sdk_directory()
 	assert(type(vars.LUA_RUNTIME) == "string", "requires vars.LUA_RUNTIME to be set before calling this function.")
 	-- Only v7.1 and v6.1 shipped with compilers
@@ -505,8 +546,19 @@
 	assert(type(vars.UNAME_M) == "string", "requires vars.UNAME_M to be set before calling this function.")
 	local x64 = vars.UNAME_M=="x86_64"

-	-- 1. try visual studio command line tools
-	local vcdir = get_visual_studio_directory()
+	-- 1. try visual studio command line tools of VS 2017 or higher
+	local vsdir = get_visual_studio_directory_from_vswhere()
+	if vsdir then
+		local vcvarsall = vsdir .. '\\VC\\Auxiliary\\Build\\vcvarsall.bat'
+		if exists(vcvarsall) then
+			local vcvarsall_args = { x86 = "", x86_64 = " x64" }
+			assert(vcvarsall_args[vars.UNAME_M], "vars.UNAME_M: only x86 and x86_64 are supported")
+			return ('call "%s"%s'):format(vcvarsall, vcvarsall_args[vars.UNAME_M])
+		end
+	end
+
+	-- 2. try visual studio command line tools
+	local vcdir = get_visual_studio_directory_from_registry()
 	if vcdir then
 		local vcvars_bats = {
 			x86 = {
@@ -535,7 +587,7 @@
 		end
 	end

-	-- 2. try for Windows SDKs command line tools.
+	-- 3. try for Windows SDKs command line tools.
 	local wsdkdir = get_windows_sdk_directory()
 	if wsdkdir then
 		local setenv = wsdkdir.."Bin\\SetEnv.cmd"


install for windows clones gdsfactory repo in home folder

--- install.bat
+++ install.bat
@@ -3,9 +3,9 @@
 pip install gdsfactory==5.33.9
 gf tool install

-if exist "%USERPROFILE%\gdsfactory" (goto SKIP_INSTALL)
-cd %USERPROFILE%
+if exist "%USERPROFILE%\Desktop\gdsfactory" (goto SKIP_INSTALL)
+cd %USERPROFILE%\Desktop
 git clone https://github.com/gdsfactory/gdsfactory.git

 :SKIP_INSTALL
-echo Conda is already installed!
+echo gdsfactory installed


Fixed install mistake

Fixed install mistake

--- install.bat
+++ install.bat
@@ -2,8 +2,8 @@
 REM Add a symlink to the vimrc
 del %USERPROFILE%\_vimrc
 mklink %USERPROFILE%\_vimrc %cd%\vimrc
-mklink %USERPROFILE%\vsvimrc %cd%\vimrc
-mklink %USERPROFILE%\vimcommon %cd%\vimcommon
+mklink %USERPROFILE%\_vsvimrc %cd%\vimrc
+mklink %USERPROFILE%\_vimcommon %cd%\vimcommon
 REM install Vundle
 git clone https://github.com/VundleVim/Vundle.vim.git %USERPROFILE%\vimfiles\bundle\Vundle.vim
 vim +PluginInstall +qall


1. bug fix for installing on x64 systems in "program files (x86)" (parentheses around x86 gave some escaping problems) 2. Adds named trees created by windows installer in the config file.

--- install.bat
+++ install.bat
@@ -640,11 +640,11 @@
 	f:write(S[[
 @ECHO OFF
 SETLOCAL
-SET LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%
+SET "LUA_PATH=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH%"
 IF NOT "%LUA_PATH_5_2%"=="" (
-   SET LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%
+   "SET LUA_PATH_5_2=$LUADIR\?.lua;$LUADIR\?\init.lua;%LUA_PATH_5_2%"
 )
-SET PATH=$BINDIR\;%PATH%
+SET "PATH=$BINDIR;%PATH%"
 "$LUA_INTERPRETER" "$BINDIR\]]..c..[[.lua" %*
 ENDLOCAL
 ]])
@@ -738,7 +738,8 @@
 if FORCE_CONFIG then
 	f:write("    home..[[/luarocks]],\n")
 end
-f:write(S"    [[$ROCKS_TREE]]\n")
+f:write(S"    { name = [[system]], root = [[$ROCKS_TREE]] },\n")
+f:write(S"    { name = [[user]],   root = home..[[/luarocks]] },\n")
 f:write("}\n")
 if vars.SCRIPTS_DIR then
 	f:write(S"scripts_dir=[[$SCRIPTS_DIR]]\n")


Fix: Run mini tools via PATH on Windows (2nd part)

--- scripts/dist.bat
+++ scripts/dist.bat
@@ -66,7 +66,7 @@
 @rem Setup the command line

 set JAR_NAME=%0
-findJar JAR_NAME %0
+call :findJar JAR_NAME %0
 ::if not exist %JAR_NAME% set JAR_NAME=%0.bat

 "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% -classpath "%CLASSPATH%" -jar %JAR_NAME% %CMD_LINE_ARGS% & exit /B


Add script to build dev version

Add script to build dev version

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

--- BuildTasks/create_dev_extension.bat
+++ BuildTasks/create_dev_extension.bat
@@ -0,0 +1,6 @@
+REM First Run the prepare tasks for each task:
+REM triggerbuildtask\perpareTriggerBuildTask.bat
+REM waitforbuildtask\perpareWaitForBuildTask.bat
+
+REM Don't forget to increase the version!
+tfx extension create --manifest-globs .\vss-extension_dev.json