added auto link file;

added auto link file;

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

--- rcs/_link.bat
+++ rcs/_link.bat
@@ -0,0 +1,27 @@
+@echo off
+SETLOCAL
+ECHO Checking permissions.
+NET session >NUL 2>&1
+IF %ERRORLEVEL% == 0 (
+    ECHO Administrative permissions confirmed.
+) ELSE (
+    ECHO Current permissions inadequate.
+    ECHO You must run this script as administrator.
+    GOTO :EOF
+)
+
+CD %~dp0
+FOR %%F IN (babunrc gitconfig vimrc) ^
+DO (call :HANDLER %%F)
+GOTO :EOF
+
+:HANDLER
+    SET SRCFILE="%~dp0%1"
+    SET TRGFILE="%USERPROFILE%\.babun\cygwin\home\%USERNAME%\.%1"
+    ECHO Trying to link %SRCFILE% to  %TRGFILE%
+	DEL %TRGFILE%
+    MKLINK %TRGFILE% %SRCFILE%
+    GOTO :EOF
+
+:EOF
+ENDLOCAL


Windows script working

Windows script working

--- scripts/uc11.bat
+++ scripts/uc11.bat
@@ -1,9 +1,9 @@
 @echo off

 rem Download Data. Select variables, region and time right away to save bandwith
-cate ds copy esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1 --name "SST_polar_2007" --time 2007-01-01,2007-01-15 --vars "analysed_sst, sea_ice_fraction" --region "-180, 60, 180, 90"
-cate ds copy esacci.CLOUD.mon.L3C.CLD_PRODUCTS.AVHRR.multi-platform.AVHRR-AM.2-0.r1 --name "CLOUDS_polar_2007" --time 2007-01-01,2007-01-31 --vars "cfc, cee" --region "-180, 60, 180, 90"
-cate ds copy esacci.AEROSOL.mon.L3.AAI.multi-sensor.multi-platform.ms_uvai.1-5-7.r1 --name "AEROSOL_polar_2007" --time 2007-01-01,2007-03-31 --region "-180, 60, 180, 90"
+cate ds copy esacci.SST.day.L4.SSTdepth.multi-sensor.multi-platform.OSTIA.1-1.r1 --name "SST_polar_2007" --time "2007-01-01,2007-01-15" --vars "analysed_sst, sea_ice_fraction" --region " -180, 60, 180, 90"
+cate ds copy esacci.CLOUD.mon.L3C.CLD_PRODUCTS.AVHRR.multi-platform.AVHRR-AM.2-0.r1 --name "CLOUDS_polar_2007" --time "2007-01-01,2007-01-31" --vars "cfc, cee" --region " -180, 60, 180, 90"
+cate ds copy esacci.AEROSOL.mon.L3.AAI.multi-sensor.multi-platform.ms_uvai.1-5-7.r1 --name "AEROSOL_polar_2007" --time "2007-01-01,2007-03-31" --region " -180, 60, 180, 90"

 rmdir /S /Q uc11
 mkdir uc11
@@ -19,9 +19,9 @@
 cate res open aerosol local.AEROSOL_polar_2007

 rem Create scalable map plots of the datasets
-cate res set plot1 plot_map ds=@sst var="sea_ice_fraction" region='-180,60,180,90' projection='NorthPolarStereo' contour_plot=True file='sst_polar.svg'
-cate res set plot2 plot_map ds=@clouds var='cfc' region='-180,60,180,90' projection='NorthPolarStereo' file='clouds_polar.svg'
-cate res set plot3 plot_map ds=@aerosol region='-180,60,180,90' var='absorbing_aerosol_index' projection='NorthPolarStereo' file='aerosol_polar.svg'
+cate res set plot1 plot_map ds=@sst var="sea_ice_fraction" region="-180,60,180,90" projection="NorthPolarStereo" contour_plot=True file="sst_polar.svg"
+cate res set plot2 plot_map ds=@clouds var="cfc" region="-180,60,180,90" projection="NorthPolarStereo" file="clouds_polar.svg"
+cate res set plot3 plot_map ds=@aerosol region="-180,60,180,90" var="absorbing_aerosol_index" projection="NorthPolarStereo" file="aerosol_polar.svg"

 rem Save the workspace
 cate ws save


build-android: update .bat line termination

Change-Id: I9d4152df8cc7c10e74f6484dbc802c2c854c9fef

--- build-android/android-generate.bat
+++ build-android/android-generate.bat
@@ -1,37 +1,37 @@
-@echo off
-REM # Copyright 2015 The Android Open Source Project
-REM # Copyright (C) 2015 Valve Corporation
-REM
-REM # Licensed under the Apache License, Version 2.0 (the "License");
-REM # you may not use this file except in compliance with the License.
-REM # You may obtain a copy of the License at
-REM
-REM #      http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM # Unless required by applicable law or agreed to in writing, software
-REM # distributed under the License is distributed on an "AS IS" BASIS,
-REM # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM # See the License for the specific language governing permissions and
-REM # limitations under the License.
-
-if exist generated (
-  rmdir /s /q generated
-)
-mkdir generated\include generated\common
-
-cd generated/include
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.cpp
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.c
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_enum_string_helper.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_object_types.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_dispatch_table_helper.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml thread_check.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml parameter_validation.cpp
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml unique_objects_wrappers.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_layer_dispatch_table.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_extension_helper.h
-py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml object_tracker.cpp
-cd ../..
-
+@echo off
+REM # Copyright 2015 The Android Open Source Project
+REM # Copyright (C) 2015 Valve Corporation
+REM
+REM # Licensed under the Apache License, Version 2.0 (the "License");
+REM # you may not use this file except in compliance with the License.
+REM # You may obtain a copy of the License at
+REM
+REM #      http://www.apache.org/licenses/LICENSE-2.0
+REM
+REM # Unless required by applicable law or agreed to in writing, software
+REM # distributed under the License is distributed on an "AS IS" BASIS,
+REM # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+REM # See the License for the specific language governing permissions and
+REM # limitations under the License.
+
+if exist generated (
+  rmdir /s /q generated
+)
+mkdir generated\include generated\common
+
+cd generated/include
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_safe_struct.cpp
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_struct_size_helper.c
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_enum_string_helper.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_object_types.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_dispatch_table_helper.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml thread_check.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml parameter_validation.cpp
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml unique_objects_wrappers.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_layer_dispatch_table.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml vk_extension_helper.h
+py -3 ../../../scripts/lvl_genvk.py -registry ../../../scripts/vk.xml object_tracker.cpp
+cd ../..
+


Fix script

Fix script

--- distribution/perfalyzer.cmd
+++ distribution/perfalyzer.cmd
@@ -49,13 +49,11 @@

 call %JAVA_CMD% %JAVA_OPTS%

-if ERRORLEVEL -1 goto error
+if %errorlevel% neq 0 goto error
 goto end

 :error
-set EXIT_CODE=-1
+exit /B %errorlevel%

 :end
 @endlocal
-
-exit /B %EXIT_CODE%


no message

no message

--- sage/deploy.cmd
+++ sage/deploy.cmd
@@ -115,6 +115,9 @@
   echo Found compatible virtual environment.
 )

