setlocal
call clean.bat
call ..\Tools\SetVsEnv x86

inf2cat /uselocaltime /driver:. /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64

mkdir Install
copy qemufwcfg.* .\Install\

endlocal

setlocal
call clean.bat
call ..\Tools\SetVsEnv x86

inf2cat /uselocaltime /driver:. /os:8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64

mkdir Install
copy qemufwcfg.* .\Install\

endlocal

Remove code for legacy OSes

fwcfg: Remove code for legacy OSes

Signed-off-by: Kostiantyn Kostiuk <88b496cab076c092c564e40d69a70d175fb00bcc@daynix.com>


Update comport and avrdude path.

Update comport and avrdude path.


@echo off

:: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64

set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe"

@IF NOT EXIST %NODE_PATH% (
	set NODE_PATH="node.exe"
)

%NODE_PATH% "%~dp0\..\lib\resin.js" %*

@echo off

:: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os
reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64

set NODE_PATH="%~dp0\node\node-win32-%ARCH%.exe"

@IF NOT EXIST %NODE_PATH% (
	set NODE_PATH="node.exe"
)

%NODE_PATH% "%~dp0\..\lib\resin.js" %*

Fix node Windows absolute path

Fix node Windows absolute path


SET "JAVA_HOME=C:\opt\jdk1.8.0_161"
cd git-repo
./mvnw clean install -X

Add more logging for debugging formatting failures on windows


REM set version=31.0.0-pre1b
REM set platform=x86

if "%platform%"=="x64" (
	copy ..\x64\Release\CefSharp.Core.dll
	set DotPlatform=.x64
) else (
	copy ..\Win32\Release\CefSharp.Core.dll
	set Platform=x86
	set DotPlatform=
)

NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=Wpf;DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=WinForms;DotPlatform=%DotPlatform%;Platform=%Platform%

set version=31.0.0-CI-%APPVEYOR_BUILD_NUMBER%
REM set platform=x86

if "%platform%"=="x64" (
	copy ..\x64\Release\CefSharp.Core.dll
	set DotPlatform=.x64
) else (
	copy ..\Win32\Release\CefSharp.Core.dll
	set Platform=x86
	set DotPlatform=
)

NuGet pack CefSharp.Common.nuspec -NoPackageAnalysis -Version %version% -Properties DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=Wpf;DotPlatform=%DotPlatform%;Platform=%Platform%
NuGet pack CefSharp.WpfOrWinForms.nuspec -NoPackageAnalysis -Version %version% -Properties ControlType=WinForms;DotPlatform=%DotPlatform%;Platform=%Platform%

Make CI NuGets unique by %APPVEYOR_BUILD_NUMBER%


if not exist "C:\Windows\Temp\msys2.exe" (
  powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe')" <NUL
)

cmd /c "C:\Windows\Temp\msys2.exe -v --script A:\msys2-install.qs"

if not exist "C:\Windows\Temp\msys2.exe" (
  powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe')" <NUL
)

cmd /c "C:\Windows\Temp\msys2.exe -v --platform minimal --script A:\msys2-install.qs"

taskkill /IM "gpg-agent.exe" /F
taskkill /IM "dirmngr.exe" /F

Kill background processes to allow parent to exit


@echo off

rem  Check that the needed environment variables are set:

if "%SPECWARE4%"=="" (
  echo Error: environment variable SPECWARE4 not set.
  echo SPECWARE4 must be set to the path of the Specware 4 tree,
  echo e.g. c:\users\me\specware4.
  pause
  exit
)

if "%XEMACS%"=="" (
  echo Error: environment variable XEMACS not set.
  echo XEMACS must be set to the path of the XEmacs tree,
  echo e.g. c:\progra~1\xemacs\xemacs-21.4.11.
  pause
  exit
)

if "%ALLEGRO%"=="" (
  echo Error: environment variable ALLEGRO not set.
  echo ALLEGRO must be set to the path of the Allegro Common Lisp tree,
  echo e.g. c:\progra~1\acl62.
  pause
  exit
)

rem  Set additional environment variables that depend on the previous ones:

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%/

rem  Move to Specware 4 main directory:

cd "%SPECWARE4%"

@echo off

rem  Check that the needed environment variables are set:
rem  In general, enclose filenames in double-quotes, since enviroment
rem  variables could expand to dirctories containing spaces, periods,
rem  and other nasty characters.

if "%SPECWARE4%"=="" (
  echo  Error: environment variable SPECWARE4 not set.
  echo  SPECWARE4 must be set to the path of the Specware tree,
  echo  e.g. C:\Specware4.
  pause
  exit
)

if "%XEMACS%"=="" (
  echo  Error: environment variable XEMACS not set.
  echo  XEMACS must be set to the path of the XEmacs tree,
  echo  e.g. C:\Progra~1\xemacs\xemacs-21.4.18.
  pause
  exit
)

if "%ALLEGRO%"=="" (
  echo  Error: environment variable ALLEGRO not set.
  echo  ALLEGRO must be set to the path of the Allegro Common Lisp tree,
  echo  e.g. C:\Progra~1\acl62.
  pause
  exit
)

rem  Set additional environment variables that depend on the previous ones:

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%/"

rem  Move to Specware4 main directory:

cd "%SPECWARE4%"

Put double-quotes around filenames to avoid problems with
environment variables expanding into directories containing
spaces, periods, etc.

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


