summary: Added for getting FW build with VS 2008 (VC++ 9)

Reviewer: Ravi, Alby

git-svn-id: cdea853903caa9ee65c80dcf130ba33bcefa680f@401 f364fc6c-7e41-0410-b16c-eb8c68fe7df8

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

--- build_VC90.bat
+++ build_VC90.bat
@@ -0,0 +1,121 @@
+::
+:: Copyright (c) 2006-2008 Advanced Micro Devices, Inc. All Rights Reserved.
+:: This software is subject to the Apache v2.0 License.
+::
+
+
+set BASE_DIR=%1
+set TARGET=%2
+set PLATFORM=%3
+set CONFIG=%4
+
+set BITNESS=32
+set VARIANT=debug
+set LIBTYPE=shared
+set PASS=TRUE
+
+
+if "%PLATFORM%" NEQ "x64" GOTO CONFIG
+set BITNESS=64
+call "%VS90COMNTOOLS%..\..\VC\vcvarsall.bat" x86_amd64
+
+:CONFIG
+if "%CONFIG%" == "debug_static" set LIBTYPE=static
+if "%CONFIG%" == "release_static" set VARIANT=release
+if "%CONFIG%" == "release_static" set LIBTYPE=static
+if "%CONFIG%" == "release_shared" set VARIANT=release
+if "%CONFIG%" == "release_exe" set VARIANT=release
+
+echo BaseDir[%BASE_DIR%] Target[%TARGET%] Platform[%PLATFORM%] Variant[%VARIANT%]
+
+
+if "%SERVER%"=="TRUE" goto SERVER_ALL
+if "%BASE_DIR%"=="ALL" goto CLIENT_ALL
+goto CLIENT_ONE
+
+
+:CLIENT_ONE
+::--------------------------------
+SET SCONS=SCONS_CLIENT
+
+SET RETURN=END
+cd %BASE_DIR%
+GOTO RUN
+::--------------------------------
+
+
+:CLIENT_ALL
+::--------------------------------
+SET SCONS=SCONS_CLIENT
+
+SET RETURN=CLIENT_ALL_1
+cd Framewave
+GOTO RUN
+:CLIENT_ALL_1
+cd ..
+
+
+SET RETURN=END
+cd Test
+GOTO RUN
+::--------------------------------
+
+
+:SERVER_ALL
+::--------------------------------
+SET SCONS=SCONS_SERVER
+
+SET RETURN=SERVER_ALL_1
+cd Framewave
+GOTO RUN
+:SERVER_ALL_1
+cd ..
+
+SET RETURN=SERVER_ALL_2
+cd UnitTest
+GOTO RUN
+:SERVER_ALL_2
+cd ..
+
+echo PASS: %PASS% 		>> %LOG%
+if "%PASS%"=="FALSE" exit
+echo del ..\..\%CLIENT_ERROR%	>> %LOG%
+del ..\..\%CLIENT_ERROR%		>> %LOG%
+exit
+::--------------------------------
+
+
+:RUN
+::--------------------------------
+mkdir build\include
+mkdir build\tmp
+mkdir build\bin
+
+goto %SCONS%
+::--------------------------------
+
+
+:SCONS_SERVER
+::--------------------------------
+echo scons %TARGET% variant=%VARIANT% bitness=%BITNESS% libtype=%LIBTYPE% -j8 >> %LOG%
+call scons %TARGET% variant=%VARIANT% bitness=%BITNESS% libtype=%LIBTYPE% -j8 >> %LOG%
+
+echo errorlevel: %errorlevel% 	>> %LOG%
+if errorlevel 1 set PASS=FALSE
+GOTO %RETURN%
+::--------------------------------
+
+
+:SCONS_CLIENT
+::--------------------------------
+echo start /b /BelowNormal scons %TARGET% variant=%VARIANT% bitness=%BITNESS% libtype=%LIBTYPE% -j4
+     start /b /BelowNormal scons %TARGET% variant=%VARIANT% bitness=%BITNESS% libtype=%LIBTYPE% -j4
+GOTO %RETURN%
+::--------------------------------
+
+
+:END
+
+
+
+


Nono you sux ! Removed duplicate "

Nono you sux ! Removed duplicate "

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@8101 28e8926c-6b08-0410-baaa-805c5e19b8d6

--- scripts/windows/init.bat
+++ scripts/windows/init.bat
@@ -35,7 +35,7 @@
 SET CLASSPATH=%CLASSPATH%;%JARS%
 IF EXIST "%PROACTIVE%\ProActive_examples.jar" set CLASSPATH=%CLASSPATH%;%PROACTIVE%\ProActive_examples.jar

-set JAVA_CMD="%JAVA_HOME%\bin\java.exe" -Dproactive.home="%PROACTIVE%"  -Djava.security.manager -Djava.security.policy="%PROACTIVE%\scripts\proactive.java.policy" "
+set JAVA_CMD="%JAVA_HOME%\bin\java.exe" -Dproactive.home="%PROACTIVE%"  -Djava.security.manager -Djava.security.policy="%PROACTIVE%\scripts\proactive.java.policy"

 rem Adding java tools to the path
 SET OK=1


Get titan.bat working with new ext directory for extensions.

--- titan-all/src/main/bin/titan.bat
+++ titan-all/src/main/bin/titan.bat
@@ -2,7 +2,11 @@

 @echo off