+echo Pip install requirements.
+env\scripts\pip install django
+IF !ERRORLEVEL! NEQ 0 goto error

 :: 5. Copy web.config
 IF EXIST "%DEPLOYMENT_SOURCE%\web.%PYTHON_VER%.config" (


fix bux, in bin/cor.cmd now gets arguments properly

--- bin/cor.cmd
+++ bin/cor.cmd
@@ -1 +1 @@
-node %~dp0cor
+node %~dp0cor %*


cmakeがパス通らなくなった

cmakeがパス通らなくなった

--- tools/win/make_build.cmd
+++ tools/win/make_build.cmd
@@ -14,12 +14,14 @@

 set MINGW_DIR=C:\MinGW
 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
 set LIB_EXE=%VS2015_DIR%\VC\bin\lib.exe
 set QT32_CMAKE=%QT32_DIR%\%QT_VERSION%\msvc2015\lib\cmake
 set QT64_CMAKE=%QT64_DIR%\%QT_VERSION%\msvc2015_64\lib\cmake
+set CMAKE_EXE=%CMAKE_DIR%\cmake.exe

 rem ##### Checking #####
 rem check current directory
@@ -34,6 +36,7 @@
 call :check_exist "%OBS_APP%" "Not found obs-studio application. Please install obs-stduio application or change OBS_APP"
 call :check_exist "%OBS_SRC%" "Not found obs-studio sourcs. Please install obs-stduio soruces or change OBS_SRC"
 call :check_exist "%CURL_SRC%" "Not found curl sourcs. Please install curl soruces or change CURL_SRC"
+call :check_exist "%CMAKE_EXE%" "Not found cmake. Please install cmake or change CMAKE_DIR"

 cmake > NUL 2>&1
 if errorlevel 1 call :die "Failed check CMake. Please install CMake ant set PATH"


fixes #21576

fixes #21576

--- scripts/npm.bat
+++ scripts/npm.bat
@@ -2,7 +2,7 @@
 setlocal

 set npm_config_disturl="https://atom.io/download/atom-shell"
-for /f "tokens=2 delims=:, " %%a in ('findstr /R /C:"\"electronVersion\":.*" %~dp0..\package.json') do set npm_config_target=%%~a
+for /f "tokens=2 delims=:, " %%a in ('findstr /R /C:"\"electronVersion\":.*" "%~dp0..\package.json"') do set npm_config_target=%%~a
 set npm_config_arch="ia32"
 set npm_config_runtime="electron"
 set HOME=~\.electron-gyp


updated build path

updated build path

--- build_prg.bat
+++ build_prg.bat
@@ -1,16 +1,15 @@
-@echo off
 echo "Build main program"
-go build -ldflags "-s -w" ekko.go
-go build -ldflags "-s -w" ekpo.go
-go build -ldflags "-s -w" lfa1.go
-go build -ldflags "-s -w" mara.go
-go build -ldflags "-s -w" t024.go
-go build -ldflags "-s -w" t024e.go
-go build -ldflags "-s -w" tcurr.go
-go build -ldflags "-s -w" zstxl.go
+go build -ldflags "-s -w" cmd\ekko\ekko.go
+go build -ldflags "-s -w" cmd\ekpo\ekpo.go
+go build -ldflags "-s -w" cmd\lfa1\lfa1.go
+go build -ldflags "-s -w" cmd\mara\mara.go
+go build -ldflags "-s -w" cmd\t024\t024.go
+go build -ldflags "-s -w" cmd\t024e\t024e.go
+go build -ldflags "-s -w" cmd\tcurr\tcurr.go
+go build -ldflags "-s -w" cmd\zstxl\zstxl.go

 echo "Build other utilities"
-go build -ldflags "-s -w" dl_consolpack_rtemplate.go
-go build -ldflags "-s -w" dl_gl_consol_pack_map.go
-go build -ldflags "-s -w" gen_code_ddf.go
-go build -ldflags "-s -w" upload_gl_consol_pack_map.go+go build -ldflags "-s -w" cmd\dl_consolpack_rtemplate\dl_consolpack_rtemplate.go
+go build -ldflags "-s -w" cmd\dl_gl_consol_pack_map\dl_gl_consol_pack_map.go
+go build -ldflags "-s -w" cmd\gen_code_ddf\gen_code_ddf.go
+go build -ldflags "-s -w" cmd\upload_gl_consol_pack_map\upload_gl_consol_pack_map.go


Adding Windows version of buckw

Adding Windows version of buckw

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

--- buckw.bat
+++ buckw.bat
@@ -0,0 +1,3 @@
+@echo off
+
+python buckw %*


Build.bat will pass on command line args to ant

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/trunk@322793 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 6c99925b41dc8e9d9e6fbec6db7a6872a5c032d1

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

 SET BUILDFILE=build.xml
 echo %LOCALCLASSPATH%
-java -classpath %LOCALCLASSPATH% org.apache.tools.ant.Main -buildfile %BUILDFILE% %1
+java -classpath %LOCALCLASSPATH% org.apache.tools.ant.Main -buildfile %BUILDFILE% %1 %2 %3 %4 %5 %6
 set PATH=%OLDPATH%

 :eof


Removing build.bat

Removing build.bat

--- build.bat
+++ build.bat
@@ -1,4 +0,0 @@
-nuget pack ./src/Sequin.Core/Sequin.Core.csproj -IncludeReferencedProjects -Prop Configuration=Release
-nuget pack ./src/Sequin/Sequin.csproj -IncludeReferencedProjects -Prop Configuration=Release
-nuget pack ./src/Sequin.Autofac/Sequin.Autofac.csproj -IncludeReferencedProjects -Prop Configuration=Release
-nuget pack ./src/Sequin.FluentValidation/Sequin.FluentValidation.csproj -IncludeReferencedProjects -Prop Configuration=Release


BAT file to build the jquery SVN into 1 file, for easy debugging.

git-svn-id: 127a75d9a360956a21cbd3fbee91bdd1882f81c6@52 c715fcbe-d12f-0410-84c4-316a508785bb

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

--- build.bat
+++ build.bat
@@ -0,0 +1,5 @@
+@echo off
+type jquery\jquery.js > jquery-svn.js
+type fx\fx.js >> jquery-svn.js
+type event\event.js >> jquery-svn.js
+type ajax\ajax.js >> jquery-svn.js


Revamped it with functions. Updated help message. Added 'if lua version is real'. More comments

--- build.bat
+++ build.bat
@@ -27,16 +27,13 @@
 	REM Default env vars
 	IF NOT DEFINED debug			set debug=0
 	IF NOT DEFINED debug_coverage	set debug_coverage=0
-	IF NOT DEFINED force_build		set no_build=0
-
 	IF NOT DEFINED GCC				set GCC=gcc
 	IF NOT DEFINED AR				set AR=ar
 	IF NOT DEFINED MAKE				set MAKE=make
-
 	IF NOT DEFINED GCC_VER			set GCC_VER=gnu99

-	REM Basic switches
+	REM Basic help switches
 	if [] == [%1] (
 		echo No arguments specified.
 		echo.
@@ -133,121 +130,38 @@

 	REM --------------------------------------------------------------------

-
 	IF [%1] == [driver] (
-
-		echo Cleaning bin...
-		REM Resets bin\res
-		IF EXIST %root% ( rmdir /S /Q %root% )
+		echo Cleaning workspace...
+		REM Resets bin
+		IF EXIST %root% rmdir /S /Q %root%
+
+		REM Resets dll
+		del %dlldir%\*.dll
+
+		REM Output build structure
 		mkdir %root%\res

+		REM Build dependencies
 		IF [%2] == [luajit] (
-			echo Building luajit...
-
-			pushd luajit-2.0\src
-				IF NOT EXIST "lua51.dll" (
-					%MAKE% -j%NUMBER_OF_PROCESSORS%
-				) ELSE (
-					IF [%force_build%] == [1] (
-						%MAKE% -j%NUMBER_OF_PROCESSORS%
-					)
-				)
-				echo Installing...
-				xcopy /Y lua.h		..\..\include
-				xcopy /Y luaconf.h	..\..\include
-				xcopy /Y lualib.h	..\..\include
-				xcopy /Y lauxlib.h	..\..\include
-				xcopy /Y luajit.h	..\..\include
-				xcopy /Y lua51.dll	..\..\dll
-			popd
-
-			echo Finished building and linking luajit.
+			call :build_luajit
 		) ELSE (
-			echo Building %2...
-
-			pushd lua-all\%2
-				IF NOT EXIST "*.dll" (
-					echo Compiling...
-					%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra %lua_cflags% -DLUA_BUILD_AS_DLL -c *.c
-
-					del lua.o
-					del luac.o
-
-					echo Linking...
-					%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra -shared -o %2.dll *.o
-
-					echo Archiving...
-					%AR% rcu lib%2.a *.o
-				) ELSE (
-					IF [%force_build%] == [1] (
-						echo Compiling...
-						%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra %lua_cflags% -DLUA_BUILD_AS_DLL -c *.c
-
-						del lua.o
-						del luac.o
-
-						echo Linking...
-						%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra -shared -o %2.dll *.o
-
-						echo Archiving...
-						%AR% rcu lib%2.a *.o
-					)
-				)
-
-				echo Installing...
-				xcopy /Y lua.h			..\..\include
-				xcopy /Y luaconf.h		..\..\include
-				xcopy /Y lualib.h		..\..\include
-				xcopy /Y lauxlib.h		..\..\include
-				xcopy /Y %2.dll			..\..\dll
-				xcopy /Y lib%2.a		..\..\lib
-			popd
-
-			echo Finished building and linking %2.
-		)
-
-		if [%2] == [luajit] (
-			echo Compiling luaw driver...
-			%GCC% %attrib% %dirs% -D__USE_MINGW_ANSI_STDIO=1 -DDEFAULT_LUA=\"lc%2.dll\" -c %srcdir%\darr.c %srcdir%\luadriver.c
-
-			echo Compiling default luaw driver package %2...
-			%GCC% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -DLUA_JIT_51 -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
-
-			echo Linking luaw driver...
-			%GCC% %attrib% %dirs% -o luaw.exe luadriver.o darr.o
-
-			echo Linking default luaw driver package %2...
-			%GCC% %attrib% %dirs% -shared -o lc%2.dll ldata.o jitsupport.o darr.o %dlldir%\lua51.dll
-		) ELSE (
-			echo Compiling luaw driver...
-			%GCC% %attrib% %dirs% -D__USE_MINGW_ANSI_STDIO=1 -DDEFAULT_LUA=\"lc%2.dll\" -c %srcdir%\darr.c %srcdir%\luadriver.c
-
-			echo Compiling default luaw driver package %2...
-			%GCC% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
-
-			echo Linking luaw driver...
-			%GCC% %attrib% %dirs% -o luaw.exe luadriver.o darr.o
-
-			echo Linking default luaw driver package %2...
-			%GCC% %attrib% %dirs% -shared -o lc%2.dll ldata.o jitsupport.o darr.o %dlldir%\%2.dll
-		)
-
-
-		REM Strip luaw driver if not debug
-		echo Stripping...
-		IF %debug% EQU 0 (
-			strip --strip-all luaw.exe
-		)
-
-		REM Migrate binaries
-		echo Migrating binaries...
-		move /Y *.dll		%root%
-		move /Y *.o			%objdir%
-		move /Y *.a			%libdir%
-		move /Y *.exe		%root%
+			IF NOT EXIST "lua-all/%2" (
+				echo Not a valid lua version!
+				goto failure
+			)
+			call :build_lua %2
+		)
+
+		REM Build driver
+		call :build_driver %2
+
+		REM Build install
+		move /Y luaw.exe %root%\luaw.exe
 		copy /Y %resdir%\*	%root%\res
-		copy /Y %dlldir%\*	%root%
+		echo wrap 1
 		copy /Y %rootdir%\*	%root%
+		echo wrap 1 eof
+		call :build_install %2

 		echo Finished.
 		exit /b 0
@@ -258,102 +172,151 @@

 	IF [%1] == [package] (
+
+		REM Force driver to be built
+		IF NOT EXIST %root%/luaw.exe (
+			echo Please build the driver first.
+			exit /b 1
+		)
+
+		echo Cleaning workspace...
+		REM Resets dll
+		del %dlldir%\*.dll
+
 		IF [%2] == [luajit] (
-			echo Building luajit...
-
-			pushd luajit-2.0\src
-				IF NOT EXIST "lua51.dll" (
-					%MAKE% -j%NUMBER_OF_PROCESSORS%
-				) ELSE (
-					IF [%force_build%] == [1] (
-						%MAKE% -j%NUMBER_OF_PROCESSORS%
-					)
-				)
-				echo Installing...
-				xcopy /Y lua.h		..\..\include
-				xcopy /Y luaconf.h	..\..\include
-				xcopy /Y lualib.h	..\..\include
-				xcopy /Y lauxlib.h	..\..\include
-				xcopy /Y luajit.h	..\..\include
-				xcopy /Y lua51.dll	..\..\dll
-			popd
-
-			echo Finished building and linking luajit.
+			call :build_luajit
 		) ELSE (
-			echo Building %2...
-
-			pushd lua-all\%2
-				IF NOT EXIST "*.dll" (
-					echo Compiling...
-					%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra %lua_cflags% -DLUA_BUILD_AS_DLL -c *.c
-
-					del lua.o
-					del luac.o
-
-					echo Linking...
-					%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra -shared -o %2.dll *.o
-
-					echo Archiving...
-					%AR% rcu lib%2.a *.o
-				) ELSE (
-					IF [%force_build%] == [1] (
-						echo Compiling...
-						%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra %lua_cflags% -DLUA_BUILD_AS_DLL -c *.c
-
-						del lua.o
-						del luac.o
-
-						echo Linking...
-						%GCC% -std=%GCC_VER% -g0 -O2 -Wall -Wextra -shared -o %2.dll *.o
-
-						echo Archiving...
-						%AR% rcu lib%2.a *.o
-					)
-				)
-
-				echo Installing...
-				xcopy /Y lua.h			..\..\include
-				xcopy /Y luaconf.h		..\..\include
-				xcopy /Y lualib.h		..\..\include
-				xcopy /Y lauxlib.h		..\..\include
-				xcopy /Y %2.dll			..\..\dll
-				xcopy /Y lib%2.a		..\..\lib
-			popd
-
-			echo Finished building and linking %2.
-		)
-
-		echo Creating local luaw package as %2...
-
-		if [%2] == [luajit] (
-			echo Compiling luaw package %2...
-			%GCC% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -DLUA_JIT_51 -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
-
-			echo Linking luaw package %2...
-			%GCC% %attrib% %dirs% -shared -o lc%2.dll ldata.o jitsupport.o darr.o %dlldir%\lua51.dll
-		) ELSE (
-			echo Compiling luaw package %2...
-			%GCC% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
-
-			echo Linking luaw package %2...
-			%GCC% %attrib% %dirs% -shared -o lc%2.dll ldata.o jitsupport.o darr.o %dlldir%\%2.dll
-		)
-
-		echo Finished building and linking %2.
-
-		REM Migrate binaries
-		echo Migrating binaries...
-		move /Y *.dll		%root%
-		move /Y *.o			%objdir%
-		move /Y *.a			%libdir%
-		copy /Y %resdir%\*	%root%\res
-		copy /Y %dlldir%\*	%root%
-		copy /Y %rootdir%\*	%root%
+			IF NOT EXIST "lua-all/%2" (
+				echo Not a valid lua version!
+				goto failure
+			)
+			call :build_lua %2
+		)
+
+		call :build_package %2
+		call :build_install %2

 		echo Finished.
 		exit /b 0
 	)

+
+	REM --------------------------------------------------------------------
+
+
+	:build_luajit
+	setlocal
+		echo Building luajit...
+
+		pushd luajit-2.0\src
+			IF NOT EXIST "lua51.dll" (
+				%MAKE% -j%NUMBER_OF_PROCESSORS%
+			) ELSE (
+				echo luajit already cached.
+			)
+
+			echo Installing...
+			xcopy /Y lua.h		..\..\include
+			xcopy /Y luaconf.h	..\..\include
+			xcopy /Y lualib.h	..\..\include
+			xcopy /Y lauxlib.h	..\..\include
+			xcopy /Y luajit.h	..\..\include
+			xcopy /Y lua51.dll	..\..\dll
+		popd
+
+		echo Finished installing luajit.
+		goto :EOF
+	endlocal
+
+	:build_lua
+	setlocal
+		echo "Building %1..."
+
+		pushd lua-all\%1
+			IF NOT EXIST "*.dll" (
+				echo Compiling %1...
+				%GCC% -std=%GCC_VER% -g0 -O2 -Wall %luaverdef% -c *.c
+
+				del lua.o
+				del luac.o
+
+				echo Linking %1...
+				%GCC% -std=%GCC_VER% -g0 -O2 -Wall -shared -o %1.dll *.o
+
+				echo Archiving %1...
+				%AR% rcu lib%1.a *.o
+			) ELSE (
+				echo %1 already cached.
+			)
+
+			echo Installing...
+			xcopy /Y lua.h			..\..\include
+			xcopy /Y luaconf.h		..\..\include
+			xcopy /Y lualib.h		..\..\include
+			xcopy /Y lauxlib.h		..\..\include
+			xcopy /Y %1.dll			..\..\dll
+		popd
+
+		echo Finished installing %1.
+		goto :EOF
+	endlocal
+
+	:build_install
+	setlocal
+		move /Y *.o %objdir%
+		IF [%1] == [luajit] (
+			echo wrap 2
+			copy /Y %dlldir%\lua51.dll %root%
+			echo wrap 2 eof
+		) ELSE (
+			echo wrap 3
+			copy /Y %dlldir%\%1.dll %root%
+			echo wrap 3 eof
+		)
+		echo wrap 4
+		move lc%1.dll %root%
+		echo wrap 4 eof
+
+		echo Finished installing %1.
+		goto :EOF
+	endlocal
+
+	:build_package
+	setlocal
+		IF [%1] == [luajit] (
+			set luaverdef=-DLUA_JIT_51
+			set luaverout=%dlldir%/lua51.dll
+		) ELSE (
+			set luaverout=%dlldir%/%1.dll
+		)
+
+		echo Compiling luaw driver package %1...
+		%gcc% %attrib% %dirs% %luaverdef% -D__USE_MINGW_ANSI_STDIO=1 -DLC_LD_DLL -c %srcdir%\ldata.c %srcdir%\jitsupport.c %srcdir%\darr.c
+
+		echo Linking luaw driver package %1...
+		%GCC% %attrib% %dirs% -shared -o lc%1.dll ldata.o jitsupport.o darr.o %luaverout%
+
+		goto :EOF
+	endlocal
+
+	:build_driver
+	setlocal
+		echo Compiling luaw driver...
+		%GCC% %attrib% %dirs% -D__USE_MINGW_ANSI_STDIO=1 -DDEFAULT_LUA=\"lc%1.dll\" -c %srcdir%\darr.c %srcdir%\luadriver.c
+
+		echo Linking luaw driver...
+		%GCC% %attrib% %dirs% -o luaw.exe luadriver.o darr.o
+
+		call :build_package %1
+
+		IF %debug% EQU 0 (
+			echo Stripping...
+			strip --strip-all luaw.exe
+		)
+
+		echo Finished building driver %1.
+		goto :EOF
+	endlocal

 endlocal

@@ -362,25 +325,24 @@
 :help
 	echo Usage:
 	echo.
-	echo		build.bat build lua-x.x.x              Builds the driver with a default package.
-	echo		build.bat package lua-x.x.x            Creates packages for the driver.
-	echo		build.bat clean                        Cleans the environment of built files.
-	echo		build.bat install [directory]          Installs to a pre-created directory.
+	echo		build.bat build lua-x.x.x              Builds the driver with a default package
+	echo		build.bat package lua-x.x.x            Creates packages for the driver
+	echo		build.bat clean                        Cleans the environment of built files
+	echo		build.bat install [directory]          Installs to a pre-created directory
 	echo		build.bat -? /? --help                 Shows this help message
 	echo.
 	echo Notes:
 	echo		Uses `debug` for debug binaries
 	echo		Uses `debug_coverage` for coverage enabling
-	echo		Uses `force_build` for forcing builds of packages
 	echo		Uses `GCC` for specifying GCC executable
 	echo		Uses `AR` for specifying AR executable
 	echo		Uses `MAKE` for specifying MAKE executable
 	echo		Uses `GCC_VER` for specifying lua gcc version for building lua dlls
 	echo.
 	echo Configure above notes with set:
-	echo		debug, debug_coverage, force_build, GCC, AR, MAKE, GCC_VER
-	echo.
-	echo 	Specify luajit if you want to use luajit.
+	echo		debug, debug_coverage, GCC, AR, MAKE, GCC_VER
+	echo.
+	echo 	Specify luajit if you want to use luajit
 	echo.
 	exit /b 0

@@ -390,3 +352,5 @@
 	echo An error has occured!
 	pause
 	exit /b 1
+
+:end


Added build.bat so template can be built via CLI on Windows.

--- build.bat
+++ build.bat
@@ -0,0 +1,17 @@
+@echo off
+PATH=%PATH%;c:\Python27;c:\Python26
+
+mkdir tmp
+
+echo Generating APL...
+python util/build_apl.py src\presentation_layer.json > tmp\apl.build
+
+echo Generating docs...
+python util/build_doc.py src\presentation_layer.json > OPTIONS.md
+
+echo Assembling template...
+python util\build_tmpl.py %cd%
+
+del tmp\apl.build
+rmdir tmp
+


Build debug and release.

Build debug and release.

--- build.bat
+++ build.bat
@@ -1,10 +1,10 @@
 :: Build BWAPI
 pushd %CD%
 cd bwapi\bwapi
-::msbuild /p:Configuration=Debug /p:Platform=Win32 /target:BWAPILIB bwapi.sln
+msbuild /p:Configuration=Debug   /p:Platform=Win32 /target:BWAPILIB bwapi.sln
 msbuild /p:Configuration=Release /p:Platform=Win32 /target:BWAPILIB bwapi.sln
 popd

 :: Build KBot
-::msbuild /p:Configuration=Debug /p:Platform=x86 KBot.sln
+msbuild /p:Configuration=Debug   /p:Platform=x86 KBot.sln
 msbuild /p:Configuration=Release /p:Platform=x86 KBot.sln


Bump toolsversion to 4.0 to allow building.

Bump toolsversion to 4.0 to allow building, with optional parameters.

Optional parameters from these two files:
\MetroGrid.cs
\MetroMessageBox.cs

--- build.cmd
+++ build.cmd
@@ -13,9 +13,9 @@
 :build
 echo ---------------------------------------------------------------------
 echo Building AnyCpu release...
-%msbuild% MetroFramework.sln %commonflags% /tv:3.5 /p:TargetFrameworkVersion=v2.0 /p:Platform="Any Cpu" /p:OutputPath="%outputdir%\AnyCpu\NET20"
+%msbuild% MetroFramework.sln %commonflags% /tv:4.0 /p:TargetFrameworkVersion=v2.0 /p:Platform="Any Cpu" /p:OutputPath="%outputdir%\AnyCpu\NET20"
 if errorlevel 1 goto build-error
-%msbuild% MetroFramework.sln %commonflags% /tv:3.5 /p:TargetFrameworkVersion=v3.5 /p:Platform="Any Cpu" /p:OutputPath="%outputdir%\AnyCpu\NET35"
+%msbuild% MetroFramework.sln %commonflags% /tv:4.0 /p:TargetFrameworkVersion=v3.5 /p:Platform="Any Cpu" /p:OutputPath="%outputdir%\AnyCpu\NET35"
 if errorlevel 1 goto build-error
 %msbuild% MetroFramework.sln %commonflags% /tv:4.0 /p:TargetFrameworkVersion=v4.0 /p:Platform="Any Cpu" /p:OutputPath="%outputdir%\AnyCpu\NET40"
 if errorlevel 1 goto build-error
@@ -32,4 +32,4 @@
 cd %cwd%
 goto exit

-:exit+:exit


restore SDK projects after proto has been built

This is necessary due to the projects expecting some targets files to be present.

--- build.cmd
+++ build.cmd
@@ -656,12 +656,6 @@
 set NUGET_PACKAGES=%~dp0Packages
 set path=%~dp0Tools\dotnet20\;%path%

-if "%NEEDS_DOTNET_CLI_TOOLS%" == "1" (
-    :: Restore projects using dotnet CLI tool
-    echo %_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
-         %_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
-)
-
 echo ----------- Done with package restore, starting dependency uptake check -------------

 if not "%PB_PackageVersionPropsUrl%" == "" (
@@ -726,7 +720,14 @@
   @if ERRORLEVEL 1 echo Error: NGen of proto failed  && goto :failure
 )

-echo ---------------- Done with proto, starting build ------------------------
+if "%NEEDS_DOTNET_CLI_TOOLS%" == "1" (
+    echo ---------------- Done with proto, starting SDK restore ------------------------
+    :: Restore projects using dotnet CLI tool
+    echo %_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
+         %_dotnet20exe% restore -v:d build-everything.proj %msbuildflags% %BUILD_DIAG%
+)
+
+echo ---------------- Done with SDK restore, starting build ------------------------

 if "%BUILD_PHASE%" == "1" (


Do not clean tests folder when skiptests option is used along with clean

--- build.cmd
+++ build.cmd
@@ -203,8 +203,6 @@
 :: Cleanup the previous output for the selected configuration
 if exist "%__BinDir%"               rd /s /q "%__BinDir%"
 if exist "%__IntermediatesDir%"     rd /s /q "%__IntermediatesDir%"
-if exist "%__TestBinDir%"           rd /s /q "%__TestBinDir%"
-if exist "%__TestIntermediatesDir%" rd /s /q "%__TestIntermediatesDir%"
 if exist "%__LogsDir%"              del /f /q "%__LogsDir%\*_%__BuildOS%__%__BuildArch%__%__BuildType%.*"
 if exist "%__ProjectDir%\Tools"     rd /s /q "%__ProjectDir%\Tools"


batch files do not sleep (#392)

batch files do not sleep (#392)

--- src/electron/add_tap_device.bat
+++ src/electron/add_tap_device.bat
@@ -90,7 +90,7 @@

 :loop
 echo waiting...
-sleep 1
+timeout /t 1 >nul
 netsh interface show interface name=%DEVICE_NAME% >nul
 if %errorlevel% neq 1 goto :loop


Delete gradlew.bat

Delete gradlew.bat

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


Adds clang as compiler in build.bat

Adds clang as compiler in build.bat

--- build.bat
+++ build.bat
@@ -2,14 +2,34 @@

 IF NOT EXIST build MKDIR build

-SET COMPILER_FLAGS=/nologo /Od /W4 /wd4127 /wd4996 /Zi /Fobuild\ /Fdbuild\ /c /I "include"
+if "%1" == "msvc" GOTO msvc
+if "%1" == "clang" GOTO clang

-FOR /r %%f IN ("src\*.c") DO cl %COMPILER_FLAGS% "%%f" %MACROS%
+:msvc
+    SET COMPILER_FLAGS=/nologo /Od /W4 /wd4127 /wd4996 /Zi /Fobuild\ /Fdbuild\ /c /I "include"

-SET LINKER_FLAGS=/NOLOGO /DEBUG
+    FOR /r %%f IN ("src\*.c") DO cl %COMPILER_FLAGS% "%%f" %MACROS%

-PUSHD build
+    SET LINKER_FLAGS=/NOLOGO /DEBUG

-link %LINKER_FLAGS% /OUT:woody.exe *.obj
+    PUSHD build

-POPD
+    link %LINKER_FLAGS% /OUT:woody.exe *.obj
+
+    POPD
+
+    GOTO end
+
+:clang
+    REM -Werror - turn warnings into errors
+    REM -g - generate complete debugging information
+    REM -pedantic-errors - request error if a feature from a later standard is used in an earlier mode
+
+    SET COMPILER_FLAGS=-Werror -g -pedantic-errors
+
+    FOR /r %%f IN ("src/*.c") DO clang %COMPILER_FLAGS% "%%f" %MACROS%
+
+    GOTO end
+
+:end
+    echo "Finished!"


[JBAS-8340]

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

 set CLASSPATH=
 set M2_HOME=
-set MAVEN+HOME=
+set MAVEN_HOME=

 REM ******************************************************
 REM - "for" loops have been unrolled for compatibility


Corrected the path to delete ClientError.txt--jalby

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


Change build.bat to use MSBuild 14.0

Change build.bat to use MSBuild 14.0

--- build.bat
+++ build.bat
@@ -1 +1 @@
-%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild %~dp0\build.proj /verbosity:normal /nr:false /p:PackageVersion=%PackageVersion% /p:AutoPush=false+"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" %~dp0\build.proj /verbosity:normal /nr:false /p:PackageVersion=%PackageVersion% /p:AutoPush=false


Add debug info generation to batch build

--- build.bat
+++ build.bat
@@ -26,7 +26,7 @@
 set slBasicCompile=/nologo /MDd /GR- /EHs-c- /fp:fast /fp:except- /Oi
 set slDefinitions=-D_DEBUG -DUNICODE -D_UNICODE -D_SCL_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -DNOMINMAX -DVC_EXTRALEAN -DSTRICT -DWIN32_LEAN_AND_MEAN -DNOGDI -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS
 set slInclude=/Isrc /Iexternal\glm /Iexternal\flatbuffers-1.3.0\include /Iexternal\protobuf-2.6.1\src /Iexternal\enet-1.3.13\include /Iexternal\imgui-1.47
-set slCompile=%slBasicCompile% %slDefinitions% %slInclude% /Ob1 /WX /W4 /wd4100 /wd4505 /Bt
+set slCompile=%slBasicCompile% %slDefinitions% %slInclude% /Ob1 /WX /W4 /wd4100 /wd4505 /Z7 /Bt
 ::set slFxCompile=/Zi /E"main" /Od /Vn"g_%(Filename)" /WX /Fh"src/%(Filename).h" /nologo

 :: [Linker options]


Fixing build script again

Fixing build script again

--- build.bat
+++ build.bat
@@ -4,7 +4,7 @@
 @echo * BUILDING SOLUTION IN RELEASE			*
 @echo *******************************************
 msbuild /verbosity:quiet /fl /t:Rebuild /p:Configuration=Release /property:GenerateLibraryLayout=false /p:NoWarn=0618 src\TagLib.Portable\TagLib.Portable.csproj
-msbuild /verbosity:quiet /fl /t:Rebuild /p:Configuration=Release /property:GenerateLibraryLayout=false /p:NoWarn=0618 src\TagLib.Portable\TagLib.Silverlight.csproj
+msbuild /verbosity:quiet /fl /t:Rebuild /p:Configuration=Release /property:GenerateLibraryLayout=false /p:NoWarn=0618 src\TagLib.Silverlight\TagLib.Silverlight.csproj

 @echo *******************************************
 @echo * COPYING BINARIES FOR NUGET              *


Do not copy node_modules file

Do not copy node_modules file

All node functions are being webpacked, so skipping the copy will improve deployment performance

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

 :: 3. KuduSync
 IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
-  call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f ./ -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
+  call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f ./ -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd;node_modules;"
   IF !ERRORLEVEL! NEQ 0 goto error
 )


Added new project to:

Added new project to:

* update tools\NuGet.exe if it exists (nuget.exe update -Self)
* download nuget.exe into tools if it does not exist
* perform a nuget restore on the solution so all packages are available for compilation

Then added a command to build this project in build.cmd


local install of code formatter

local install of code formatter

--- build.cmd
+++ build.cmd
@@ -3,6 +3,7 @@
 "tools\nuget\nuget.exe" "install" "xunit.runner.console" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "2.0.0"
 "tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "4.4.2"
 "tools\nuget\nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.1.0"
+"tools\nuget\nuget.exe" "install" "Octokit.CodeFormatter" "-OutputDirectory" "tools" "-ExcludeVersion" "-version" "1.0.0-preview" -Pre

 :Build
 cls


Fix build script verbosity

Fix build script verbosity

--- build.cmd
+++ build.cmd
@@ -13,6 +13,6 @@
 cd %targetPath%

 REM msbuild .\.build\Build.proj /p:Configuration="%config%" /t:RunAll /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Diagnostic /nr:false
-msbuild .\.build\Build.proj /p:Configuration="%config%" /t:Package /v:d /fl /flp:LogFile=msbuild.log;Verbosity=Diagnostic /nr:false
+msbuild .\.build\Build.proj /p:Configuration="%config%" /t:Package /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Diagnostic /nr:false

 cd %initialPath%


Update `build.cmd` to match latest template - aspnet/Universe#347 - `%KOREBUILD_VERSION%` doesn't work without this fix

--- build.cmd
+++ build.cmd
@@ -28,12 +28,11 @@
     copy %CACHED_NUGET% %NUGET_PATH% > nul
 )

+SET KOREBUILD_DOWNLOAD_ARGS=
+IF NOT "%KOREBUILD_VERSION%"=="" (
+    SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
+)
 IF NOT EXIST %KOREBUILD_FOLDER% (
-    SET KOREBUILD_DOWNLOAD_ARGS=
-    IF NOT "%KOREBUILD_VERSION%"=="" (
-        SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
-    )
-
     %BUILD_FOLDER%\nuget.exe install KoreBuild-dotnet -ExcludeVersion -o %BUILD_FOLDER% -nocache -pre %KOREBUILD_DOWNLOAD_ARGS%
 )


simple build on windows, not working though:)

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

--- build.cmd
+++ build.cmd
@@ -0,0 +1,22 @@
+@echo off
+SETLOCAL
+
+cls
+
+.paket\paket.bootstrapper.exe
+if errorlevel 1 (
+  exit /b %errorlevel%
+)
+
+.paket\paket.exe restore
+if errorlevel 1 (
+  exit /b %errorlevel%
+)
+
+SET FAKE_PATH=packages\build\FAKE\tools\Fake.exe
+
+IF [%1]==[] (
+    "%FAKE_PATH%" "build.fsx" "Default"
+) ELSE (
+    "%FAKE_PATH%" "build.fsx" %*
+)


Delete chromeapp.bat

Delete chromeapp.bat

--- chromeapp.bat
+++ chromeapp.bat
@@ -1,7 +0,0 @@
-@echo off
-
-:: find the path to chrome
-for /f "TOKENS=2 delims=:" %%I in ('reg query "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\Chrome.exe" /ve') do set chrome_exe=%systemdrive%%%I
-
-:: start chrome with this app
-@"%chrome_exe%" --load-and-launch-app=%~dp0


add vs2015.bat

add vs2015.bat

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

--- engine/vs2015.bat
+++ engine/vs2015.bat
@@ -0,0 +1,4 @@
+setlocal
+set PATH=%PATH%;../3rdparty/.build/bin/windows
+
+make.exe vs2015


Installing setuptools from pypi

Installing setuptools from pypi

--- recipes/pywinpty/bld.bat
+++ recipes/pywinpty/bld.bat
@@ -1,4 +1,5 @@

 set DISTUTILS_USE_SDK=1

+pip install setuptools
 %PYTHON% setup.py install


make the path separators consistent

make the path separators consistent

making the path separators consistent.

--- init.cmd
+++ init.cmd
@@ -3,9 +3,9 @@
 cd electron-sample
 type NUL > Gulpfile.js
 type NUL > app\index.es6.js
-type NUL > browser/index.html
-type NUL > browser/scripts/splash/app.js
-type NUL > browser/scripts/splash/controller.js
+type NUL > browser\index.html
+type NUL > browser\scripts\splash\app.js
+type NUL > browser\scripts\splash\controller.js

 echo "project structure created.. installing global node modules..."
 npm i gulp electron-prebuilt jspm -g


Fixed compile to exit properly if error occurs

--- BuildScripts/build-compile.cmd
+++ BuildScripts/build-compile.cmd
@@ -7,14 +7,14 @@
 cmd /c "cd /d %SolutionRootPath% && %NuGetPath% restore"
 if %ERRORLEVEL% NEQ 0 (
 	pause
-	exit /b
+	exit 1 /b
 )

 cmd /c "cd /d %SolutionRootPath% && %MSBuildCustomPath% %SolutionName% /t:Rebuild /fl /flp:logfile="%MsBuildLogFile%" /p:Configuration=%BuildConfig%;OutDir="%BuildTempDir%";UseWPP_CopyWebApplication=True;PipelineDependsOnBuild=False"
 if %ERRORLEVEL% NEQ 0 (
 	pause
-	exit /b
+	exit 1 /b
 )

@@ -25,5 +25,7 @@
 if %ERRORLEVEL% == 0 (
 	echo Found conflicting versions of the same DLL, please see the file "%MsBuildLogFile%" for more info
 	pause
-	exit /b
+	exit 1 /b
+) else (
+	SET ERRORLEVEL=0
 )


add browsers and cygwin to the default windows installation

--- windows_cygwin/build.bat
+++ windows_cygwin/build.bat
@@ -1,3 +1,9 @@
 REM install Chocolatey
 @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

+REM install base tools
+choco install firefox
+choco install googlechrome
+
+REM install cygwin and all things inside
+choco install cygwin cyg-get


It works, but is the -DSTATIC=ON really needed?

--- appveyor_before_build.bat
+++ appveyor_before_build.bat
@@ -8,6 +8,6 @@
 IF NOT EXIST install md install
 IF NOT EXIST build64 md build64
 cd build64
-cmake -G "Visual Studio 15 2017 Win64" -DUSE_SDL=OFF -DSTATIC=ON -DGTEST_SHARED=ON -DCOMPILE_TESTS=ON -DCMAKE_INSTALL_PREFIX="..\install" ..
+cmake -G "Visual Studio 15 2017 Win64" -DUSE_SDL=OFF -DGTEST_SHARED=ON -DCOMPILE_TESTS=ON -DCMAKE_INSTALL_PREFIX="..\install" ..
 rem NOTE: REMOVE -DUSE_SDL=OFF when I work out how to get SDL
 cd ..


custom for okajs

custom for okajs

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

--- make.bat
+++ make.bat
@@ -0,0 +1,12 @@
+@echo off
+
+copy /Y img\* build\img
+
+call lessc -x less\bootstrap.less > build\css\bootstrap.min.css
+call lessc -x less\responsive.less > build\css\bootstrap-responsive.css
+
+copy /B js\bootstrap-transition.js+js\bootstrap-alert.js+js\bootstrap-button.js+js\bootstrap-carousel.js+js\bootstrap-collapse.js+js\bootstrap-dropdown.js+js\bootstrap-modal.js+js\bootstrap-tooltip.js+js\bootstrap-popover.js+js\bootstrap-scrollspy.js+js\bootstrap-tab.js+js\bootstrap-typeahead.js build\js\bootstrap.js
+
+call .\node_modules\.bin\uglifyjs --ascii build\js\bootstrap.js > build\js\bootstrap.min.js
+
+call node build/build


win32 build fix

win32 build fix

--- make.bat
+++ make.bat
@@ -91,7 +91,7 @@
 GOTO:EOF

 :BOOT
-vm repl <samples/attic/to-c.scm >tmp/boot.c
+vm repl <samples/attic/to-c.scm >src/repl.c
 GOTO:EOF

 :: ======================================


make.bat: Check for VS2017 and use that if it exists

--- make.bat
+++ make.bat
@@ -6,6 +6,8 @@
 set GENERATOR=Visual Studio 12
 reg query HKEY_CLASSES_ROOT\VisualStudio.DTE.14.0 >nul 2>nul
 IF %errorlevel%==0 set GENERATOR=Visual Studio 14
+reg query HKEY_CLASSES_ROOT\VisualStudio.DTE.15.0 >nul 2>nul
+IF %errorlevel%==0 set GENERATOR=Visual Studio 15
 set GENERATOR64=%GENERATOR% Win64

 for /f %%i in ('git describe') do set LUVI_TAG=%%i


Removed verbose messages from make clean and added more target aliases for runtests.

--- make.cmd
+++ make.cmd
@@ -12,7 +12,7 @@
 REM  - PYTHON25, PYTHON26, PYTHON27: same as PYTHON but for individual versions
 REM  - PYTHONFLAGS: flags to pass python, defaults to -Wignore
 REM  - PYTHONFLAGS25, PYTHONFLAGS26, PYTHONFLAGS27: same as PYTHONFLAGS but for
-REM													individual versions
+REM                                                 individual versions
 REM  - GAE: path to the google_appengine directory
 REM  - FLAGS: flags to pass either python.exe or dev_appserver.py/appcfg.py
 REM  - PORT: port number for development server to use
@@ -25,21 +25,21 @@

 :processarguments
 IF NOT "%3"=="" (
-	ECHO Invalid argument %3
-	GOTO end
+  ECHO Invalid argument %3
+  GOTO end
 )
 SET MAKE=%0
 SET VERSION=%2
 FOR /F "TOKENS=1,2,3 DELIMS=_" %%A IN ("%1") DO SET T1=%%A&SET T2=%%B&SET T3=%%C
 SET TARGET=%T1%
 IF NOT "%T3%"=="" (
-	SET TARGET=%TARGET%_%T2%
-	SET T2=%T3%
+  SET TARGET=%TARGET%_%T2%
+  SET T2=%T3%
 )
 IF /I "%T2%"=="all" (
-	IF "%VERSION%"=="" GOTO all
-	ECHO Cannot specify Python version %VERSION% if using an all target
-	GOTO end
+  IF "%VERSION%"=="" GOTO all
+  ECHO Cannot specify Python version %VERSION% if using an all target
+  GOTO end
 )
 IF NOT "%T2%"=="" SET TARGET=%TARGET%_%T2%

@@ -51,21 +51,21 @@
 GOTO end

 :python25
-IF NOT "%PYTHON25%"==""      SET PYTHON=%PYTHON25%
+IF NOT "%PYTHON25%"=="" SET PYTHON=%PYTHON25%
 IF NOT "%PYTHONFLAGS25%"=="" SET PYTHONFLAGS=%PYTHONFLAGS25%
-IF NOT "%PORT25%"==""        SET PORT=%PORT25%
+IF NOT "%PORT25%"=="" SET PORT=%PORT25%
 GOTO findpython

 :python26
-IF NOT "%PYTHON26%"==""      SET PYTHON=%PYTHON26%
+IF NOT "%PYTHON26%"=="" SET PYTHON=%PYTHON26%
 IF NOT "%PYTHONFLAGS26%"=="" SET PYTHONFLAGS=%PYTHONFLAGS26%
-IF NOT "%PORT26%"==""        SET PORT=%PORT26%
+IF NOT "%PORT26%"=="" SET PORT=%PORT26%
 GOTO findpython

 :python27
-IF NOT "%PYTHON27%"==""      SET PYTHON=%PYTHON27%
+IF NOT "%PYTHON27%"=="" SET PYTHON=%PYTHON27%
 IF NOT "%PYTHONFLAGS27%"=="" SET PYTHONFLAGS=%PYTHONFLAGS27%
-IF NOT "%PORT27%"==""        SET PORT=%PORT27%
+IF NOT "%PORT27%"=="" SET PORT=%PORT27%
 GOTO findpython

 :findpython
@@ -89,49 +89,50 @@
 IF "%PORT%"=="" SET PORT=8080
 IF "%ADDRESS%"=="" SET ADDRESS=localhost

-:maketarget
+:findtarget
 SET TEST_TARGETS=(key, model, query, rpc, eventloop, tasklets, context, thread)
 FOR %%A IN %TEST_TARGETS% DO IF /I "%TARGET%"=="%%A_test" GOTO runtest
-IF /I "%TARGET%"=="runtests" GOTO runtests
+SET RUNTESTS_TARGETS=(test, runtest, runtests)
+FOR %%A IN %RUNTESTS_TARGETS% DO IF /I "%TARGET%"=="%%A" GOTO runtests
 REM TODO: Implement coverage
 SET COVERAGE_TARGETS%=(c, cov, cove, cover, coverage)
 FOR %%A IN %COVERAGE_TARGETS% DO IF /I "%TARGET%"=="%%A" GOTO unimplemented
-IF /I "%TARGET%"=="serve"          GOTO serve
-IF /I "%TARGET%"=="debug"          GOTO debug
-IF /I "%TARGET%"=="deploy"         GOTO deploy
+IF /I "%TARGET%"=="serve" GOTO serve
+IF /I "%TARGET%"=="debug" GOTO debug
+IF /I "%TARGET%"=="deploy" GOTO deploy
 SET BENCH_TARGETS%=(bench, keybench)
 FOR %%A IN %BENCH_TARGETS% DO IF /I "%TARGET%"=="%%A" GOTO bench
-IF /I "%TARGET%"=="python"         GOTO python
-IF /I "%TARGET%"=="python_raw"     GOTO pythonraw
+IF /I "%TARGET%"=="python" GOTO python
+IF /I "%TARGET%"=="python_raw" GOTO pythonraw
 REM TODO: Implement zip
-IF /I "%TARGET%"=="zip"            GOTO unimplemented
-IF /I "%TARGET%"=="clean"          GOTO clean
+IF /I "%TARGET%"=="zip" GOTO unimplemented
+IF /I "%TARGET%"=="clean" GOTO clean
 SET LONGLINES_TARGETS%=(long, longline, longlines)
 FOR %%A IN %LONGLINES_TARGETS% DO IF /I "%TARGET%"=="%%A" GOTO longlines
 SET TRIM_TARGETS%=(tr, trim, trim_whitespace)
 FOR %%A IN %TRIM_TARGETS% DO IF /I "%TARGET%"=="%%A" GOTO trim
 IF "%TARGET%"=="" (
-	ECHO Must specify a make target e.g. serve
+  ECHO Must specify a make target e.g. serve
 ) ELSE (
-	IF NOT EXIST %TARGET% (
-		ECHO Invalid target %TARGET%
-	) ELSE (
-		CALL %PYTHON% %PYTHONFLAGS% %TARGET% %FLAGS%
-	)
+  IF NOT EXIST %TARGET% (
+    ECHO Invalid target %TARGET%
+  ) ELSE (
+    CALL %PYTHON% %PYTHONFLAGS% %TARGET% %FLAGS%
+  )
 )
 GOTO end

 :runtest
 IF "%VERSION%"=="25" (
-	ECHO %TARGET% only supports Python 2.6 or above due to relative imports
-	ECHO Note that the runtests target can perform this test using Python 2.5
+  ECHO %TARGET% only supports Python 2.6 or above due to relative imports
+  ECHO Note that the runtests target can perform this test using Python 2.5
 ) ELSE (
-	CALL %PYTHON% %PYTHONFLAGS% -m ndb.%TARGET% %FLAGS%
+  CALL %PYTHON% %PYTHONFLAGS% -m ndb.%TARGET% %FLAGS%
 )
 GOTO end

 :runtests
-CALL %PYTHON% %PYTHONFLAGS% %TARGET%.py %FLAGS%
+CALL %PYTHON% %PYTHONFLAGS% runtests.py %FLAGS%
 GOTO end

 :debug
@@ -160,8 +161,8 @@
 GOTO end

 :clean
-RMDIR /S /Q htmlcov .coverage
-DEL /S *.pyc *~ @* *.orig *.rej #*#
+RMDIR /S /Q htmlcov .coverage > NUL 2>&1
+DEL /S *.pyc *~ @* *.orig *.rej #*# > NUL 2>&1
 GOTO end

 :trim


Disable console logging in the Windows service

When Elasticsearch is run as a service we should not use the console
logger otherwise we end up duplicating logging (to the Elasticsearch
logs and whereever standard output is captured). Previously we disabled
the console logger when started as a service using systemd (otherwise
the console logs are duplicated to the journal). This commit does the
same for the Windows service, starting Elasticsearch with the --quiet
flag to avoid standard output being written to the service stdout logs.

Relates #28618

--- distribution/src/main/resources/bin/elasticsearch-service.bat
+++ distribution/src/main/resources/bin/elasticsearch-service.bat
@@ -197,7 +197,7 @@
 	)
 )