@echo off
rem check that JAVA_HOME and LCF_HOME are set
rem save existing path here
set OLDDIR=%CD%
cd %LCF_HOME%\processes
set CLASSPATH=.
for %%f in (jar/*) do call script\setclasspath.bat %%f
set JAVADEFINES=
for %%g in (define/*) do call script\setdefine.bat %%g
rem restore old path here
cd %OLDDIR%
"%JAVA_HOME%\bin\java" -Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini %JAVADEFINES% -classpath %CLASSPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9

@echo off
rem check that JAVA_HOME and LCF_HOME are set
if not exist "%JAVA_HOME%\bin\java.exe" goto nojavahome
if not exist "%LCF_HOME%\properties.ini" goto nolcfhome
rem save existing path here
set OLDDIR=%CD%
cd "%LCF_HOME%\processes"
set CLASSPATH=.
for %%f in (jar/*) do call script\setclasspath.bat %%f
set JAVADEFINES=
for %%g in (define/*) do call script\setdefine.bat %%g
rem restore old path here
cd "%OLDDIR%"
"%JAVA_HOME%\bin\java" "-Dorg.apache.lcf.configfile=%LCF_HOME%\properties.ini" %JAVADEFINES% -classpath "%CLASSPATH%" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto done
:nojavahome
echo Environment variable JAVA_HOME is not set properly.
goto done
:nolcfhome
echo Environment variable LCF_HOME is not set properly.
goto done
:done

Update script to check properly for missing variables, and get the quotations right (I hope)...

git-svn-id: 0503cfb7d358eaa9bd718f348f448f10022ea703@938013 13f79535-47bb-0310-9956-ffa450edef68


@echo off
call "%vs140comntools%vsvars32.bat"

set LIBDIR=C:\Magick.NET.libs
set TARGET=C:\Magick.NET\ImageMagick

if "%2"=="AnyCPU" goto anycpu

xcopy %LIBDIR%\lib\Release\%2 %TARGET%\lib\Release\%2 /Y /S /I
xcopy %LIBDIR%\%1\lib\Release\%2 %TARGET%\$1\lib\Release\%2 /Y /S /I

goto build

:anycpu
xcopy %LIBDIR%\lib\Release %TARGET%\lib\Release /Y /S /I
xcopy %LIBDIR%\%1\lib\Release %TARGET%\$1\lib\Release /Y /S /I

:build
powershell -ExecutionPolicy Unrestricted ..\Scripts\AppVeyor\Build.ps1 %1 %2

@echo off
call "%vs140comntools%vsvars32.bat"

set LIBDIR=C:\Magick.NET.libs
set TARGET=C:\Magick.NET\ImageMagick

if "%2"=="AnyCPU" goto anycpu

xcopy %LIBDIR%\lib\Release\%2 %TARGET%\lib\Release\%2 /Y /S /I
xcopy %LIBDIR%\%1\lib\Release\%2 %TARGET%\%1\lib\Release\%2 /Y /S /I

goto build

:anycpu
xcopy %LIBDIR%\lib\Release %TARGET%\lib\Release /Y /S /I
xcopy %LIBDIR%\%1\lib\Release %TARGET%\%1\lib\Release /Y /S /I

:build

rmdir /S /Q %LIBDIR%
xcopy %TARGET% %LIBDIR% /Y /S /I

powershell -ExecutionPolicy Unrestricted ..\Scripts\AppVeyor\Build.ps1 %1 %2

Make sure only the used lib files end up in the Magick.NET.libs folder.


build\install\hector\bin\hector.bat com.marklogic.hector.JobConfig job input_file_path=./src/test/resources/Most_Popular_Baby_Names_NYC.csv delimited_root_name=baby-name document_type=xml output_collections=baby-name chunk_size=100 thread_count=4

Add command line for hector

Add command line for hector


@for %%a in (*.mid) do @midisplit "%%a" "%%~na-split.mid"

rem @set midisplit_dir=%~dp0
rem
rem :dispatch_loop
rem   @if "%1"=="" @goto dispatch_done
rem   @echo %midisplit_dir%midisplit "%1" "%~dpn1.mid"
rem   @shift
rem   @goto dispatch_loop
rem :dispatch_done

Add Windows batch file for batch conversion.


@echo off

setlocal enabledelayedexpansion

set PLAY_VERSION="2.2-SNAPSHOT"

if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%"

set p=%~dp0
set p=%p:\=/%
set fp=file:///!p: =%%20!

java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% %JAVA_OPTS% -Dfile.encoding=UTF-8 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="%fp%sbt/sbt.boot.properties" %PLAY_OPTS% -jar "%~dp0sbt\sbt-launch.jar" %*

:end
endlocal

@echo off

setlocal enabledelayedexpansion

set PLAY_VERSION="2.2-SNAPSHOT"

if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%"

set p=%~dp0
set p=%p:\=/%
set fp=file:///!p: =%%20!

java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M %DEBUG_PARAM% %JAVA_OPTS% -Dfile.encoding=UTF-8 -Dinput.encoding=Cp1252 -Dplay.version="%PLAY_VERSION%" -Dsbt.ivy.home="%~dp0..\repository" -Dplay.home="%~dp0." -Dsbt.boot.properties="%fp%sbt/sbt.boot.properties" %PLAY_OPTS% -jar "%~dp0sbt\sbt-launch.jar" %*

:end
endlocal

Fix command history in Windows

Fix command history in Windows

SBT 0.13 uses JLine 2.x, which interacts badly with the existing setting
-Dfile.encoding=UTF-8. However, the JLine terminal encoding can be
overridden by providing the option -Dinput.encoding=Cp1252.


echo off
setlocal

REM elevated window does not set current directory correctly.
REM Workaround it by passing the current directory as 1st parameter
pushd %1

certutil -addstore -f root RootCATest.cer
certutil -f -p test -importpfx "WcfTestServer.pfx"
netsh http add sslcert ipport=0.0.0.0:44285 certhash=1d85a3f6cd2c022c5ca54e5cb200a47f89ba0d3d appid={00000000-0000-0000-0000-000000000000}
start powershell -ExecutionPolicy Bypass -File ..\test\Bridge\bin\ensureBridge.ps1 %2 %3 %4 %5 %6 %7
exit /b

echo off
setlocal

REM elevated window does not set current directory correctly.
REM Workaround it by passing the current directory as 1st parameter
pushd %1

certutil -addstore -f root RootCATest.cer
certutil -f -p test -importpfx "WcfTestServer.pfx"
netsh http add sslcert ipport=0.0.0.0:44285 certhash=1d85a3f6cd2c022c5ca54e5cb200a47f89ba0d3d appid={00000000-0000-0000-0000-000000000000}

if '%BridgeHost%' neq '' (
   set _bridgeHostArg=-hostName %BridgeHost%
)

if '%BridgePort%' neq '' (
   set _bridgePortArg=-portNumber %BridgePort%
)

if '%BridgeAllowRemote%' neq '' (
   set _bridgeAllowRemoteArg=-allowRemote %BridgeAllowRemote%
)

echo Executing: start powershell -ExecutionPolicy Bypass -File ..\test\Bridge\bin\ensureBridge.ps1 %_bridgeHostArg% %_bridgePortArg% %_bridgeAllowRemoteArg%

start powershell -ExecutionPolicy Bypass -File ..\test\Bridge\bin\ensureBridge.ps1 %_bridgeHostArg% %_bridgePortArg% %_bridgeAllowRemoteArg%
exit /b

Allow Bridge environment variables to configure Bridge use


@echo off

:Build
cls

echo Restoring NuGet packages for solution...
"tools\nuget\nuget.exe" "restore" "src/Cake.sln"
echo.

if not exist tools\Cake\Cake.exe (
	echo Installing Cake...
	"tools\nuget\nuget.exe" "install" "Cake" "-OutputDirectory" "tools" "-ExcludeVersion" "-NonInteractive"
	echo.
)

if not exist tools\xunit.runners\tools\xunit.console.exe (
	echo Installing xUnit.net: Runners...
	"tools\nuget\nuget.exe" "install" "xunit.runners" "-OutputDirectory" "tools" "-ExcludeVersion" "-Version" "1.9.2" "-NonInteractive"
	echo.
)

SET TARGET="All"
IF NOT [%1]==[] (set TARGET="%1")
SET BUILDMODE="Release"
IF NOT [%2]==[] (set BUILDMODE="%2")

echo Starting Cake...
tools\Cake\Cake.exe build.cake -target=%TARGET% -configuration=%BUILDMODE%

rem Loop the build script.
echo.
set CHOICE=nothing
echo (R)ebuild or (Enter) to exit
set /P CHOICE=
if /i "%CHOICE%"=="R" goto :Build

:Quit
exit /b %errorlevel%

@echo off

:Build
cls

if not exist tools\Cake\Cake.exe (
	echo Installing Cake...
	tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion -NonInteractive -NoCache
	echo.
)

if not exist tools\xunit.runners\tools\xunit.console.exe (
	echo Installing xUnit.net: Runners...
	tools\nuget\nuget.exe install xunit.runners -OutputDirectory tools -ExcludeVersion -Version 1.9.2 -NonInteractive
	echo.
)

SET TARGET="All"
IF NOT [%1]==[] (set TARGET="%1")
SET BUILDMODE="Release"
IF NOT [%2]==[] (set BUILDMODE="%2")

echo Starting Cake...
tools\Cake\Cake.exe build.cake -target=%TARGET% -configuration=%BUILDMODE% -verbosity=verbose

rem Loop the build script.
echo.
set CHOICE=nothing
echo (R)ebuild or (Enter) to exit
set /P CHOICE=
if /i "%CHOICE%"=="R" goto :Build

:Quit
exit /b %errorlevel%

Build script: Prevent NuGet from retrieving Cake from cache.


rem ba.bat - download and build all of scintilla and scite
rd /s/q scintilla scite
cvs co scintilla scite
cd scintilla
call delbin
del/q bin\*.a
call delcvs
call zipsrc
cd win32
make
cd ..
cd ..
cd scite
del/q bin\*.properties
del/q bin\SciTE
call delbin
call delcvs
call zipsrc
cd win32
make
cd ..
call upxsc1
call zipwscite
call delbin
cd ..
cd scintilla
call delbin
cd ..

rem ba.bat - download and build all of scintilla and scite
rd /s/q scintilla scite
cvs co scintilla scite
cd scintilla
call delbin
del/q bin\*.a
call delcvs
call zipsrc
cd win32
nmake -f scintilla.mak
cd ..
cd ..
cd scite
del/q bin\*.properties
del/q bin\SciTE
call delbin
call delcvs
call zipsrc
cd win32
nmake -f scite.mak
cd ..
call upxsc1
call zipwscite
call delbin
cd ..
cd scintilla
call delbin
cd ..

Change to using MSVC for builds.

Change to using MSVC for builds.


@echo off
setlocal
if not defined EDITOR set EDITOR=notepad
set PATH=%~dp0GIT_BIN_DIR\cmd;%PATH%
"%~dp0GIT_BIN_DIR\GIT_PROGRAM" %*

@echo off
setlocal
if not defined EDITOR set EDITOR=notepad
set PATH=%~dp0GIT_BIN_DIR\cmd;%~dp0;%PATH%
"%~dp0GIT_BIN_DIR\GIT_PROGRAM" %*

Fix depot_tools\git.bat when depot_tools in not in PATH.

Manual land of https://chromiumcodereview.appspot.com/2009173002/ due to CQ
lineending issues.

AUTHOR=techtonik@gmail.com
R=phajdan.jr@chromium.org, techtonik@gmail.com, dpranke@chromium.org
BUG=

Review URL: https://codereview.chromium.org/2015673002 .

git-svn-id: fd409f4bdeea2bb50a5d34bb4d4bfc2046a5a3dd@300668 0039d316-1c4b-4281-b951-d872f2087c98


@ECHO off

IF NOT "x%1" == "x" GOTO :%1

:luvit
ECHO "Building luvit"
SET LUVI_APP=app
SET LUVI_TARGET=luvit
luvi-binaries\Windows\luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
GOTO :end

:test
CALL Make.bat luvit
luvit.exe tests\run.lua
GOTO :end

:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe

:end

@ECHO off

IF NOT "x%1" == "x" GOTO :%1

:luvit
ECHO "Building luvit"
SET LUVI_APP=app
SET LUVI_TARGET=luvit.exe
luvi-binaries\Windows\luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
GOTO :end

:test
CALL Make.bat luvit
luvit.exe tests\run.lua
GOTO :end

:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe

:end

Include .exe in windows build

Include .exe in windows build


set MSBUILD_EXE=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild

cd 3rd-party\UnitTest++

%MSBUILD_EXE% UnitTest++.vsnet2008.sln  /p:Configuration=Debug /target:Clean
%MSBUILD_EXE% UnitTest++.vsnet2008.sln  /p:Configuration=Release /target:Clean

%MSBUILD_EXE% UnitTest++.vsnet2008.sln  /p:Configuration=Debug
%MSBUILD_EXE% UnitTest++.vsnet2008.sln  /p:Configuration=Release

cd ..\..

cmake CMakeLists.txt

%MSBUILD_EXE% libamqp.sln  /p:Configuration=Debug /target:Clean
%MSBUILD_EXE% libamqp.sln  /p:Configuration=Release /target:Clean

%MSBUILD_EXE% libamqp.sln  /p:Configuration=Debug

@echo off
set DEVENV=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild

set DEVENV=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
if exist "%DEVENV%" goto devenv_found

set DEVENV=C:\Program Files(x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe
if exist "%DEVENV%" goto devenv_found

echo "Please set DEVENV to the location of the devenv.exe program.
got end

:devenv_found

echo "Building UnitTest++"
cd 3rd-party\UnitTest++

"%DEVENV%" UnitTest++.vsnet2008.sln /Rebuild Debug
"%DEVENV%" UnitTest++.vsnet2008.sln /Rebuild Release

cd ..\..
echo "Running CMake"
del CMakeCache.txt /q
del CMakeFiles /s /q
cmake CMakeLists.txt

echo "Building Libamqp"
"%DEVENV%" libamqp.sln /Rebuild Debug
"%DEVENV%" libamqp.sln /Build Debug /project RUN_TESTS

:end

Update Windows CI build script.

Update Windows CI build script.

Use devenv rather than msbuild.
Run the RUN_TEST project.


@echo off
rem ======================================================================== rem
rem Copyright 2015-2016 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

md build
cd build

cmake -L ^
-G "%1" ^
-T "%2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_BUILD_MIC_SUPPORT=OFF ^
-D OSPRAY_USE_EXTERNAL_EMBREE=ON ^
-D embree_DIR=..\..\embree\lib\cmake\embree-2.9.0 ^
-D USE_IMAGE_MAGICK=OFF ^
..

cmake --build . --config Release --target ALL_BUILD -- /m /nologo

:abort
endlocal
:end

@echo off
rem ======================================================================== rem
rem Copyright 2015-2016 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

md build
cd build

cmake -L ^
-G "%~1" ^
-T "%~2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_BUILD_MIC_SUPPORT=OFF ^
-D OSPRAY_USE_EXTERNAL_EMBREE=ON ^
-D embree_DIR=..\..\embree\lib\cmake\embree-2.9.0 ^
-D USE_IMAGE_MAGICK=OFF ^
..

cmake --build . --config Release --target ALL_BUILD -- /m /nologo

:abort
endlocal
:end

Handle spaces in args for batch file

Handle spaces in args for batch file


@echo off
set /p path="Enter path to installer: "
"C:\Program Files (x86)\Windows Kits\10\App Certification Kit\signtool.exe" sign /n "Open Source Developer, Michael Scrivo" /t http://timestamp.comodoca.com/authenticode /fd SHA256 %path%
set /p throwaway=Hit ENTER to continue...

Add helper script to sign installer post build


REM This file should be executed from the command line prior to the first
REM build.  It will be necessary to refresh the Eclipse project once the
REM .bat file has been executed (normally just press F5 to refresh).

REM Copies all the required files from their location within the standard
REM FreeRTOS directory structure to under the Eclipse project directory.
REM This permits the Eclipse project to be used in 'managed' mode and without
REM having to setup any linked resources.

REM Standard paths
SET FREERTOS_SOURCE=..\..\Source
SET COMMON_SOURCE=..\Common\minimal
SET COMMON_INCLUDE=..\Common\include

REM Have the files already been copied?
IF EXIST src\FreeRTOS_Source Goto END

    REM Create the required directory structure.
    MD src\FreeRTOS_Source
    MD src\FreeRTOS_Source\include
    MD src\FreeRTOS_Source\portable\GCC
    MD src\FreeRTOS_Source\portable\GCC\ARM_CM4F
    MD src\FreeRTOS_Source\portable\MemMang
    MD src\Common_Demo_Source
    MD src\Common_Demo_Source\include

    REM Copy the core kernel files into the SDK projects directory
    copy %FREERTOS_SOURCE%\tasks.c src\FreeRTOS_Source
    copy %FREERTOS_SOURCE%\queue.c src\FreeRTOS_Source
    copy %FREERTOS_SOURCE%\list.c src\FreeRTOS_Source
    copy %FREERTOS_SOURCE%\timers.c src\FreeRTOS_Source

    REM Copy the common header files into the SDK projects directory
    copy %FREERTOS_SOURCE%\include\*.* src\FreeRTOS_Source\include

    REM Copy the portable layer files into the projects directory
    copy %FREERTOS_SOURCE%\portable\GCC\ARM_CM4F\*.* src\FreeRTOS_Source\portable\GCC\ARM_CM4F

    REM Copy the basic memory allocation files into the SDK projects directory
    copy %FREERTOS_SOURCE%\portable\MemMang\heap_2.c src\FreeRTOS_Source\portable\MemMang

    REM Copy the files that define the common demo tasks.
    copy %COMMON_SOURCE%\dynamic.c         src\Common_Demo_Source
    copy %COMMON_SOURCE%\BlockQ.c          src\Common_Demo_Source
    copy %COMMON_SOURCE%\death.c           src\Common_Demo_Source
    copy %COMMON_SOURCE%\blocktim.c        src\Common_Demo_Source
    copy %COMMON_SOURCE%\semtest.c         src\Common_Demo_Source
    copy %COMMON_SOURCE%\PollQ.c           src\Common_Demo_Source
    copy %COMMON_SOURCE%\GenQTest.c        src\Common_Demo_Source
    copy %COMMON_SOURCE%\recmutex.c        src\Common_Demo_Source
    copy %COMMON_SOURCE%\sp_flop.c         src\Common_Demo_Source
    copy %COMMON_SOURCE%\countsem.c        src\Common_Demo_Source
    copy %COMMON_SOURCE%\integer.c         src\Common_Demo_Source

    REM Copy the common demo file headers.
    copy %COMMON_INCLUDE%\*.h              src\Common_Demo_Source\include

: END

Add batch file that creates the directory structure required by the XMC4500 GCC port.


@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setlocal

set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi

REM -- C# --
cd %build-root%\csharp\device\build
call build_mf.cmd
if errorlevel 1 goto :eof
cd %build-root%

Enable .netmf in the gated build.

Enable .netmf in the gated build.


@ECHO OFF
@REM ----- INIT SCREEN -----
TITLE Using command line to create new job !!!
COLOR 0f
CLS

@REM ----- SET DEFAULT DIRECTORY -----
SET DIRNAME=%~dp0
IF "%DIRNAME%" == "" SET DIRNAME=.\

@REM ----- GET INFORMATION FOR JOB FROM CONSOLE -----
ECHO --------------- CREATE JOB: %2 ---------------
ECHO.

SET inputResult=%*
IF "%1"=="-n" (
	"%DIRNAME%\groovy.bat" "%DIRNAME%\genjob.groovy" %inputResult%
) ELSE (
	ECHO "Incorrect format !!!"
	ECHO "Correct format of command: "
	ECHO "genjob -n <jobName> [-f <strFetchAction>] [-q <strQuery>] [-c <strCommand>] [-d <strDbExec>] [-fp <pathToFile>]"
)

@ECHO OFF
setlocal
@REM ----- INIT SCREEN -----
TITLE Using command line to create new job !!!
COLOR 0f
CLS

@REM ----- SET WIPERDOG HOME DIRECTORY -----
set WIPERDOGHOME=%~dp0..
for %%i in ("%WIPERDOGHOME%") do set WIPERDOGHOME=%%~fsi
cd "%WIPERDOGHOME%\bin"

@REM ----- GET INFORMATION FOR JOB FROM CONSOLE -----
ECHO --------------- CREATE JOB: %2 ---------------
ECHO.

SET inputResult=%*
IF "%1"=="-n" (
	"%WIPERDOGHOME%\bin\groovy.bat" "%WIPERDOGHOME%\bin\genjob.groovy" %inputResult%
) ELSE (
	ECHO "Incorrect format !!!"
	ECHO "Correct format of command: "
	ECHO "genjob -n <jobName> [-f <strFetchAction>] [-q <strQuery>] [-c <strCommand>] [-d <strDbExec>] [-fp <pathToFile>]"
)
endlocal

Fix bug: directory contains space character


mkdir C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload

call git clone git://github.com/tpope/vim-surround C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone git://github.com/tpope/vim-commentary.git C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/easymotion/vim-easymotion C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/kien/rainbow_parentheses.vim C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/itchyny/calendar.vim C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/itchyny/lightline.vim C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/Yggdroot/indentLine C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\
call git clone https://github.com/Raimondi/delimitMate.git C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\

Add bat file for vim initialization on windows.


@echo off

:: 启动命令处理器扩展名 启动延缓环境变量扩展名
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION

:: 双脱字符的功用
echo Hi there^^!

:: 如果是从图形界面（相对于命令行）启动的，则暂停
echo %cmdcmdline% | find "%~0" > nul
if %errorlevel% EQU 0 pause

::
echo %cmdcmdline% | findstr /c:"%~n0" > nul
if %errorlevel% EQU 0 pause

Add a batch script for the first commit.


java -Xrunhprof:cpu=samples -DWNDBVERSION=1.7 -DWNHOME=C:\nlp\opennlp\opennlp\dictionary\src\ -DWNSEARCHDIR=C:\nlp\WordNet\dict\ -jar output\dictionary-0.1.0.jar  %1 -g -h -o -a -s -Oop.txt -over -synsa -antsa -perta -famla -synsn -simsn -antsn -coorn -hypen -hypon -treen -holon -sprtn -smemn -ssubn -hholn -meron -subsn -partn -membn -hmern -nomnn -attrn -famln -synsv -simsv -antsv -coorv -hypev -hypov -treev -tropv -entav -causv -nomnv -framv -famlv -synsr -antsr -pertr -famlr

Stop error by adding space at end of line


REM Set variables for Microsoft Visual Studio for Python 2.7
REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64
REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.python.org/issue23246)
REM SET DISTUTILS_USE_SDK=1
REM SET MSSdk=1

@call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64

REM Test build
python setup.py sdist bdist_wheel
REM Upload to PyPi
REM python setup.py sdist bdist_wheel upload

REM Set variables for Microsoft Visual Studio for Python 2.7
REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64
REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.python.org/issue23246)
REM SET DISTUTILS_USE_SDK=1
REM SET MSSdk=1

REM Set variables for Microsoft Visual Studio for Python 3.6
@call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64

REM Test build
python setup.py sdist bdist_wheel
REM Upload to PyPi
REM python setup.py sdist bdist_wheel upload

Update bat file for Python 3 build

Update bat file for Python 3 build


@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="-Xmx64m"

@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

Add missing gradle wrapper file

Add missing gradle wrapper file


@echo off

REM This is a script that will set environment information about where to find
REM NuGet.exe, it's version and ensure that it's present on the enlistment.
set NuGetExeVersion=3.5.0-beta2
set NuGetExeFolder=%~dp0..\..\Binaries\Download\%NuGetExeVersion%
set NuGetExe=%NuGetExeFolder%\NuGet.exe

REM Download NuGet.exe if we haven't already
if not exist "%NuGetExe%" (
    echo Downloading NuGet %NuGetExeVersion%
    powershell -noprofile -executionPolicy RemoteSigned -file "%~dp0download-nuget.ps1" "%NuGetExeVersion%" "%NuGetExeFolder%" || goto :DownloadNuGetFailed
)

@echo off

REM This is a script that will set environment information about where to find
REM NuGet.exe, it's version and ensure that it's present on the enlistment.
set NuGetExeVersion=3.5.0-beta2
set NuGetExeFolder=%~dp0..\..
set NuGetExe=%NuGetExeFolder%\NuGet.exe

REM Download NuGet.exe if we haven't already
if not exist "%NuGetExe%" (
    echo Downloading NuGet %NuGetExeVersion%
    powershell -noprofile -executionPolicy RemoteSigned -file "%~dp0download-nuget.ps1" "%NuGetExeVersion%" "%NuGetExeFolder%" || goto :DownloadNuGetFailed
)

Move NuGet.exe restore location back to the root

After extensive testing it appears the number of places that assume NuGet.exe is in the root is "at least one more."  Need to unblock the signed build so putting it back in the root temporarily.


@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setlocal

set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi

REM -- C --
cd %build-root%\tools

call build_dotnet.cmd %*
if errorlevel 1 goto :eof

call build_uwp.cmd %*
if errorlevel 1 goto :eof
cd %build-root%

@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setlocal

set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi

REM -- C --
cd %build-root%\tools

call build_dotnet.cmd %*
if errorlevel 1 goto :eof

call build_uwp.cmd --skip-unittests %*
if errorlevel 1 goto :eof
cd %build-root%

Fix unit test run error on UWP by not running them


@echo off

REM This is a script that will set environment information about where to find
REM NuGet.exe, it's version and ensure that it's present on the enlistment.
set NuGetExeVersion=3.6.0-beta1
set NuGetExeFolder=%~dp0..\..
set NuGetExe=%NuGetExeFolder%\NuGet.exe

if "%VisualStudioVersion%" == "15.0" (
    set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%NuGetExeFolder%\nuget.config" -Project2ProjectTimeOut 1200 -msbuildpath "%DevenvDir%\..\..\MSBuild\15.0\Bin"
) else (
    set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%NuGetExeFolder%\nuget.config" -Project2ProjectTimeOut 1200
)

REM Download NuGet.exe if we haven't already
if not exist "%NuGetExe%" (
    echo Downloading NuGet %NuGetExeVersion%
    powershell -noprofile -executionPolicy Bypass -file "%~dp0download-nuget.ps1" "%NuGetExeVersion%" "%NuGetExeFolder%" || goto :DownloadNuGetFailed
)

@echo off

REM This is a script that will set environment information about where to find
REM NuGet.exe, it's version and ensure that it's present on the enlistment.
set NuGetExeVersion=3.6.0-beta1
set NuGetExeFolder=%~dp0..\..
set NuGetExe=%NuGetExeFolder%\NuGet.exe

REM If we have an applocal copy of MSBuild, pass it to NuGet.  Otherwise, assume NuGet knows how to find it.
if exist "%DevenvDir%\..\..\MSBuild\15.0\Bin\MSBuild.exe" (
    set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%NuGetExeFolder%\nuget.config" -Project2ProjectTimeOut 1200 -msbuildpath "%DevenvDir%\..\..\MSBuild\15.0\Bin"
) else (
    set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%NuGetExeFolder%\nuget.config" -Project2ProjectTimeOut 1200
)

REM Download NuGet.exe if we haven't already
if not exist "%NuGetExe%" (
    echo Downloading NuGet %NuGetExeVersion%
    powershell -noprofile -executionPolicy Bypass -file "%~dp0download-nuget.ps1" "%NuGetExeVersion%" "%NuGetExeFolder%" || goto :DownloadNuGetFailed
)

Update test to check for existence of app-local msbuild instead of version number


# This is for windows users only.
# If you're on a mac or linux, just run `ant build` from this folder in Terminal

set MYDIR=%~dp0
set ANT_OPTS=-D"file.encoding=UTF-8"
ant build

REM # This is for windows users only.
REM # If you're on a mac or linux, just run `ant build` from this folder in Terminal

set MYDIR=%~dp0
set ANT_OPTS=-D"file.encoding=UTF-8"
ant build

Use REM for comments to avoid error messages on the DOS prompt for Windows users


@ECHO OFF

REM Uncomment to enable verbose mode
REM SET VERBOSE=YES

REM Because I'm tired of forgetting this
DOSKEY ls=dir
DOSKEY man=help
DOSKEY which=where

REM Add alias for Sublime Text
SET SUBLREGPATH=HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text 2_is1
SET SUBLBINNAME=sublime_text.exe
REG QUERY "%SUBLREGPATH%" /v InstallLocation > NUL 2>&1
IF NOT ERRORLEVEL 1 (
    FOR /F "tokens=2*" %%a IN ('REG QUERY "%SUBLREGPATH%" /v InstallLocation ^| FINDSTR /R "[a-z]:\\.*\\$"') DO @SET SUBLDIRPATH=%%b
    DOSKEY subl="%SUBLDIRPATH%%SUBLBINNAME%" $*
) ELSE (
    IF DEFINED VERBOSE ECHO Couldn't locate Sublime Text install; not adding 'subl' alias.
)
FOR /F "delims==" %%i IN ('SET SUBL') DO @SET %%i=

Make working in Command Prompt slightly more bearable


@echo off
cd build
cmd /c "build.bat /target:PrepareDependencies" & pause & exit

@echo off
cd /d %~dp0build
cmd /c "build.bat /target:PrepareDependencies" & pause & exit

Fix path when right-clicking batch and Running as Administrator


..\.nuget\NuGet.exe push ..\Topshelf.Autofac\bin\Release\Topshelf.Autofac.*.nupkg -Source https://www.nuget.org/api/v2/package

Add push package script :cow:

Add push package script :cow:


@REM Copyright (c) 2008 - 2010, Apple, Inc.  All rights reserved.
@REM All rights reserved. This program and the accompanying materials
@REM are licensed and made available under the terms and conditions of the BSD License
@REM which accompanies this distribution.  The full text of the license may be found at
@REM http://opensource.org/licenses/bsd-license.php
@REM
@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
@REM

@REM Example usage of this script. default is a DEBUG build
@REM b
@REM b clean
@REM b release
@REM b release clean
@REM b -v -y build.log

ECHO OFF
@REM Setup Build environment. Sets WORKSPACE and puts build in path
CALL ..\edksetup.bat

@REM Set for tools chain. Currently ARMGCC
SET TARGET_TOOLS=ARMGCC
SET TARGET=DEBUG

@if /I "%1"=="RELEASE" (
  @REM If 1st argument is release set TARGET to RELEASE and shift arguments to remove it
  SET TARGET=RELEASE
  shift /1
)

SET BUILD_ROOT=%WORKSPACE%\Build\BeagleBoard\%TARGET%_%TARGET_TOOLS%

@REM Build the Beagle Board firmware and creat an FD (FLASH Device) Image.
CALL build -p BeagleBoardPkg\BeagleBoardPkg.dsc -a ARM -t %TARGET_TOOLS% -b %TARGET% %1 %2 %3 %4 %5 %6 %7 %8
@if ERRORLEVEL 1 goto Exit

@if /I "%1"=="CLEAN" goto Clean

@REM
@REM Ram starts at 0x80000000
@REM OMAP 3530 TRM defines 0x80008208 as the entry point
@REM The reset vector is caught by the mask ROM in the OMAP 3530 so that is why this entry
@REM point looks so strange.
@REM OMAP 3430 TRM section 26.4.8 has Image header information. (missing in OMAP 3530 TRM)
@REM
@cd Tools

ECHO Building tools...
CALL nmake

ECHO Patching image with ConfigurationHeader.dat
CALL GenerateImage -D ..\ConfigurationHeader.dat -E 0x80008208 -I %BUILD_ROOT%\FV\BEAGLEBOARD_EFI.fd -O %BUILD_ROOT%\FV\BeagleBoard_EFI_flashboot.fd

ECHO Patching ..\Debugger_scripts ...
SET DEBUGGER_SCRIPT=..\Debugger_scripts
@for /f %%a IN ('dir /b %DEBUGGER_SCRIPT%\*.inc %DEBUGGER_SCRIPT%\*.cmm') do (
  @CALL replace %DEBUGGER_SCRIPT%\%%a %BUILD_ROOT%\%%a ZZZZZZ %BUILD_ROOT% WWWWWW  %WORKSPACE%
)

cd ..
:Exit
EXIT /B

:Clean
cd Tools
CALL nmake clean
cd ..

Add a build script for code socery gcc.

Add a build script for code socery gcc.

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


@pushd %~dp0

ECHO Remember to build the solution first!
REM pause

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

pause

@popd

Add ability to generate nunit test results


@echo off

REM
REM Verify that we can find the 'makepanda' python script
REM and the python interpreter.  If we can find both, then
REM run 'makepanda'.
REM

set thirdparty=thirdparty
if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%

if not exist makepanda\makepanda.py goto :missing1
if not exist %thirdparty%\win-python\python.exe goto :missing2
%thirdparty%\win-python\python.exe makepanda\makepanda.py %*
if errorlevel 1 if x%1 == x--slavebuild exit 1
goto done

:missing1
  echo You need to change directory to the root of the panda source tree
  echo before invoking makepanda.  For further install instructions, read
  echo the installation instructions in the file doc/INSTALL-MK.
  goto done

:missing2
  echo You seem to be missing the 'thirdparty' directory.  You probably checked
  echo the source code out from sourceforge.  The sourceforge repository is
  echo missing the 'thirdparty' directory.  You will need to supplement the
  echo code by downloading the 'thirdparty' directory from www.panda3d.org
  goto done

:done

@echo off

REM
REM Check the Windows architecture and determine with Python
REM to use; 64-bit or 32-bit. Verify that we can find the
REM 'makepanda' python script and the python interpreter.
REM If we can find both, then run 'makepanda'.
REM

if %PROCESSOR_ARCHITECTURE% == AMD64 (
  set pythondir=win-python-x64
) else (
  set pythondir=win-python
)

set thirdparty=thirdparty
if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY%

if not exist makepanda\makepanda.py goto :missing1
if not exist %thirdparty%\%pythondir%\python.exe goto :missing2
%thirdparty%\%pythondir%\python.exe makepanda\makepanda.py %*
if errorlevel 1 if x%1 == x--slavebuild exit 1
goto done

:missing1
  echo You need to change directory to the root of the panda source tree
  echo before invoking makepanda.  For further install instructions, read
  echo the installation instructions in the file doc/INSTALL-MK.
  goto done

:missing2
  echo %thirdparty%
  echo You seem to be missing the 'thirdparty' directory.  You probably checked
  echo the source code out from sourceforge.  The sourceforge repository is
  echo missing the 'thirdparty' directory.  You will need to supplement the
  echo code by downloading the 'thirdparty' directory from www.panda3d.org
  goto done

:done

Add a check for 32-bit vs 64-bit OS and then use the appropriate python


@echo off

if "%~1" == "" (
  echo Usage: release_win.bat path-to-bin-folder
  goto end
)

setlocal
set destdir="%cd%\%~1"

mkdir build
cd build
del CMakeCache.txt rem make sure to use default settings
cmake -D CMAKE_INSTALL_PREFIX=%destdir% -G "Visual Studio 12 2013 Win64" ..
ICProjConvert150 embree.sln /IC /s /f
cmake --build . --config Release --target INSTALL -- /m
cd ..

endlocal
:end

Add release script for windows

Add release script for windows


@echo off
set BASENAME=Geocache_Height
set BASEPATH=%HOMEPATH%\Documents\Dev\GitHub\userscripts\GeocacheHeight
set DEPLOYPATH=%APPDATA%\Mozilla\Firefox\Profiles\6rhioilk.default\gm_scripts\%BASENAME%

cd "%BASEPATH%"
copy "src\%BASENAME%.meta.js" .
copy /b "src\%BASENAME%.meta.js" + src\header.js + "src\formatHeight.js" + "src\%BASENAME%.js" + src\footer.js ".\%BASENAME%.user.js"
copy %BASENAME%.meta.js %DEPLOYPATH%
copy %BASENAME%.user.js %DEPLOYPATH%

copy "src\%BASENAME%_feet.meta.js" .
copy /b "src\%BASENAME%_feet.meta.js" + src\header.js + "src\formatHeight_feet.js" + "src\%BASENAME%.js" + src\footer.js ".\%BASENAME%_feet.user.js"
copy %BASENAME%_feet.meta.js %DEPLOYPATH%
copy %BASENAME%_feet.user.js %DEPLOYPATH%

set BASENAME=
set BASEPATH=

@echo off
set BASENAME=Geocache_Height
set BASEPATH=%HOMEPATH%\Documents\Dev\GitHub\userscripts\GeocacheHeight
set DEPLOYPATH=%APPDATA%\Mozilla\Firefox\Profiles\6rhioilk.default\gm_scripts\%BASENAME%

cd "%BASEPATH%"
copy "src\%BASENAME%.meta.js" .
copy /b "src\%BASENAME%.meta.js" + src\header.js + "src\formatHeight.js" + "src\%BASENAME%.js" + src\footer.js ".\%BASENAME%.user.js"
copy %BASENAME%.meta.js %DEPLOYPATH%
copy %BASENAME%.user.js %DEPLOYPATH%

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

set BASENAME=
set BASEPATH=

Deploy feet version to own folder

Deploy feet version to own folder


setlocal
set BUILDER_START_DIR=
set BUILDER_TOP_DIR=
set BUILDROOT_DIR=
set __CMD_INIT_RUN__=

%PYTHON% wb_git_main.py %*
endlocal

setlocal
set PYTHONPATH=%BUILDER_TOP_DIR%\Source;%BUILDER_TOP_DIR%\Source\Common

set BUILDER_START_DIR=
set BUILDER_TOP_DIR=
set BUILDROOT_DIR=
set __CMD_INIT_RUN__=

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

Update to work with common

Update to work with common


@echo off
setlocal

set "output=nul"
set "times=1"

:help

:parseArgs

if "%~1" == "" goto main

if /i "%~1" == "-?" goto help
if /i "%~1" == "-h" goto help
if /i "%~1" == "--help" goto help

if /i "%~1" == "-t" (
    set "times=%~2"
    shift
)

if /i "%~1" == "--times" (
    set "times=%~2"
    shift
)

if /i "%~1" == "-o" (
    set "output=%~2"
    shift
)

if /i "%~1" == "--output" (
    set "output=%~2"
    shift
)

shift

:curl

@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul

goto :eof

:downloadPackage

set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2

goto :eof

:main

for /l %%i in (1, 1, %times%) do (
    call :downloadPackage "%package%" "%output%"
)

@echo off
setlocal

set "output=nul"
set "times=1"

:help

goto :eof

:parseArgs

if "%~1" == "" goto main

if /i "%~1" == "-?" goto help
if /i "%~1" == "-h" goto help
if /i "%~1" == "--help" goto help

if /i "%~1" == "-t" (
    set "times=%~2"
    shift
)

if /i "%~1" == "--times" (
    set "times=%~2"
    shift
)

if /i "%~1" == "-o" (
    set "output=%~2"
    shift
)

if /i "%~1" == "--output" (
    set "output=%~2"
    shift
)

shift
goto parseArgs

:curl

@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul

goto :eof

:downloadPackage

set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2

goto :eof

:main

for /l %%i in (1, 1, %times%) do (
    call :downloadPackage "%package%" "%output%"
)

Fix labels in the cmd script

Fix labels in the cmd script


@echo off
rem ======================================================================== rem
rem Copyright 2015-2017 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

echo Running tests
md failed

set OSP_LIBS=build\Release
set BASELINE_DIR=N:\OSPRay\test-data\img\

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

call build\regression_tests\Release\ospray_test_suite.exe --gtest_output=xml:tests.xml --baseline-dir=%BASELINE_DIR%

exit /B %ERRORLEBEL%

endlocal

@echo off
rem ======================================================================== rem
rem Copyright 2015-2017 Intel Corporation                                    rem
rem                                                                          rem
rem Licensed under the Apache License, Version 2.0 (the "License");          rem
rem you may not use this file except in compliance with the License.         rem
rem You may obtain a copy of the License at                                  rem
rem                                                                          rem
rem     http://www.apache.org/licenses/LICENSE-2.0                           rem
rem                                                                          rem
rem Unless required by applicable law or agreed to in writing, software      rem
rem distributed under the License is distributed on an "AS IS" BASIS,        rem
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem
rem See the License for the specific language governing permissions and      rem
rem limitations under the License.                                           rem
rem ======================================================================== rem

setlocal

echo Running tests
md failed

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

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

call build\regression_tests\Release\ospray_test_suite.exe --gtest_output=xml:tests.xml --baseline-dir=%BASELINE_DIR%

exit /B %ERRORLEBEL%

endlocal

Change baseline path for Win to avoid problematic drive letter


@echo off

setlocal enabledelayedexpansion
setlocal enableextensions

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

endlocal
endlocal
:exit
exit /b %ERRORLEVEL%

@echo off

setlocal enabledelayedexpansion
setlocal enableextensions

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

endlocal
endlocal
:exit
exit /b %ERRORLEVEL%

Fix quoting of ES_JAVA_OPTS in plugin script

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


@echo off
"%PROGRAMFILES%\7-Zip\7z" a -tzip "AITD-tools.zip" ^
 ".\CacheViewer\CacheViewer\bin\Release\*.exe" ^
 ".\LifeDISA\LifeDISA\bin\Release\*.exe" ^
 ".\LifeDISA\LifeDISA\bin\Release\UnPAK.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\*.exe" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL2.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL2_image.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\Shared.dll" ^
 ".\TrackDISA\TrackDISA\bin\Release\*.exe" ^
 ".\VarsViewer\VarsViewer\bin\Release\*.exe"

@echo off

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\CacheViewer\CacheViewer.sln"
if %ERRORLEVEL% NEQ 0 pause
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\LifeDISA\LifeDISA.sln"
if %ERRORLEVEL% NEQ 0 pause
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\MemoryViewer\MemoryViewer.sln"
if %ERRORLEVEL% NEQ 0 pause
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\TrackDISA\TrackDISA.sln"
if %ERRORLEVEL% NEQ 0 pause
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\VarsViewer\VarsViewer.sln"
if %ERRORLEVEL% NEQ 0 pause

"%PROGRAMFILES%\7-Zip\7z" a -tzip "AITD-tools.zip" ^
 ".\CacheViewer\CacheViewer\bin\Release\*.exe" ^
 ".\LifeDISA\LifeDISA\bin\Release\*.exe" ^
 ".\LifeDISA\LifeDISA\bin\Release\UnPAK.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\*.exe" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL2.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\SDL2_image.dll" ^
 ".\MemoryViewer\MemoryViewer\bin\Release\Shared.dll" ^
 ".\TrackDISA\TrackDISA\bin\Release\*.exe" ^
 ".\VarsViewer\VarsViewer\bin\Release\*.exe" ^
 "-mx=9"
if %ERRORLEVEL% NEQ 0 pause

Call msbuild from build script

Call msbuild from build script


REM First Run the prepare tasks for each task:
REM triggerbuildtask\perpareTriggerBuildTask.bat
REM waitforbuildtask\perpareWaitForBuildTask.bat

REM Don't forget to increase the version!
tfx extension create --manifest-globs .\vss-extension_dev.json

Add script to build dev version

Add script to build dev version


@echo off
setlocal EnableDelayedExpansion

REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued

SET username=%1
SET apikey=%2
SET modules="MediaPlayer" "MediaPlayer-DASH"

FOR %%m in (%modules%) DO (
	gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false
)

@echo off
setlocal EnableDelayedExpansion

REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued

SET username=%1
SET apikey=%2
SET modules="MediaPlayer" "MediaPlayer-DASH"

FOR %%m in (%modules%) DO (
	gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false --configure-on-demand
)

Add gradle --configure-on-demand flag to bintray upload script

Gradle by default configures all projects, even the ones which will not be executed. Because of this, it always asks for the keystore passwords for the demo app, which is a PITA. Adding this flag makes the bintray upload script run without user interaction.


### this file is a sample taken from mongo-c-driver-legacy-build. must be adapted to new driver ####

robocopy ..\bin\Win32\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE
robocopy ..\bin\Win32\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE
robocopy ..\bin\x64\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE
robocopy ..\bin\x64\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE

EXIT /B 0

### this file is a sample taken from mongo-c-driver-legacy-build. must be adapted to new driver ####

robocopy ..\bin\Win32\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE
robocopy ..\bin\Win32\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE
robocopy ..\bin\x64\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE
robocopy ..\bin\x64\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE

EXIT /B 0

Remove copyall in order to copy to network share


pushd NCDK
call :BuildProject NCDK
popd

pushd NCDKDisplay
call :BuildProject NCDK.Display
popd

goto END

:BuildProject

set ProjectName=%1
if "%ProjectName%" == "" exit 1
MSBuild "%ProjectName%.csproj" /t:Build /p:Configuration=Release
nuget pack "%ProjectName%.nuspec" -Prop Configuration=Release -IncludeReferencedProjects
if "%MyNuGetDir%" neq "" (
	xcopy /D /Y "*.nupkg" "%MyNuGetDir%"
	del /Q "*.nupkg"
)
set ProjectName=

exit /b

:END

pushd NCDK
dotnet add package MathNet.Numerics.Signed
dotnet add package dotNetRDF
call :BuildProject NCDK
popd

pushd NCDKDisplay
call :BuildProject NCDK.Display
popd

goto END

:BuildProject

set ProjectName=%1
if "%ProjectName%" == "" exit 1
MSBuild "%ProjectName%.csproj" /t:Build /p:Configuration=Release
nuget pack "%ProjectName%.nuspec" -Prop Configuration=Release -IncludeReferencedProjects
if "%MyNuGetDir%" neq "" (
	xcopy /D /Y "*.nupkg" "%MyNuGetDir%"
	del /Q "*.nupkg"
)
set ProjectName=

exit /b

:END

Add installing NuGet packages to build bat file


set path=%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1\vc11;%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1;%path%

copy packages\oracledart\oracledart_extension.dll packages\oracledart\oracledart_extension_ia32.dll

copy packages\oracledart\oracledart_extension_x64.dll packages\oracledart\oracledart_extension.dll

..\build\ReleaseX64\dart oracledart_test.dart

del packages\oracledart\oracledart_extension.dll

copy packages\oracledart\oracledart_extension_ia32.dll packages\oracledart\oracledart_extension.dll

del packages\oracledart\oracledart_extension_ia32.dll

set path=%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1\vc11;%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1;%path%

copy packages\oracledart\oracledart_extension.dll packages\oracledart\oracledart_extension_ia32.dll

copy packages\oracledart\oracledart_extension_x64.dll packages\oracledart\oracledart_extension.dll

..\build\ReleaseX64\dart oracledart_test.dart
set buildexitcode=%ERRORLEVEL%

del packages\oracledart\oracledart_extension.dll

copy packages\oracledart\oracledart_extension_ia32.dll packages\oracledart\oracledart_extension.dll

del packages\oracledart\oracledart_extension_ia32.dll

exit /b %buildexitcode%

Fix error propagation for windows x64 build script


Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%

If "%1" == "name" (
	Set Output=%Output%_%DecorateName%
	Set Style=%NameStyle%
)

If Not "%2" == "" (
	Set Output=%Output%_%2
	Set Style=%Style% %CSS_%%2%CSSExt%
)

If Not "%3" == "" (
	Set Output=%Output%_%3
	Set Style=%Style% %CSS_%%3%CSSExt%
)

Set HTMLExt=.html
Set HTMLOutput=%Output%%HTMLExt%

Call pandoc ..\source\%Book%.md -o %HTMLOutput% --standalone --toc %Style% --verbose
Call wkhtmltopdf.exe --margin-top 15 --margin-bottom 15 --header-center [section] --header-left [subsection] --header-right [page] --header-line --header-spacing 5 --footer-center "Version 0.1" --footer-line --footer-spacing 5 %HTMLOutput% %Output%.pdf

Set DecorateName=DecorateName
Set Book=mencius
Set FontType=Traditional
Set BookFont=%Book%_%FontType%
Set CSSExt=.css
Set CSS_=--css=..\css\
Set NameStyle=%CSS_%%DecorateName%%CSSExt%
Set Output=%BookFont%

If "%1" == "name" (
	Set Output=%Output%_%DecorateName%
	Set Style=%NameStyle%
)

If Not "%2" == "" (
	Set Output=%Output%_%2
	Set Style=%Style% %CSS_%%2%CSSExt%
)

If Not "%3" == "" (
	Set Output=%Output%_%3
	Set Style=%Style% %CSS_%%3%CSSExt%
)

Set HTMLExt=.html
Set HTMLOutput=%Output%%HTMLExt%

Call pandoc ..\source\%Book%.md -o %HTMLOutput% --standalone --toc %Style% --verbose
Call wkhtmltopdf.exe --margin-top 15 --header-spacing 5 --header-right [subsection] --header-line --margin-bottom 15 --footer-spacing 5 --footer-left "Dujing Academy" --footer-right [page]/[topage] --footer-line --footer-font-size 5 %HTMLOutput% %Output%.pdf

Build header and footer properly

Build header and footer properly


REM # This is for windows users only.
REM # If you're on a mac or linux, just run `ant build` from this folder in Terminal

set MYDIR=%~dp0
set ANT_OPTS=-D"file.encoding=UTF-8"
ant build


copy ..\README.md ..\Output
copy ..\LICENSE ..\Output
copy ..\AUTHORS ..\Output
copy ..\CONTRIBUTORS ..\Output

mkdir ..\Output\lib
mkdir ..\Output\lib\MonoTouch
mkdir ..\Output\lib\MonoAndroid
mkdir ..\Output\lib\Xamarin.iOS10

copy ..\Output\XamarinIOS\OxyPlot.XamarinIOS.??? ..\Output\lib\MonoTouch
copy ..\Output\XamarinAndroid\OxyPlot.XamarinAndroid.??? ..\Output\lib\MonoAndroid
copy ..\Output\Xamarin.iOS\OxyPlot.Xamarin.iOS.??? ..\Output\lib\Xamarin.iOS10

copy ..\Source\OxyPlot.XamarinIOS\*.nuspec ..\Output
copy ..\Source\OxyPlot.XamarinAndroid\*.nuspec ..\Output

nuget pack ..\Output\OxyPlot.XamarinIOS.nuspec -OutputDirectory ..\Output

nuget pack ..\Output\OxyPlot.XamarinAndroid.nuspec -OutputDirectory ..\Output

nuget pack ..\Source\OxyPlot.XamarinForms/OxyPlot.XamarinForms.nuspec -OutputDirectory ../Output
pause

copy ..\README.md ..\Output
copy ..\LICENSE ..\Output
copy ..\AUTHORS ..\Output
copy ..\CONTRIBUTORS ..\Output

mkdir ..\Output\lib
mkdir ..\Output\lib\MonoTouch
mkdir ..\Output\lib\MonoAndroid
mkdir ..\Output\lib\Xamarin.iOS10

copy ..\Output\XamarinIOS\OxyPlot.XamarinIOS.??? ..\Output\lib\MonoTouch
copy ..\Output\XamarinAndroid\OxyPlot.XamarinAndroid.??? ..\Output\lib\MonoAndroid
copy ..\Output\Xamarin.iOS\OxyPlot.Xamarin.iOS.??? ..\Output\lib\Xamarin.iOS10

copy ..\Source\OxyPlot.XamarinIOS\*.nuspec ..\Output
copy ..\Source\OxyPlot.XamarinAndroid\*.nuspec ..\Output

nuget pack ..\Output\OxyPlot.XamarinIOS.nuspec -OutputDirectory ..\Output

nuget pack ..\Output\OxyPlot.XamarinAndroid.nuspec -OutputDirectory ..\Output

nuget pack ..\Source\OxyPlot.XamarinForms/OxyPlot.XamarinForms.nuspec -OutputDirectory ..\Output
pause

Correct output path for nuget pack command


REM This file should be executed from the command line prior to the first
REM build.  It will be necessary to refresh the Eclipse project once the
REM .bat file has been executed (normally just press F5 to refresh).

REM Copies all the required files from their location within the standard
REM FreeRTOS directory structure to under the Eclipse project directory.
REM This permits the Eclipse project to be used in 'managed' mode and without
REM having to setup any linked resources.

REM Have the files already been copied?
IF EXIST FreeRTOS Goto END

	REM Create the required directory structure.
	MD FreeRTOS
	MD FreeRTOS\include
	MD FreeRTOS\portable\GCC\AVR32_UC3
	MD FreeRTOS\portable\MemMang
	MD Common_Demo_Tasks
	MD Common_Demo_Tasks\Minimal
	MD Common_Demo_Tasks\include

	REM Copy the core kernel files.
	copy ..\..\Source\*.* FreeRTOS

	REM Copy the common header files
	copy ..\..\Source\include\*.* FreeRTOS\include

	REM Copy the portable layer files
	copy ..\..\Source\portable\GCC\AVR32_UC3\*.* FreeRTOS\portable\GCC\AVR32_UC3

	REM Copy the basic memory allocation files
	copy ..\..\Source\portable\MemMang\heap_3.c FreeRTOS\portable\MemMang

	REM Copy the files that define the common demo tasks.
	copy ..\common\Minimal\BlockQ.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\comtest.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\death.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\dynamic.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\flash.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\flop.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\integer.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\PollQ.c Common_Demo_Tasks\Minimal
	copy ..\common\Minimal\semtest.c Common_Demo_Tasks\Minimal

	REM Copy the common demo file headers.
	copy ..\common\include\*.* Common_Demo_Tasks\include

: END

Add batch file that generates the local directory structure to allow the new AVR32 UC3 demo to be build using an Eclipse managed make project.

git-svn-id: 43aea61533866f88f23079d48f4f5dc2d5288937@1033 1d2547de-c912-0410-9cb9-b8ca96c0e9e2


cd /d "%~dp0"
cd ..
rmdir /s /q install
rmdir /s /q build
mkdir build
cd build
cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %*
cmake --build . --config Debug
cmake --build . --config RelWithDebInfo

"%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C Debug
"%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C RelWithDebInfo

cmake --build . --config Debug --target INSTALL
cmake --build . --config RelWithDebInfo --target INSTALL

cmake --build . --config RelWithDebInfo --target ogvrPluginKit -- /p:RunCodeAnalysis=True

rem bin\Debug\LoadTest.exe --gtest_output=xml:test_details.Debug.xml
rem bin\RelWithDebInfo\LoadTest.exe --gtest_output=xml:test_details.RelWithDebInfo.xml

pause

cd /d "%~dp0"
cd ..
rmdir /s /q install
rmdir /s /q build
mkdir build
cd build
cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %*
cmake --build . --config Debug
cmake --build . --config RelWithDebInfo

call "%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C Debug
call "%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C RelWithDebInfo

cmake --build . --config Debug --target INSTALL
cmake --build . --config RelWithDebInfo --target INSTALL

cmake --build . --config RelWithDebInfo --target ogvrPluginKit -- /p:RunCodeAnalysis=True

rem bin\Debug\LoadTest.exe --gtest_output=xml:test_details.Debug.xml
rem bin\RelWithDebInfo\LoadTest.exe --gtest_output=xml:test_details.RelWithDebInfo.xml

pause

Call the testing batch files, don't just go there permanently.


set result=0

:top
if "%1" == "" goto :end
echo RUNNING TESTS FOR %1
cd %1 || exit /b 1

if exist tests (
  nosetests -v --nologcapture tests || set result=1 && goto :continue
) else if exist test.py (
  nosetests -v --nologcapture test.py || set result=1 && goto :continue
) else (
  echo Unknown test configuration && set result=1 && goto :continue
)

:continue
cd ..
shift
echo ------------------------------------------
goto :top

:end
exit /b %result%

set result=0

:top
if "%1" == "" goto :end
echo RUNNING TESTS FOR %1
cd %1 || exit /b 1

env set NOSE_PROCESS_RESTARTWORKER=1

if exist tests (
  nosetests -v --nologcapture tests || set result=1 && goto :continue
) else if exist test.py (
  nosetests -v --nologcapture test.py || set result=1 && goto :continue
) else (
  echo Unknown test configuration && set result=1 && goto :continue
)

:continue
cd ..
shift
echo ------------------------------------------
goto :top

:end
exit /b %result%

Set NOSE_PROCESS_RESTARTWORKER for appveyor tests


RMDIR "%~dp0..\Drops" /S /Q
MKDIR "%~dp0..\Drops"
MKDIR "%~dp0..\Drops\Temp"
MKDIR "%~dp0..\Drops\Temp\agent"
MKDIR "%~dp0..\Drops\Temp\agent\bin"

XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp"
XCOPY /E /Y  "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin"
DEL "%~dp0..\Drops\Temp\agent\bin\*.xml"
DEL "%~dp0..\Drops\Temp\agent\bin\*.pdb"

@PowerShell -File %~dp0Create-Zip.ps1 %~dp0..\Drops\Temp\agent\ %~dp0..\Drops\Temp\agent\octopuspuppet-metarunner.zip

DEL "%~dp0..\Drops\Temp\agent\*.xml"
RMDIR "%~dp0..\Drops\Temp\agent\bin" /S /Q

@PowerShell -File "%~dp0Create-Zip.ps1" -target %~dp0..\Drops\Temp\ %~dp0..\Drops\octopuspuppet-metarunner.zip

RMDIR "%~dp0..\Drops\Temp\" /S /Q

RMDIR "%~dp0..\Drops" /S /Q
MKDIR "%~dp0..\Drops"
MKDIR "%~dp0..\Drops\Temp"
MKDIR "%~dp0..\Drops\Temp\agent"
MKDIR "%~dp0..\Drops\Temp\agent\bin"

XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp"
XCOPY /E /Y  "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin"
DEL "%~dp0..\Drops\Temp\agent\bin\*.xml"
DEL "%~dp0..\Drops\Temp\agent\bin\*.pdb"

@PowerShell -File %~dp0Create-Zip.ps1 %~dp0..\Drops\Temp\agent\ %~dp0..\Drops\Temp\agent\octopuspuppet-metarunner.zip

DEL "%~dp0..\Drops\Temp\agent\*.xml"
RMDIR "%~dp0..\Drops\Temp\agent\bin" /S /Q

@PowerShell -File "%~dp0Create-Zip.ps1" -target %~dp0..\Drops\Temp\ %~dp0..\..\octopuspuppet-metarunner.zip

RMDIR "%~dp0..\Drops\Temp\" /S /Q

Move output of teamcity plugin to root directory for easier urls in AppVeyor


@echo off

if exist "C:\Work\D\Vvmn\*" goto deleteDir
echo No existing build directory
goto updateScripts

:deleteDir
echo Delete directory
pushd "C:\Work\D\Vvmn"
for /d %%d in (*.*) do rmdir /s /q "%%d"
del /q *.*
popd

:updateScripts
cd C:\Work\VesselView\Dashboards\VesselView
"C:\Program Files (x86)\Git\bin\git" fetch origin
"C:\Program Files (x86)\Git\bin\git" reset --hard master

:startDashboards
echo Start dashboards
call "C:\Program Files (x86)\CMake 2.8.11.2\bin\ctest.exe" -S C:\Work\VesselView\Dashboards\VesselView\Utilities\Dashboards\VesselView-errai-master-nightly.cmake -V -C Release > C:\Work\VesselView\Dashboards\Logs\VesselView-errai-master-nightly.log 2>&1

@echo off

if exist "C:\Work\D\Vvmn\*" goto deleteDir
echo No existing build directory
goto updateScripts

:deleteDir
echo Delete directory
pushd "C:\Work\D\Vvmn"
for /d %%d in (*.*) do rmdir /s /q "%%d"
del /q *.*
popd

:updateScripts
cd C:\Work\VesselView\Dashboards\VesselView
"C:\Program Files (x86)\Git\bin\git" fetch origin
"C:\Program Files (x86)\Git\bin\git" reset --hard master

:startDashboards
echo Start dashboards
call "C:\Program Files (x86)\CMake 3.0.2\bin\ctest.exe" -S C:\Work\VesselView\Dashboards\VesselView\Utilities\Dashboards\VesselView-errai-master-nightly.cmake -V -C Release > C:\Work\VesselView\Dashboards\Logs\VesselView-errai-master-nightly.log 2>&1

Upgrade Erai to use CMake 3.0.2

Upgrade Erai to use CMake 3.0.2


@ECHO off
@SET LIT_VERSION=1.1.4

IF NOT "x%1" == "x" GOTO :%1

:luvit
IF NOT EXIST lit.exe CALL make.bat lit
ECHO "Building luvit"
lit.exe make
GOTO :end

:lit
ECHO "Building lit"
PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/raw/%LIT_VERSION%/get-lit.ps1'))"
GOTO :end

:test
IF NOT EXIST luvit.exe CALL make.bat luvit
ECHO "Testing luvit"
SET LUVI_APP=.
luvit.exe tests\run.lua
SET "LUVI_APP="
GOTO :end

:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe
IF EXIST lit.exe DEL /F /Q lit.exe

:end

@ECHO off
@SET LIT_VERSION=1.1.8

IF NOT "x%1" == "x" GOTO :%1

:luvit
IF NOT EXIST lit.exe CALL make.bat lit
ECHO "Building luvit"
lit.exe make
GOTO :end

:lit
ECHO "Building lit"
PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/raw/%LIT_VERSION%/get-lit.ps1'))"
GOTO :end

:test
IF NOT EXIST luvit.exe CALL make.bat luvit
ECHO "Testing luvit"
SET LUVI_APP=.
luvit.exe tests\run.lua
SET "LUVI_APP="
GOTO :end

:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe
IF EXIST lit.exe DEL /F /Q lit.exe

:end

Update lit version to fix windows build

Update lit version to fix windows build


@echo off
IF "%1"=="" GOTO USAGE

schtasks /create /tn "DeviceHive - Refresh Device Status" /tr "%CD%\curl.exe %1/cron/RefreshDeviceStatus" /sc minute /mo 5 /ru System
schtasks /create /tn "DeviceHive - Cleanup Database" /tr "%CD%\curl.exe %1/cron/Cleanup" /sc daily /mo 1 /st 04:00 /ru System
GOTO DONE

:USAGE
ECHO Usage: schedule_tasks.bat [API_URL]
ECHO Example: schedule_tasks.bat http://localhost/api

:DONE

@echo off
IF "%1"=="" GOTO USAGE

schtasks /create /tn "DeviceHive - Refresh Device Status" /tr "%~dp0curl.exe %1/cron/RefreshDeviceStatus" /sc minute /mo 5 /ru System
schtasks /create /tn "DeviceHive - Cleanup Database" /tr "%~dp0curl.exe %1/cron/Cleanup" /sc daily /mo 1 /st 04:00 /ru System
GOTO DONE

:USAGE
ECHO Usage: schedule_tasks.bat [API_URL]
ECHO Example: schedule_tasks.bat http://localhost/api

:DONE

Fix directory path in task scheduler script.


@echo off
REM Usage: BloomJade mytemplate.jade --someargument someargument
REM the %~2 %~3 here are just places for optional arguments to get
REM passed through to JADE. If they're missing, no problem.
REM The %~1 is the jade file name.
call jade --pretty %~2 %~3 %~1   >&2
if errorlevel 1 goto :eof
call del %~n1.htm
rename %~n1.html  %~n1.htm
echo Saved as %~n1.htm

Include a jade wrapper that emits an ".htm" file instead of ".html"


@echo off

set fake_args=%*

cd "._fake"
call "paket.bat" "restore"
cd ".."

"._fake\packages\FAKE\tools\FAKE.exe" "build.fsx" %fake_args%

@echo off

set fake_args=%*

cd "._fake"
call "paket.bat" "install"
cd ".."

"._fake\packages\FAKE\tools\FAKE.exe" "build.fsx" %fake_args%

Use paket install instead of paket restore

This way, it doesn't explode on the initial run because a paket.lock
file doesn't exist yet.


set SPECWARE4=C:\Progra~1\Specware4
rem SWPATH needs /s rather than \s so URI parsing works
set SWPATH=/Progra~1/Specware4;/
set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6
rem Set allegro to the version you have
set ALLEGRO=C:\Progra~1\acl62
rem set ALLEGRO=C:\Progra~1\acl61

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%/
cd "%Specware4%"

%XEMACS%\i586-pc-win32\xemacs.exe -debug-init -l "%ALLEGRO%/xeli/fi-site-init" -l "%SPECWARE4%/Library/IO/Emacs/load" -f "run-specware4" &

set SPECWARE4=C:\Progra~1\Specware4
rem SWPATH needs /s rather than \s so URI parsing works
set SWPATH=C:/Progra~1/Specware4;C:/
set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6
rem Set allegro to the version you have
set ALLEGRO=C:\Progra~1\acl62
rem set ALLEGRO=C:\Progra~1\acl61

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%/
cd "%Specware4%"

%XEMACS%\i586-pc-win32\xemacs.exe -debug-init -l "%ALLEGRO%/xeli/fi-site-init" -l "%SPECWARE4%/Library/IO/Emacs/load" -f "run-specware4" &

Improve startup script for windows

Improve startup script for windows

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


@ECHO OFF
TITLE 3RVX Installer Builder
ECHO "   _____ ______     ____  _______   "
ECHO "  |___ /|  _ \ \   / /\ \/ /___ /   "
ECHO "    |_ \| |_) \ \ / /  \  /  |_ \   "
ECHO "   ___) |  _ < \ V /   /  \ ___) |  "
ECHO "  |____/|_| \_\ \_/   /_/\_\____/   "
ECHO "                                    "

ECHO This script will generate a 3RVX installer.
set /p version= "Enter 3RVX Version (X.X): "
ECHO.

ECHO Setting Version: %version%
ECHO.

ECHO Setting PATH...
ECHO ON

set PATH=%PATH%;%WIX%\bin
heat dir ../Release -gg -srd -cg 3RVXComponents -dr INSTALLFOLDER -out 3RVXComponents.wxs
candle -pedantic -dProductVersion=%version%.0.0 ./3RVX.wxs ./3RVXComponents.wxs
light -b ../Release -ext WixUIExtension ./3RVX.wixobj ./3RVXComponents.wixobj -o 3RVX.msi
del 3RVX.wixobj 3RVX.wixpdb 3RVXComponents.wxs 3RVXComponents.wixobj

@PAUSE

@ECHO OFF
TITLE 3RVX Installer Builder
ECHO "   _____ ______     ____  _______   "
ECHO "  |___ /|  _ \ \   / /\ \/ /___ /   "
ECHO "    |_ \| |_) \ \ / /  \  /  |_ \   "
ECHO "   ___) |  _ < \ V /   /  \ ___) |  "
ECHO "  |____/|_| \_\ \_/   /_/\_\____/   "
ECHO "                                    "

ECHO This script will generate a 3RVX installer.
set /p version= "Enter 3RVX Version (X.X): "
ECHO.

ECHO Setting Version: %version%
ECHO.

ECHO Setting PATH...
ECHO ON

set PATH=%PATH%;%WIX%\bin
heat dir ../Release -gg -srd -cg 3RVXComponents -dr INSTALLFOLDER -out 3RVXComponents.wxs
candle -pedantic -dProductVersion=%version%.0.0 ./3RVX.wxs ./3RVXComponents.wxs
light -b ../Release -ext WixUIExtension ./3RVX.wixobj ./3RVXComponents.wixobj -o 3RVX.msi
del 3RVX.wixobj 3RVX.wixpdb 3RVXComponents.wxs 3RVXComponents.wixobj

@ECHO OFF
ECHO.
ECHO.
IF EXIST "7za.exe" (
	ECHO Creating .zip distribution...
	ECHO.
	ECHO ON
	del 3RVX-%version%.zip
	copy "..\Assets\EmptySettings.xml" "..\Release\Settings.xml"
	7za a -tzip -mx9 3RVX-%version%.zip ../Release/*
)

@ECHO OFF
ECHO.

PAUSE

Add support for creating zip distributions to the install script


copy style.css ..\Output\Documentation
copy Images ..\Output\Documentation\Images
..\Tools\Lynx\WikiPad.exe Index.wikiproj

Copy style and images to output in edit documentation script


@if "%config%" == "" set config=Debug

call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
msbuild GitHubVS.sln /p:Configuration=%Config%

@if "%config%" == "" set config=Debug

call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"

@rem Build the GitHub.VisualStudio project / VSIX file
msbuild GitHubVS.sln /p:Configuration=%Config% /t:GitHub_VisualStudio

Build the GitHub.VisualStudio project and VSIX file

This can being the build time from 19s to 13s (on my laptop).


REM @echo off

set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat

%HIDEWINDOW% h

set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255

set PYTHONUNBUFFERED=TRUE

set MYDIRGATE=%MYDIRBLOCK%..\..\..\gateway
if exist "%ICPSETTINGSDIR%/gwblock.pvlist" (
    set GWBLOCK_PVLIST=%ICPSETTINGSDIR%/gwblock.pvlist
) else (
    set GWBLOCK_PVLIST=%MYDIRGATE%\gwblock_dummy.pvlist
)

%PYTHONW% %MYDIRBLOCK%\block_server.py -od %MYDIRBLOCK%..\..\..\iocstartup -sd %MYDIRBLOCK%\schema\ -cd %ICPCONFIGROOT% -pv %GWBLOCK_PVLIST% -f ISIS

REM @echo off

set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat

%HIDEWINDOW% h

set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255

set PYTHONUNBUFFERED=TRUE

set MYDIRGATE=%MYDIRBLOCK%..\..\..\gateway
if exist "%ICPSETTINGSDIR%/gwblock.pvlist" (
    set GWBLOCK_PVLIST=%ICPSETTINGSDIR%/gwblock.pvlist
) else (
    set GWBLOCK_PVLIST=%MYDIRGATE%\gwblock_dummy.pvlist
)

%PYTHONW% %MYDIRBLOCK%\block_server.py -od %MYDIRBLOCK%..\..\..\iocstartup -sd %MYDIRBLOCK%\schema\ -cd %ICPCONFIGROOT% -sd %ICPINSTSCRIPTROOT% -pv %GWBLOCK_PVLIST% -f ISIS

Set up filewatcher on scripts directory

Set up filewatcher on scripts directory


ECHO Get revision number from git
echo // Pre build automatically generated header file> GitRevision.h
REM We use SET/P to do an echo without newline
set /p="#define GITREVISION "                        >> GitRevision.h
REM Count number of commits (relies on Git being installed)
git rev-list HEAD | find /v /c ""                    >> GitRevision.h

ECHO Get revision number from git
echo // Automatically generated header file created by Prebuild.bat > GitRevision.h

REM We use SET/P to do an echo without newline
set /p="#define GITREVISION "                                       >> GitRevision.h

REM Count number of commits (relies on Git being installed somewhere)
IF NOT EXIST "C:\Program Files (x86)\Git\bin\git.exe" goto next1
  "C:\Program Files (x86)\Git\bin\git.exe" rev-list HEAD | find /v /c "" >> GitRevision.h
  goto end
:next1

IF NOT EXIST "C:\Program Files (x86)\SmartGit\git\bin\git.exe" goto next2
  "C:\Program Files (x86)\SmartGit\git\bin\git.exe" rev-list HEAD | find /v /c "" >> GitRevision.h
  goto end
:next2

REM Just try running git and hope it's in the path
  git rev-list HEAD | find /v /c ""                                 >> GitRevision.h

:end

Make prebuild more flexible by trying to find where git is installed


@ECHO OFF

:BEGIN
IF [%1]==[boot] GOTO :BOOT
IF [%1]==[clean] GOTO :CLEAN
IF [%1]==[describe] GOTO :DESCRIBE
IF [%1]==[/?] GOTO :HELP
IF [%1]==[help] GOTO :HELP
IF [%1]==[version] GOTO :VERSION

java --module-path .bach\cache --module com.github.sormuras.bach %*
GOTO :END

:BOOT
jshell https://github.com/sormuras/bach/raw/HEAD/.bach/boot.jsh
GOTO :END

:CLEAN
IF EXIST .bach\workspace rmdir /q/s .bach\workspace
SHIFT
IF [%1]==[] GOTO :END
GOTO :BEGIN

:VERSION
IF [%2]==[] GOTO :DESCRIBE
jshell -R-Dversion=%2 https://github.com/sormuras/bach/raw/HEAD/.bach/pull.jsh
GOTO :END

:DESCRIBE
java --module-path .bach\cache --describe-module com.github.sormuras.bach
GOTO :END

:HELP
ECHO.
ECHO Usage: %0 [action] [args...]
ECHO.
ECHO Where actions include:
ECHO.
ECHO   boot
ECHO     Launch an interactive JShell session with Bach's module on the module-path.
ECHO.
ECHO   describe
ECHO     Describe module com.github.sormuras.bach and exit.
ECHO.
ECHO   version [tag]
ECHO     Download Bach for the specified version tag.
ECHO     Find released version tags at https://github.com/sormuras/bach/releases
ECHO     If no tag is given a description of the current module is printed.
ECHO     Example: %0 version 15-ea+2
ECHO.

:END

Add Bach's DOS launch batch script

Add Bach's DOS launch batch script


echo Running Windows build and testscript  %cd%/matlab/CIBuildAndTest.m
call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('%cd%/matlab/CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);"

if not "%ERRORLEVEL%" == "0" (
    echo Exit Code = %ERRORLEVEL%
	exit /b 1
)

echo Running Windows build and testscript  %cd%/matlab/CIBuildAndTest.m
call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('%cd%\matlab\CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);"

if not "%ERRORLEVEL%" == "0" (
    echo Exit Code = %ERRORLEVEL%
	exit /b 1
)

Fix paths in CI script

Fix paths in CI script


rem === Cleaning existing files from ActionScriptSDK ===
pushd ../../sdks/ActionScriptSDK/PfApiTest/com/playfab
pushd AdminModels
del *.as >nul 2>&1
popd
pushd ClientModels
del *.as >nul 2>&1
popd
pushd MatchmakerModels
del *.as >nul 2>&1
popd
pushd ServerModels
del *.as >nul 2>&1
popd
popd

pushd ..
rem === BUILDING ActionScriptSDK ===
node generate.js ..\API_Specs actionscript=..\sdks\ActionScriptSDK\PfApiTest
popd

Delete model files from AS3 SDK for a cleaner build.

This will fix an issue where AS3-nightly/jenkins is trying to submit files that aren't supposed to be released yet.


REM Configure Jemalloc build with options
CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1 -Ddisable-stats=1 -Ddisable-cache-oblivious=1 ..

REM Configure Jemalloc build with options
CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1  -Dwith-malloc-conf=purge:decay ..

REM Debug build settings
REM CMake -G "Visual Studio 12 Win64" -Denable-debug=1 -Dwith-malloc-conf=junk:true ..

Use the latest experimental build settings.


@echo off
setlocal

set "output=nul"
set "times=1"

goto :parsePackage

:help

:: TODO: put something here.

goto :eof

:usage

call :help 1>&2
exit /b 1

:parsePackage

if "%~1" == "" goto usage
set "package=%~1"
shift

:parseArgs

if "%~1" == "" goto main

if /i %1 == "-?" goto help
if /i %1 == "-h" goto help
if /i %1 == "--help" goto help

if /i %1 == "-t" (
    set "times=%~2"
    shift
)

if /i %1 == "--times" (
    set "times=%~2"
    shift
)

if /i %1 == "-o" (
    set "output=%~2"
    shift
)

if /i %1 == "--output" (
    set "output=%~2"
    shift
)

shift
goto parseArgs

:curl

@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul

goto :eof

:downloadPackage

set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2

goto :eof

:main

for /l %%i in (1, 1, %times%) do (
    call :downloadPackage "%package%" "%output%"
)

@echo off
setlocal

set "output=nul"
set "times=1"

goto :parsePackage

:help

:: TODO: put something here.

goto :eof

:usage

call :help 1>&2
exit /b 1

:parsePackage

if "%~1" == "" goto usage
set "package=%~1"
shift

:parseArgs

if "%~1" == "" goto main

if /i "%~1" == "-?" goto help
if /i "%~1" == "-h" goto help
if /i "%~1" == "--help" goto help

if /i "%~1" == "-t" (
    set "times=%~2"
    shift
)

if /i "%~1" == "--times" (
    set "times=%~2"
    shift
)

if /i "%~1" == "-o" (
    set "output=%~2"
    shift
)

if /i "%~1" == "--output" (
    set "output=%~2"
    shift
)

shift
goto parseArgs

:curl

@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul

goto :eof

:downloadPackage

set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2

goto :eof

:main

for /l %%i in (1, 1, %times%) do (
    call :downloadPackage "%package%" "%output%"
)

Revert "Remove unnecessary uses of "%~1""

This reverts commit 183b1da86ea185455a33914a2ce36b798a6e4a88.


@echo off

:: Arguments check
::if [%~1]==[] (
::    echo.
::    echo ERROR: Not enough Arguments
::    echo USAGE: build.bat [C:\path\to\project]
::    exit /b 1
::)
::set projectPath=%~f1

:: Set .NET 4.6 framework path
set msbuildPath="%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\"

:: Run build command
cd..
%msbuildPath%\msbuild.exe PowerPing.sln /p:configuration=release /p:Platform="x86"
%msbuildPath%\msbuild.exe PowerPing.sln /p:configuration=release /p:Platform="x64"

pause

@echo off

cd "%~dp0"

:: Arguments check
::if [%~1]==[] (
::    echo.
::    echo ERROR: Not enough Arguments
::    echo USAGE: build.bat [C:\path\to\project]
::    exit /b 1
::)
::set projectPath=%~f1

:: Set .NET 4.6 framework path
set windows_msbuild_path="%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\"
set vs_msbuild_path="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\amd64\msbuild.exe"

:: Run build command
cd..
::%windows_msbuild_path%\msbuild.exe PowerPing.sln /p:Configuration=Release /p:Platform="x86"
::%windows_msbuild_path%\msbuild.exe PowerPing.sln /p:Configuration=Release /p:Platform="x64"
%vs_msbuild_path% PowerPing.sln /p:Configuration=Release /p:Platform="x86"
%vs_msbuild_path% PowerPing.sln /p:Configuration=Release /p:Platform="x64"

Switch build script to use visual studio msbuild instead 4.0 msbuild


echo "Running the notebooks..."
jupyter nbconvert --to notebook --execute "Pulse Building Tutorial.ipynb"
jupyter nbconvert --to notebook --execute "Filter compensation.ipynb"
jupyter nbconvert --to notebook --execute "Subsequences.ipynb"
echo "Cleaning up the generated output..."
rm *nbconvert.ipynb

Include the cmd script for notebook execution


gcloud beta emulators datastore start --project=spine --host-port=localhost:8080 --consistency 1.0 --no-store-on-disk

gcloud beta emulators datastore start --project=spine-dev --host-port=localhost:8080 --consistency 1.0 --no-store-on-disk

Set correct default project name during the Windows-based Datastore emulator start.


@echo off
setlocal
set mypath=%~dp0
set PATH=%PATH%;%mypath%\python2.7
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%

REM Create the DB or update it
python.exe -m openquake.server.db.upgrade_manager "%HOMEPATH%\db.sqlite3"

echo Please wait ...
REM Start the DbServer in background but within the same context
start "OpenQuake DB server" /B python.exe -m openquake.server.dbserver

REM Make sure that the dbserver is up and running
call:sleep 5

REM Start the WebUI using django
start "OpenQuake WebUI server" /B python.exe -m openquake.server.manage runserver %*

REM Make sure that the dbserver is up and running
call:sleep 2

REM Start the browser
start http://localhost:8000

endlocal
exit /b 0

:sleep
setlocal
if exist C:\Windows\System32\timeout.exe (
    timeout /t %~1 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n %~1 -w 1000 > NUL
)
endlocal

@echo off
setlocal
set mypath=%~dp0
set PATH=%PATH%;%mypath%\python2.7
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%

echo Please wait ...
REM Start the DbServer in background but within the same context
start "OpenQuake DB server" /B python.exe -m openquake.server.dbserver

REM Make sure that the dbserver is up and running
call:sleep 5

REM Start the WebUI using django
start "OpenQuake WebUI server" /B python.exe -m openquake.server.manage runserver %*

REM Make sure that the dbserver is up and running
call:sleep 2

REM Start the browser
start http://localhost:8000

endlocal
exit /b 0

:sleep
setlocal
if exist C:\Windows\System32\timeout.exe (
    timeout /t %~1 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n %~1 -w 1000 > NUL
)
endlocal

Fix db creation in windows now it'd done by the dbserver and it's under oqdata


svn info c:\dev\sipXtapi | sed -n -e /Revision:/p | cut -c 11-

svn info . | sed -n -e /Revision:/p | cut -c 11-

Tweak to update version -- which will now work regardless of your checkout directory structure.

(update version updates the version in sipXtapi.h with the current repo version).

git-svn-id: 5274dacc98e2a95d0b0452670772bfdffe61ca90@7344 a612230a-c5fa-0310-af8b-88eea846685b


mkdir %SCRIPTS%
echo "hello world" >  %SCRIPTS%\example.txt
set >> %SCRIPTS%\example.txt

echo "Finished" >>  %SCRIPTS%\example.txt

Fix for windows failure in example package


if not exist "C:\Windows\Temp\build-tools.exe" (
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Windows\Temp\build-tools.exe')" <NUL
)

start /wait C:\Windows\Temp\build-tools.exe /Passive /AdminFile A:\buildtools-adminfile.xml

setx PATH "%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x86\signtool.exe" /m

if not exist "C:\Windows\Temp\build-tools.exe" (
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Windows\Temp\build-tools.exe')" <NUL
)

start /wait C:\Windows\Temp\build-tools.exe /Passive /AdminFile A:\buildtools-adminfile.xml

setx PATH "%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x86\" /m

Fix path to use directory

Fix path to use directory


@echo off
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"

mkdir Releases
copy GitMind\bin\Debug\GitMind.exe Releases\GitMindSetup.exe /Y

pause

@echo off
nuget restore
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"

mkdir Releases
copy GitMind\bin\Debug\GitMind.exe Releases\GitMindSetup.exe /Y

pause

Add NuGet restore to batch file

Add NuGet restore to batch file


REM Using the artifacts plugin v1.3 on Windows seems to break the whole step
buildkite-agent artifact download "Bugsnag.unitypackage" .
cd features\scripts
C:\Progra~1\Git\bin\bash.exe build_maze_runner.sh windows
cd ..\fixtures\maze_runner\build
7z a -r Windows-%UNITY_VERSION%.zip Windows

REM Using the artifacts plugin v1.3 on Windows seems to break the whole step
buildkite-agent artifact download "Bugsnag.unitypackage" .
cd features\scripts
C:\Progra~1\Git\bin\bash.exe build_maze_runner.sh windows
IF NOT [%ERRORLEVEL%] EQU [0] EXIT /B %ERRORLEVEL%

cd ..\fixtures\maze_runner\build
7z a -r Windows-%UNITY_VERSION%.zip Windows

Return exit code from batch script if build fails [full ci]


@echo off
title PostgreSQL Portable
cls

:: set default code page
chcp 1252 > nul

:: initialise a new database on first use
if not exist "%PGDATA%" (
	echo.
	echo Initialising database for first use, please wait...
	"%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul
)

:: startup postgres server
echo.
"%PGSQL%\bin\pg_ctl" -D "%PGDATA%" -l "%PGLOG%" -w start
cls
echo.
echo Type \q to quit and shutdown server
echo.
"%PGSQL%\bin\psql.exe" --port=%PGPORT% --dbname="%PGDATABASE%" --username="%PGUSER%"
echo.
"%PGSQL%\bin\pg_ctl" -D "%PGDATA%" stop

@echo off
title PostgreSQL Portable
cls

:: set default code page
chcp 1252 > nul

:: initialise a new database on first use
if not exist "%PGDATA%" (
	echo.
	echo Initialising database for first use, please wait...
	"%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul
)

:: startup postgres server
echo.
"%PGSQL%\bin\pg_ctl" -D "%PGDATA%" -l "%PGLOG%" -w start
cls
echo.
echo Running on port %PGPORT%. Type \q to quit and shutdown the server.
echo.
"%PGSQL%\bin\psql.exe" --port=%PGPORT% --dbname="%PGDATABASE%" --username="%PGUSER%"
echo.
"%PGSQL%\bin\pg_ctl" -D "%PGDATA%" stop

Add port number to server output

Add port number to server output


@echo off
cd %~dp0

SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe

IF EXIST %CACHED_NUGET% goto copynuget
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 '%CACHED_NUGET%'"

:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul

:restore
.nuget\NuGet.exe install FSharpSupport -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install FAKE -ExcludeVersion -o packages

IF "%SKIP_KRE_INSTALL%"=="1" goto run
REM CALL packages\KoreBuild\build\kvm upgrade -svr50 -x86
REM CALL packages\KoreBuild\build\kvm install default -svrc50 -x86

:run
REM Run FAKE
packages\FAKE\tools\Fake.exe build.fsx %*

@echo off
cd %~dp0

SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe

IF EXIST %CACHED_NUGET% goto copynuget
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 '%CACHED_NUGET%'"

:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul
.nuget\NuGet.exe update -self

:restore
.nuget\NuGet.exe install FSharpSupport -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install KoreBuild -ExcludeVersion -o packages -nocache -pre
.nuget\NuGet.exe install FAKE -ExcludeVersion -o packages

IF "%SKIP_KRE_INSTALL%"=="1" goto run
REM CALL packages\KoreBuild\build\kvm upgrade -svr50 -x86
REM CALL packages\KoreBuild\build\kvm install default -svrc50 -x86

:run
REM Run FAKE
packages\FAKE\tools\Fake.exe build.fsx %*

Make sure to update nuget

Make sure to update nuget


:: Symbolically link to all of the dot files in this directory from the
:: home directory.

@echo off

net file >nul 2> nul && goto :Elevated
echo error: Administrator rights are required to make symbolic links on Windows.
exit /b 1

:Elevated
if not defined HOME (
    set HOME=%USERPROFILE%
)

for %%f in (%~dp0.\.*) do (
    if exist %HOME%\%%~nxf (
        del /P %HOME%\%%~nxf
    )
    mklink %HOME%\%%~nxf %%f
)

:: Symbolically link to all of the dot files in this directory from the
:: home directory.

@echo off

net file >nul 2> nul && goto :Elevated
echo error: Administrator rights are required to make symbolic links on Windows.
exit /b 1

:Elevated
if not defined HOME (
    set HOME=%USERPROFILE%
)

setx HOME %HOME%

for %%f in (%~dp0.\.*) do (
    if exist %HOME%\%%~nxf (
        del /P %HOME%\%%~nxf
    )
    mklink %HOME%\%%~nxf %%f
)

Make HOME environment var permanent on Windows


set app_title=WhackEd4
set app_description=A Windows Dehacked editor.

set app_name=WhackEd4
set app_name_lower=whacked4

set app_version=1.2.1
set app_version_value=1.2.1
set app_version_title=1.2.1

set build_path=".\build\exe.win32-2.7"

set python_interpreter="c:\python27\python.exe"
set setup_compiler="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
set zip=7za

rmdir .\build /S /Q
%python_interpreter% setup.py build

del %app_name_lower%-setup-*.exe
%setup_compiler% %app_name_lower%.iss

del %app_name_lower%-*.7z
%zip% a %app_name_lower%-%app_version%.7z %build_path%\* -r -mx=9 -ms=on

pause

set app_title=WhackEd4
set app_description=A Windows Dehacked editor.

set app_name=WhackEd4
set app_name_lower=whacked4

set app_version=1.2.1
set app_version_value=1.2.1
set app_version_title=1.2.1

set build_path=".\build\exe.win32-2.7"

set python_interpreter="c:\python27\python.exe"
set setup_compiler="C:\Program Files (x86)\Inno Setup 5\ISCC.exe"
set zip=7za

rmdir .\build /S /Q
%python_interpreter% setup.py build
rmdir .\build\exe.win32-2.7\wx\tools /S /Q

del %app_name_lower%-setup-*.exe
%setup_compiler% %app_name_lower%.iss

del %app_name_lower%-*.7z
%zip% a %app_name_lower%-%app_version%.7z %build_path%\* -r -mx=9 -ms=on

pause

Reduce installer and package size a little bit by excluding some unneeded wxWidgets files.


"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" ..\Yoga\Yoga.vcxproj /p:configuration=Release /property:Platform=x64
xcopy "..\Yoga\x64\Release\yoga.dll" %~dp0 /s /d /y

"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" ..\Yoga\Yoga.vcxproj /p:configuration=Release /property:Platform=x64
xcopy "..\Yoga\bin\x64\Release\yoga.dll" %~dp0 /s /d /y

Fix dll path in Unity build script

Fix dll path in Unity build script

Summary: sync with vcproj

Reviewed By: emilsjolander

Differential Revision: D4384510

fbshipit-source-id: 964c5b84c063a5241b3aab0f276b2b5a080677aa


@ECHO off

CHCP 65001 > NUL
CD /d "%~dp0"

SETLOCAL ENABLEEXTENSIONS
SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
SET VALUE_NAME=HideFileExt

FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
    SET ValueName=%%A
    SET ValueType=%%B
    SET ValueValue=%%C
)

IF x%ValueValue:0x0=%==x%ValueValue% (
    ECHO Unhiding file extensions...
    START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
)
ENDLOCAL

IF EXIST %SYSTEMROOT%\py.exe (
    CMD /k py.exe -3.5 run.py
    EXIT
)

python --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO nopython

CMD /k python run.py
GOTO end

:nopython
ECHO ERROR: Python has either not been installed or not added to your PATH.

:end
PAUSE

@ECHO off

CHCP 65001 > NUL
CD /d "%~dp0"

SETLOCAL ENABLEEXTENSIONS
SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
SET VALUE_NAME=HideFileExt

FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
    SET ValueName=%%A
    SET ValueType=%%B
    SET ValueValue=%%C
)

IF x%ValueValue:0x0=%==x%ValueValue% (
    ECHO Unhiding file extensions...
    START CMD /c REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
)
ENDLOCAL

IF EXIST %SYSTEMROOT%\py.exe (
    CMD /k %SYSTEMROOT%\py.exe -3.5 run.py
    EXIT
)

python --version > NUL 2>&1
IF %ERRORLEVEL% NEQ 0 GOTO nopython

CMD /k python run.py
GOTO end

:nopython
ECHO ERROR: Python has either not been installed or not added to your PATH.

:end
PAUSE

Use sysroot var in py.exe invoke

Use sysroot var in py.exe invoke

Stupid path issues


:: hard link to all of the dot files in this directory from the
:: home directory.

@echo off

setx HOME %HOME%

for %%f in (%~dp0.\.*) do (
    if exist %HOME%\%%~nxf (
        del /P %HOME%\%%~nxf
    )
    mklink /h %HOME%\%%~nxf %%f
)

:: hard link to all of the dot files in this directory from the
:: home directory.

@echo off

if not defined HOME (
    set HOME=%USERPROFILE%
)

setx HOME %HOME%

for %%f in (%~dp0.\.*) do (
    if exist %HOME%\%%~nxf (
        del /P %HOME%\%%~nxf
    )
    mklink /h %HOME%\%%~nxf %%f
)

Set HOME to USERPROFILE by default

Set HOME to USERPROFILE by default


set ORIGINAL_DIR=%CD%

cd JavaScript\CoreBindings
call RegenerateCoreBindings.cmd
cd %ORIGINAL_DIR%

cd JavaScript\JavaScriptBindings
call RegenerateJavaScriptBindings.cmd
cd %ORIGINAL_DIR%

cd BulletPhysics\BulletPhysicsBindings
call RegenerateBulletPhysicsBindings.cmd
cd %ORIGINAL_DIR%

cd UrhoRenderer\UrhoRendererBindings
call RegenerateUrhoRendererBindings.cmd
cd %ORIGINAL_DIR%

cd TundraLogic\TundraLogicBindings
call RegenerateTundraLogicBindings.cmd
cd %ORIGINAL_DIR%

Add cmd file to regenerate all bindings.


@echo off
setlocal

:: attempt to add defalt Cygwin paths to Windows path
path C:\cygwin\bin;%PATH%
path C:\cygwin64\bin;%PATH%

:: allow Windows new lines in shell scripts with Cygwin
set SHELLOPTS=igncr

:: TODO check and create C:\temp?

set DBNAME=%1
bash or_tests.bash %DBNAME%

endlocal

Add simple wrapper batch file for Windows

Still requires Cygwin (or alternative) bash.