-set LIBDIR=..\lib
+set work=%CD%
+
+if [%work:~-3%]==[bin] cd ..
+
+set LIBDIR=lib
 set EXTDIR=ext/*

 cd ext


appveyor: still working on ARM check

appveyor: still working on ARM check

--- testing/appveyor-scripts/build-test.bat
+++ testing/appveyor-scripts/build-test.bat
@@ -5,7 +5,7 @@
 cmake -G "%CMAKE_DASH_G%" ..
 msbuild ALL_BUILD.vcxproj

-if x%CMAKE_DASH_G:ARM=%==x%CMAKE_DASH_G% (
+if "x%CMAKE_DASH_G:ARM=%"=="x%CMAKE_DASH_G%" (
     ctest --output-on-failure
 )


change default test player: use 3.55.1320.

--- setup_vs_project_variables.bat
+++ setup_vs_project_variables.bat
@@ -5,4 +5,5 @@
 set BOOST_DIR=c:\libraries\boost\boost_1_52_0
 set FREEIMAGELIB_DIR=c:\libraries\FreeImage\%FreeImage_VERSION%
 set AIMP_PLUGINS_DIR=c:\AIMP\AIMP3.55.1312_RC2\Plugins
-::set AIMP_PLUGINS_DIR=%ProgramFiles%\AIMP3\Plugins+::set AIMP_PLUGINS_DIR=%ProgramFiles%\AIMP3\Plugins
+set AIMP_PLUGINS_DIR=c:\AIMP\AIMP3.55.1320\Plugins


mmx-console.bat: cosmetic change

mmx-console.bat: cosmetic change

Former-commit-id: 357b1f704cc485eb85d06a00bd586aa83ccdfb51
Former-commit-id: 4bec928ebd50021a92422184effc55e547705b92
Former-commit-id: 05277e82364eeb5e45b262e97066050d8e665f0b
Former-commit-id: 341ad1f76d1cb29a470be3a8b8b6cd62b556ffbe

--- mmx-console.bat
+++ mmx-console.bat
@@ -176,6 +176,7 @@
 		del .\%PROG%.pid
 	) else (
 		echo %PROGNAME% is not running
+		echo.
 	)
 	endlocal
 goto :end


Helper batch to stop gae, recompile and start gae again in debug mode.

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

--- rerun.bat
+++ rerun.bat
@@ -0,0 +1,3 @@
+mvn gae:stop
+mvn resources:resources compiler:compile war:exploded
+mvn gae:debug -Denv=local


Better reset.bat

Better reset.bat

--- reset.bat
+++ reset.bat
@@ -1,24 +1,95 @@
 @echo off
+
 :: go to directory containing batch file
-for /f %%i in ("%0") do set curpath=%%~dpi
+FOR /f %%i in ("%0") DO SET curpath=%%~dpi
 cd /d %curpath%
+
+SET doDev=0
+SET doSelendroid=0
+SET doAndroid=0
+
+FOR %%A IN (%*) DO IF "%%A" == "--dev" SET doDev=1
+FOR %%A IN (%*) DO IF "%%A" == "--android" SET doAndroid=1
+FOR %%A IN (%*) DO IF "%%A" == "--selendroid" SET doSelendroid=1

 :: Install Package and Dependencies
 echo.
 echo npm install .
 call npm install .

-:: Reset Android
-echo.
-echo =====Resetting Android=====
-echo.
-echo grunt configAndroidBootstrap
-call node_modules\.bin\grunt configAndroidBootstrap
-echo.
-echo gruntbuildAndroidBootstrap
-call node_modules\.bin\grunt buildAndroidBootstrap
-echo.
-echo grunt setConfigVer:android
-call node_modules\.bin\grunt setConfigVer:android
-echo.
-echo =====Reset Complete=====+::Install Dev Dependencies
+if %doDev% == 1 (
+  echo.
+  echo npm install . --dev
+  call npm install . --dev
+)
+
+::Reset Android
+if %doAndroid% == 1 (
+  echo.
+  echo =====Resetting Android=====
+  echo.
+  echo grunt configAndroidBootstrap
+  call node_modules\.bin\grunt configAndroidBootstrap
+  echo.
+  echo grunt buildAndroidBootstrap
+  call node_modules\.bin\grunt buildAndroidBootstrap
+  echo.
+  echo grunt setConfigVer:android
+  call node_modules\.bin\grunt setConfigVer:android
+  echo.
+  echo =====Reset Complete=====
+
+  echo.
+  echo =====Resetting Unlock.apk=====
+  echo.
+  call rd /S /Q build\unlock_apk
+  call mkdir build\unlock_apk
+  echo Building Unlock.apk
+  call git submodule update --init submodules\unlock_apk
+  call pushd submodules\unlock_apk
+  call ant clean
+  call ant debug
+  call popd
+  call copy submodules\unlock_apk\bin\unlock_apk-debug.apk build\unlock_apk\unlock_apk-debug.apk
+  echo =====Reset Complete=====
+
+  :: Reset Android Dev
+  if %doDev% == 1 (
+    echo.
+    echo =====Resetting API Demos=====
+    echo.
+    echo Cloning/updating Android test app: ApiDemos
+    call git submodule update --init submodules\ApiDemos
+    call rd /S /Q sample-code\apps\ApiDemos
+    call mkdir sample-code\apps\ApiDemos
+    call xcopy submodules\ApiDemos sample-code\apps\ApiDemos /E /Q
+    echo.
+    echo grunt configAndroidApp:ApiDemos
+    call node_modules\.bin\grunt configAndroidApp:ApiDemos
+    echo.
+    echo grunt buildAndroidApp:ApiDemos
+    call node_modules\.bin\grunt buildAndroidApp:ApiDemos
+  )
+)
+
+::Reset Selendroid
+IF %doSelendroid% == 1 (
+  echo.
+  echo =====Resetting Selendroid=====
+  echo.
+  echo Clearing out any old modified server apks
+  call rd -/S /Q %windir%\Temp\selendroid*.apk
+  echo Cloning/updating selendroid
+  call rd -/S /Q submodules\selendroid\selendroid-server\target
+  call git submodule update --init submodules\selendroid
+  call rd /S /Q selendroid
+  echo Building selendroid server and supporting libraries
+  echo grunt buildSelendroidServer --force
+  call node_modules\.bin\grunt buildSelendroidServer --force
+  echo Setting Selendroid config to Appium's version
+  echo grunt setConfigVer:selendroid
+  call node_modules\.bin\grunt setConfigVer:selendroid
+  echo.
+  echo =====Reset Complete=====
+)


git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@7309 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd

--- Test_Programs/MMCoreTest/UpdateAdapters.bat
+++ Test_Programs/MMCoreTest/UpdateAdapters.bat
@@ -1,3 +1,5 @@
+del *.ilk /s/q/f
+del *.ncb /s/q/f
 del mmgr_dal*.dll /s/q/f


add pause command to install script

add pause command to install script


cmdize.bat: fix typos in comments

cmdize.bat: fix typos in comments

--- bin/cmdize.bat
+++ bin/cmdize.bat
@@ -164,9 +164,9 @@

 :cmdize.wsf
 for /f "usebackq tokens=1,2,* delims=?" %%a in ( "%~f1" ) do for /f "tokens=1,*" %%d in ( "%%b" ) do (
-	rem We use this code to transform the "<?xml?> declaration located
-	rem at the very beginning of the file to the "polyglot" to do it
-	rem acceptable by the batch file.
+	rem We use this code to transform the "<?xml?>" declaration
+	rem located at the very beginning of the file to the "polyglot"
+	rem form to do it acceptable by the batch file.
 	echo:%%a?%%d :
 	echo:: %%e ?^>^<!--
 	echo:@echo off


* Add build-debug.bat

* Add build-debug.bat

error: pathspec 'mediainfo/MediaInfoLib/Project/MSVC2015/build-debug.bat' did not match any file(s) known to git

--- mediainfo/MediaInfoLib/Project/MSVC2015/build-debug.bat
+++ mediainfo/MediaInfoLib/Project/MSVC2015/build-debug.bat
@@ -0,0 +1,2 @@
+call "%VS140COMNTOOLS%....\VC\bin\vcvars32.bat"
+"%VS140COMNTOOLS%..\ide\devenv" MediaInfoLib.sln /Build "Debug|Win32"


Launch script fix

Launch script fix

Restored server start-up wait to windows launch file

--- bin/gonias.bat
+++ bin/gonias.bat
@@ -6,7 +6,9 @@

 rem Run the NIAS services. Add to the BOTTOM of this list
 start nats-streaming-server -p 4223 -sc napval_nss.cfg
+timeout /t 3
 start napval
+

 rem Run the web client (launch browser here)
 start http://localhost:1325/nias


remove unnecessary clean step

remove unnecessary clean step

--- build.bat
+++ build.bat
@@ -9,7 +9,6 @@
 IF NOT EXIST %MSBUILDDIR%msbuild.exe goto MissingMSBuildExe

 :: "%MSBUILDDIR%msbuild.exe" /?
-"%MSBUILDDIR%msbuild.exe" PsikonStats.sln /v:d /t:clean /p:Configuration=%1
 "%MSBUILDDIR%msbuild.exe" PsikonStats.sln /v:d /t:rebuild /p:Configuration=%1


I think I messed up the history.

I think I messed up the history.

--- build.bat
+++ build.bat
@@ -1,2 +1,2 @@
 @echo off
-php build.php
+php build.php %*


Revert build.bat

Revert build.bat

--- build.bat
+++ build.bat
@@ -65,7 +65,7 @@
 	&& odin run examples/demo

 if %errorlevel% neq 0 goto end_of_build
-rem if %release_mode% EQU 0 odin run examples/demo/demo.odin
+if %release_mode% EQU 0 odin run examples/demo/demo.odin

 del *.obj > NUL 2> NUL


Fix build script

Fix build script

--- build.bat
+++ build.bat
@@ -14,10 +14,8 @@
 	set nuget=nuget
 )

-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\Titanium.Web.Proxy /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Titanium.Web.Proxy.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false

 mkdir Build
-mkdir Build\lib
-mkdir Build\lib\net40

 %nuget% pack "Titanium.Web.Proxy.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"


Use BuildLib 0.3.6

Use BuildLib 0.3.6

--- build.cmd
+++ build.cmd
@@ -6,16 +6,16 @@
 SET NUGET=.\tools\nuget\NuGet.exe
 SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion

-IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.25.4 (
+IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.28.0 (
   RD /S/Q %PACKAGEPATH%FAKE
-  %NUGET% install FAKE -Version 4.25.4 %NUGETOPTIONS%
-  COPY NUL %PACKAGEPATH%FAKE\Ver_4.25.4
+  %NUGET% install FAKE -Version 4.28.0 %NUGETOPTIONS%
+  COPY NUL %PACKAGEPATH%FAKE\Ver_4.28.0
 )

-IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.3.5 (
+IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.3.6 (
   RD /S/Q %PACKAGEPATH%FAKE.BuildLib
-  %NUGET% install FAKE.BuildLib -Version 0.3.5 %NUGETOPTIONS%
-  COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.3.5
+  %NUGET% install FAKE.BuildLib -Version 0.3.6 %NUGETOPTIONS%
+  COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.3.6
 )

 set encoding=utf-8


change klr to kre

change klr to kre

--- build.cmd
+++ build.cmd
@@ -26,8 +26,8 @@
 cd src\FSharpSupport

 SET ERRORLEVEL=
-echo klr --lib "%USERPROFILE%\.klr;%USERPROFILE%\.klr\lib\Microsoft.Framework.PackageManager;%~dp0\packages\FSharpSupport\lib\net45" "Microsoft.Framework.PackageManager" build
-call klr --lib "%USERPROFILE%\.klr;%USERPROFILE%\.klr\lib\Microsoft.Framework.PackageManager;%~dp0\packages\FSharpSupport\lib\net45" "Microsoft.Framework.PackageManager" build
+echo klr --lib "%USERPROFILE%\.kre;%USERPROFILE%\.kre\lib\Microsoft.Framework.PackageManager;%~dp0\packages\FSharpSupport\lib\net45" "Microsoft.Framework.PackageManager" build
+call klr --lib "%USERPROFILE%\.kre;%USERPROFILE%\.kre\lib\Microsoft.Framework.PackageManager;%~dp0\packages\FSharpSupport\lib\net45" "Microsoft.Framework.PackageManager" build
 exit /b %ERRORLEVEL%

 echo DONE


fix windows build

fix windows build

--- build.cmd
+++ build.cmd
@@ -22,7 +22,7 @@
 .nuget\NuGet.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -o packages

 :korebuild
-IF EXIST packages\Sake goto dnx
+IF EXIST packages\KoreBuild goto dnx
 .nuget\nuget.exe install KoreBuild -ExcludeVersion -Source https://www.myget.org/F/aspnetvnext/api/v2 -o packages -nocache -pre


Fix set syntax

Fix set syntax

--- build.cmd
+++ build.cmd
@@ -397,7 +397,7 @@
     exit /b !errorlevel!
 )

-set /p __PgoOptDataVersion<"%__IntermediatesDir%\optdataversion.txt"
+set /p __PgoOptDataVersion=<"%__IntermediatesDir%\optdataversion.txt"

 call "%__ProjectDir%\dotnet.cmd" msbuild "%OptDataProjectFilePath%" /t:DumpIbcDataPackageVersion /nologo %__CommonMSBuildArgs%

@@ -652,7 +652,7 @@
             exit /b 1
         )

-        set /p __IbcMergeVersion<"%__IntermediatesDir%\ibcmergeversion.txt"
+        set /p __IbcMergeVersion=<"%__IntermediatesDir%\ibcmergeversion.txt"

         set IbcMergePath=%__PackagesDir%\microsoft.dotnet.ibcmerge\!__IbcMergeVersion!\tools\netcoreapp2.0\ibcmerge.dll
         if exist !IbcMergePath! (


Updating to only use latest MSBuild.

Updating to only use latest MSBuild.

--- build.cmd
+++ build.cmd
@@ -2,9 +2,7 @@
 setlocal

 :: Check prerequisites
-set _msbuildexe="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe"
-if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles%\MSBuild\12.0\Bin\MSBuild.exe"
-if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
+set _msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
 if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"
 if not exist %_msbuildexe% echo Error: Could not find MSBuild.exe.  Please see https://github.com/Microsoft/vipr/wiki/Developer%%20Guide for build instructions. && exit /b 2


Adding switch to build.cmd to skip KRE install

--- build.cmd
+++ build.cmd
@@ -18,6 +18,8 @@
 IF EXIST packages\KoreBuild goto run
 .nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
 .nuget\NuGet.exe install Sake -version 0.2 -o packages -ExcludeVersion
+
+IF "%SKIP_KRE_INSTALL%"=="1" goto run
 CALL packages\KoreBuild\build\kvm upgrade -svr50 -x86
 CALL packages\KoreBuild\build\kvm install default -svrc50 -x86


Add /machine:x64, flag which was lost when setting /FORCE:MULTIPLE

--- recipes/ocp/bld.bat
+++ recipes/ocp/bld.bat
@@ -7,7 +7,7 @@
     -DPython3_FIND_STRATEGY=LOCATION ^
     -DPython3_ROOT_DIR=%CONDA_PREFIX% ^
     -DCMAKE_LINKER=lld-link.exe ^
-    -DCMAKE_MODULE_LINKER_FLAGS="/FORCE:MULTIPLE"
+    -DCMAKE_MODULE_LINKER_FLAGS="/machine:x64 /FORCE:MULTIPLE"
 if errorlevel 1 exit 1

 cmake --build build -j %CPU_COUNT% -- -v -k 0


Hides command output from Windows batch file

--- bin/plugline.cmd
+++ bin/plugline.cmd
@@ -1 +1 @@
-node "%~dp0\..\src\plugline.js" %*+@node "%~dp0\..\src\plugline.js" %*


dotnetcore

dotnetcore

--- src2/SpentBook.Web/Admin/Scripts/install.bat
+++ src2/SpentBook.Web/Admin/Scripts/install.bat
@@ -39,14 +39,14 @@

 echo.
 echo *** Deleting database if exists...
-dotnet ef database drop -f
+dotnet ef database drop -f --context ApplicationContext

 echo.
 echo *** Creating database...
 set now=%date:~-4%_%date:~3,2%_%date:~0,2%__%time:~0,2%_%time:~3,2%_%time:~6,2%
-dotnet ef migrations add %now%
+dotnet ef migrations add %now% --context ApplicationContext
 dotnet run clean-empty-migrations-files
-dotnet ef database update
+dotnet ef database update --context ApplicationContext

 echo.
 echo *** DONE!


Deploy built DLLs in windows-build-deps.cmd.

--- tools/windows-build-deps.cmd
+++ tools/windows-build-deps.cmd
@@ -5,6 +5,7 @@
 set PATH=%PATH%;"%CD%\tools\utils-windows"
 set TOOLS=%CD%\tools
 set TUNDRA_DIR="%CD%"
+set TUNDRA_BIN=%CD%\bin
 set DEPS=%CD%\deps
 cd %TOOLS%

@@ -59,13 +60,21 @@
    cecho {0D}Configuring Qt build. Please answer 'y'!.{# #}{\n}
    configure -debug-and-release -opensource -shared -ltcg -no-qt3support -no-opengl -no-openvg -platform win32-msvc2008 -no-dbus -nomake examples -nomake demos
    IF NOT %ERRORLEVEL%==0 GOTO :ERROR
-   cecho {0D}Building qt. Please be patient, this will take a while.{# #}{\n}
+   cecho {0D}Building Qt. Please be patient, this will take a while.{# #}{\n}
    nmake /nologo
    :: Qt build system is slightly broken: see https://bugreports.qt-project.org/browse/QTBUG-6470. Work around the issue.
    set ERRORLEVEL=0
    del /s /q mocinclude.tmp
    nmake /nologo
    IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+
+   cecho {0D}Deploying qt DLLs to Tundra bin\.{# #}{\n}
+   copy /Y "%DEPS%\qt\bin\*.dll" "%TUNDRA_BIN%"
+   IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+   mkdir "%TUNDRA_BIN%\qtplugins"
+   xcopy /E /I /C /H /R /Y "%DEPS%\qt\plugins\*.*" "%TUNDRA_BIN%\qtplugins"
+   IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+
 ) ELSE (
    cecho {0D}Qt already built. Skipping.{# #}{\n}
 )
@@ -242,6 +251,12 @@
 ::msbuild INSTALL.vcproj /p:configuration=MinSizeRel /clp:ErrorsOnly /nologo
 ::msbuild INSTALL.vcproj /p:configuration=Release /clp:ErrorsOnly /nologo
 msbuild INSTALL.vcproj /p:configuration=RelWithDebInfo /clp:ErrorsOnly /nologo
+IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+
+cecho {0D}Deploying Ogre DLLs to Tundra bin\ directory.{# #}{\n}
+copy /Y "%DEPS%\ogre-safe-nocrashes\bin\debug\*.dll" "%TUNDRA_BIN%"
+IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+copy /Y "%DEPS%\ogre-safe-nocrashes\bin\relwithdebinfo\*.dll" "%TUNDRA_BIN%"
 IF NOT %ERRORLEVEL%==0 GOTO :ERROR

 cecho {0C}NOTE: Skipping PythonQt build for now!{# #}{\n}
@@ -273,10 +288,20 @@
 msbuild SKYX.sln /p:configuration=RelWithDebInfo /clp:ErrorsOnly /nologo
 IF NOT %ERRORLEVEL%==0 GOTO :ERROR

+cecho {0D}Deploying SkyX DLLs to Tundra bin\.{# #}{\n}
+copy /Y "%DEPS%\realxtend-tundra-deps\skyx\bin\debug\*.dll" "%TUNDRA_BIN%"
+IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+copy /Y "%DEPS%\realxtend-tundra-deps\skyx\bin\relwithdebinfo\*.dll" "%TUNDRA_BIN%"
+IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+
 cecho {0D}Building Hydrax. Please be patient, this will take a while.{# #}{\n}
 cd "%DEPS%\realxtend-tundra-deps\hydrax\msvc9"
 msbuild Hydrax.sln /p:configuration=Debug /clp:ErrorsOnly /nologo
 msbuild Hydrax.sln /p:configuration=Release /clp:ErrorsOnly /nologo
+IF NOT %ERRORLEVEL%==0 GOTO :ERROR
+
+cecho {0D}Deploying Hydrax DLLs to Tundra bin\.{# #}{\n}
+copy /Y "%DEPS%\realxtend-tundra-deps\hydrax\lib\*.dll" "%TUNDRA_BIN%"
 IF NOT %ERRORLEVEL%==0 GOTO :ERROR

 IF NOT EXIST "%DEPS%\qt-solutions". (
@@ -342,7 +367,7 @@
    cecho {0D}Speex already built. Skipping.{# #}{\n}
 )

-cecho {0A}All done.{# #}{\n}
+cecho {0A}Tundra dependencies built.{# #}{\n}
 cd %TOOLS%
 GOTO :EOF


Support TeXLive and MiKTeX now.

Support TeXLive and MiKTeX now.

--- bctim.bat
+++ bctim.bat
@@ -1,9 +1,9 @@
 :: Copyright 2014 by SyneArt <sa@syneart.com>
 @echo off&cls&title Install&color 0F&mode con cols=38 lines=10
 setlocal enableextensions enabledelayedexpansion
-
 echo.&echo.&echo.&echo.&echo Install Theme Now ..
 set texPath=nul
+REM TeXLive
 call tlmgr --version 1>nul 2>&1 && (
 	for /f "tokens=1* delims=:" %%a in ('tlmgr --version') do (
 		if "%%a"=="tlmgr using installation" (
@@ -14,18 +14,24 @@
 	set texPath=!texPath!\texmf-dist\tex\latex\beamer\
 	call:copyFile .\themes, *.sty&call:copyFile .\art, *.jpg
 	texhash >nul 2>&1
-) || call tlmgr --version 1>nul 2>&1 && (
-	:: To-Do : MiKTeX
+REM MiKTeX
+) || call initexmf --version 1>nul 2>&1 && (
+	for /f "tokens=1* delims=:" %%a in ('initexmf --report') do (
+		if "%%a"=="UserInstall" (
+			set texPath="%%b"&set texPath=!texPath:" =!
+			set texPath=!texPath:"=!
+		)
+	)
 	set texPath=!texPath!\tex\latex\beamer\base\
 	call:copyFile .\themes, *.sty&call:copyFile .\art, *.jpg
 	initexmf --admin --update-fndb >nul
 ) || (
-	cls&echo.&echo.&echo.&echo.&echo 請先安裝 MiKTeX, 再執行本安裝
+	cls&echo.&echo.&echo.&echo.&echo Please install LaTeX first.
 	color E3&set /p=&goto exit
 )

 if !errorlevel!==1 (
-	cls&echo.&echo.&echo.&echo.&echo 請先停止編譯 MiKTeX 專案, 再執行
+	cls&echo.&echo.&echo.&echo.&echo Please stop LaTeX Compile first.
 	color 4C&set /p=&goto exit
 )
 cls&echo.&echo.&echo.&echo.&echo Install Theme Successful ^^!&color 2A&ping 127.0.0.1 -n 3 >nul&goto exit


Install smaller things first, like chrome so can be used immediately

--- ServerSetupScripts/Windows/Chocolatey/Vagrant.bat
+++ ServerSetupScripts/Windows/Chocolatey/Vagrant.bat
@@ -1,5 +1,5 @@
 @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
-choco install vagrant chefdk virtualbox visualstudiocode 7zip googlechrome notepadplusplus.install firefox git.install tortoisegit -y
+choco install googlechrome 7zip notepadplusplus.install firefox git.install tortoisegit vagrant chefdk virtualbox visualstudiocode -y
 refreshenv
 vagrant plugin install vagrant-winrm
 vagrant box add mwrock/Windows2016 --provider virtualbox


#17 add simple start script for Windows

#17 add simple start script for Windows

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

--- start.bat
+++ start.bat
@@ -0,0 +1 @@
+java -jar jmms-1.0-SNAPSHOT.jar


Fix dumb mistake

Fix dumb mistake

--- autoclean-prep.bat
+++ autoclean-prep.bat
@@ -158,7 +158,7 @@

 	echo Launching ADWCLeaner
 	echo START "" /WAIT "%workingdir%\Tron\tron\resources\stage_9_manual_tools\adwcleaner*.exe"
-	START "" /WAIT "%workingdir%\Tron\tron\resources\stage_9_manual_tools\adwcleaner.exe"
+	START "" /WAIT "%workingdir%\Tron\tron\resources\stage_9_manual_tools\adwcleaner*.exe"
 	echo,

 	if /i %av%==y echo Installing/updating Avira, Chrome, Teamviewer 12 else echo Installing/updating Chrome & Teamviewer 12


HIVE-10544 : Beeline/Hive JDBC Driver fails in HTTP mode on Windows with java.lang.NoSuchFieldError: INSTANCE (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

--- bin/beeline.cmd
+++ bin/beeline.cmd
@@ -42,23 +42,24 @@
 )
 @rem supress the HADOOP_HOME warnings in 1.x.x
 set HADOOP_HOME_WARN_SUPPRESS=true
-call %HADOOP_HOME%\libexec\hadoop-config.cmd

 @rem include only the beeline client jar and its dependencies
 pushd %HIVE_HOME%\lib
 for /f %%a IN ('dir /b hive-beeline-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b super-csv-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b jline-**.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 for /f %%a IN ('dir /b hive-jdbc-**-standalone.jar') do (
-  set CLASSPATH=%CLASSPATH%;%HIVE_HOME%\lib\%%a
+  set HADOOP_CLASSPATH=%HADOOP_CLASSPATH%;%HIVE_HOME%\lib\%%a
 )
 popd
+set HADOOP_USER_CLASSPATH_FIRST=true
+call %HADOOP_HOME%\libexec\hadoop-config.cmd

 call %JAVA_HOME%\bin\java %JAVA_HEAP_MAX% %HADOOP_OPTS% -classpath %CLASSPATH% org.apache.hive.beeline.BeeLine %*


Adding windows dir variable instead of hardcoding it.

--- build.bat
+++ build.bat
@@ -1 +1 @@
-c:\windows\syswow64\windowspowershell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file ./build.ps1 %1+%windir%\syswow64\windowspowershell\v1.0\powershell.exe -noprofile -executionpolicy Bypass -file ./build.ps1 %1


Fixed slight error in build.bat.  Folders with a space in the name wouldn't work.

--- build.bat
+++ build.bat
@@ -10,7 +10,7 @@
 python util/build_doc.py src\presentation_layer.json > OPTIONS.md

 echo Assembling template...
-python util\build_tmpl.py %cd%
+python util\build_tmpl.py "%cd%"

 del tmp\apl.build
 rmdir tmp


Fix build when PATH contains spaces

Fix build when PATH contains spaces

--- build.bat
+++ build.bat
@@ -16,13 +16,13 @@
 go build src\nvm.go

 REM Group the file with the helper binaries
-move nvm.exe %GOBIN%
+move nvm.exe "%GOBIN%"

 REM Codesign the executable
-.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a %GOBIN%\nvm.exe
+.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a "%GOBIN%\nvm.exe"

-for /f %%i in ('%GOBIN%\nvm.exe version') do set AppVersion=%%i
+for /f %%i in ('"%GOBIN%\nvm.exe" version') do set AppVersion=%%i
 echo nvm.exe v%AppVersion% built.

 REM Create the distribution folder
@@ -38,10 +38,10 @@
 mkdir "%DIST%"

 REM Create the "no install" zip version
-for %%a in (%GOBIN%) do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" "%%a\*" -x "%GOBIN%\nodejs.ico")
+for %%a in ("%GOBIN%") do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" %%a\* -x "%GOBIN%\nodejs.ico")

 REM Generate the installer (InnoSetup)
-buildtools\iscc %INNOSETUP% /o%DIST%
+buildtools\iscc "%INNOSETUP%" "/o%DIST%"
 buildtools\zip -j -9 -r "%DIST%\nvm-setup.zip" "%DIST%\nvm-setup.exe"

 REM Generate checksums


Build script fix v_v

Build script fix v_v

--- build.bat
+++ build.bat
@@ -14,15 +14,6 @@
 echo.
 echo Starting.
 echo.
-
-for /f "tokens=*" %%a in (%1) do (
-
-   set write=%%a
-   if %%a==%findthis% set write=%replacewith%
-
-   echo !write!
-   echo !write! >>%~n1.replaced%~x1
-)

 SET mypath=%~dp0
 echo Running build.cmd from %mypath:~0,-1%
@@ -139,4 +130,4 @@
 ) ELSE (
 	echo MSBuild.exe not found.
 	exit
-)+)


Fixing gitlink path in the batch file

Fixing gitlink path in the batch file

--- build.bat
+++ build.bat
@@ -1,6 +1,6 @@
 @echo off
 cls
 If Not Exist src\.nuget\nuget.exe msbuild src\.nuget\NuGet.targets -Target:RestorePackages
-If Not Exist src\packages\gitlink\lib\net45\GitLink.exe src\.nuget\nuget.exe Install gitlink -Source "https://www.nuget.org/api/v2/" -OutputDirectory "src\packages" -ExcludeVersion
+If Not Exist src\packages\gitlink\build\GitLink.exe src\.nuget\nuget.exe Install gitlink -Source "https://www.nuget.org/api/v2/" -OutputDirectory "src\packages" -ExcludeVersion
 If Not Exist src\packages\FAKE\tools\fake.exe src\.nuget\nuget.exe Install FAKE -Source "https://www.nuget.org/api/v2/" -OutputDirectory "src\packages" -ExcludeVersion
 src\packages\FAKE\tools\fake.exe build.fsx %*


Check for VS Build tools

Check for VS Build tools

--- build.cmd
+++ build.cmd
@@ -1,6 +1,15 @@
 @echo off
 setlocal
+if "%VS120COMNTOOLS%"=="" GOTO NOTOOLS
 call "%VS120COMNTOOLS%\VsDevCmd.bat"
 msbuild .\PSScriptAnalyzer.sln
 if NOT [%ERRORLEVEL%]==[0] pause
+
+GOTO END
+
+:NOTOOLS
+echo The Visual Studio 2012 tools are not installed
+pause
+
+:END
 endlocal


Remove pause command from build.cmd

Remove pause command from build.cmd

--- build.cmd
+++ build.cmd
@@ -3,4 +3,3 @@
   .nuget\nuget.exe install FAKE -OutputDirectory packages -ExcludeVersion -Prerelease
 )
 packages\FAKE\tools\FAKE.exe build.fsx %*
-pause


Add windowsmscorlib option to build.cmd

Add windowsmscorlib option to build.cmd

--- build.cmd
+++ build.cmd
@@ -31,6 +31,7 @@

 if /i "%1" == "clean"   (set __CleanBuild=1&shift&goto Arg_Loop)

+if /i "%1" == "windowsmscorlib" (set __MscorlibOnly=1&set __BuildOS=Windows_NT&shift&goto Arg_Loop)
 if /i "%1" == "linuxmscorlib" (set __MscorlibOnly=1&set __BuildOS=Linux&shift&goto Arg_Loop)
 if /i "%1" == "osxmscorlib" (set __MscorlibOnly=1&set __BuildOS=OSX&shift&goto Arg_Loop)

@@ -228,6 +229,7 @@
 echo BuildType can be: Debug, Release
 echo Clean - optional argument to force a clean build.
 echo VSVersion - optional argument to use VS2013 or VS2015 (default VS2013)
+echo windowsmscorlib - Build mscorlib for Windows
 echo linuxmscorlib - Build mscorlib for Linux
 echo osxmscorlib - Build mscorlib for OS X
 exit /b 1


For some reason build outputs moved

For some reason build outputs moved

--- build.cmd
+++ build.cmd
@@ -31,7 +31,7 @@
 :artifacts
 IF NOT EXIST artifacts md artifacts
 IF NOT EXIST artifacts\packages md artifacts\packages
-XCOPY src\Compose\bin\Release\*.nupkg artifacts\packages /y
+XCOPY src\artifacts\bin\Compose\Release\*.nupkg artifacts\packages /y

 ) else (
 echo Unable to complete. Insufficient privileges.


[publish binary] a damn, after VS command prompt "%platform%" is upper case "X64"

--- scripts/build-appveyor.bat
+++ scripts/build-appveyor.bat
@@ -41,7 +41,7 @@

 ::custom node for VS2015
 SET ARCHPATH=
-IF "%platform%"=="x64" (SET ARCHPATH=x64/)
+IF /I "%platform%"=="x64" (SET ARCHPATH=x64/)
 SET NODE_URL=https://mapbox.s3.amazonaws.com/node-cpp11/v%nodejs_version%/%ARCHPATH%node.exe
 ECHO downloading node^: %NODE_URL%
 powershell Invoke-WebRequest "${env:NODE_URL}" -OutFile node.exe


explicitly set platforms for `powershell Install-Product` on AppVeyor

--- scripts/build-appveyor.bat
+++ scripts/build-appveyor.bat
@@ -34,9 +34,15 @@
 ::IF /I "%APPVEYOR%"=="True" IF /I "%msvs_toolset%"=="12" powershell Install-Product node $env:nodejs_version $env:Platform
 ::TESTING:
 ::always install (get npm matching node), but delete installed programfiles node.exe afterwards for VS2015 (using custom node.exe)
-IF /I "%APPVEYOR%"=="True" powershell Install-Product node $env:nodejs_version $env:Platform
+IF /I "%APPVEYOR%"=="True" GOTO APPVEYOR_INSTALL
+GOTO SKIP_APPVEYOR_INSTALL
+
+:APPVEYOR_INSTALL
+IF /I "%platform%"=="x64" powershell Install-Product node $env:nodejs_version x64
+IF /I "%platform%"=="x86" powershell Install-Product node $env:nodejs_version x86
 IF %ERRORLEVEL% NEQ 0 GOTO ERROR

+:SKIP_APPVEYOR_INSTALL
 IF /I "%msvs_toolset%"=="12" GOTO NODE_INSTALLED


Added profile-help batch script

Added profile-help batch script

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

--- telem.bat
+++ telem.bat
@@ -0,0 +1,3 @@
+C:\Python27\python.exe "C:\Users\Nick\My Dropbox\Code\telemetry-utils-master\add-opt-in.py" "C:\Users\Nick\My Dropbox\Code\MDE2\bin\MDE2.swf"
+PING 1.1.1.1 -n 1 -w 500 >NUL
+start "" "C:\Users\Nick\My Dropbox\Code\MDE2\bin\MDE2.swf"


Added service description

Added service description

--- scripts/provision-etcd.bat
+++ scripts/provision-etcd.bat
@@ -26,6 +26,8 @@
 "%NSSM%" install "%SERVICE_NAME%" "%ETCD%"
 "%NSSM%" set "%SERVICE_NAME%" AppParameters "-config C:\opt\etcd\etc\etcd.conf -trace=*"
 "%NSSM%" set "%SERVICE_NAME%" AppStdout "C:\opt\etcd\log\etcd.log"
+"%NSSM%" set "%SERVICE_NAME%" Description "etcd Service for Windows"
+

 if not errorlevel 1 (
   :rem echo.


Update VirtualBox guest additions 5.1.8

Update VirtualBox guest additions 5.1.8

--- scripts/vm-guest-tools.bat
+++ scripts/vm-guest-tools.bat
@@ -37,7 +37,7 @@
 )

 if not exist "C:\Windows\Temp\VBoxGuestAdditions.iso" (
-    powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.virtualbox.org/virtualbox/5.0.26/VBoxGuestAdditions_5.0.26.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')" <NUL
+    powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://download.virtualbox.org/virtualbox/5.1.8/VBoxGuestAdditions_5.1.8.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')" <NUL
 )

 cmd /c ""C:\Program Files\7-Zip\7z.exe" x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox"


Added version up script.

Added version up script.

git-svn-id: d766b2a131eb5d649bacb6a45bc0bcd899bdfdb3@112 c938ebee-df10-0410-95fc-be8c4b0ebdd5

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

--- verup.bat
+++ verup.bat
@@ -0,0 +1,13 @@
+@echo off
+
+echo "%1"
+
+if "" == "%1" goto END
+
+rem svn ls http://localhost:9000/repos-inside/kozuchi/tags/%1
+
+svn copy http://localhost:9000/repos-inside/kozuchi/trunk http://localhost:9000/repos-inside/kozuchi/tags/%1 -m "version up %1"
+
+:END
+
+echo done


Fixed cleaning in folders with spaces

Fixed cleaning in folders with spaces

--- clean.bat
+++ clean.bat
@@ -2,12 +2,12 @@

 set REMOVE_EXTENTIONS=*.db *.o *.ppu *.a *.res~ *.dcu *.ddp *.local *.identcache *.exe *.or *.compiled *.cfg *.dbg *.dof *.lps *.res

-for /F %%A in ('dir %REMOVE_EXTENTIONS% /b /s /a:-d') do (
-	del /Q %%A
+for /F "delims=" %%A in ('dir %REMOVE_EXTENTIONS% /b /s /a:-d') do (
+	del /Q "%%A"
 )

-for /F %%A in ('dir *__history *backup /b /s /a:D') do (
-	rd %%A /S /Q
+for /F "delims=" %%A in ('dir *__history *backup /b /s /a:D') do (
+	rd "%%A" /S /Q
 )

 pause


MSBuild Platform property for 32-bit is Win32

--- build.bat
+++ build.bat
@@ -17,7 +17,7 @@

 :32
 set NANOP=32
-set MSBUILDP=x86
+set MSBUILDP=Win32
 set GENERATOR="Visual Studio 14 2015"
 goto :Build

@@ -54,4 +54,4 @@
 :Usage
 @echo build.bat
 @echo Usage: build.bat [32 or 64]
-exit /B 1+exit /B 1


build cmd checks paket.lock

build cmd checks paket.lock

--- build.cmd
+++ build.cmd
@@ -6,6 +6,11 @@
 .paket\paket.bootstrapper.exe
 if errorlevel 1 (
   exit /b %errorlevel%
+)
+
+if NOT exist paket.lock (
+    echo No paket.lock found, running paket install.
+    .paket\paket.exe install
 )

 .paket\paket.exe restore --group Build


Update buildApk.bat

Update buildApk.bat

1、解决电脑安装了jdk6无法运行的问题，需要指定jdk7以上路径。
2、解决了原示例中没有zipalign会报错。并且提示的zipalign和后面的路径需要有空格。
3、做成了声明形式，方便大家调用吧。

--- tool_output/buildApk.bat
+++ tool_output/buildApk.bat
@@ -1,2 +1,8 @@
-java -jar AndResGuard-cli-1.1.0.jar input.apk -config config.xml -out outapk -signature release.keystore testres testres testres
-pause+set jdkpath=D:\Program Files\Java\jdk1.7.0_79\bin\java.exe
+set storepath=release.keystore
+set storepass=testres
+set keypass=testres
+set alias=testres
+set zipalign=D:\soft\dev\android\sdk\build-tools\23.0.2\zipalign.exe
+"%jdkpath%" -jar AndResGuard-cli-1.1.0.jar input.apk -config config.xml -out outapk -signature "%storepath%" "%storepass%" "%keypass%" "%alias%" -zipalign "%zipalign%"
+pause


Fixing nuget command line build

Fixing nuget command line build

--- buildnuget.cmd
+++ buildnuget.cmd
@@ -1 +1 @@
-nuget pack jint\Jint.csproj -Properties Configuration=Release
+.nuget\nuget pack jint\Jint.csproj -Properties Configuration=Release


build update

build update

--- build.bat
+++ build.bat
@@ -2,9 +2,6 @@
 c:\python25\python.exe setup.py bdist_wininst
 c:\python25\python.exe setup.py sdist --formats=gztar,zip
 copy dist\*.* \\ironpaw\pub\jasons\arcrest
-cd documentation
-createdocs.bat
-cd ..
 copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\
 python mergeifneeded.py
 hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt


Start using nuget via environment variable

--- build.bat
+++ build.bat
@@ -1,7 +1,12 @@
 @echo Off

+set nuget=
+if "%nuget%" == "" (
+    set nuget=nuget
+)
+
 echo BUILD.BAT - NuGet package restore started.
-NuGet.exe restore ".\src\OneCog.Io.Onkyo.sln" -OutputDirectory ".\src\packages"
+%nuget% restore ".\src\OneCog.Io.Onkyo.sln" -OutputDirectory ".\src\packages"
 echo BUILD.BAT - NuGet package restore finished.

 echo BUILD.BAT - FAKE build started.


Added build.bat and nuspec file

Added build.bat and nuspec file

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

--- build.bat
+++ build.bat
@@ -0,0 +1,23 @@
+@echo Off
+set config=%1
+if "%config%" == "" (
+   set config=Release
+)
+
+set version=1.0.0
+if not "%PackageVersion%" == "" (
+   set version=%PackageVersion%
+)
+
+set nuget=
+if "%nuget%" == "" (
+	set nuget=nuget
+)
+
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild GuiStracini.Mandae.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
+
+mkdir Build
+mkdir Build\lib
+mkdir Build\lib\net40
+
+%nuget% pack "src\GuiStracini.Mandae.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"


version nuget package based on CI build number

--- build.bat
+++ build.bat
@@ -17,4 +17,6 @@
 .\packages\OpenCover.4.5.3207\OpenCover.Console.exe -register:user -filter:"+[MYOB.*]*" -skipautoprops -output:".\Artefacts\Coverage\output.xml" -target:".\packages\NUnit.Runners.2.6.3\tools\nunit-console.exe" -targetargs:".\Artefacts\SDK\Test\Release\SDK.Tests.dll /noshadow "
 .\packages\ReportGenerator.1.9.1.0\ReportGenerator.exe -reports:.\Artefacts\Coverage\output.xml -targetdir:.\Artefacts\Coverage

-.\.nuget\Nuget.exe pack MYOB.API.SDK\SDK.Package\Package.nuspec
+IF "%appveyor_build_version%" == "" set appveyor_build_version = 1.0.0-rc1
+.\.nuget\Nuget.exe pack MYOB.API.SDK\SDK.Package\Package.nuspec -Version %appveyor_build_version%
+


build.bat: use msbuild from visual studio 2015

--- build.bat
+++ build.bat
@@ -1,7 +1,9 @@
 @ECHO OFF

 rem call version.bat
-%windir%\Microsoft.Net\Framework\v4.0.30319\msbuild ArachNGIN.sln /m /property:Configuration=Debug /property:Platform="Any CPU"
+rem %windir%\Microsoft.Net\Framework\v4.0.30319\
+call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat"
+msbuild ArachNGIN.sln /m /property:Configuration=Debug /property:Platform="Any CPU"
 %windir%\Microsoft.Net\Framework\v4.0.30319\msbuild ArachNGIN.sln /m /property:Configuration=Release /property:Platform="Any CPU"

 if ERRORLEVEL 1 pause


Fixing npm install issue for windows

Fixing npm install issue for windows

--- build.bat
+++ build.bat
@@ -17,6 +17,10 @@

 call node scripts/fixDependencies
 call npm install
+
+REM I can't figure out why this isn't installed with the previous command on node < 5.0
+call npm install jsonpath-plus
+
 set MB_PORT=3535
 node node_modules\grunt-cli\bin\grunt %*


make build.cmd with spaces in the path

make build.cmd with spaces in the path

--- build.cmd
+++ build.cmd
@@ -1,6 +1,6 @@
 @SETLOCAL
 @IF NOT EXIST .build mkdir .build
 cd .build
-cmake -Werror=dev -Werror=deprecated %~dp0
+cmake -Werror=dev -Werror=deprecated "%~dp0"
 cmake --build . -- /verbosity:minimal
 ctest


Add unicode configurations to build script.

--- build.cmd
+++ build.cmd
@@ -45,6 +45,14 @@
 msbuild source\BugTrap.vs2013.sln -p:Configuration=".NET Release" -p:Platform=Win32 %MSB_ADD_ARGS%
 if %errorlevel% neq 0 exit /b %errorlevel%

+echo ">>>>>>>>>>>>>>>>>>>>>>>> Unicode DEBUG 32"
+msbuild source\BugTrap.vs2013.sln -p:Configuration="Unicode Debug" -p:Platform=Win32 %MSB_ADD_ARGS%
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+echo ">>>>>>>>>>>>>>>>>>>>>>>> Unicode RELEASE 32"
+msbuild source\BugTrap.vs2013.sln -p:Configuration="Unicode Release" -p:Platform=Win32 %MSB_ADD_ARGS%
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 rem 64-bit client
 %envsetup% x86_amd64

@@ -62,6 +70,14 @@

 echo ">>>>>>>>>>>>>>>>>>>>>>>> .NET RELEASE 64"
 msbuild source\BugTrap.vs2013.sln -p:Configuration=".NET Release" -p:Platform=x64 %MSB_ADD_ARGS%
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+echo ">>>>>>>>>>>>>>>>>>>>>>>> Unicode DEBUG 64"
+msbuild source\BugTrap.vs2013.sln -p:Configuration="Unicode Debug" -p:Platform=x64 %MSB_ADD_ARGS%
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+echo ">>>>>>>>>>>>>>>>>>>>>>>> Unicode RELEASE 64"
+msbuild source\BugTrap.vs2013.sln -p:Configuration="Unicode Release" -p:Platform=x64 %MSB_ADD_ARGS%
 if %errorlevel% neq 0 exit /b %errorlevel%

 rem Examples


version update

version update

--- build.cmd
+++ build.cmd
@@ -30,10 +30,10 @@
 @ECHO **** BUILD SUCCESSFUL ****

 @ECHO **** BUILDING Nuget ****
-@SET version=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%%TIME:~0,2%
-
+@SET version=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
+@SET subversion=%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
 echo %version%
-%NUGET_COMMAND% pack %SRC%\Serilog.Sinks.Kafka\Serilog.Sinks.Kafka.csproj -Build -Symbols -Properties Configuration=Release -Version 1.0.%version% -Verbosity quiet
+%NUGET_COMMAND% pack %SRC%\Serilog.Sinks.Kafka\Serilog.Sinks.Kafka.csproj -Build -Symbols -Properties Configuration=Release -Version 1.%version%.%subversion% -Verbosity quiet
 %NUGET_COMMAND% push *.nupkg %NUGET_REPOSITORY_API_KEY% -source http://nuget.ual.com/packages
 GOTO:EOF


Update build.cmd

Update build.cmd

--- build.cmd
+++ build.cmd
@@ -1,42 +1,59 @@
-@echo off
-
-SETLOCAL
-
-SET TOOLS_PATH=.\bin\tools
-SET NUGET=%TOOLS_PATH%\NuGet\NuGet.exe
-SET FAKE=%TOOLS_PATH%\FAKE\tools\Fake.exe
-SET NYX=%TOOLS_PATH%\Nyx\tools\build.fsx
-SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\12.0\bin\MSBuild.exe"
-
-IF NOT EXIST %BUILD_TOOLS_PATH% (
-  echo In order to build or run this tool you need either Visual Studio 2015 or
-  echo Microsoft Build Tools 2013 tools installed.
-  echo.
-  echo Visit this page to download either:
-  echo.
-  echo http://www.microsoft.com/en-us/download/details.aspx?id=40760
-  echo.
-  goto :eof
-)
-
-echo Downloading latest version of NuGet.exe...
-IF NOT EXIST %TOOLS_PATH%\NuGet md %TOOLS_PATH%\NuGet
-@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%NUGET%'"
-
-echo Downloading latest version of Fake.exe...
-%NUGET% "install" "FAKE" "-OutputDirectory" "%TOOLS_PATH%" "-ExcludeVersion"
-
-echo Downloading latest version of Nuget.Core...
-%NUGET% "install" "Nuget.Core" "-OutputDirectory" "%TOOLS_PATH%" "-ExcludeVersion"
-
-echo Downloading latest version of Nyx...
-%NUGET% "install" "Nyx" "-OutputDirectory" "%TOOLS_PATH%" "-ExcludeVersion"
-
-SET TARGET="Build"
-
-IF NOT [%1]==[] (set TARGET="%1")
-
-SET SUMMARY="Cronus.DomainModeling"
-SET DESCRIPTION="Cronus.DomainModeling"
-
-%FAKE% %NYX% "target=%TARGET%" appName=Elders.Cronus.DomainModeling appSummary=%SUMMARY% appDescription=%DESCRIPTION% nugetPackageName=Cronus.DomainModeling
+@echo off
+
+SETLOCAL
+
+SET NUGET=%LocalAppData%\NuGet\NuGet.exe
+@echo off
+
+SETLOCAL
+
+SET NUGET=%LocalAppData%\NuGet\NuGet.exe
+SET FAKE=%LocalAppData%\FAKE\tools\Fake.exe
+SET NYX=%LocalAppData%\Nyx\tools\build.fsx
+SET GITVERSION=%LocalAppData%\GitVersion.CommandLine\tools\GitVersion.exe
+SET MSBUILD14_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"
+SET MSBUILD12_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\12.0\bin\MSBuild.exe"
+SET BUILD_TOOLS_PATH=%MSBUILD14_TOOLS_PATH%
+
+IF NOT EXIST %MSBUILD14_TOOLS_PATH% (
+  echo In order to run this tool you need either Visual Studio 2015 or
+  echo Microsoft Build Tools 2015 tools installed.
+  echo.
+  echo Visit this page to download either:
+  echo.
+  echo http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
+  echo.
+  echo Attempting to fall back to MSBuild 12 for building only
+  echo.
+  IF NOT EXIST %MSBUILD12_TOOLS_PATH% (
+    echo Could not find MSBuild 12.  Please install build tools ^(See above^)
+    exit /b 1
+  ) else (
+    set BUILD_TOOLS_PATH=%MSBUILD12_TOOLS_PATH%
+  )
+)
+
+echo Downloading latest version of NuGet.exe...
+IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
+@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%NUGET%'"
+
+echo Downloading latest version of FAKE...
+IF NOT EXIST %LocalAppData%\FAKE %NUGET% "install" "FAKE" "-OutputDirectory" "%LocalAppData%" "-ExcludeVersion" "-Version" "4.4.4"
+
+echo Downloading latest version of NuGet.Core...
+IF NOT EXIST %LocalAppData%\NuGet.Core %NUGET% "install" "NuGet.Core" "-OutputDirectory" "%LocalAppData%" "-ExcludeVersion" "-Version" "2.8.6"
+
+echo Downloading latest version of GitVersion.CommandLine...
+IF NOT EXIST %LocalAppData%\GitVersion.CommandLine %NUGET% "install" "GitVersion.CommandLine" "-OutputDirectory" "%LocalAppData%" "-ExcludeVersion" "-Version" "3.3.0"
+
+echo Downloading latest version of Nyx...
+%NUGET% "install" "Nyx" "-OutputDirectory" "%LocalAppData%" "-ExcludeVersion" "-PreRelease"
+
+SET TARGET="Build"
+
+IF NOT [%1]==[] (set TARGET="%1")
+
+SET SUMMARY="Cronus.DomainModeling"
+SET DESCRIPTION="Cronus.DomainModeling"
+
+%FAKE% %NYX% "target=%TARGET%" appName=Elders.Cronus.DomainModeling appSummary=%SUMMARY% appDescription=%DESCRIPTION% nugetPackageName=Cronus.DomainModeling


fix bug from `rework build to work with bare command window` (#2697)

--- build.cmd
+++ build.cmd
@@ -626,7 +626,7 @@
 echo ILDASM:            %ILDASM%
 echo

-if "%TEST_NET40_COMPILERUNIT_SUITE%" == "0" and "%TEST_PORTABLE_COREUNIT_SUITE" == "0" and "%TEST_CORECLR_COREUNIT_SUITE%" == "0" and "%TEST_VS_IDEUNIT_SUITE%" == "0" and "%TEST_NET40_FSHARP_SUITE%" == "0" and "%TEST_NET40_FSHARPQA_SUITE%" == "0" goto :success
+if "%TEST_NET40_COMPILERUNIT_SUITE%" == "0" and "%TEST_PORTABLE_COREUNIT_SUITE%" == "0" and "%TEST_CORECLR_COREUNIT_SUITE%" == "0" and "%TEST_VS_IDEUNIT_SUITE%" == "0" and "%TEST_NET40_FSHARP_SUITE%" == "0" and "%TEST_NET40_FSHARPQA_SUITE%" == "0" goto :success

 echo ---------------- Done with update, starting tests -----------------------


Applied Jokin Cuadrado's patch fixing CASTLE-ISSUE-49: build.cmd fails in paths with spaces.

git-svn-id: bab0c2de90ee11a20376049c2cdee62584491f34@5620 73e77b4c-caa6-f847-a29a-24ab75ae54b6

--- build.cmd
+++ build.cmd
@@ -22,11 +22,11 @@
 IF "%~1"=="" goto quick

 :normal
-%~dp0SharedLibs\build\NAnt\bin\NAnt.exe -t:net-3.5 -D:nunit-console=%~dp0SharedLibs\build\NUnit\bin\nunit-console.exe %*
+"%~dp0SharedLibs\build\NAnt\bin\NAnt.exe" -t:net-3.5 -D:nunit-console="%~dp0SharedLibs\build\NUnit\bin\nunit-console.exe" %*
 goto end

 :quick
-%~dp0SharedLibs\build\NAnt\bin\NAnt.exe -t:net-3.5 -D:nunit-console=%~dp0SharedLibs\build\NUnit\bin\nunit-console.exe quick release clean build
+"%~dp0SharedLibs\build\NAnt\bin\NAnt.exe" -t:net-3.5 -D:nunit-console="%~dp0SharedLibs\build\NUnit\bin\nunit-console.exe" quick release clean build
 goto end

 :test


Trying to get build commands working

Trying to get build commands working

--- build.cmd
+++ build.cmd
@@ -1,2 +1,2 @@
 "C:\Program Files (x86)\Microsoft SDKs\F#\3.1\Framework\v4.0\fsi.exe" --define:BOOTSTRAP bootstrap.fsx
-./packages/FAKE/tools/Fake.exe build.fsx+packages/FAKE/tools/FAKE.exe build.fsx %s


build default platform

build default platform

--- build.cmd
+++ build.cmd
@@ -13,7 +13,7 @@
 if "%XYO_PLATFORM%" == "win32-msvc-2019" set DEFAULT_PLATFORM=msvc
 if "%XYO_PLATFORM%" == "win64-msvc-2017" set DEFAULT_PLATFORM=msvc
 if "%XYO_PLATFORM%" == "win32-msvc-2017" set DEFAULT_PLATFORM=msvc
-if "%XYO_PLATFORM%" == "" goto Info
+if "%DEFAULT_PLATFORM%" == "" set DEFAULT_PLATFORM=msvc
 if not exist ".\port\build.%DEFAULT_PLATFORM%.cmd" goto Info
 call ".\port\build.%DEFAULT_PLATFORM%.cmd" %1
 goto :eof


Remove duplicate pass commandline args

Remove duplicate pass commandline args

* commit e284227f820e2d0eb34d2b640e13acf71a7997e3 add
set "__args=%*", make __args the same as %*. thus we
pass commandline args twice to msbuild. This breaks
Helix, as Helix target does not allow two responses files
specified, even thougt they are the same
* The fix is to remove the redundancy.

--- build.cmd
+++ build.cmd
@@ -112,7 +112,7 @@

 :build
 :: *** start WCF Content <WCF uses additional msbuild args> ***
-%_buildprefix% msbuild "%_buildproj%" %_defaultBuildConfig% /nologo /maxcpucount /v:minimal /clp:Summary /nodeReuse:false /flp:v=diag;LogFile="%_buildlog%";Append %* "/l:BinClashLogger,%_binclashLoggerDll%;LogFile=%_binclashlog%" %__args% %_buildpostfix%
+%_buildprefix% msbuild "%_buildproj%" %_defaultBuildConfig% /nologo /maxcpucount /v:minimal /clp:Summary /nodeReuse:false /flp:v=diag;LogFile="%_buildlog%";Append "/l:BinClashLogger,%_binclashLoggerDll%;LogFile=%_binclashlog%" %__args% %_buildpostfix%
 set BUILDERRORLEVEL=!ERRORLEVEL!
 :: *** end WCF Content ***
 goto :eof


fail more gracefully

fail more gracefully

--- tools/try_powershell.cmd
+++ tools/try_powershell.cmd
@@ -9,7 +9,7 @@
 SET PROMPT=$G
 PUSHD %~dp0
 CALL check_VS2017_COM.cmd > nul
-IF ERRORLEVEL 1 (ECHO     ["No COM"] & EXIT /B)
+IF ERRORLEVEL 1 (ECHO     ["No COM"] & EXIT /B 0)
 SET "JIT_AND_RUN=Add-Type (Out-String -InputObject (Get-Content '*.cs')); [VisualStudioConfiguration.Program]::Query()"
 powershell -NoProfile -ExecutionPolicy Unrestricted -Command "& { %JIT_AND_RUN% }"
 POPD


pexportsではなくgendefを使うようにする

pexportsではなくgendefを使うようにする

--- tools/win/make_build.cmd
+++ tools/win/make_build.cmd
@@ -12,12 +12,14 @@
 REM set QT32_DIR=%QT_DIR%
 REM set QT64_DIR=%QT_DIR%

-set MINGW_DIR=C:\MinGW
+REM set MINGW_DIR=C:\MinGW
+set MSYS2_DIR=C:\tools\msys64
 set VS2015_DIR=C:\Program Files (x86)\Microsoft Visual Studio 14.0
 set CMAKE_DIR=C:\Program Files\CMake\bin

 rem ##### Create variables (should not modified) #####
-set PEXPORTS_EXE=%MINGW_DIR%\bin\pexports.exe
+REM set PEXPORTS_EXE=%MINGW_DIR%\bin\pexports.exe
+set GENDEF_EXE=%MSYS2_DIR%\mingw64\bin\gendef.exe
 set LIB_EXE=%VS2015_DIR%\VC\bin\lib.exe
 REM set QT32_CMAKE=%QT32_DIR%\%QT_VERSION%\msvc2015\lib\cmake
 REM set QT64_CMAKE=%QT64_DIR%\%QT_VERSION%\msvc2015_64\lib\cmake
@@ -29,7 +31,8 @@
 if /i "%CD%\tools\win\make_build.cmd" neq "%~f0" call :die "You must run this batch on the top directory of sources" 255

 rem check file
-call :check_exist "%PEXPORTS_EXE%" "Not found pexports.exe. Please install mingw32-pexpots or change MINGW_DIR"
+REM call :check_exist "%PEXPORTS_EXE%" "Not found pexports.exe. Please install mingw32-pexpots or change MINGW_DIR"
+call :check_exist "%GENDEF_EXE%" "Not found gendef.exe. Please install mingw-w64-x86_64-toolchain or change MSYS2_DIR"
 call :check_exist "%LIB_EXE%" "Not found lib.exe. Please install VS2015 or change VS2015_DIR"
 REM call :check_exist "%QT32_CMAKE%" "Not found qt 32bit cmake. Please install Qt msvc2015_opengl or change QT32_DIR"
 REM call :check_exist "%QT64_CMAKE%" "Not found qt 64bit cmake. Please install Qt msvc2015_64_opengl or change QT64_DIR"
@@ -62,13 +65,17 @@
 mkdir build\lib64

 rem obs.dll
-"%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\32bit\obs.dll" > "build\lib32\obs.def"
-"%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\64bit\obs.dll" > "build\lib64\obs.def"
+REM "%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\32bit\obs.dll" > "build\lib32\obs.def"
+REM "%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\64bit\obs.dll" > "build\lib64\obs.def"
+"%GEDEF_EXE%" - "%OBS_APP%\bin\32bit\obs.dll" > "build\lib32\obs.def"
+"%GEDEF_EXE%" - "%OBS_APP%\bin\64bit\obs.dll" > "build\lib64\obs.def"
 "%LIB_EXE%" /MACHINE:x86 /def:"build\lib32\obs.def" /out:"build\lib32\obs.lib"
 "%LIB_EXE%" /MACHINE:x64 /def:"build\lib64\obs.def" /out:"build\lib64\obs.lib"
 rem libcurl.dll
-"%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\32bit\libcurl.dll" > "build\lib32\libcurl.def"
-"%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\64bit\libcurl.dll" > "build\lib64\libcurl.def"
+REM "%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\32bit\libcurl.dll" > "build\lib32\libcurl.def"
+REM "%PEXPORTS_EXE%" /EXPORTS "%OBS_APP%\bin\64bit\libcurl.dll" > "build\lib64\libcurl.def"
+"%GEDEF_EXE%" - "%OBS_APP%\bin\32bit\libcurl.dll" > "build\lib32\libcurl.def"
+"%GEDEF_EXE%" - "%OBS_APP%\bin\64bit\libcurl.dll" > "build\lib64\libcurl.def"
 "%LIB_EXE%" /MACHINE:x86 /def:"build\lib32\libcurl.def" /out:"build\lib32\libcurl.lib"
 "%LIB_EXE%" /MACHINE:x64 /def:"build\lib64\libcurl.def" /out:"build\lib64\libcurl.lib"


updated doc script

updated doc script

git-svn-id: a7f2a8f7432d210e972fb03898013d213e2b549b@9199 e6417c60-b987-48fd-844e-b20f0fcc1017

--- seqan/docs/make.bat
+++ seqan/docs/make.bat
@@ -1,2 +1,2 @@
 @echo off
-main.py "..\projects\library" %1 %2 %3 %4 %5 %6
+main.py ..\projects\library -d concepts -d pages %1 %2 %3 %4 %5 %6


do not delete dataloader.ico from the installation directory

Do not delete dataloader.ico from the installation directory. Deleting it results in the data loader shortcut and start menu option not showing data loader icon.

--- release/win/install.bat
+++ release/win/install.bat
@@ -74,7 +74,6 @@
     echo Copying files from '%SRC_DIR%' to '%INSTALLATION_DIR%'  ...
     xcopy "%SRC_DIR%" "%INSTALLATION_DIR%" /e /i
     del "%INSTALLATION_DIR%\install.bat" /q
-    del "%INSTALLATION_DIR%\dataloader.ico" /q
     rmdir "%INSTALLATION_DIR%\META-INF" /s /q
     echo Your Data Loader v%DATALOADER_VERSION% is created in '%INSTALLATION_DIR%'


Don't do pretty printing.

Don't do pretty printing.

--- build/build.bat
+++ build/build.bat
@@ -1 +1 @@
-java -jar compiler.jar --js ../quolace.js --js_output_file quolace.min.js --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/jquery-1.7.js --formatting pretty_print+java -jar compiler.jar --js ../quolace.js --js_output_file quolace.min.js --compilation_level ADVANCED_OPTIMIZATIONS --externs externs/jquery-1.7.js


Updated win64 jenkins script

Updated win64 jenkins script

--- build_tools/jenkins_win64_build.bat
+++ build_tools/jenkins_win64_build.bat
@@ -3,9 +3,7 @@
 set PYLINT= pylint.exe
 set INNO="C:\util\inno\ISCC.exe"
 set GIT_SED=C:\"Program Files"\Git\bin\sed.exe
-
 set SAS_COMPILER=tinycc
-set WORKSPACE=C:\build

 set PYTHONPATH=%WORKSPACE%\sasview\utils
 set PYTHONPATH=%PYTHONPATH%;%WORKSPACE%\sasview\sasview-install
@@ -22,13 +20,17 @@
 DEL tmpFile_githash
 %GIT_SED% -i.bak "s/GIT_COMMIT/%githash%/g" __init__.py

-
-
 :: MAKE DIR FOR EGGS ##################################################
 cd %WORKSPACE%
 cd sasview
 MD sasview-install
 MD utils
+
+:: TINYCC build ####################################################
+cd %WORKSPACE%
+cd tinycc
+%PYTHON% setup.py build
+xcopy /S build\lib\* %WORKSPACE%\sasview\utils\

 :: SASMODELS build ####################################################
@@ -36,18 +38,14 @@
 cd sasmodels
 %PYTHON% setup.py build

-
-
 :: SASMODELS doc ######################################################
 cd doc
 make html
-

 :: SASMODELS build egg ################################################
 cd %WORKSPACE%
 cd sasmodels
 %PYTHON% setup.py bdist_egg
-

 :: SASMODELS install egg ##############################################
 cd %WORKSPACE%
@@ -78,12 +76,6 @@
 %EASY_INSTALL% -d %WORKSPACE%\sasview\sasview-install sasview.egg

-:: TINYCC build ####################################################
-cd %WORKSPACE%
-cd tinycc
-%PYTHON% setup.py build
-xcopy /S build\lib\* %WORKSPACE%\sasview\utils\
-
 :: SASVIEW INSTALLER ##################################################
 cd %WORKSPACE%
 cd sasview


stxxl

stxxl

--- build_stxxl.bat
+++ build_stxxl.bat
@@ -2,16 +2,17 @@
 call settings.bat

 rem git clone https://github.com/DennisOSRM/stxxl.git
-rem git clone https://github.com/stxxl/stxxl.git
-git clone --depth 10 https://github.com/thk1/stxxl.git
+git clone https://github.com/stxxl/stxxl.git
+rem git clone --depth 10 https://github.com/thk1/stxxl.git
 rem git clone https://github.com/alex85k/stxxl.git

 cd stxxl
 mkdir build
 cd build

-
-cmake .. %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX% -DBUILD_TESTS=ON
+set CXXFLAGS=/bigobj
+rem cmake .. %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX% -DBUILD_TESTS=ON
+cmake .. %GENERATOR% -DCMAKE_BUILD_TYPE=%VARIANT% -DCMAKE_INSTALL_PREFIX=%PREFIX% -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF
 %ER%
 %MSBUILDINSTALL%
 %ER%


Fix #1084.

Fix #1084.

--- run_synthea.bat
+++ run_synthea.bat
@@ -16,10 +16,13 @@
   SET syntheaArgs=

   :loop
-  SET syntheaArgs=!syntheaArgs!'%1',
-  @rem Trailing comma ok, don't need to remove it
+  ECHO ARG = %1
+  if "%~1"=="" goto run
+  SET syntheaArgs=!syntheaArgs!'%~1',
   shift
-  if not "%~1"=="" goto loop
+  goto loop

+  :run
+  ECHO syntheaArgs = !syntheaArgs!
   gradlew.bat run -Params="[!syntheaArgs!]"
 )


Changing build.bat to a DOS style linefeed file.  It's a Windows only
file, and the build changes it to this linefeed style on first run.

git-svn-id: 88158f914d5603334254b4adf21dfd50ec107162@108006 13f79535-47bb-0310-9956-ffa450edef68

--- trunk/build.bat
+++ trunk/build.bat
@@ -1,18 +1,18 @@
-@echo off
-
-echo.
-echo James Build System
-echo -------------------
-
-set OLD_ANT_HOME=%ANT_HOME%
-set ANT_HOME=tools
-
-set OLD_CLASSPATH=%CLASSPATH%
-set CLASSPATH=phoenix-bin\lib\xercesImpl-2.0.2.jar;phoenix-bin\lib\xml-apis.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar
-
-%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
-goto cleanup
-
-:cleanup
-set ANT_HOME=%OLD_ANT_HOME%
-set CLASSPATH=%OLD_CLASSPATH%
+@echo off
+
+echo.
+echo James Build System
+echo -------------------
+
+set OLD_ANT_HOME=%ANT_HOME%
+set ANT_HOME=tools
+
+set OLD_CLASSPATH=%CLASSPATH%
+set CLASSPATH=phoenix-bin\lib\xercesImpl-2.0.2.jar;phoenix-bin\lib\xml-apis.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar
+
+%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
+goto cleanup
+
+:cleanup
+set ANT_HOME=%OLD_ANT_HOME%
+set CLASSPATH=%OLD_CLASSPATH%


Added batch file to download angle.

Added batch file to download angle.

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

--- angle.bat
+++ angle.bat
@@ -0,0 +1 @@
+call git clone https://github.com/KTXSoftware/angleproject.git


Add convenience build script

Add convenience build script

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

--- build-msvc2015.cmd
+++ build-msvc2015.cmd
@@ -0,0 +1,46 @@
+@echo off
+setlocal enabledelayedexpansion
+
+:: Builds the shell extension and installer
+
+set KRITASHELLEX_VERSION_STRING=dev
+::set KRITASHELLEX_VERSION_STRING=v1.2.4
+set CMAKE_EXE=cmake.exe
+set MAKENSIS_EXE=C:\Program Files (x86)\NSIS\makensis.exe
+
+:: Do not modify for release builds! You can use "Debug" for debug builds.
+set BUILD_CONFIGURATION=Release
+
+mkdir build
+mkdir build\x86
+mkdir build\x64
+mkdir output
+
+echo Building 32-bit shell extension...
+pushd build\x86
+"%CMAKE_EXE%" -G "Visual Studio 14 2015" ..\..
+"%CMAKE_EXE%" --build . --config %BUILD_CONFIGURATION%
+popd
+
+echo Building 64-bit shell extension...
+pushd build\x64
+"%CMAKE_EXE%" -G "Visual Studio 14 2015 Win64" ..\..
+"%CMAKE_EXE%" --build . --config %BUILD_CONFIGURATION%
+popd
+
+pushd output
+copy /y ..\build\x86\KritaShellExtension\%BUILD_CONFIGURATION%\kritashellex32.dll .
+copy /y ..\build\x64\KritaShellExtension\%BUILD_CONFIGURATION%\kritashellex64.dll .
+"%MAKENSIS_EXE%" ^
+    /DKRITASHELLEX_DLL_SOURCE_DIR=!CD!\ ^
+    /DKRITASHELLEX_INSTALLER_OUTPUT=!CD!\KritaShellExtension-!KRITASHELLEX_VERSION_STRING!-setup.exe ^
+    /X"SetCompressor /SOLID lzma" ^
+    /V4 /P3 ^
+    ..\installer\nsis\installer_shellex.nsi
+copy /y ..\COPYING.txt .
+copy /y ..\COPYING_libzip.txt .
+copy /y ..\COPYING_tinyxml2.txt .
+copy /y ..\COPYING_zlib.txt .
+copy /y ..\README.md README.txt
+"%CMAKE_EXE%" -E touch CHANGELOG.TODO
+popd


Only add WIN64 paths when running on an AMD64 processor. Conversely add DOS path when running on an x86 processor. Display the result path list just once in the end. Added option -r to remove all my personal paths.

--- Batch/AddPaths.bat
+++ Batch/AddPaths.bat
@@ -12,13 +12,17 @@
 :#                                                                            #
 :#  History                                                                   #
 :#   2013-07-24 JFL Created this script.			              #
+:#   2018-12-21 JFL Only add WIN64 paths when running on an AMD64 processor.  #
+:#                  Conversely add DOS path when running on an x86 processor. #
+:#                  Display the result path list just once in the end.        #
+:#                  Added option -r to remove all my personal paths.          #
 :#                                                                            #
 :#          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=2013-07-24"
+set "VERSION=2018-12-21"
 set "SCRIPT=%~nx0"
 set "SPATH=%~dp0" & set "SPATH=!SPATH:~0,-1!"
 set "SDRV=%~d0"
@@ -33,6 +37,7 @@
 echo.
 echo Options:
 echo   -?         Display this help
+echo   -r         Remove all paths added by this script
 echo   -V         Display the script version and exit
 echo   -X         Display the commands generated and exit
 echo.
@@ -53,29 +58,58 @@
 if .%1.==.. goto :go
 if "%~1"=="/?" goto :Help
 if "%~1"=="-?" goto :Help
+if "%~1"=="-r" call :Remove & goto :addpath.exit
 if "%~1"=="-v" set "VERBOSE=1" & goto :next_arg
 if "%~1"=="-V" (echo.%VERSION%) & goto :eof
 if "%~1"=="-X" set "CALL=echo" & set "EXEC=rem" & goto :next_arg
 goto :next_arg

 :Add1Path.Init
-for %%I in (addpath.bat) do set "ADDPATH=%%~$PATH:I"
-if not "!ADDPATH!"=="" (	:# addpath is in the PATH. No need to specify its path.
-  set ADDPATH=addpath
-) else (			:# Else use the one in the same directory as AddPaths.bat
-  set "ADDPATH=%SPATH%\addpath"		&:# Assume there's no space in %SPATH%, so no need for quotes.
-  if not "!ADDPATH!"=="!ADDPATH: =!" set ADDPATH="%SPATH%\addpath"
-)
+:# Look for addpath.bat in the same directory as this script
+set "ADDPATH=%SPATH%\addpath.bat"
+:# Else look for addpath.bat in the PATH
+if not exist "%ADDPATH%" for %%I in (addpath.bat) do set "ADDPATH=%%~$PATH:I"
+:# If it's not there either, report the error
+if not defined ADDPATH >&2 echo Error: Can't find addpath.bat & exit /b 1
+:# Note: Even if addpath.bat is in the PATH, do not use its unqualified name,
+:# because this would break during paths removal.
 goto :eof

 :Add1Path
+set "RETCODE=0"
 if exist "%~1" (
-  %EXEC% echo.
-  %CALL% %ADDPATH%    "%~1"
-  %EXEC% echo.
-  %CALL% %ADDPATH% -s "%~1"
+  %CALL% %ADDPATH% -q    "%~1"
+  if errorlevel 1 set "RETCODE=1"
+  %CALL% %ADDPATH% -q -s "%~1"
+  if errorlevel 1 set "RETCODE=1"
 )
-goto :eof
+exit /b %RETCODE%
+
+:Remove
+call :Add1Path.Init
+if errorlevel 1 exit /b
+set "RETCODE=0"
+for %%p in (
+  "%SPATH%\Win64"
+  "%SPATH%\Win32"
+  "%SPATH%"
+  "%SPATH%\DOS"
+  "%SPATH%\ezWinPorts\Win64\bin"
+  "%SPATH%\ezWinPorts\Win32\bin"
+  "%SPATH%\UnxUtils\usr\local\wbin"
+  "%SPATH%\GnuWin32\bin"
+  "%SDRV%\Windows\SUA\common"
+  "%SDRV%\MinGW\msys\1.0\bin"
+  "%SPATH%\SysInternals"
+) do (
+  %CALL% %ADDPATH% -q    -r "%%~p"
+  if errorlevel 1 set "RETCODE=1"
+  %CALL% %ADDPATH% -q -s -r "%%~p"
+  if errorlevel 1 set "RETCODE=1"
+)
+:# Display the result path list in the end
+%CALL% %ADDPATH%
+exit /b %RETCODE%

 :go
 :# Check that the addpaths.bat directory contains the other basic tools we need.
@@ -84,18 +118,26 @@
   exit /b 1
 )

+set "IF64=if [%PROCESSOR_ARCHITECTURE%]==[AMD64]"
+set "IF32=if [%PROCESSOR_ARCHITECTURE%]==[x86]"
+
 :# Add all JFL tools collection paths, with the hightest priority paths first
 call :Add1Path.Init
-call :Add1Path "%SPATH%\Win64"			&:# Windows 64-bits tools
-call :Add1Path "%SPATH%\Win32"			&:# Windows 32-bits tools
-call :Add1Path "%SPATH%"			&:# Other types of Windows programs and scripts
-call :Add1Path "%SPATH%\ezWinPorts\Win64\bin"	&:# Unix tools 64-bits ports from ezwinports.sourceforge.net
-call :Add1Path "%SPATH%\ezWinPorts\Win32\bin"	&:# Unix tools 32-bits ports from ezwinports.sourceforge.net
-call :Add1Path "%SPATH%\UnxUtils\usr\local\wbin"&:# Unix tools ports from unxutils.sourceforge.net
-call :Add1Path "%SPATH%\GnuWin32\bin"		&:# Unix tools ports from gnuwin32.sourceforge.net
-call :Add1Path "%SDRV%\Windows\SUA\common"	&:# Unix tools ports from Microsoft SUA (SubSystem for Unix Applications)
-call :Add1Path "%SDRV%\MinGW\msys\1.0\bin"	&:# Unix tools ports from mingw.sourceforge.net
-call :Add1Path "%SPATH%\SysInternals"		&:# Microsoft SysInternals tools
+if errorlevel 1 exit /b
+%IF64% call :Add1Path "%SPATH%\Win64"			&:# Windows 64-bits tools
+       call :Add1Path "%SPATH%\Win32"			&:# Windows 32-bits tools
+       call :Add1Path "%SPATH%"				&:# Other types of Windows programs and scripts
+%IF32% call :Add1Path "%SPATH%\DOS"			&:# DOS 16-bits tools. Must be AFTER "%SPATH%", as there's another addpath.bat there for DOS only.
+%IF64% call :Add1Path "%SPATH%\ezWinPorts\Win64\bin"	&:# Unix tools 64-bits ports from ezwinports.sourceforge.net
+       call :Add1Path "%SPATH%\ezWinPorts\Win32\bin"	&:# Unix tools 32-bits ports from ezwinports.sourceforge.net
+       call :Add1Path "%SPATH%\UnxUtils\usr\local\wbin"	&:# Unix tools ports from unxutils.sourceforge.net
+       call :Add1Path "%SPATH%\GnuWin32\bin"		&:# Unix tools ports from gnuwin32.sourceforge.net
+       call :Add1Path "%SDRV%\Windows\SUA\common"	&:# Unix tools ports from Microsoft SUA (SubSystem for Unix Applications)
+       call :Add1Path "%SDRV%\MinGW\msys\1.0\bin"	&:# Unix tools ports from mingw.sourceforge.net
+       call :Add1Path "%SPATH%\SysInternals"		&:# Microsoft SysInternals tools
+:# Display the result path list in the end
+%CALL% %ADDPATH%

 :# endlocal is necessary for returning the modified value back to the caller
+:addpath.exit
 endlocal & %EXEC% set "Path=%Path%"


add (inactive) paths for MSVC2017

add (inactive) paths for MSVC2017

Change-Id: Ia1d68a79e0a236b09c7e5c75f3fe5acb9acabe97

--- build_solution.bat
+++ build_solution.bat
@@ -2,8 +2,10 @@
 REM change path to your VCVARS.BAT
 CALL "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
 SET "PATH=C:\Program Files (x86)\MSBuild\14.0\Bin\amd64;%PATH%"
+REM CALL "c:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
+REM SET "PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\amd64;%PATH%"

-   msbuild  pcm-all.sln /p:Configuration=Release  /t:Clean,Build /m
+   msbuild  pcm-all.sln /p:Configuration=Release;Platform=x64  /t:Clean,Build /m

 exit


update scripts/min.cmd to work with the new 'minimize_with' behavior

--- scripts/min.cmd
+++ scripts/min.cmd
@@ -37,7 +37,7 @@
 match 1.tmp '  ' y
 break 1.tmp ''
 unduplicate 1.tmp
-add 1.tmp 'prove ' '$min xxx/no_new ax-*$save new_proof/compressed$_exit_pa$'
+add 1.tmp 'prove ' '$min xxx/allow/no_new ax-*$save new_proof/compressed$_exit_pa$'
 ! If you want to do a "dry run" without saving proofs, change above line
 ! to:
 ! add 1.tmp 'prove ' '$min xxx/no_new ax-*$_exit_pa/force$'


Re-copy the .ism files

Re-copy the .ism files

--- copyrelease.bat
+++ copyrelease.bat
@@ -17,7 +17,7 @@
 copy license.dll %1
 copy init.lisp %1
 copy makeall.bat %1
-rem copy *.ism %1
+copy *.ism %1
 copy HyperSpec-6-0.tar.gz %1
 mkdir %1\clboot
 copy clboot\clboot.cpp %1\clboot


updated dependencies

updated dependencies

--- platform/windows/download_dependencies.bat
+++ platform/windows/download_dependencies.bat
@@ -1,8 +1,8 @@
 @echo off
 REM     https://cmake.org/files/v3.9/cmake-3.9.6-win64-x64.zip -> cmake
-REM     http://sourceforge.net/projects/gnuwin32/files//sed/4.2.1/sed-4.2.1-bin.zip/download -> sed
-REM     http://sourceforge.net/projects/gnuwin32/files//sed/4.2.1/sed-4.2.1-dep.zip/download -> sed
-REM     http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip -> freeglut
+REM     https://sourceforge.net/projects/gnuwin32/files/sed/4.2.1/sed-4.2.1-bin.zip/download -> sed
+REM     https://sourceforge.net/projects/gnuwin32/files/sed/4.2.1/sed-4.2.1-dep.zip/download -> sed
+REM     https://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC-3.0.0-2.mp.zip -> freeglut

 set EXT=%~dp0external

@@ -11,7 +11,7 @@

 REM ------------------ freeglut

-set SRC=http://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC.zip
+set SRC=https://files.transmissionzero.co.uk/software/development/GLUT/freeglut-MSVC-3.0.0-2.mp.zip
 set ZIP=%EXT%\freeglut-MSVC.zip
 set DST=%EXT%\.

@@ -24,7 +24,7 @@

 REM ------------------ sed

-set SRC=http://sourceforge.net/projects/gnuwin32/files//sed/4.2.1/sed-4.2.1-bin.zip/download
+set SRC=https://sourceforge.net/projects/gnuwin32/files/sed/4.2.1/sed-4.2.1-bin.zip/download
 set ZIP=%EXT%\sed-4.2.1-bin.zip
 set DST=%EXT%\sed

@@ -37,7 +37,7 @@

 REM ------------------ sed-dep

-set SRC=http://sourceforge.net/projects/gnuwin32/files//sed/4.2.1/sed-4.2.1-dep.zip/download
+set SRC=https://sourceforge.net/projects/gnuwin32/files/sed/4.2.1/sed-4.2.1-dep.zip/download
 set ZIP=%EXT%\sed-4.2.1-dep.zip
 set DST=%EXT%\sed


moved -Xmx declaration to front

moved -Xmx declaration to front

git-svn-id: b619a0c99665f88f1afe72824344cefe9a1c8c90@8070 fd5a2b45-1f63-4059-99e9-3c7cb7fd75c8

--- build.bat
+++ build.bat
@@ -1 +1 @@
-"%JAVA_HOME%/bin/java" -cp lib/ant/ant.jar;lib/ant/ant-launcher.jar;lib/ant/ant-junit.jar;lib/junit/junit.jar;lib/clover/clover.jar;"%JAVA_HOME%/lib/tools.jar" -Xmx256m org.apache.tools.ant.Main %1
+"%JAVA_HOME%/bin/java" -Xmx256m -cp lib/ant/ant.jar;lib/ant/ant-launcher.jar;lib/ant/ant-junit.jar;lib/junit/junit.jar;lib/clover/clover.jar;"%JAVA_HOME%/lib/tools.jar" org.apache.tools.ant.Main %1


Small upgrade

Small upgrade

Make it runnable on Linux/Mac OS and runnable without "gradlew setupDecompWorkspace"

--- build.bat
+++ build.bat
@@ -1 +1 @@
-gradlew build+./gradlew setupCIWorkspace build


Delete backups when merging

Delete backups when merging

--- build.bat
+++ build.bat
@@ -9,3 +9,4 @@
 python mergeifneeded.py
 hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt
 unix2dos \\ironpaw\pub\jasons\arcrest\changelog.txt
+del \\ironpaw\pub\jasons\arcrest\*.bak


Move away from configuration living within the App.config to a more secure build environment variable. Custom build script.

--- build.bat
+++ build.bat
@@ -0,0 +1,45 @@
+@echo off
+set config=%1
+if "%config%" == "" (
+   set config=Release
+)
+
+set version=
+if not "%PackageVersion%" == "" (
+   set version=-Version %PackageVersion%
+)
+
+REM Update App.Config
+echo ##myget[message text='Starting write to App.Config']
+echo ^<?xml version="1.0" encoding="utf-8" ?^>^<configuration^>^<connectionStrings^>^<add name="CrmConnection" connectionString="Url=%CrmUrl%; Username=%Username%; Password=%Password%; DeviceID=%DeviceId%; DevicePassword=%DevicePassword%"/^>^</connectionStrings^>^</configuration^> > DSmall.DynamicsCrm.Plugins.Core.IntegrationTest\DSmall.DynamicsCrm.Plugins.Core.IntegrationTest\App.Config
+
+REM NuGet Restore
+echo ##myget[message text='Starting NuGet Restore' status='NORMAL']
+call %nuget% restore DSmall.DynamicsCrm.Plugins.Core.All.sln -NonInteractive
+
+REM Build
+echo ##myget[message text='Starting Build' status='NORMAL']
+%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild DSmall.DynamicsCrm.Plugins.Core.All.sln /p:Configuration="%config%";OutDir=bin\%config% /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
+if not "%errorlevel%"=="0" goto failure
+
+REM Unit tests
+echo ##myget[message text='Starting Unit tests' status='NORMAL']
+"%GallioEcho%" DSmall.DynamicsCrm.Plugins.Core.UnitTest\bin\%config%\DSmall.DynamicsCrm.Plugins.Core.UnitTest.dll
+if not "%errorlevel%"=="0" goto failure
+
+REM Integration tests
+echo ##myget[message text='Starting Integration tests' status='NORMAL']
+"%GallioEcho%" DSmall.DynamicsCrm.Plugins.Core.IntegrationTest\DSmall.DynamicsCrm.Plugins.Core.IntegrationTest\bin\%config%\DSmall.DynamicsCrm.Plugins.Core.IntegrationTest.dll
+if not "%errorlevel%"=="0" goto failure
+
+REM Package
+mkdir Build
+echo ##myget[message text='Starting NuGet Pack' status='NORMAL']
+call %nuget% pack DSmall.DynamicsCrm.Plugins.Core\DSmall.DynamicsCrm.Plugins.Core.csproj -symbols -o Build -p Configuration=%config%;OutDir=bin\%config% %version%
+if not "%errorlevel%"=="0" goto failure
+
+:success
+exit 0
+
+:failure
+exit -1


codecov

codecov

--- build.bat
+++ build.bat
@@ -53,16 +53,13 @@
 call %nuget% install OpenCover -Version 4.6.519 -OutputDirectory packages
 if not "%errorlevel%"=="0" goto failure

-packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"packages\xunit.runner.console.2.2.0\tools\xunit.console.exe" -targetargs:".\tests\bin\Release\SearchAThing.Sci.Tests.dll -noshadow" -output:".\coverage.xml"
+packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"packages\xunit.runner.console.2.2.0\tools\xunit.console.exe" -excludedirs:".\src\Thirdy"  -targetargs:".\tests\bin\Release\SearchAThing.Sci.Tests.dll -noshadow" -output:".\coverage.xml"
 if not "%errorlevel%"=="0" goto failure

 echo "---> ensuring codecov"
-rem call %nuget% install Codecov -Version 1.0.1 -OutputDirectory packages
-rem if not "%errorlevel%"=="0" goto failure
 call npm install codecov -g > nul
 if not "%errorlevel%"=="0" goto failure

-rem packages\Codecov.1.0.1\tools\codecov.exe -f coverage.xml -t %CODECOV_TOKEN%
 echo "---> running codecov -f coverage.xml"
 codecov -f coverage.xml
 if not "%errorlevel%"=="0" goto failure


Support 32-bit build. Closes #12.

Support 32-bit build. Closes #12.

--- build.bat
+++ build.bat
@@ -10,8 +10,8 @@
 SET DIST=%CD%\dist\%version%
 SET GOPATH=%CD%\src
 SET GOBIN=%CD%\bin
+SET GOARCH=386
 go build -o %GOBIN%\nvm.exe %GOPATH%\nvm.go
-

 REM Create the "noinstall" zip
 echo Generating nvm-noinstall.zip


updated WINDOWS script

updated WINDOWS script

--- build.bat
+++ build.bat
@@ -31,7 +31,6 @@

 @IF "%BITS%" == "x64" (@set STR=%STR% Win64)

-
 @SET COMPILE="YES"
 @IF EXIST lib\Debug\Clothoid.lib (
   @IF EXIST lib\Release\Clothoid.lib (
@@ -47,6 +46,7 @@

   @RMDIR /S /Q %VSDIR%
   @mkdir %VSDIR%
+
   @cd %VSDIR%
   @echo.
   @powershell -command write-host -foreground "red" -background "yellow" -nonewline "cmake -G \"%STR%\" -D%LAPACK%=1 -DYEAR=%YEAR% -DBITS=%BITS% -DCMAKE_INSTALL_PREFIX:PATH=..\lib .."
@@ -55,7 +55,8 @@
   @cmake --build . --config Release --target Install
   @cmake --build . --config Debug --target Install
   @cd ..
-) else (
+
+) ELSE (
   @echo.
   @powershell -command write-host -foreground "red" -background "yellow" -nonewline "Clothoids already compiled"
   @echo.


simple win32 build script

simple win32 build script

--- build.bat
+++ build.bat
@@ -0,0 +1,9 @@
+set MicrosDir=.
+set MicrosCLFlags=-I%MicrosDir%/include/ -I%MicrosDir%/libs/glew/include/
+set MicrosCLFlags=%MicrosDir%/libs/glew/src/glew.c -DGLEW_STATIC opengl32.lib %MicrosCLFlags%
+set MicrosCLFlags=-I%MicrosDir%/libs %MicrosDir%/libs/NT_x64/glfw3.lib gdi32.lib user32.lib shell32.lib %MicrosCLFlags%
+set MicrosCLFLags=ole32.lib %MicrosCLFlags%
+set MicrosCLFlags=%MicrosDir%/runtime/nt_runtime.cpp %MicrosCLFlags%
+set MicrosCLFLags=-MD %MicrosCLFlags%
+cl -Fe:demo src\main.cpp %MicrosCLFlags% -nologo -EHsc -FC
+


Change deploy script

Change deploy script

--- build.bat
+++ build.bat
@@ -1 +1,3 @@
-nexe -i index.js -o ./build/server.exe+nexe -i index.js -o ./build/server.exe
+xcopy /Y .\key .\build
+xcopy /Y .\*.html .\build


Provide with options in build.cmd (#435)

--- build.cmd
+++ build.cmd
@@ -4,51 +4,95 @@
 SETLOCAL
 SETLOCAL ENABLEDELAYEDEXPANSION

+:Loop
+if [%1]==[] GOTO Begin
+
+if /I [%1]==[Debug] (
+    SET Configuration=%1
+    GOTO Next
+)
+
+if /I [%1]==[Release] (
+    SET Configuration=%1
+    GOTO Next
+)
+
+if /I [%1]==[PROD] (
+    SET Environment=PROD
+    GOTO Next
+)
+
+if /I [%1]==[raw] (
+    SET SkipTemplate=true
+    GOTO Next
+)
+if /I [%1]==[template] (
+    SET UpdateTemplate=%1
+    GOTO Next
+)
+
+:Next
+SHIFT /1
+GOTO Loop
+
+:Begin
 IF NOT DEFINED VisualStudioVersion (
     IF DEFINED VS140COMNTOOLS (
         CALL "%VS140COMNTOOLS%\VsDevCmd.bat"
-        GOTO :EnvSet
+        GOTO EnvSet
     )

     ECHO Error: build.cmd requires Visual Studio 2015.
     SET ERRORLEVEL=1
-    GOTO :Exit
+    GOTO Exit
 )

 :EnvSet
 SET BuildProj=%~dp0All.sln
-SET Configuration=%1
-IF '%Configuration%'=='' (
+IF [%Configuration%]==[] (
     SET Configuration=Release
 )
-SET Environment=%2
-IF '%Environment%'=='PROD' (
+IF /I [%Environment%]==[PROD] (
     ECHO Updating version for PROD environment
     CALL UpdateVersion.cmd

-    IF NOT '!ERRORLEVEL!'=='0' (
+    IF NOT [!ERRORLEVEL!]==[0] (
         ECHO ERROR: Error occurs when updating version
-        GOTO :Exit
+        GOTO Exit
     )
+)
+IF /I [%UpdateTemplate%]==[template] (
+    ECHO Updating template
+    CALL UpdateTemplate.cmd
+    IF NOT [!ERRORLEVEL!]==[0] (
+        ECHO ERROR: Error occurs when updating template
+    )
+    GOTO Exit
+)
+IF /I [%SkipTemplate%]==[true] (
+    ECHO Skip updating template
+    GOTO CheckDnu
+)
+
+:: Update template before build
+:UpdateTemplate
+ECHO Updating template
+CALL UpdateTemplate.cmd
+
+IF NOT [!ERRORLEVEL!]==[0] (
+    ECHO ERROR: Error occurs when updating template
+    GOTO Exit
 )

 :: Check if DNU exists globally
 :: DNU is OPTIONAL
+:CheckDnu
 WHERE dnu >NUL
-IF NOT '%ERRORLEVEL%'=='0' (
+IF NOT [!ERRORLEVEL!]==[0] (
     ECHO ERROR: DNU is not successfully configured.
     ECHO ERROR: Please follow http://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-the-net-version-manager-dnvm to install dnvm.
     ECHO ERROR: If dnvm is installed, use `dnvm list` to show available dnx runtime, and use `dnvm use` to select the default dnx runtime
-    GOTO :Exit
-)
-
-:: Update template before build
-ECHO Updating template
-CALL UpdateTemplate.cmd
-
-IF NOT '!ERRORLEVEL!'=='0' (
-    ECHO ERROR: Error occurs when updating template
-    GOTO :Exit
+    GOTO Exit
 )

 :: Restore packages for .csproj projects
@@ -67,8 +111,8 @@
 SET BuildPostfix=
 CALL :Build %*

-IF NOT '%ErrorLevel%'=='0' (
-    GOTO :AfterBuild
+IF NOT [!ERRORLEVEL!]==[0] (
+    GOTO AfterBuild
 )

 POPD
@@ -88,7 +132,7 @@
 ECHO Exit Code: %BuildErrorLevel%
 SET ERRORLEVEL=%BuildErrorLevel%

-GOTO :Exit
+GOTO Exit

 :Build
 %BuildPrefix% msbuild "%BuildProj%" /p:Configuration=%Configuration% /nologo /maxcpucount:1 /verbosity:minimal /nodeReuse:false /fileloggerparameters:Verbosity=d;LogFile="%BuildLog%"; %BuildPostfix%
@@ -107,22 +151,21 @@
 :RestoreNormalPackage
 :: Currently version 3.3 is not compatible with our build, force to use v2.8.6
 SET CachedNuget=%LocalAppData%\NuGet\v2.8.6\NuGet.exe
-IF EXIST "%CachedNuget%" GOTO :Restore
+IF EXIST "%CachedNuget%" GOTO Restore
 ECHO Downloading NuGet.exe v2.8.6...
 IF NOT EXIST "%LocalAppData%\NuGet\v2.8.6" MD "%LocalAppData%\NuGet\v2.8.6"
 powershell -NoProfile -ExecutionPolicy UnRestricted -Command "$ProgressPreference = 'SilentlyContinue'; [Net.WebRequest]::DefaultWebProxy.Credentials = [Net.CredentialCache]::DefaultCredentials; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/v2.8.6/nuget.exe' -OutFile '%CachedNuget%'"

-IF NOT '%ErrorLevel%'=='0' (
+IF NOT [!ERRORLEVEL!]==[0] (
     ECHO ERROR: Failed downloading NuGet.exe
-    GOTO :Exit
+    GOTO Exit
 )

 :Restore
 %CachedNuget% restore "%BuildProj%"
-
-IF NOT '%ErrorLevel%'=='0' (
+IF NOT [!ERRORLEVEL!]==[0] (
     ECHO ERROR: Error when restoring packages for %BuildProj%
-    GOTO :Exit
+    GOTO Exit
 )

 :Exit


More logging

More logging

--- build.cmd
+++ build.cmd
@@ -369,7 +369,10 @@
 )
 if '%TEST_NET40_COREUNIT%' == '1' (
     if '%TEST_PORTABLE_COREUNIT%' == '1' (
+        @echo "BUILD_CONFIG_LOWERCASE : " %BUILD_CONFIG_LOWERCASE%
+        @echo "Test Tags              : " %TEST_TAGS%
         call RunTests.cmd %BUILD_CONFIG_LOWERCASE% coreunitall %TEST_TAGS%
+        @echo "Finished Runtests"
         @if ERRORLEVEL 1 (
             type testresults\CoreUnit_net40_Error.log
             echo Error: 'RunTests.cmd %BUILD_CONFIG_LOWERCASE% coreunit' failed


Troubleshooting appveyor.

Troubleshooting appveyor.

--- build.cmd
+++ build.cmd
@@ -9,6 +9,8 @@
 	DEL .\artifacts /q /s
 )

+SET RELEASE=%APPVEYOR_BUILD_VERSION%
+SET COMMENT=%MAYBE_PRERELEASE_SUFFIX%
 IF [%COMMENT%]==[] (SET VERSION=%RELEASE%) ELSE (SET VERSION=%RELEASE%-%COMMENT%)
 IF NOT [%1]==[] (SET VERSION=%1)


Fix local build break

Fix local build break

--- build.cmd
+++ build.cmd
@@ -4,8 +4,8 @@
 SETLOCAL
 SET NUGET_VERSION=latest
 SET CACHED_NUGET=%LocalAppData%\NuGet\nuget.%NUGET_VERSION%.exe
-SET BUILDCMD_KOREBUILD_VERSION=""
-SET BUILDCMD_DNX_VERSION=""
+SET BUILDCMD_KOREBUILD_VERSION=
+SET BUILDCMD_DNX_VERSION=

 IF EXIST %CACHED_NUGET% goto copynuget
 echo Downloading latest version of NuGet.exe...
@@ -19,7 +19,7 @@

 :restore
 IF EXIST packages\Sake goto getdnx
-IF %BUILDCMD_KOREBUILD_VERSION%=="" (
+IF "%BUILDCMD_KOREBUILD_VERSION%"=="" (
     .nuget\nuget.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
 ) ELSE (
     .nuget\nuget.exe install KoreBuild -version %BUILDCMD_KOREBUILD_VERSION% -ExcludeVersion -o packages -nocache -pre
@@ -27,10 +27,10 @@
 .nuget\NuGet.exe install Sake -ExcludeVersion -Source https://www.nuget.org/api/v2/ -Out packages

 :getdnx
+IF "%BUILDCMD_DNX_VERSION%"=="" (
+    SET BUILDCMD_DNX_VERSION=latest
+)
 IF "%SKIP_DNX_INSTALL%"=="" (
-    IF "%BUILDCMD_DNX_VERSION%"=="" (
-        BUILDCMD_DNX_VERSION=latest
-    )
     CALL packages\KoreBuild\build\dnvm install %BUILDCMD_DNX_VERSION% -runtime CoreCLR -arch x86 -alias default
     CALL packages\KoreBuild\build\dnvm install default -runtime CLR -arch x86 -alias default
 ) ELSE (


bump (#2015)

bump (#2015)

--- build.cmd
+++ build.cmd
@@ -1,4 +1,5 @@
 rem Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.
+
 @if "%_echo%"=="" echo off

 setlocal enableDelayedExpansion


fixed build script so we fix which directory we end up in

--- build.cmd
+++ build.cmd
@@ -17,14 +17,14 @@
     cd NOpenType
     ECHO Setting version number to "%GitVersion_NuGetVersion%"
     dotnet version "%GitVersion_NuGetVersion%"
-    cd ../NOpenType
+    cd ../
     if not "%errorlevel%"=="0" goto failure
 )

 ECHO Building nuget packages
 if not "%GitVersion_NuGetVersion%" == "" (
-	dotnet pack -c Release
+	dotnet pack -c Release ./NOpenType/project.json
 )ELSE (
 	dotnet pack -c Release --version-suffix "local-build" ./NOpenType/project.json
 )


fix mysterious problem with quotes

fix mysterious problem with quotes

git-svn-id: 9ecf60ce9baff443e30a0472d3fd222fcb8117cf@3908 7b97033b-253e-4a5c-9b07-e25f9089a9fd

--- Applications/Specware/bin/windows/check-and-set-environment.cmd
+++ Applications/Specware/bin/windows/check-and-set-environment.cmd
@@ -34,10 +34,10 @@
 if "%SWPATH%"=="" set SWPATH="C:/"
 rem set SWPATH only if unset

-set SPECWARE_BIN="%SPECWARE4%\Applications\Specware\bin\windows"
-set LISP_EXECUTABLE="%ALLEGRO%\alisp.exe"
-set LISP_HEAP_IMAGE="%SPECWARE_BIN%\Specware4.dxl"
-set LISP_DIRECTORY="%Specware4%/"
+set "SPECWARE_BIN=%SPECWARE4%\Applications\Specware\bin\windows"
+set "LISP_EXECUTABLE=%ALLEGRO%\alisp.exe"
+set "LISP_HEAP_IMAGE=%SPECWARE_BIN%\Specware4.dxl"
+set "LISP_DIRECTORY=%Specware4%/"

 rem  Move to Specware4 main directory:


Fixed style cop edit command

Fixed style cop edit command

--- src/Settings.StyleCopEdit.cmd
+++ src/Settings.StyleCopEdit.cmd
@@ -1 +1 @@
-"%~dp0packages\StyleCop.MSBuild.4.7.45.0\tools\StyleCopSettingsEditor.exe" "%~dp0Settings.StyleCop"
+"%~dp0packages\StyleCop.MSBuild.4.7.46.0\tools\StyleCopSettingsEditor.exe" "%~dp0Settings.StyleCop"


updated diff script for literc php70 installers [skip ci]

--- installers/diff-lite.bat
+++ installers/diff-lite.bat
@@ -1,3 +1,3 @@
 @echo off

-"C:\Program Files (x86)\Diffuse\diffuse" lite-php54-w32.iss lite-php55-w32.iss lite-php55-w64.iss lite-php56-w32.iss lite-php56-w64.iss literc-php56-w32.iss literc-php56-w64.iss+"C:\Program Files (x86)\Diffuse\diffuse" lite-php54-w32.iss lite-php55-w32.iss lite-php55-w64.iss lite-php56-w32.iss lite-php56-w64.iss literc-php70-w32.iss literc-php70-w64.iss


added specific build.cmd to boost example

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

--- boost/build.cmd
+++ boost/build.cmd
@@ -0,0 +1,5 @@
+mkdir build
+pushd build
+cmake -G"NMake Makefiles" ..
+nmake %*
+popd


Updated builder to 4.7.3. Builder now deletes destination files if they exist.

--- build/build.cmd
+++ build/build.cmd
@@ -2,13 +2,13 @@

 setlocal

-set HZ_VERSION=4.7.1
+set HZ_VERSION=4.7.3
 set SRC_DIR=..\src
 set DEST_DIR=%~dp0releases\hoverzoom_%HZ_VERSION%

-
 java -jar tools\compiler.jar --js "%SRC_DIR%\js\affiliate.js" --js_output_file "%SRC_DIR%\js\affiliate.min.js"

+del /s /q "%DEST_DIR%"
 md "%DEST_DIR%"
 xcopy /s /y "%SRC_DIR%\*.*" "%DEST_DIR%\*.*"
 del "%DEST_DIR%\js\affiliate.js"


removed unused function

removed unused function

--- Build/BuildExecutable.bat
+++ Build/BuildExecutable.bat
@@ -95,12 +95,4 @@
 FOR /F "eol=; eol=[ tokens=1,2* delims==" %%i in ('findstr /b /l /i %~2= %1') DO set %~3=%%~j
 goto:eof

-:getversion
- rem This function reads tool version number and stores it in a variable
- rem %1 = name of source file to search in.
- rem %2 = search term to look for
- rem %3 = variable to place search result
-FOR /F "eol=; eol=[ tokens=1,2* delims==" %%i in ('findstr /b /l /i %~2= %1') DO set %~3=%%~j
-goto:eof
-
 pause


maybe w this bld

maybe w this bld

--- recipes/atari-py/bld.bat
+++ recipes/atari-py/bld.bat
@@ -1,11 +1,12 @@
-mkdir -p atari_py/ale_interface/build
+mkdir build && cd build

-cd atari_py/ale_interface/build
-cmake -DCMAKE_GENERATOR_PLATFORM=x64 ..
+cmake ^
+    -DCMAKE_GENERATOR_PLATFORM=x64 ..
 cmake --build .
-cp Debug/ale_c.dll ../
-cd ../../../
+cp Debug\ale_c.dll ..\
+cd ..\..\..\

-ls wheelhouse/atari_py*
+%PYTHON% pip install wheel && pip wheel . -w wheelhouse --no-deps -vvv
+ls wheelhouse\atari_py*
 rm -rf atari_py*
-%PYTHON% pip install $(ls wheelhouse/atari_py*)
+%PYTHON% pip install $(ls wheelhouse\atari_py*)


made executable

made executable


Add nuget package restore step.

Add nuget package restore step.

--- build.bat
+++ build.bat
@@ -9,6 +9,8 @@
    set version=-Version %PackageVersion%
 )

+cmd /c %nuget% restore
+
 REM Build
 %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild AW.Model.RWX.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false


updated build script

updated build script

--- build.bat
+++ build.bat
@@ -5,11 +5,11 @@

 REM Get latest for test suites
 cd json-patch-tests
-"%GitPath%" pull
+"%GitPath%" pull https://github.com/json-patch/json-patch-tests.git master
 cd ../Json-Path-Test-Suite
-"%GitPath%" pull
+"%GitPath%" pull https://github.com/gregsdennis/JSON-Path-Test-Suite.git master
 cd ../Json-Schema-Test-Suite
-"%GitPath%" pull
+"%GitPath%" pull https://github.com/json-schema-org/JSON-Schema-Test-Suite.git master
 cd ..

 REM Start build


stop build on first error

stop build on first error

--- build.bat
+++ build.bat
@@ -1,13 +1,35 @@
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="Debug"
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="Release"
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="MonoDebug"
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="MonoRelease"
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="Net4.0Debug"
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="Net4.0Release"
+if %errorlevel% neq 0 exit /b %errorlevel%

 .\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\Debug\Tests\Metrics.Tests.dll
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 .\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\Release\Tests\Metrics.Tests.dll
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 .\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\MonoDebug\Tests\Metrics.Tests.dll
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 .\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\MonoRelease\Tests\Metrics.Tests.dll
+if %errorlevel% neq 0 exit /b %errorlevel%
+
 .\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\Net4.0Debug\Tests\Metrics.Tests.dll
-.\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\Net4.0Release\Tests\Metrics.Tests.dll+if %errorlevel% neq 0 exit /b %errorlevel%
+
+.\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe .\bin\Net4.0Release\Tests\Metrics.Tests.dll
+if %errorlevel% neq 0 exit /b %errorlevel%


codecov

codecov

--- build.bat
+++ build.bat
@@ -34,13 +34,20 @@
 call "%msbuild%" SearchAThing.Sci.sln /t:Restore,Rebuild /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false
 if not "%errorlevel%"=="0" goto failure

+REM Code Coverage
+echo
+echo "---> Coverage (token=%CODECOV_TOKEN%)"
+call %nuget% install OpenCover -Version 4.6.519 -OutputDirectory packages
+packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"packages\xunit.runner.console.2.2.0\tools\xunit.console.exe" -targetargs:".\tests\bin\Release\SearchAThing.Sci.Tests.dll -noshadow" -output:".\coverage.xml"
+if not "%errorlevel%"=="0" goto failure
+
 REM Unit tests
-echo
-echo "---> Unit tests"
+rem echo
+rem echo "---> Unit tests"

-call %nuget% install xunit.runner.console -Version 2.2.0 -OutputDirectory packages
-packages\xunit.runner.console.2.2.0\tools\xunit.console.exe tests\bin\%config%\SearchAThing.Sci.Tests.dll
-if not "%errorlevel%"=="0" goto failure
+rem call %nuget% install xunit.runner.console -Version 2.2.0 -OutputDirectory packages
+rem packages\xunit.runner.console.2.2.0\tools\xunit.console.exe tests\bin\%config%\SearchAThing.Sci.Tests.dll
+rem if not "%errorlevel%"=="0" goto failure

 REM Package
 echo
@@ -50,12 +57,6 @@
 call %nuget% pack "src\SearchAThing.Sci.csproj" -symbols -o Build -p Configuration=%config% %version%
 if not "%errorlevel%"=="0" goto failure

-REM Code Coverage
-echo
-echo "---> Coverage (token=%CODECOV_TOKEN%)"
-call %nuget% install OpenCover -Version 4.6.519 -OutputDirectory packages
-packages\OpenCover.4.6.519\tools\OpenCover.Console.exe -register:user -target:"xunit.console.x86.exe" -targetargs:".\tests\bin\Release\SearchAThing.Sci.Tests.dll -noshadow" -output:".\coverage.xml"
-
 REM EDIT: commen follows exit for local debug

 :success


updated build.cmd

updated build.cmd

--- build.cmd
+++ build.cmd
@@ -1,13 +1,14 @@
-md %~dp0artifacts
+@echo off
+setlocal

-%~dp0util\nuget.exe restore %~dp0src\RabbitLink.sln
+cd "%~dp0"

+echo Restoring packages
+dotnet restore "%~dp0src\RabbitLink"
 @if %errorlevel% neq 0 ( pause & exit /b %errorlevel%)

-"C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe" /m /nologo "/consoleloggerparameters:PerformanceSummary;Summary" /verbosity:minimal /p:Configuration=Release "src\RabbitLink.sln"
-
+echo Building package
+dotnet pack "%~dp0src\RabbitLink" --configuration Release -o "%~dp0artifacts\"
 @if %errorlevel% neq 0 ( pause & exit /b %errorlevel%)

-%~dp0util\nuget.exe pack %~dp0src\RabbitLink\RabbitLink.csproj -OutputDirectory %~dp0artifacts -Properties Configuration=Release
-
 pause


Fixed build script based on solution rename in r172.

--- build.cmd
+++ build.cmd
@@ -7,6 +7,6 @@
     echo machine, which is required to build the solution.
     exit /b 1
 )
-for %%i in (debug release) do "%MSBUILD35EXE%" MoreLinq.sln /p:Configuration=%%i
+for %%i in (debug release) do "%MSBUILD35EXE%" "MoreLinq VS2008.sln" /p:Configuration=%%i
 if "%1"=="all" for %%i in (debug release) do "%MSBUILD35EXE%" MoreLinq.Silverlight.sln /p:Configuration=%%i
 popd


we should build the project if RunBuild is not empty

--- build.cmd
+++ build.cmd
@@ -21,7 +21,7 @@
 if TARGET=="RunIntegrationTests" (SET RunBuild=1)
 if TARGET=="CreatePackages" (SET RunBuild=1)

-if "%RunBuild%"=="" (
+if NOT "%RunBuild%"=="" (
 "tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=BuildApp" "buildMode=%BUILDMODE%"
 )


Created build script for windows

Created build script for windows

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

--- build.cmd
+++ build.cmd
@@ -0,0 +1,24 @@
+:: main script to build and test generic worker on windows
+
+@echo on
+
+:: cd to dir containing this script
+pushd %~dp0
+
+go get github.com/taskcluster/livelog github.com/gordonklaus/ineffassign || exit /b %ERRORLEVEL%
+cd gw-codegen
+go get -v || exit /b %ERRORLEVEL%
+cd ..
+go generate || exit /b %ERRORLEVEL%
+go get -v -t ./... || exit /b %ERRORLEVEL%
+
+:: this counts the number of lines returned by git status
+:: dump temp file a directory higher, otherwise git status reports the tmp1.txt file!
+git status --porcelain | C:\Windows\System32\find.exe /v /c "" > ..\tmp1.txt
+set /P lines=<..\tmp1.txt
+:: this checks that if more than 0 lines are returned, we fail
+if %lines% gtr 0 exit /b 64
+
+set GORACE=history_size=7
+go test -v ./... || exit /b %ERRORLEVEL%
+ineffassign . || exit /b %ERRORLEVEL%


build script

build script

--- build.cmd
+++ build.cmd
@@ -0,0 +1,57 @@
+@echo off
+
+set VSVARS="C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32.bat"
+::set VSDEVCMD="C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat"
+set MSBUILD=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
+
+:: %comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat""
+
+call %VSVARS%
+::call %VSDEVCMD%
+
+set SOLUTIONS=^
+	"HolisticWare.Auth.sln" ^
+	"Xamarin.Auth.sln" ^
+	"HolisticWare.Auth.with.Tests.sln" ^
+
+
+
+FOR %%s IN (%SOLUTIONS%) DO (
+	echo "=========================================================================="
+	echo Solution = %%s
+
+	.nuget\nuget.exe ^
+		restore ^
+		%%s
+
+	.nuget\nuget.exe ^
+		update ^
+		%%s
+
+	pause
+	::@IF %ERRORLEVEL% NEQ 0 PAUSE
+	echo "--------------------------------------------------------------------"
+
+	msbuild ^
+		/m:8 ^
+		/p:Configuration=Debug ^
+		%%s
+
+	msbuild ^
+		/m:8 ^
+		/p:Configuration=Release ^
+		%%s
+
+	%MSBUILD% ^
+		/m:8 ^
+		/p:Configuration=Debug ^
+		%%s
+
+	%MSBUILD% ^
+		/m:8 ^
+		/p:Configuration=Release ^
+		%%s
+)
+
+@IF %ERRORLEVEL% NEQ 0 PAUSE
+


Add Windows build script.

Add Windows build script.

--- build.cmd
+++ build.cmd
@@ -0,0 +1,36 @@
+@ECHO ON
+@SETLOCAL
+
+@ECHO.
+@ECHO  **** STARTING BUILD  ****
+
+@SET THIS_SCRIPT_FOLDER=%~dp0
+CD /D "%THIS_SCRIPT_FOLDER%"
+
+REM Install the Cake build system as a local pure .Net Core tool
+SET CakeVersion=0.30.0
+SET CakeCommandPath=.\tools\cake_%CakeVersion%
+SET Cake=%cakeCommandPath%\dotnet-cake.exe
+
+IF NOT EXIST "%Cake%" (
+    dotnet tool install Cake.Tool --version %cakeVersion% --tool-path "%cakeCommandPath%"
+)
+
+REM Run the Cake build script
+SET Target=%1
+%Cake% build.cake --verbosity=Quiet -target=%* || GOTO BuildFailed
+
+REM Clean up tools when the target is "cleanall"
+@IF /I "%Target%" == "cleanall" (
+    ECHO "Removing tools..."
+    RD /q /s .\tools
+)
+
+@ECHO.
+@ECHO **** BUILD SUCCESSFUL ****
+GOTO:EOF
+
+:BuildFailed
+@ECHO.
+@ECHO *** BUILD FAILED ***
+EXIT /B -1


Update 'build.cmd' alias parameter to use full name.

--- build.cmd
+++ build.cmd
@@ -29,7 +29,7 @@
 IF %BUILDCMD_DNX_VERSION%=="" (
 	CALL packages\KoreBuild\build\dnvm upgrade -runtime CLR -arch x86
 ) ELSE (
-	CALL packages\KoreBuild\build\dnvm install %BUILDCMD_DNX_VERSION% -runtime CLR -arch x86 -a default
+	CALL packages\KoreBuild\build\dnvm install %BUILDCMD_DNX_VERSION% -runtime CLR -arch x86 -alias default
 )
 CALL packages\KoreBuild\build\dnvm install default -arch x64
 CALL packages\KoreBuild\build\dnvm install default -runtime CoreCLR -arch x86
@@ -37,4 +37,4 @@

 :run
 CALL packages\KoreBuild\build\dnvm use default -runtime CLR -arch x86
-packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*+packages\Sake\tools\Sake.exe -I packages\KoreBuild\build -f makefile.shade %*


Remove build.cmd

Remove build.cmd

--- build.cmd
+++ build.cmd
@@ -1,2 +0,0 @@
-@ECHO OFF
-PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0build.ps1' %*; exit $LASTEXITCODE"


Removed build script indentation to try fix build error

--- build.cmd
+++ build.cmd
@@ -3,37 +3,37 @@
 net session >nul 2>&1
 if %errorLevel% == 0 (

-	cd %~dp0
+cd %~dp0

-	SETLOCAL
-	SET CACHED_DNVM=%USERPROFILE%\.dnx\bin\dnvm.cmd
+SETLOCAL
+SET CACHED_DNVM=%USERPROFILE%\.dnx\bin\dnvm.cmd

-	IF EXIST %CACHED_DNVM% goto installdnx
-	echo Downloading latest version of DNVM...
-	IF NOT EXIST %USERPROFILE%\.dnx md %USERPROFILE%\.dnx
-	IF NOT EXIST %USERPROFILE%\.dnx\bin md %USERPROFILE%\.dnx\bin
-	@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"
+IF EXIST %CACHED_DNVM% goto installdnx
+echo Downloading latest version of DNVM...
+IF NOT EXIST %USERPROFILE%\.dnx md %USERPROFILE%\.dnx
+IF NOT EXIST %USERPROFILE%\.dnx\bin md %USERPROFILE%\.dnx\bin
+@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

 :installdnx
-	%USERPROFILE%\.dnx\bin\dnvm install 1.0.0-beta4 -arch x86 -persistent -a beta4
-	SET CACHED_DNU=%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin
-	echo Setting DNU Path to %CACHED_DNU%
+%USERPROFILE%\.dnx\bin\dnvm install 1.0.0-beta4 -arch x86 -persistent -a beta4
+SET CACHED_DNU=%USERPROFILE%\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin
+echo Setting DNU Path to %CACHED_DNU%

 :restore
-	%CACHED_DNU%\dnu restore
+%CACHED_DNU%\dnu restore

 :clean
-	IF EXIST src\Compose\bin\Release DEL src\Compose\bin\Release /Q
+IF EXIST src\Compose\bin\Release DEL src\Compose\bin\Release /Q

 :build
-	%CACHED_DNU%\dnu pack src\Compose --configuration Release
+%CACHED_DNU%\dnu pack src\Compose --configuration Release

 :artifacts
-	IF NOT EXIST artifacts md artifacts
-	IF NOT EXIST artifacts\packages md artifacts\packages
-	XCOPY src\Compose\bin\Release\*.nupkg artifacts\packages /y
+IF NOT EXIST artifacts md artifacts
+IF NOT EXIST artifacts\packages md artifacts\packages
+XCOPY src\Compose\bin\Release\*.nupkg artifacts\packages /y

 ) else (
-	echo Unable to complete. Insufficient privileges.
-	EXIT /B 1
+echo Unable to complete. Insufficient privileges.
+EXIT /B 1
 )