-"%EXECUTABLE%" //IS//%SERVICE_ID% --Startup %ES_START_TYPE% --StopTimeout %ES_STOP_TIMEOUT% --StartClass org.elasticsearch.bootstrap.Elasticsearch --StopClass org.elasticsearch.bootstrap.Elasticsearch --StartMethod main --StopMethod close --Classpath "%ES_CLASSPATH%" --JvmMs %JVM_MS% --JvmMx %JVM_MX% --JvmSs %JVM_SS% --JvmOptions %ES_JAVA_OPTS% ++JvmOptions %ES_PARAMS% %LOG_OPTS% --PidFile "%SERVICE_ID%.pid" --DisplayName "%SERVICE_DISPLAY_NAME%" --Description "%SERVICE_DESCRIPTION%" --Jvm "%%JAVA_HOME%%%JVM_DLL%" --StartMode jvm --StopMode jvm --StartPath "%ES_HOME%" %SERVICE_PARAMS%
+"%EXECUTABLE%" //IS//%SERVICE_ID% --Startup %ES_START_TYPE% --StopTimeout %ES_STOP_TIMEOUT% --StartClass org.elasticsearch.bootstrap.Elasticsearch --StartMethod main ++StartParams --quiet --StopClass org.elasticsearch.bootstrap.Elasticsearch --StopMethod close --Classpath "%ES_CLASSPATH%" --JvmMs %JVM_MS% --JvmMx %JVM_MX% --JvmSs %JVM_SS% --JvmOptions %ES_JAVA_OPTS% ++JvmOptions %ES_PARAMS% %LOG_OPTS% --PidFile "%SERVICE_ID%.pid" --DisplayName "%SERVICE_DISPLAY_NAME%" --Description "%SERVICE_DESCRIPTION%" --Jvm "%%JAVA_HOME%%%JVM_DLL%" --StartMode jvm --StopMode jvm --StartPath "%ES_HOME%" %SERVICE_PARAMS%

 if not errorlevel 1 goto installed
 echo Failed installing '%SERVICE_ID%' service


WIP #278 - Another attempt to fix packaging script

--- Tools/appveyor-create-packages.cmd
+++ Tools/appveyor-create-packages.cmd
@@ -2,12 +2,10 @@
 REM Create the packages
 REM ---
 IF %APPVEYOR_REPO_TAG%==true (
-    set packageversion=%APPVEYOR_REPO_TAG_NAME:~1%
-    dotnet pack -c Release -o .Packages -p:Version=%packageversion%
+    dotnet pack -c Release -o .Packages -p:Version=%APPVEYOR_REPO_TAG_NAME:~1%
 ) ELSE (
-    set versionsuffix=ci-build.%APPVEYOR_BUILD_NUMBER%
-    ECHO The version suffix is:%versionsuffix%
-    dotnet pack -c Release -o .Packages --version-suffix=%versionsuffix%
+    ECHO The version suffix is:ci-build.%APPVEYOR_BUILD_NUMBER%
+    dotnet pack -c Release -o .Packages --version-suffix=ci-build.%APPVEYOR_BUILD_NUMBER%
 )

 REM ---


Running this bat file will update the documentation if there are changes to the modules.  This bat file is specific to pytmpdir

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

--- docs/build_pytmpdir_docs.bat
+++ docs/build_pytmpdir_docs.bat
@@ -0,0 +1,14 @@
+@echo off
+title Build pytmpdir docs!
+echo Building documentation for pytmpdir!
+echo Removing old documentation in build folder.
+rmdir build /s /q
+echo Updating module rst files.  This will overwrite old rst files.
+rmdir source\scripts /s /q
+mkdir source\scripts
+copy ..\pytmpdir\Directory.py source\scripts
+sphinx-apidoc -f -o source source\scripts
+echo Build HTML files.
+sphinx-build -b html source build
+echo Opening created documentation...
+start build\index.html


BLADE-550 ignore maven profile tests on windows

--- run-tests.bat
+++ run-tests.bat
@@ -3,4 +3,4 @@
 CALL gradlew.bat --no-daemon :extensions:maven-profile:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources
 CALL gradlew.bat --no-daemon :extensions:project-templates-js-theme:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources
 CALL gradlew.bat --no-daemon :extensions:project-templates-js-widget:publishToMavenLocal -x :cli:bladeExtensionsVersions -x :cli:processResources
-CALL gradlew.bat --no-daemon -PmavenLocal --continue clean check smokeTests --scan+CALL gradlew.bat --no-daemon -PmavenLocal --continue clean check smokeTests --scan -x :extensions:maven-profile:test


drasticer

drasticer

Signed-off-by: Kenneth Reitz <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@kennethreitz.org>

--- run-tests.bat
+++ run-tests.bat
@@ -5,4 +5,5 @@
 R:\.venv\Scripts\pip install -e . --upgrade --upgrade-strategy=only-if-needed
 R:\.venv\Scripts\pipenv install --dev

-SET RAM_DISK=R:&& SET PYPI_VENDOR_DIR=".\tests\pypi\" && R:\.venv\Scripts\pipenv run pytest -n auto -v tests --tap-stream
+SET RAM_DISK=R:&& SET PYPI_VENDOR_DIR=".\tests\pypi\" && R:\.venv\Scripts\pipenv run pytest -n auto -v tests
+rem --tap-stream


ADAP-7: added more demo

ADAP-7: added more demo

--- release/run.bat
+++ release/run.bat
@@ -1 +1 @@
-java -cp openfin-deskop-java-example-3.0.1.2.jar;openfin-desktop-java-adapter-3.0.1.2.jar;TableLayout-20050920.jar -DOpenFinOption=--config=\"https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/app.json\" com.openfin.desktop.demo.OpenFinDesktopDemo
+java -cp openfin-desktop-java-example-3.0.1.2.jar;openfin-desktop-java-adapter-3.0.1.2.jar;TableLayout-20050920.jar -DOpenFinOption=--config=\"https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/app.json\" com.openfin.desktop.demo.OpenFinDesktopDemo


Added osglancher and osgplanets to example set.

git-svn-id: 23b6355f2bb369032457de4eb5f713ee134f73a8@3669 16af8721-9629-0410-8352-f15c8da7e697

--- runexamples.bat
+++ runexamples.bat
@@ -5,6 +5,9 @@
 osgunittests matrix
 osgunittests qt
 osgunittests sizeof
+
+echo osglauncher
+osglauncher

 echo osganimate
 osganimate
@@ -84,6 +87,9 @@
 echo osgpointsprite
 osgpointsprite

+echo osgplanets
+osgplanets
+
 echo osgprerender
 osgprerender dumptruck.osg


Added a release script for Windows (requires Inno Setup with corresponding script file).

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

--- HOPSAN++/makeReleaseWin32.bat
+++ HOPSAN++/makeReleaseWin32.bat
@@ -0,0 +1,76 @@
+@echo off
+
+:: HOPSAN RELEASE COMPILATION SCRIPT
+:: Written by Robert Braun 2011-10-30
+
+
+:: MANUAL PART (performed by user before running the script)
+
+:: Make sure the branch is updated, and that all changes are commited
+:: Check out the release branch for current release number
+:: Make sure the "DEVELOPMENT" flag is disabled in HopsanGUI project file
+:: Make sure version numbers are correct (in version.h files)
+:: Make sure Splash screen shows correct version
+:: Build HopsanCore in release mode using using Visual Studio
+:: Move "HopsanCore.dll", "HopsanCore.lib" and "HopsanCore.exp" to the binVC directory
+:: Build Hopsan in release mode using MingW32
+:: Remove any non-release files from "bin" directory
+:: Make sure release notes are correctly updated
+
+
+:: AUTOMATED PART (performed by this script):
+
+:: Define search path variables
+set tempDir=c:\temp_release
+set innoDir="c:\Program Files (x86)\Inno Setup 5"
+set scriptPath="C:\Users\Robert\Documents\Subversion\robbr48\Projekt\Hopsan NG\Release-kompileringar"
+set scriptFile="Hopsan_0.4_update.iss"
+set scriptOutput="output\setup6.exe"
+
+:: Create a temporary release directory
+mkdir %tempDir%
+mkdir %tempDir%\Models
+mkDir release_output
+
+:: Copy "bin" folder to temporary directory
+xcopy bin %tempDir%\bin\ /s
+
+:: Copy "binVC" folder to temporary directory
+xcopy binVC %tempDir%\binVC\ /s
+
+:: Copy "hopsandefaults" file to temporary directory
+copy hopsandefaults %tempDir%\hopsandefaults
+
+:: Export "HopsanCore" SVN directory to "include" in temporary directory
+svn export HopsanCore %tempDir%\include
+
+:: Export "Example Models" SVN directory to temporary directory
+svn export "Models\Example Models" "%tempDir%\Models\Example Models"
+
+:: Export "Benchmark Models" SVN directory to temporary directory
+svn export "Models\Benchmark Models" "%tempDir%\Models\Benchmark Models"
+
+:: Export "componentData" SVN directory to temporary directory
+svn export HopsanGUI\componentData %tempDir%\componentdata
+
+:: Export "help" SVN directory to temporary directory
+svn export docs/help %tempDir%\help
+
+:: Create zip package
+ThirdParty\7z\7z.exe a -tzip release.zip %tempDir%\*
+move release.zip release_output/
+
+pause
+
+:: Execute Inno compile script
+%innoDir%\Compil32.exe /cc %scriptPath%\%scriptFile%
+move %scriptPath%\%scriptOutput% release_output/
+
+:: Move release notse to output directory
+copy Hopsan-release-notes.txt release_output/
+
+:: Remove temporary directory
+rd /s/q %tempDir%
+
+echo Finished!
+pause


Added startCompass.bat

Added startCompass.bat

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

--- startCompass.bat
+++ startCompass.bat
@@ -0,0 +1,12 @@
+:: Batch Script to compass watch all Compass Directories
+setlocal EnableDelayedExpansion
+::Specifiy which locations to watch ONE location per line, no comments.
+set file=C:\altiris\locations.txt
+::Specifiy Ruby location
+set rubyLocation=C:\Ruby200-x64\bin\
+::Iterate watch locations
+FOR /F %%i IN (%file%) DO (
+  set watchLocation=%%i
+	::Call watch and send it current watch location, and ruby location
+	start watchDirectory.CMD %watchLocation%
+)


fully-qualified paths in build-docs.bat

fully-qualified paths in build-docs.bat

allows you to run it from a different directory

--- build/docs/build-docs.bat
+++ build/docs/build-docs.bat
@@ -1,5 +1,5 @@
-MSBuild.exe ..\..\src\DbExtensions\DbExtensions.csproj /p:Configuration=Release
-MSBuild.exe DbExtensions.shfbproj
-MSBuild.exe ..\..\submodules\sandcastle-md\sandcastle-md.sln
-rd /s /q ..\..\docs\api
-..\..\submodules\sandcastle-md\src\sandcastle-md\bin\Debug\sandcastle-md.exe output ..\..\docs\api
+MSBuild.exe %~dp0..\..\src\DbExtensions\DbExtensions.csproj /p:Configuration=Release
+MSBuild.exe %~dp0DbExtensions.shfbproj
+MSBuild.exe %~dp0..\..\submodules\sandcastle-md\sandcastle-md.sln
+rd /s /q %~dp0..\..\docs\api
+%~dp0..\..\submodules\sandcastle-md\src\sandcastle-md\bin\Debug\sandcastle-md.exe %~dp0output %~dp0..\..\docs\api


add python 3.10 support for windows

add python 3.10 support for windows

--- test.bat
+++ test.bat
@@ -22,6 +22,7 @@
 call :BuildPython C:\Python37%PLATFORM_PREFIX%
 call :BuildPython C:\Python38%PLATFORM_PREFIX%
 call :BuildPython C:\Python39%PLATFORM_PREFIX%
+call :BuildPython C:\Python310%PLATFORM_PREFIX%
 c:\Python38%PLATFORM_PREFIX%\python setup.py sdist || goto :error
 exit


dotnet test added to test.cmd

dotnet test added to test.cmd

--- test.cmd
+++ test.cmd
@@ -9,3 +9,6 @@
 %USERPROFILE%\.nuget\packages\xunit.runner.console\2.1.0\tools\xunit.console.exe test\IharBury.Expressions.Tests\bin\%configuration%\net40-client\win7-x64\IharBury.Expressions.Tests.dll
 %USERPROFILE%\.nuget\packages\xunit.runner.console\2.1.0\tools\xunit.console.exe test\IharBury.Expressions.Tests\bin\%configuration%\net35\win7-x64\IharBury.Expressions.Tests.dll
 %USERPROFILE%\.nuget\packages\xunit.runner.console\2.1.0\tools\xunit.console.exe test\IharBury.Expressions.Tests\bin\%configuration%\net35-client\win7-x64\IharBury.Expressions.Tests.dll
+
+cd test\IharBury.Expressions.Tests
+dotnet test --runtime netcoreapp1.0 --framework netcoreapp1.0 --configuration %configuration%


v9.3.0

--- tron.bat
+++ tron.bat
@@ -162,7 +162,7 @@
 :::::::::::::::::::::
 color 0f
 set SCRIPT_VERSION=9.3.0
-set SCRIPT_DATE=2016-08-xx
+set SCRIPT_DATE=2016-08-25
 title Tron v%SCRIPT_VERSION% (%SCRIPT_DATE%)

 :: Initialize script-internal variables. Most of these get clobbered later so don't change them here
@@ -303,7 +303,7 @@
 	echo    -h   Display this help text
 	echo.
 	exit /b 0
-	)
+)

 :: INTERNAL PREP: Detect the version of Windows we're on. This determines a few things later on


add caffeine changes

add caffeine changes

--- tron.bat
+++ tron.bat
@@ -15,7 +15,7 @@
 ::                      * tron.bat:prep:resume:        Launch Caffeine directly from the Resume checks if we detect we're resuming from an interrupted run.
 ::                                                     This is to make sure it's running if we pick up where we left off at some point later than Stage 0
 ::                                                     (where Caffeine is normally launched). Thanks to /u/NinjaInSpace for finding this obscure bug condition
-::                      * stage_0_prep:caffeine:       Only launch Caffeine if it isn't running. The only scenario where this should happen is if we're resuming an interrupted run and picking up in Stage 0
+::                      ! stage_0_prep:caffeine:       Make sure not to launch two Caffeine instances. The only scenario where this should happen is if we're resuming an interrupted run and picking up in Stage 0
 ::                      / stage_7_wrap-up:caffeine:    Move shutdown of caffeine closer to end of script instead of in power settings reset section
 ::
 :: Usage:         Run this script in Safe Mode as an Administrator, follow the prompts, and reboot when finished. That's it.
@@ -863,7 +863,7 @@
 	call :log "%CUR_DATE% %TIME%    Disabling sleep and screensaver temporarily..."
 	title TRON v%SCRIPT_VERSION% [stage_0_prep] [DisableSleepandScreensaver]
 	:: Kill off any running Caffeine instances first (can happen if resuming from an interrupted run)
-	start "" stage_0_prep\caffeine\caffeine.exe -appexit
+	taskkill /im "caffeine.exe" > nul 2>&1
 	start "" stage_0_prep\caffeine\caffeine.exe -noicon
 	call :log "%CUR_DATE% %TIME%    Done."
 )


fix minor typo in comment

fix minor typo in comment

--- tron.bat
+++ tron.bat
@@ -792,7 +792,7 @@
 :smart_check_complete

-:: PREP: Set the system to permanently boot into Safe Mode in case we interrupted by a reboot
+:: PREP: Set the system to permanently boot into Safe Mode in case we get interrupted by a reboot
 :: We undo this at the end of the script. Only works on Vista and up
 if /i not "%WIN_VER:~0,9%"=="Microsoft" (
 	title TRON v%SCRIPT_VERSION% [stage_0_prep] [safeboot]


Fixes

Fixes

--- scripts/pkg.cmd
+++ scripts/pkg.cmd
@@ -2,3 +2,4 @@

 set PATH=%PATH%;C:\MinGW\bin
 bash scripts\pkg.sh
+bash scripts\tarball.sh


updated build script

updated build script

Former-commit-id: 0b50a23bb6cc2f36e75afc61c1b5ea21d5011153

--- MeTLMeeting/buildmetl.bat
+++ MeTLMeeting/buildmetl.bat
@@ -42,8 +42,6 @@
 	SHIFT
 	GOTO LOOP
 )
-
-echo buildtargets=%buildtargets% skipupdate=%skipupdate% skippull=%skippull% branchname=%branchname%

 echo.
 echo Building Configuration=%buildconfig% with ApplicationRevision=%rev%.


init commit

init commit

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


Delete gradlew.bat

Delete gradlew.bat

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


updated src/tagui for direct live mode

updated src/tagui for direct live mode

--- src/tagui.cmd
+++ src/tagui.cmd
@@ -51,6 +51,12 @@
 	)
 )

+rem enter live mode directly without user creating dummy file
+if "%~nx1"=="live" (
+	echo live > "live.tag"
+	set "flow_file=%~dp1live.tag"
+)
+
 rem check whether specified automation flow file exists
 if "%flow_file%"=="" if not exist "%~1" (
 	echo ERROR - cannot find %~1
@@ -677,5 +683,15 @@
 rem change back to initial directory where tagui is called
 cd /d "%initial_dir%"

+rem remove direct live mode generated files
+if exist "live.tag" del "live.tag"
+if exist "live.tag.raw" del "live.tag.raw"
+if exist "live.tag.js" del "live.tag.js"
+if exist "live.tag.log" (
+	rename "live.tag.log" "live.log"
+	gawk "sub(\"$\", \"\")" "live.log" > "live.log.tmp"
+	move /Y "live.log.tmp" "live.log" > nul
+)
+
 rem returns 0 if no error parsing flow file, otherwise return 1
 exit /b %tagui_error_code%


Add script to start server from windows

Add script to start server from windows

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

--- startServer_windows.bat
+++ startServer_windows.bat
@@ -0,0 +1 @@
+node server\server.js


add pause on end

add pause on end

--- syncback-hard-links.bat
+++ syncback-hard-links.bat
@@ -67,5 +67,8 @@
 echo rsync -avh --delete --ignore-existing --progress --link-dest="%lastfolder%" "%lastfolder%/" "%dest%"
 rsync -avh --delete --ignore-existing --progress --link-dest="%lastfolder%" "%lastfolder%/" "%dest%"

-echo Warte 20 Sek...
-ping localhost -n 20 >NUL+
+::echo Warte 20 Sek...
+::ping localhost -n 20 >NUL
+:EOF
+pause


Remove annoying pause from script

Remove annoying pause from script

--- CreateTestresults.cmd
+++ CreateTestresults.cmd
@@ -2,8 +2,6 @@
 @pushd %~dp0

 ECHO Remember to build the solution first!
-
-pause

 "%~dp0\TestHarness\packages\NUnit.Runners.2.6.4\tools\nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml"

@@ -22,4 +20,4 @@
 cucumber --format json_pretty --out "%~dp0\results-example-json.json" --tags ~@ignore
 cd "%~dp0"

-@popd+@popd


Fix clang-cl to target x64 mode

Fix clang-cl to target x64 mode

--- tests/Make-check-cl.bat
+++ tests/Make-check-cl.bat
@@ -30,9 +30,11 @@
     call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
 )

-REM Add clang-cl in the PATH. It is the default install of clang for MSVC
+REM Add clang-cl in the PATH. It is the default install of clang for MSVC:
+REM %VCINSTALLDIR%\Tools\Llvm\bin;%VCINSTALLDIR%\Tools\Llvm\x64\bin
+REM Adding x64 version
 REM See https://docs.microsoft.com/de-de/cpp/build/clang-support-msbuild?view=vs-2019
-SET PATH=%PATH%;%VCINSTALLDIR%\Tools\Llvm\bin;%VCINSTALLDIR%\Tools\Llvm\x64\bin
+SET PATH=%PATH%;%VCINSTALLDIR%\Tools\Llvm\x64\bin

 REM Remove previous results
 DEL *.log *.dat


Added Stream project to Myget build

Added Stream project to Myget build

--- MyGet.bat
+++ MyGet.bat
@@ -1,3 +1,4 @@
+dotnet pack src/FreecraftCore.Serializer.Stream/ -c Release
 dotnet pack src/FreecraftCore.Serializer.API/ -c Release
 dotnet pack src/FreecraftCore.Serializer.Core/ -c Release
 dotnet pack src/FreecraftCore.Serializer.KnownTypes.Decorators/ -c Release


print verbose install log for windows

print verbose install log for windows

--- install.bat
+++ install.bat
@@ -34,13 +34,13 @@
 rem compile xmake-core
 echo compiling xmake-core...
 cd core
-cmd /K build.bat > ..\install.log
+cmd /K build.bat
 cd ..

 rem install the xmake core file
 set xmake_core=core\bin\demo.pkg\bin\msvc\x86\demo.exe
 set xmake_core_install=%xmake_dir_install%\xmake_core.exe
-copy /Y "%xmake_core%" "%xmake_core_install%" >> install.log
+copy /Y "%xmake_core%" "%xmake_core_install%" > install.log

 rem install the xmake directory
 xcopy /S /Q /Y "xmake" "%xmake_dir_install%" >> install.log


Added install for sass to install.bat

Added install for sass to install.bat

--- install.bat
+++ install.bat
@@ -1,2 +1,3 @@
+gem install sass
 gem install true
 gem install true-cli


Fixes text print issues

Fixes text print issues

--- install.cmd
+++ install.cmd
@@ -22,7 +22,7 @@
     IF NOT EXIST "%ProgramFiles(x86)%" GOTO :LEGACY_OS

     ECHO(
-    ECHO Hello! I'll install "%gitExtensionName%" so that you can interact with Visual Studio Online.
+    ECHO Hello! I'll install "%gitExtensionName%" so that you can securely store your credentials.
     ECHO(

     SET installPath=%~dp0
@@ -76,7 +76,8 @@

 :GIT_FOUND
     :: Pre-configure it
-    git config --global credential.helper store && ECHO Set Updated your ~\.gitconfig (aka global config)
+    ECHO(
+    git config --global credential.helper store && ECHO Updated your ~\.gitconfig (aka global config)
     git config --global --remove url.mshttps://devdiv.visualstudio.com/ >nul 2>&1 && ECHO Removed mshttp nonsense for devdiv.visualstudio.com
     git config --global --remove url.mshttps://microsoft.visualstudio.com/ >nul 2>&1 && ECHO Removed mshttp nonsense for microsoft.visualstudio.com
     git config --global --remove url.mshttps://mseng.visualstudio.com/ >nul 2>&1 && ECHO Removed mshttp nonsense for mseng.visualstudio.com


Reinstates the RunBuild.bat file

Reinstates the RunBuild.bat file

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

--- src/RunBuild.bat
+++ src/RunBuild.bat
@@ -0,0 +1,6 @@
+"tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion"
+"tools\nuget\nuget.exe" "install" "NUnit.Console" "-OutputDirectory" "tools" "-ExcludeVersion"
+"tools\nuget\nuget.exe" "install" "xunit.runner.console" "-OutputDirectory" "tools" "-ExcludeVersion"
+"tools\nuget\nuget.exe" "install" "PhantomJS" "-OutputDirectory" "tools" "-ExcludeVersion"
+
+"tools\FAKE\tools\FAKE.exe" "Build.fsx" %2 "publishDirectory=Publish" "buildMode=%1" "playList=%3"


Windows forge.cmd needs installation path (#102)

Windows launcher script doesn't find 'Forge.exe' if called somewhere else than inside the installation directory. Using absolute batch filename with parameter expansion solves this.

--- runners/forge.cmd
+++ runners/forge.cmd
@@ -1 +1 @@
-bin\forge.exe %*+%~dp0\bin\forge.exe %*


setup build.bat to download gitlink tool

--- build.bat
+++ build.bat
@@ -11,6 +11,8 @@
     ECHO FAKE not found.. Installing..
     "build\tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"
 )
+
+"build\tools\nuget\nuget.exe" "install" "gitlink" "-OutputDirectory" "build\tools" "-ExcludeVersion" "-Prerelease"

 REM we need nunit-console to run our tests
 if not exist build\tools\NUnit.Runners\tools\nunit-console.exe (


バイトコンパイルの前後でダンプファイルを削除するようにした. #32

バイトコンパイルの前後でダンプファイルを削除するようにした. #32

--- build.bat
+++ build.bat
@@ -7,8 +7,7 @@
 if "%3"=="" (set VERBOSITY=normal) else (set VERBOSITY=%3)

 echo Build xyzzy...
-msbuild xyzzy.sln /nologo /p:Configuration=%CONFIGURATION% /target:%TARGET% /verbosity:%VERBOSITY%
-if not errorlevel 0 exit /b 1
+msbuild xyzzy.sln /nologo /p:Configuration=%CONFIGURATION% /target:%TARGET% /verbosity:%VERBOSITY% || exit /b 1

 echo Byte compile...

@@ -16,6 +15,7 @@
 rem ܂ɃG[ɂȂ̂ō폜
 del /S /Q lisp\startup.lc 2> nul

+del /S /Q xyzzy.wxp 2> nul
 set XYZZYHOME=%~dp0
 xyzzy.exe -load misc/makelc.l -e "(makelc t)" -f kill-xyzzy
-if not errorlevel 0 exit /b 1
+del /S /Q xyzzy.wxp 2> nul


Added usage for clean and test

Added usage for clean and test

--- build.bat
+++ build.bat
@@ -22,7 +22,7 @@
 :: better understanding of how it works and to ensure it is fully compatible with
 :: your chosen tool it using a different compiler.
 ::
-:: This script builds the header and the C files and compiles all the tests
+:: This script builds the header and the C files, compiles all the tests and runs them
 ::
 :: ]]]

@@ -36,10 +36,12 @@
 if "%1"=="PCC64" goto PCC64

 :usage
-echo Usage: build compiler
-echo   compilers: MSC   = Microsoft C    (VS2015)
-echo              PCC   = Pelles C 32bit (8.0)
-echo              PCC64 = Pelles C 64bit (8.0)
+echo Usage: build opt
+echo   compilers: MSC     Microsoft C    (VS2015)
+echo              PCC     Pelles C 32bit (8.0)
+echo              PCC64   Pelles C 64bit (8.0)
+echo    commands: clean   cleanup
+echo              test    run tests (no build)
 goto theend

 :clean
@@ -58,7 +60,7 @@
 goto theend

 :MSC
-echo Compiling Microsoft C (cl)
+echo Compiling with Microsoft C/C++ (cl)

 set BUILD_1=cl /O2 /nologo
 set BUILD_2=
@@ -76,7 +78,7 @@

 :PCC64
 echo Compiling with Pelles C (32bit)
-set BUILD_1=cc /x /Tamd64-coff /O2 /std:C99
+set BUILD_1=cc /Tamd64-coff /O2 /std:C99
 set BUILD_2=
 set BUILD_O=/o
 set BUILD_C=/c
@@ -116,8 +118,10 @@
 :test
 cd test
 echo Start tests
-for %%f in (t_*.exe) do %%f
+for %%f in (t_???.exe) do %%f
+for %%f in (t_????.exe) do %%f
 echo ut_logassert.exe is expected to abort and return an error
+t_logassert
 find "#KO:" l_*.log

 cd ..


[bugfix] svn revision related build targets now work

svn path=/trunk/eXist/; revision=12711

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

 :gotExistHome
 set ANT_HOME=%EXIST_HOME%\tools\ant
-set _LIBJARS=%CLASSPATH%;%ANT_HOME%\lib\ant-launcher.jar;%EXIST_HOME%\lib\test\junit-4.8.2.jar;%JAVA_HOME%\lib\tools.jar;%EXIST_HOME%\lib\user\svnkit.jar:%EXIST_HOME%\lib\user\svnkit-cli.jar
+set _LIBJARS=%CLASSPATH%;%ANT_HOME%\lib\ant-launcher.jar;%EXIST_HOME%\lib\test\junit-4.8.2.jar;%JAVA_HOME%\lib\tools.jar;%EXIST_HOME%\lib\user\svnkit.jar;%EXIST_HOME%\lib\user\svnkit-cli.jar

 set JAVA_ENDORSED_DIRS=%EXIST_HOME%\lib\endorsed


Updated url reservation

Updated url reservation

--- build.bat
+++ build.bat
@@ -15,7 +15,7 @@
 	set nuget=nuget
 )

-netsh http add urlacl url=http://+:12345/
+netsh http add urlacl url=http://+:12345/ user=everyone

 REM Restore
 call %NuGet% restore src\Lemonade\packages.config -OutputDirectory %cd%\packages -NonInteractive


Added readme

Added readme

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

 :: numpy
 call :download %NUMPY_URL%
-pip install "%DOWNLOADS%\%filename%"
+::pip install "%DOWNLOADS%\%filename%"

 :: scipy
 call :download %SCIPY_URL%
-pip install "%DOWNLOADS%\%filename%"
+::pip install "%DOWNLOADS%\%filename%"

 :: install list of packages
 for %%i in (%PACKAGES%) do (


refactor the build script a bit

refactor the build script a bit

--- build.bat
+++ build.bat
@@ -1,35 +1,40 @@
-c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe Metrics.Sln /p:Configuration="Debug"
+.nuget\NuGet.exe restore Metrics.sln
+
+set MSBUILD="C:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.exe"
+set XUNIT=".\packages\xunit.runners.1.9.2\tools\xunit.console.clr4.exe"
+
+%MSBUILD% 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"
+%MSBUILD% 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"
+%MSBUILD% 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"
+%MSBUILD% 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"
+%MSBUILD% 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"
+%MSBUILD% 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
+%XUNIT% .\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
+%XUNIT% .\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
+%XUNIT% .\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
+%XUNIT% .\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
+%XUNIT% .\bin\Net4.0Debug\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
+%XUNIT% .\bin\Net4.0Release\Tests\Metrics.Tests.dll
 if %errorlevel% neq 0 exit /b %errorlevel%


Fix build includes

Fix build includes

--- build.bat
+++ build.bat
@@ -7,5 +7,6 @@
 for /f "tokens=*" %%a in ('type version.txt') do set version=%%a

 del "%releasePath%\grocy_%version%.zip"
-"build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!grocy.phpproj -xr!grocy.phpproj.user -xr!grocy.sln -xr!bower.json
-"build_tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.*
+"build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!grocy.phpproj -xr!grocy.phpproj.user -xr!grocy.sln -xr!bower.json -xr!publication_assets
+"build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\.htaccess"
+"build_tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.* data\sessions


Added compiling files in devices folder.

--- build.bat
+++ build.bat
@@ -138,7 +138,7 @@
         GOTO :EOF
     )

-    FOR %%A IN ("%ScriptRoot%\Targets\%TargetName%", "%ScriptRoot%\Main") DO (
+    FOR %%A IN ("%ScriptRoot%\Targets\%TargetName%", "%ScriptRoot%\Devices\%DeviceName%", "%ScriptRoot%\Main") DO (
         PUSHD "%%A"

         FOR /R %%B IN ("*.gcc.s") DO (


NR-224: Core implementation of MVC framework - part 2

Clean before and after the build, just to be sure!

--- build.bat
+++ build.bat
@@ -4,7 +4,9 @@
 del distribution\components\*.egg
 python.exe components\clean_egg.py
 python.exe components\build_egg.py
+python.exe components\clean_egg.py
 del distribution\plugins\*.egg
+python.exe plugins\clean_egg.py
 python.exe plugins\build_egg.py
 python.exe plugins\clean_egg.py
 del superdesk\distribution\components\*.egg
@@ -14,3 +16,4 @@
 rmdir superdesk\distribution\workspace /S /q
 python.exe superdesk\plugins\clean_egg.py
 python.exe superdesk\plugins\build_egg.py
+python.exe superdesk\plugins\clean_egg.py


build with MSBuild 12/14 when available

build with MSBuild 12/14 when available

--- build.cmd
+++ build.cmd
@@ -1,4 +1,4 @@
-@ECHO OFF
-setlocal
-set PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework\v4.0.30319
-MSBuild.exe msbuild\WebSharper.proj /verbosity:minimal /p:Arguments="%*"
+@ECHO OFF
+setlocal
+set PATH=%PATH%;%ProgramFiles(x86)%\MSBuild\14.0\Bin;%ProgramFiles(x86)%\MSBuild\12.0\Bin;%WINDIR%\Microsoft.NET\Framework\v4.0.30319
+MSBuild.exe msbuild\WebSharper.proj /verbosity:minimal /p:Arguments="%*"


Updated to latest version of FAKE

Updated to latest version of FAKE

--- build.cmd
+++ build.cmd
@@ -4,7 +4,7 @@
 cls

 "Source\.nuget\nuget.exe" "restore" "Source\Machine.Fakes.sln"
-"Source\.nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "Source\packages" "-Version" "3.26.7" "-ExcludeVersion"
+"Source\.nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "Source\packages" "-Version" "3.27.5" "-ExcludeVersion"

 SET TARGET="Default"
 IF NOT [%1]==[] (set TARGET="%1")


Fix build.cmd

Fix build.cmd

--- build.cmd
+++ build.cmd
@@ -2,11 +2,11 @@
 REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`.

 setlocal
-set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\4.0\Framework\v4.0
+set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\4.1\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\4.0\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0
-set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.0\Framework\v4.0
+set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.1\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.0\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0
 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0


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 (


update FAKE for build

update FAKE for build

--- build.cmd
+++ build.cmd
@@ -1,4 +1,4 @@
 @echo off
 cls
-"build\tools\nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "-version" "3.14.7"
+"build\tools\nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "-version" "3.14.8"
 "packages\FAKE\tools\Fake.exe" build\build.fsx


script to start electron with the asp.net core project

--- build.cmd
+++ build.cmd
@@ -0,0 +1,8 @@
+echo Bundle ASP.NET Core Project into EXE
+
+cd ElectronNET.WebApp
+dotnet restore
+dotnet publish -r win10-x64 --output bin/dist/win
+
+echo Start Electron with bundled EXE
+..\ElectronNET.Host\node_modules\.bin\electron.cmd "..\ElectronNET.Host\main.js"


use install rather than verify

use install rather than verify

--- build.cmd
+++ build.cmd
@@ -1,3 +1,3 @@
 @setlocal
 @rem call mvn -q org.eclipse.tycho:tycho-versions-plugin:update-pom -Dtycho.mode=maven
-@call mvn -e -V verify %*
+@call mvn -e -V install %*


Use latest CI build from MyGet when building Cake.

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

 if not exist tools\Cake\Cake.exe (
 	echo Installing Cake...
-	tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion -NonInteractive -NoCache
+	tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion -NonInteractive -NoCache -Source https://www.myget.org/F/cake/ -Prerelease
 	echo.
 )


Update `build.cmd` to match latest template - aspnet/Universe#347 - `%KOREBUILD_VERSION%` doesn't work without this fix

--- build.cmd
+++ build.cmd
@@ -28,12 +28,11 @@
     copy %CACHED_NUGET% %NUGET_PATH% > nul
 )

+SET KOREBUILD_DOWNLOAD_ARGS=
+IF NOT "%KOREBUILD_VERSION%"=="" (
+    SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
+)
 IF NOT EXIST %KOREBUILD_FOLDER% (
-    SET KOREBUILD_DOWNLOAD_ARGS=
-    IF NOT "%KOREBUILD_VERSION%"=="" (
-        SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
-    )
-
     %BUILD_FOLDER%\nuget.exe install KoreBuild-dotnet -ExcludeVersion -o %BUILD_FOLDER% -nocache -pre %KOREBUILD_DOWNLOAD_ARGS%
 )


Update gyb-setup.bat

Update gyb-setup.bat

Line 44 changed to @gyb --email %regularuser% --action check-service-account

The current line has incorrect syntax and will always give an error.

--- gyb-setup.bat
+++ gyb-setup.bat
@@ -41,7 +41,7 @@
 @echo(
 @set /p regularuser= "Please enter the email address of a regular G Suite user: "
 @echo Great! Checking service account scopes. This will fail the first time. Follow the steps to authorize and retry. It can take a few minutes for scopes to PASS after they've been authorized in the admin console.
-@gyb --email %regularuser% --check-service-account
+@gyb --email %regularuser% --action check-service-account
 @if not ERRORLEVEL 1 goto sadone
 @echo(
 @echo Service account authorization failed. Confirm you entered the scopes correctly in the admin console. It can take a few minutes for scopes to PASS after they are entered in the admin console so if you're sure you entered them correctly, go grab a coffee and then hit Y to try again. Say N to skip admin authorization.