@ECHO OFF
REM $Id$

REM Bat script building libHDF5 dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se
REM Date:   2015-07-06

set dirname=hdf5

REM Automatic code starts here

echo.
echo ======================
echo Building 64-bit version of FMILibrary
echo ======================
set OLDPATH=%PATH%
call setHopsanBuildPaths.bat
REM We don want msys in the path so we have to set it manually
set PATH=%mingw_path%;%cmake_path%;%OLDPATH%
cd %dirname%
mkdir build
cd build
cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DCMAKE_INSTALL_PREFIX="../install" ../
mingw32-make.exe -j4
mingw32-make.exe install
echo.
echo Done
pause

@ECHO OFF
REM $Id$

REM Bat script building libHDF5 dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se
REM Date:   2015-07-06

set dirname=hdf5

REM Automatic code starts here

echo.
echo ======================
echo Building the HDF5 library and tools
echo ======================
set OLDPATH=%PATH%
call setHopsanBuildPaths.bat
REM We don want msys in the path so we have to set it manually
set PATH=%mingw_path%;%cmake_path%;%OLDPATH%
cd %dirname%
mkdir hopsanbuild
cd hopsanbuild
cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DBUILD_TESTING=OFF -DHDF5_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX="../install" ../
REM DO NOT enable multi-core build (make -j4), we must build sequentially
mingw32-make.exe
mingw32-make.exe install
cd ..
echo.
echo Done
pause

Enable hdf5 1_8_18 to build by turning of tests, examples and multi-core build


mkdir build
#mkdir 3rdparty\build
Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
#Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T
IF %ERRORLEVEL% LSS 8 goto build
goto :eof

:build
exit 0

mkdir build
REM mkdir 3rdparty\build
Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
REM Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T
IF %ERRORLEVEL% LSS 8 goto build
goto :eof

:build
exit 0

Correct mistake in windows bat file

Correct mistake in windows bat file


@ECHO OFF
msbuild /v:m /m /nologo dirs.proj /t:Rebuild

FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO (
	CALL :Pack "%%A"
)

GOTO :EOF

:Pack

"NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~dp0..\bin\Debug\AnyCPU\%~n1"

@ECHO OFF
msbuild /v:m /m /nologo dirs.proj /t:Rebuild

FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO (
	CALL :Pack "%%A" "%~dp0.."
)

GOTO :EOF

:Pack

"NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~f2\bin\Debug\AnyCPU\%~n1"

Fix issue where CBT.NuGet.dll wasn't included in package because BinDir contained .."


cd %RECIPE_DIR%\..
%PYTHON% make_version.py
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

cd %RECIPE_DIR%\..
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

Remove make_version from windows' recipe


REM Execute the test suite for Microsoft Visual Studio
REM
REM Load Micosoft Visual Studio environement file.
IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" (
    call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
)
IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" (
    call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
)

REM Remove previous results
DEL *.log *.dat

REM List the expected failure
set "expectedFailure=test-msnapshot.c"

REM Perform for each test
for %%f in (test-*.c) do (
    echo Testing %%f
    REM Copy the test file as a C++ file as CL.EXE only support C++ file
    copy %%f test.cpp
    if ERRORLEVEL 1 EXIT /B 1
    REM Compile the test suite
    REM /experimental:preprocessor is mandatory to have a compliant preprocessor
    REM /Zc:__cplusplus is needed to report the real value of __cplusplus, so that M*LIB uses the C++ atomic, and not its emulation.
    cl.exe /I.. /O2 /std:c++14 /Zc:__cplusplus /experimental:preprocessor test.cpp > %%f.log 2>&1
    if ERRORLEVEL 1 (
        type %%f.log
        echo BUILD ERROR for %%f
        if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1
        )
    REM Execute it
    test.exe >> %%f.log 2>&1
    if ERRORLEVEL 1 (
        type %%f.log
        echo RUN ERROR for %%f
        if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1
    )
    type %%f.log
)
exit /B 0

Add script to launch the test suite with VC++


@ECHO off

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

GOTO :tiny

:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild
GOTO :build

:tiny
ECHO "Building tiny"
cmake -H. -Bbuild
GOTO :build

:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end

:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end

:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end

:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..

:end

@ECHO off

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

GOTO :tiny

:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild -G"Visual Studio 12 2013 Win64"
GOTO :build

:tiny
ECHO "Building tiny"
cmake -H. -Bbuild -G"Visual Studio 12 2013 Win64"
GOTO :build

:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end

:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end

:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end

:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..

:end

Use 64-bit build for windows (assuming community or pro edition)


@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)

set nuget=
if "%nuget%" == "" (
set nuget=nuget
)

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

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

%nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"

@echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)

set nuget=
if "%nuget%" == "" (
set nuget=nuget
)

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

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

%nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -OutputDirectory Build -Version %version% -p Configuration="%config%"

Update bat file by new NuGet version

Update bat file by new NuGet version


md assets\Data
xcopy ..\Bin\Data\*.* assets\Data /S /E /C /Y
md assets\CoreData
xcopy ..\Bin\CoreData\*.* assets\CoreData /S /E /C /Y
rd /S /Q assets\CoreData\Shaders\HLSL

Delete HLSL directory when copying Android assets.


:: Packs and installs the extension, nodejs extension rebuild is done automatically
:: on jupyterlab startup, when the new extension is detected or was removed
CALL "%PREFIX%\Scripts\jupyter-labextension" install . --no-build || EXIT /B 1

:: Shared file not to be included.
del /Q "%PREFIX%\share\jupyter\lab\settings\build_config.json" || EXIT /B 1
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%

Add windows build batch file

Add windows build batch file


@echo off

@set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@"

@endlocal & (
    @set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH%

    @REM Run any activate scripts
    @if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" (
        @pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d"
        @for %%g in (*.bat) do @call "%%g"
        @popd
    )
)

%*

@echo off

@REM This script was based on the original conda activate.bat

@setlocal

@set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@"
@set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH%

@REM Run any activate scripts
@if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" (
    @pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d"
    @for %%g in (*.bat) do @call "%%g"
    @popd
)

@REM Execute the given command
%*

@endlocal

Fix conda wrapper for Windows

Fix conda wrapper for Windows


Remove inclusion db3-3-11.jar in the classpath

git-svn-id: 227c23bb629cf7bef445105b977924772e49ae4f@1111499 13f79535-47bb-0310-9956-ffa450edef68


c:\python25\python.exe setup.py bdist_wininst
c:\python25\python.exe setup.py sdist --formats=gztar,zip
copy dist\*.* \\ironpaw\pub\jasons\arcrest
copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\
hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt

c:\python25\python.exe setup.py bdist_wininst
c:\python25\python.exe setup.py sdist --formats=gztar,zip
copy dist\*.* \\ironpaw\pub\jasons\arcrest
copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\
copy tests.py \\ironpaw\pub\jasons\arcrest\tests.py
hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt

Copy tests to ironpaw too

Copy tests to ironpaw too


@echo off

:Build
cls
if not exist tools\FAKE.Core\tools\Fake.exe (
	"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease"
)

SET TARGET="Default"

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

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

"tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%"

rem Bail if we're running a TeamCity build.
if defined TEAMCITY_PROJECT_NAME goto Quit

rem Bail if we're running a MyGet build.
if /i "%BuildRunner%"=="MyGet" goto Quit

rem Loop the build script.
set CHOICE=nothing
echo (Q)uit, (Enter) runs the build again
set /P CHOICE=
if /i "%CHOICE%"=="Q" goto :Quit

GOTO Build

:Quit
exit /b %errorlevel%

@echo off

SET MinimalFAKEVersion=639
SET FAKEVersion=1
cls

if exist tools\FAKE.Core\tools\PatchVersion.txt (
    FOR /F "tokens=*" %%i in (tools\FAKE.Core\tools\PatchVersion.txt) DO (SET FAKEVersion=%%i)
)

if %MinimalFAKEVersion% lss %FAKEVersion% goto Build
if %MinimalFAKEVersion%==%FAKEVersion% goto Build

"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease"

:Build
cls

SET TARGET="Default"

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

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

"tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%"

rem Bail if we're running a TeamCity build.
if defined TEAMCITY_PROJECT_NAME goto Quit

rem Bail if we're running a MyGet build.
if /i "%BuildRunner%"=="MyGet" goto Quit

rem Loop the build script.
set CHOICE=nothing
echo (Q)uit, (Enter) runs the build again
set /P CHOICE=
if /i "%CHOICE%"=="Q" goto :Quit

GOTO Build

:Quit
exit /b %errorlevel%

Check if we are already on the minimal FAKE version - otherwise patch it.


@echo off
if "%OS%" == "Windows_NT" setlocal

if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home

set JAVA=%JAVA_HOME%\bin\java

set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar

set CLASSPATH=%LIBDIR%\vt-dictionary-3.0-SNAPSHOT.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR%

call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %*
goto end

:no_vtpass_home
echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path.
goto end

:no_java_home
echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path.

:end

@echo off
if "%OS%" == "Windows_NT" setlocal

if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home

set JAVA=%JAVA_HOME%\bin\java

set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set LIBDIR=%VTPASS_HOME%\lib

set CLASSPATH=%LIBDIR%\vt-dictionary-3.0.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR%

call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %*
goto end

:no_vtpass_home
echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path.
goto end

:no_java_home
echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path.

:end

Update script for latest vt-dictionary.

Update script for latest vt-dictionary.


@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1

REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"

java -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1

GOTO End1

:No1
  ECHO Missing Config file
GOTO End1

:End1
@ECHO ON

@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1

REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"

"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1

GOTO End1

:No1
  ECHO Missing Config file
GOTO End1

:End1
@ECHO ON

Use JAVA_HOME for schema creation

Use JAVA_HOME for schema creation


@echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
REM call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86
set DXROOT=C:\Program Files\Sandcastle
%~dp0\External\nant\bin\nant %*

@echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86
set DXROOT=C:\Program Files\Sandcastle
%~dp0\External\nant\bin\nant %*

[Build] Switch to Visual Studio 2012 for build release


git checkout gh-pages
git merge master
npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench
git commit -a -m "Update" && git push || git checkout master

git checkout gh-pages
git merge master
npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/taxon mol/app/users
git commit -a -m "Update" && git push || git checkout master

Build more apps on deploy.

Build more apps on deploy.


::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>

::Set the path below as you need and then run this bat to copy the files and make them debuggeable
SET KSPPATH=C:\work\builds\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
SET KSPPATH2=C:\work\builds\Kerbal Space Program2

::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>

::Set the path below as you need and then run this bat to copy the files and make them debuggeable
::SET KSPPATH=C:\work\builds\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
::SET KSPPATH2=C:\work\builds\Kerbal Space Program2

Use the default directories for KSP in the master branch's batch files.


"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jsBezier-0.6-min.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js

echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause

"C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js

echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause

Remove another jsBeizer reference as we weren't using it


REM This assumes that libutil.a has been previously build with cmake and is
REM available in ..\build

del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj

swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i

REM set USE_PRMAN=1
REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build\

set USE_DELIGHT=1
set RUBY_VERSION=180
ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build\

nmake clean all

REM This assumes that libutil.a has been previously build with cmake and is
REM available in ..\build

del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj

swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i

REM set USE_PRMAN=1
REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils

set USE_DELIGHT=1
set RUBY_VERSION=180
ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils

nmake all

Build using utils library being build with CMake


rmdir /s /q build
del vapoursynth.*.pyd
"C:\Program Files (x86)\Python 3.5\python.exe" setup.py build_ext --inplace
"C:\Program Files\Python 3.5\python.exe" setup.py build_ext --inplace
pause

Make cython always rebuild modules on windows


setlocal enableextensions

if "%PY_VER%" == "3.4" (
    set MSVC_VER="10.0"
) else (
    if "%PY_VER%" == "3.5" (
        set MSVC_VER="14.0"
    ) else (
        set MSVC_VER="9.0"
    )
)

set EXTRA_ARGS=""
if %ARCH% EQU 64 (
	set EXTRA_ARGS="address-model=64"
)

python -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt
set /p PYTHON_INCLUDE_DIR=<temp.txt

call bootstrap.bat

bjam.exe --debug-configuration ^
         --user-config="%RECIPE_DIR%/user-config-win.jam" ^
		 -sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^
		 -sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^
		 link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage

robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL
robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL

exit 0

setlocal enableextensions

if "%PY_VER%" == "3.4" (
    set MSVC_VER="10.0"
) else (
    if "%PY_VER%" == "3.5" (
        set MSVC_VER="14.0"
    ) else (
        set MSVC_VER="9.0"
    )
)

set EXTRA_ARGS=""
if %ARCH% EQU 64 (
	set EXTRA_ARGS="address-model=64"
)

%PYTHON% -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt
set /p PYTHON_INCLUDE_DIR=<temp.txt

call bootstrap.bat

bjam.exe --debug-configuration ^
         --user-config="%RECIPE_DIR%/user-config-win.jam" ^
		 -sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^
		 -sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^
		 link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage

robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL
robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL

exit 0

Use conda Python rather than system

Use conda Python rather than system


@echo off

REM  Reference: http://www.wilsonmar.com/1envvars.htm
set home=%USERPROFILE%

copy /Y .\dist\ctags_lang %home%\.ctags
copy /Y .vimrc %home%\.vimrc
copy /Y .vimrc.plugins %home%\.vimrc.plugins
copy /Y .vimrc.local %home%\.vimrc.local
copy /Y .vimrc.plugins.local %home%\.vimrc.plugins.local
rmdir /S /Q %home%\.vim
xcopy /Y /E vimfiles %home%\.vim\

@echo on

@echo off

REM  Reference: http://www.wilsonmar.com/1envvars.htm
set home=%USERPROFILE%

copy /Y .\dist\ctags_lang "%home%\.ctags"
copy /Y .vimrc "%home%\.vimrc"
copy /Y .vimrc.plugins "%home%\.vimrc.plugins"
copy /Y .vimrc.local "%home%\.vimrc.local"
copy /Y .vimrc.plugins.local "%home%\.vimrc.plugins.local"
rmdir /S /Q "%home%\.vim"
xcopy /Y /E vimfiles "%home%\.vim\"

@echo on

Add quotation mark to windows path

Add quotation mark to windows path

In case the user's name contains space, the command to
replace the vimrc will fail. Adding quotation mark will
fix this issue

Signed-off-by: Zhenfang Wei <463949f2109b72a1c21e4b94cb6d47e3b151eabc@gmail.com>


:: Checks if there is already a connection established
db2 connect
if %ERRORLEVEL% EQU 0 (
 goto version
) else (
 echo Please connect to a database before the execution of the installation.
 goto exit
)

:version
:: Checks in which DB2 version the utility will be installed.
:: DB2 v10.1 is the default version.
if "%1" EQU "" goto v10.1
if /I "%1" EQU "-v10.1" goto v10.1
if /I "%1" EQU "-v9.7" goto v9.7

:: DB2 v10.1.
:v10.1
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER.sql
db2 -td@ -f Trigger.sql
goto exit

:: DB2 v9.7
:v9.7
echo Installing application for DB2 v9.7
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER_v9_7.sql
db2 -td@ -f Trigger.sql
goto exit

:exit

Install checks for a connection

Install checks for a connection


cd lib\spotify-json
git submodule update --init
rmdir build32 /S /Q
mkdir build32
cd build32
cmake .. -DBoost_NO_BOOST_CMAKE=TRUE ^
         -DBOOST_ROOT=..\..\..\packages\boost.1.62.0.0\lib\native
cmake --build . --config Debug
cmake --build . --config Release
cd ..\..\..

Add batch file to autobuild spotify-json

And leave the .lib files in a directory that agrees with
spotify-json.props


@echo off
setlocal

echo ====================
echo  TWC -- Build Batch
echo ====================
echo.

set DEFINES=
set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204
set LIBS= libcurl.lib

IF NOT EXIST build mkdir build
pushd build

cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2
call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c

cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c

IF NOT EXIST win64 mkdir win64
lib /nologo twitter.obj /out:win64/libtwc.lib

:: IF NOT EXIST win32 mkdir win32
:: lib /nologo twitter.obj /out:win32/libtwc.lib

cp ../code/twitter_api.h ../code/twitter.h ../code/types.h ../include
cp win64/libtwc.lib ../lib/win64/libtwc.lib

popd

@echo off
setlocal

echo ====================
echo  TWC -- Build Batch
echo ====================
echo.

set DEFINES=
set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204
set LIBS= libcurl.lib

IF NOT EXIST build mkdir build
pushd build

cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2
call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c

cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c

IF NOT EXIST win64 mkdir win64
lib /nologo twitter.obj /out:win64/libtwc.lib

:: IF NOT EXIST win32 mkdir win32
:: lib /nologo twitter.obj /out:win32/libtwc.lib

xcopy ..\code\twitter_api.h ..\code\twitter.h ..\code\types.h ..\include
xcopy win64\libtwc.lib ..\lib\win64\libtwc.lib

popd

Use xcopy instead of cp

Use xcopy instead of cp


@mkdir .shake 2> nul

@set ghcArgs=--make            ^
             -Wall             ^
             src/Main.hs       ^
             -isrc             ^
             -rtsopts          ^
             -with-rtsopts=-I0 ^
             -outputdir=.shake ^
             -j                ^
             -O                ^
             -o .shake/build

@set shakeArgs=--lint      ^
               --directory ^
               ".."        ^
               %*

@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
@set GHC_PACKAGE_PATH=

@ghc %ghcArgs% && .shake\build %shakeArgs%

@mkdir .shake 2> nul

@set ghcArgs=--make            ^
             -Wall             ^
             src/Main.hs       ^
             -isrc             ^
             -rtsopts          ^
             -with-rtsopts=-I0 ^
             -outputdir=.shake ^
             -j                ^
             -O                ^
             -o .shake/build

@set shakeArgs=--lint      ^
               --directory ^
               ".."        ^
               %*

@ghc %ghcArgs%

@if %ERRORLEVEL% EQU 0 (
    @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
    @set GHC_PACKAGE_PATH=
    @.shake\build %shakeArgs%
)

Reset GHC_PACKAGE_PATH varialbe (5th try).

See #110.


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

Add a DOS .bat script to run CI build

Add a DOS .bat script to run CI build


@echo off
if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1
for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf =^> %%i)

@echo off
if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1
for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf -^> %%i)

Change arrow to match original.

Change arrow to match original.


@echo off
setlocal

Rem ----- set the current working dir as the PROJECT_HOME variable  ----
call "%FORREST_HOME%\bin\setpwdvar.bat"
set PROJECT_HOME="%PWD%"

Rem ----- use the location of this script to infer $FORREST_HOME -------
set FORREST_HOME=%~dp0\..

Rem ----- set the ant file to use --------------------------------------
set ANTFILE="%FORREST_HOME%\forrest.build.xml"

Rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME="%FORREST_HOME%\ant"

echo "Apache Forrest.  Run 'forrest -projecthelp' to list options"
echo

Rem ----- call ant.. ---------------------------------------------------
call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9

Rem ---- Restore old ANT_HOME
set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%

endlocal

@echo off
setlocal

Rem ----- set the current working dir as the PROJECT_HOME variable  ----
call "%FORREST_HOME%\bin\setpwdvar.bat"
set PROJECT_HOME="%PWD%"

Rem ----- use the location of this script to infer $FORREST_HOME -------
set FORREST_HOME=%~dp0\..

Rem ----- set the ant file to use --------------------------------------
set ANTFILE="%FORREST_HOME%\forrest.build.xml"

Rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME="%FORREST_HOME%\ant"

echo "Apache Forrest.  Run 'forrest -projecthelp' to list options"

Rem ----- call ant.. ---------------------------------------------------
call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9

Rem ---- Restore old ANT_HOME
set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%

endlocal

Stop script breaking on XP.  Thanks to Chanshin Lee

git-svn-id: fea306228a0c821168c534b698c8fa2a33280b3b@7564 13f79535-47bb-0310-9956-ffa450edef68


PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html

cd ..

PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html

cd ..

Remove w9xopen.exe and add README.txt to Windows build


PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html

cd ..

Add release tool for windows

Add release tool for windows


/* REXX script to get the svn revision and display it. */
Trace o
fn = 'SVN.REV'
Address System 'svnversion . | rxqueue > nul:'
/* default version to 0, if svnversion doesn't exist or no .svn here */
ver = 0
If Queued() \= 0 Then
   Do
      /* Using PARSE PULL preserves case */
      /* If it is a double value get the first value only */
      Parse Pull sval ver ':' .
      If Strip( ver ) = '' Then ver = sval
      If ver = 'exported' Then ver = 0
      If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 )
   End
Call Stream fn, 'C', 'OPEN'
Call Lineout fn,'VERREV='ver
Call Stream fn, 'C', 'CLOSE'
Exit 0

/* REXX script to get the svn revision and display it. */
Trace o
fn = 'SVN.REV'
'svnversion . | rxqueue > nul:'
/* default version to 0, if svnversion doesn't exist or no .svn here */
ver = 0
If Queued() \= 0 Then
   Do
      /* Using PARSE PULL preserves case */
      /* If it is a double value get the first value only */
      Parse Pull sval ver ':' .
      If Strip( ver ) = '' Then ver = sval
      If ver = 'exported' Then ver = 0
      If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 )
   End
Call Stream fn, 'C', 'OPEN'
Call Lineout fn,'VERREV='ver
Call Stream fn, 'C', 'CLOSE'
Exit 0

Address Sysem isn't working for me in the REXX script on OS/2. Also the line endings were not being interpretted by CMD.EXE.


@echo off
setlocal

call before-branch.bat

echo.
echo.
:: crate new feature branch locally
echo Create new Feature branch locally
SET /P feature_branch_name="Please enter the name of the feature branch: feature-"
SET /P feature_version="Please enter the version of the feature:"
git checkout -b feature-%feature_branch_name% develop

echo.
echo.
:: increase version on feature branch
echo Increasing version of feature branch
call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true

echo.
echo.
echo Commiting update POM Files
:: commit the pom file with the updated version
git commit -m "changing feature version to new version" *pom.xml
echo ... done

echo.
echo.
:: publish the feature branch to github, so that everybody sees it
echo Pushing Feature branch to Github
SET /P confirm="Should the feature branch be pushed to gitgub [y/n]"
IF "%confirm%" == "y" git push origin feature-%feature_branch_name%
endlocal

:exit
echo Feature Branch batch job ended

@echo off
setlocal

call script\before-branch.bat

echo.
echo.
:: crate new feature branch locally
echo Create new Feature branch locally
SET /P feature_branch_name="Please enter the name of the feature branch: feature-"
SET /P feature_version="Please enter the version of the feature:"
git checkout -b feature-%feature_branch_name% develop

echo.
echo.
:: increase version on feature branch
echo Increasing version of feature branch
call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true

echo.
echo.
echo Commiting update POM Files
:: commit the pom file with the updated version
git commit -m "changing feature version to new version" *pom.xml
echo ... done

echo.
echo.
:: publish the feature branch to github, so that everybody sees it
echo Pushing Feature branch to Github
SET /P confirm="Should the feature branch be pushed to gitgub [y/n]"
IF "%confirm%" == "y" git push origin feature-%feature_branch_name%
endlocal

:exit
echo Feature Branch batch job ended

Update of script on dev branch

Update of script on dev branch


@echo off

rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1
rem It has some key differences for use in Windows CI for TP5+
rem - Daemon is NOT debug
rem - Daemon is renamed to dockernssm.exe to spot easily in task manager
rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines
rem - TEMP and TMP are redirected to d:\temp (SSD drive)

if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" (
    set TEMP=d:\temp
    set TMP=d:\temp
    mkdir d:\temp > nul 2>&1

    if exist d:\nssmdaemon (goto :runproduction)
    mkdir d:\nssmdaemon

    :runproduction
    copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y
    nssmdockerd --graph=d:\nssmdaemon --pidfile=d:\nssmdaemon\daemon.pid
) ELSE (
    if exist c:\nssmdaemon (goto :runlocal)
    mkdir c:\nssmdaemon

    :runlocal
    copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y
    nssmdockerd --graph=c:\nssmdaemon --pidfile=c:\nssmdaemon\daemon.pid
)

@echo off

rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1
rem It has some key differences for use in Windows CI for TP5+
rem - Daemon is NOT debug
rem - Daemon is renamed to dockernssm.exe to spot easily in task manager
rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines
rem - TEMP and TMP are redirected to d:\temp (SSD drive)

if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" (
    set TEMP=d:\temp
    set TMP=d:\temp
    mkdir d:\temp > nul 2>&1

    if exist d:\control (goto :runproduction)
    mkdir d:\control

    :runproduction
    copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y
    nssmdockerd --graph=d:\control --pidfile=d:\control\daemon.pid
) ELSE (
    if exist c:\control (goto :runlocal)
    mkdir c:\control

    :runlocal
    copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y
    nssmdockerd --graph=c:\control --pidfile=c:\control\daemon.pid
)

Move nssm to \control so only one docker load

Signed-off-by: John Howard <50ae662f5fcde39b7d1ed786133b7c61a25411dd@microsoft.com>


Embed EXE files inside a Batch script

Embed EXE files inside a Batch script


@echo off
cls
:start
echo Starting server...

"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.62" -password "" -tcpLobby "149.202.51.185" 25565

echo.
echo Restarting server...
echo.
goto start

@echo off
cls
:start
echo Starting server...

"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.63" -password "" -tcpLobby "149.202.51.185" 25565

echo.
echo Restarting server...
echo.
goto start

Patch for version 0.63 update

[Nomad] Patch for version 0.63 update


@echo off
cls
:start
echo Starting server...

"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.70" -password "" -tcpLobby "149.202.51.185" 25565

echo.
echo Restarting server...
echo.
goto start

@echo off
cls
:start
echo Starting server...

"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.71" -password "" -tcpLobby "149.202.51.185" 25565

echo.
echo Restarting server...
echo.
goto start

Patch for version 0.71 update

[Nomad] Patch for version 0.71 update


@echo off

REM Capture parameters
set ScriptDir=%~dp0
set SolutionDir=%~1
set AssemblyName=%~2

set NuGetCommand=%ScriptDir%NuGet.exe
set VersionInfoCommand=%ScriptDir%VersionInfo.vbs
set output=%SolutionDir%Output
set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec
set nuget_folder=%SolutionDir%.nuget\%AssemblyName%

if not exist %nuget_nuspec% (
    echo The nuspec file could not be found at: %nuget_nuspec%
    EXIT /B 1
)

for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i

mkdir "%nuget_folder%" > nul 2>&1
del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1
copy "%nuget_nuspec%" "%nuget_folder%" > nul

REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output%
%NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output%

rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1

@echo off

REM Capture parameters
set ScriptDir=%~dp0
set SolutionDir=%~1
set AssemblyName=%~2

set NuGetCommand=%ScriptDir%NuGet.exe
set VersionInfoCommand=%ScriptDir%VersionInfo.vbs
set output=%SolutionDir%Output
set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec
set nuget_folder=%SolutionDir%.nuget\%AssemblyName%

if not exist %nuget_nuspec% (
    echo The nuspec file could not be found at: %nuget_nuspec%
    EXIT /B 1
)

for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i

mkdir "%nuget_folder%" > nul 2>&1
del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1
copy "%nuget_nuspec%" "%nuget_folder%" > nul

%NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output%
REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output%

rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1

Change to pack with and without symbols

Change to pack with and without symbols


set PYTHON=C:\Python27\python
set EASY_INSTALL=c:\python27\scripts\easy_install.exe
set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\"
set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH%

cd %WORKSPACE%
%PYTHON% check_packages.py

cd %WORKSPACE%
python setup.py build -cmingw32

cd %WORKSPACE%
python setup.py docs

cd %WORKSPACE%
python setup.py bdist_egg --skip-build

cd %WORKSPACE%\test
%PYTHON% utest_sasview.py

cd %WORKSPACE%
mkdir sasview-install
set PYTHONPATH=%WORKSPACE%\sasview-install;%PYTHONPATH%

cd %WORKSPACE%
cd dist
%EASY_INSTALL% -d ..\sasview-install sasview-3.1.2-py2.7-win32.egg

cd %WORKSPACE%\sasview
python setup_exe.py py2exe
python installer_generator.py
"C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer.iss

cd Output
xcopy setupSasView.exe %WORKSPACE%\dist

cd  %WORKSPACE%

Add new windows build script

Add new windows build script


git clone https://github.com/Vasar007/TIMLE.git
cd SFML

mkdir install
mkdir build
cd build

cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE

msbuild INSTALL.vcxproj

cd ../../
git clone https://github.com/Vasar007/TIMLE.git
cd TIMLE

mkdir build
mkdir build/TIMLE

cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install

git clone https://github.com/SFML/SFML.git
cd SFML

mkdir install
mkdir build
cd build

cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE

msbuild INSTALL.vcxproj

cd ../../
git clone https://github.com/Vasar007/TIMLE.git
cd TIMLE

mkdir build
mkdir build/TIMLE

cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install

Fix clone command for appveyor

Fix clone command for appveyor


call activate cate
cate ds make_local esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.1-0.r1 CLOUD_2007 2007
cate ds make_local esacci.OZONE.mon.L3.NP.multi-sensor.multi-platform.MERGED.fv0002.r1 OZONE_2007 2007
mkdir uc09
cd uc09
cate ws init
cate res open cloud local.CLOUD_2007
cate res open ozone local.OZONE_2007
cate res set cloud_sub subset_spatial ds=cloud region=0,30,10,40
cate res set ozone_sub subset_spatial ds=ozone region=0,30,10,40
cate res set cloud_res coregister ds_master=ozone_sub ds_slave=cloud_sub
cate ws save
cate ws close
cd ..

Use case 9 script for Windows.

Use case 9 script for Windows.


@echo off
setlocal

if [%1]==[] goto usage

set _pyrepo=%1
if not exist "%_pyrepo%\Lib" (
    echo "%_pyrepo% does not look like a CPython repo (no Lib directory)."
    goto :fail
)

for /f %%I in ('hg -R "%_pyrepo%" id -i') do set _hgrev=%%I
set _stdlibdir=%~dp0
pushd "%_stdlibdir%"

git diff-index --quiet HEAD
if "%ERRORLEVEL%" NEQ "0" (
    echo "There are uncomitted changes. Commit or stash before proceeding."
    goto :fail
)

for /f %%I in ('git rev-parse --abbrev-ref HEAD') do set _curbranch=%%I
if "%_curbranch%" NEQ "python-stdlib" (
    echo "This should only be run on the python-stdlib branch (on %_curbranch%)."
    goto :fail
)

robocopy "%_pyrepo%\Lib" "%_stdlibdir%Lib" /MIR /R:1 /W:1 /XD plat-*

git update-index --refresh -q > NUL
git add -A "%_stdlibdir%/Lib"
git diff-index --quiet HEAD

if "%ERRORLEVEL%" EQU "0" (
    echo "No changes found."
) else (
    git commit -am "Import python stdlib @ %_hgrev%"
)

goto :exit

:usage
echo %~n0 ^<path^\to^\cpython^>
exit /B 1

:fail
popd
endlocal
exit /B 1

:exit
popd
endlocal

Add Windows batch file to update stdlib.


@echo off

REM This build script allows you to build the TTR Mouse Click Simulator.
REM For information about prerequisites, see the Wiki page at
REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator

SetLocal ENABLEDELAYEDEXPANSION
echo.Building the TTR Mouse Click Simulator...
echo.
REM MSBuild is always installed in the 32-Bit program files folder
if "!ProgramFiles(x86)!"=="" (
	set "ProgramFiles32Bit=!ProgramFiles!"
) else (
	set "ProgramFiles32Bit=!ProgramFiles(x86)!"
)
set "BuildExe=!ProgramFiles32Bit!\MSBuild\14.0\Bin\MSBuild.exe"

if not exist "!BuildExe!" (
	echo.ERROR: MSBuild not found at "!BuildExe!"^^!
	pause
	exit /b 1
)

"!BuildExe!" /v:minimal /nologo /p:Configuration=Release "TTMouseclickSimulator\TTMouseclickSimulator.csproj"
if not errorlevel 1 (
	echo.
	echo.Build successful^^!
)
pause
exit /b !ERRORLEVEL!

Return the exit code from MSBuild.

Return the exit code from MSBuild.


@echo off
cls

.paket\paket.bootstrapper.exe 0.8.6
if errorlevel 1 (
  exit /b %errorlevel%
)

.paket\paket.exe install -v
if errorlevel 1 (
  exit /b %errorlevel%
)

packages\FAKE\tools\FAKE.exe build.fsx %*

@echo off
cls

.paket\paket.bootstrapper.exe
if errorlevel 1 (
  exit /b %errorlevel%
)

.paket\paket.exe restore
if errorlevel 1 (
  exit /b %errorlevel%
)

packages\FAKE\tools\FAKE.exe build.fsx %*

Use the latest paket.exe but just restore


REM Copyright 2022 The Chromium Authors.
REM Use of this source code is governed by a BSD-style license that can be
REM found in the LICENSE file.
@echo off
setlocal

REM This script is meant to be run once to setup the example demo agent.
REM Run it with one command line argument: the path to a directory where the
REM demo agent will be built.  This should be a directory outside the SDK
REM directory tree.  This directory must not already exist.
REM
REM Once the build is prepared, the demo binary is build using the command
REM `cmake --build <build-dir>`, where <build-dir> is the same argument given
REM to this script.

set BUILD_DIR=%~f1
set DEMO_DIR=%~dp0
call :ABSPATH "%DEMO_DIR%.." ROOT_DIR
call :ABSPATH "%ROOT_DIR%\proto" PROTO_DIR

echo .
echo Root dir:   %ROOT_DIR%
echo Build dir:  %BUILD_DIR%
echo Demo dir:   %DEMO_DIR%
echo Proto dir:  %PROTO_DIR%
echo .

IF exist "%BUILD_DIR%" (
  echo.
  echo   ### Directory %1 must not exist.
  echo.
  EXIT /b
)

mkdir "%BUILD_DIR%"
cd /d "%BUILD_DIR%"

REM Install vcpkg and use it to install Google Protocol Buffers.
cmd/c git clone https://github.com/microsoft/vcpkg
cmd/c .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
cmd/c .\vcpkg\vcpkg install protobuf:x64-windows

REM Generate the build files.
set CMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake
cmake %DEMO_DIR%

echo.
echo.
echo To build, type: cmake --build "%BUILD_DIR%"
echo.

exit /b

REM Resolve relative path in %1 and set it into variable %2.
:ABSPATH
  set %2=%~f1
  exit /b

Move proto generation into cmake and remove from prepare_build


@echo off

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\bin\node\node-win32-%ARCH%.exe"

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

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

Comment source of Windows arch snippet

Comment source of Windows arch snippet


@echo off
set __VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017
if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home
set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd

if not "%EnterpriseWDK%"=="" goto ewdk_ready
if "%EWDK11_DIR%"=="" goto vs_vars
call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd
::call :add_path "%VCToolsRedistDir%onecore\x86\Microsoft.VC142.OPENMP"
goto :eof

:vs_vars
if not "%VSFLAVOR%"=="" goto :knownVS
call :checkvs
echo USING %VSFLAVOR% Visual Studio

:knownVS
echo %0: Setting NATIVE ENV for %1 (VS %VSFLAVOR%)...
call "%__VS_PATH%\%VSFLAVOR%\VC\Auxiliary\Build\vcvarsall.bat" %1
goto :eof

:checkvs
set VSFLAVOR=Professional
if exist "%__VS_PATH%\Community\VC\Auxiliary\Build\vcvarsall.bat" set VSFLAVOR=Community
goto :eof

:ewdk_ready
echo We are already in EWDK version: %Version_Number%
goto :eof

:add_path
echo %path% | findstr /i /c:"%~dp1"
if not errorlevel 1 goto :eof
echo Adding path %~dp1
set path=%path%;%~dp1
goto :eof

@echo off
if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home
set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd

if not "%EnterpriseWDK%"=="" goto ready
if "%EWDK11_DIR%"=="" set EWDK11_DIR=c:\ewdk11
:: call :add_path "%EWDK11_DIR%\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Redist\MSVC\14.28.29910\onecore\x86\Microsoft.VC142.OPENMP\vcomp140.dll"
call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd
goto :eof

:add_path
echo %path% | findstr /i /c:"%~dp1"
if not errorlevel 1 goto :eof
echo Adding path %~dp1
set path=%path%;%~dp1
goto :eof

:ready
echo We are already in EWDK version: %Version_Number%
goto :eof

Revert "build: autoselect build env"

Revert "build: autoselect build env"

This reverts commit 66d8b30a838ae77c34f36eaad1a9048b0eaed1a6.


echo off

REM leave a pid file so that a non-DC process
REM like configd can be notified for shutdown

copy /y /nul > %cd%\.pid%1
REM set this sleep value to be at least twice
REM as long as the QMF_CONFIGD_WIN_INTERVAL
SLEEP 6
EXIT /B 0

echo off

REM leave a pid file so that a non-DC process
REM like configd can be notified for shutdown

copy /y /nul > %cd%\.pid%1

REM set this sleep value to be at least twice
REM as long as the QMF_CONFIGD_WIN_INTERVAL
set cntr=0

:LoopStart
IF NOT EXIST %cd%\.pid%1 Goto EndClean
SLEEP 1
IF %cntr%==5 Goto EndBad
set /A cntr=%cntr%+1
Goto LoopStart

:EndClean
REM Give an extra second to clean up
SLEEP 1
EXIT /B 0

:EndBad
EXIT /B 1

Update to exit if pid has been cleaned and configd is no longer there.


set PYTHON=C:\Python27\python.exe
set BASE_DIR=[Your email-backup checkout]
set OUTPUT_DIR=[Directory to output archive]

set EMAIL=[Email address]
set PASSWORD=[Password (application specific password for gmail accounts)]
set IMAP=[IMAP server address]

%python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR%
%python% %BASE_DIR%\ebexporter.py -i %OUTPUT_DIR%\%EMAIL% -o %OUTPUT_DIR%\%EMAIL%\Archive.mbox

set PYTHON=C:\Python27\python.exe
set BASE_DIR=[Your email-backup checkout]
set OUTPUT_DIR=[Directory to output archive]

set EMAIL=[Email address]
set PASSWORD=[Password (application specific password for gmail accounts)]
set IMAP=[IMAP server address]

%python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR%\Git
%python% %BASE_DIR%\ebarchiver.py -i %OUTPUT_DIR%\Git\%EMAIL% -o %OUTPUT_DIR%\Archives\%EMAIL%.zip

Update the windows shell script.

Update the windows shell script.


git submodule update --init

SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main

SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y

SET PATH=%PATH%;%CATSPATH%

call %environment.bat

cd %CATSPATH%
SET CONFIG=%CATSPATH%\config.json
%GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"

git submodule update --init

SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main

SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y

SET PATH=%PATH%;%CATSPATH%;C:\Program Files\cURL\bin

call %environment.bat

cd %CATSPATH%
SET CONFIG=%CATSPATH%\config.json
%GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"

Add cURL to the path for windows32 CATS tests


@ECHO OFF

SETLOCAL

SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln
SET VS2015_BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"

IF NOT EXIST %VS2015_BUILD_TOOLS_PATH% (
  echo In order to build or run this tool you need either Visual Studio 2015 Preview or
  echo Microsoft Build Tools 2015 Preview tools installed.
  echo.
  echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
  echo to download either.
  goto :eof
)

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

:restore
IF EXIST "%~dp0src\packages" goto build
%CACHED_NUGET% restore %SOLUTION_PATH%

:build

"%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*

@ECHO OFF

SETLOCAL

SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln
SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe"

IF NOT EXIST %BUILD_TOOLS_PATH% (
  echo In order to build or run this tool you need either Visual Studio 2015 Preview or
  echo Microsoft Build Tools 2015 Preview tools installed.
  echo.
  echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs
  echo to download either.
  goto :eof
)

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

:restore
IF EXIST "%~dp0src\packages" goto build
%CACHED_NUGET% restore %SOLUTION_PATH%

:build

"%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*

Rename variable to not include the VS version

This minimizes the number of changes when the tool has to target a
higher version of Visual Studio. Besides, it doesn't actually point
to Visual Studio per-se.


@ECHO OFF
REM Fetch the DolphinVM binaries from GitHub into the current directory.
REM Specify a parameter to fetch a specific version or leave blank to
REM get the recommended VM version for this release of the image.

FOR /F "usebackq delims=" %%A in (`"git describe --abbrev=0"`) do SET tag=%%A
powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*

@ECHO OFF
REM Fetch the DolphinVM binaries from GitHub into the current directory.
REM Specify a parameter to fetch a specific version or leave blank to
REM get the recommended VM version for this release of the image.

FOR /F "usebackq delims=" %%A in (`"git describe --tags --abbrev=0"`) do SET tag=%%A
powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*

Use unannotated tags for fetchvm as github creates these for releases

The FetchVM script uses the latest tag to decide which VM to download, but
was assuming that only annotated tags should be considered. However, since
the tags created by github releases are not annotated, this is not very
useful!


rmdir /s /q "configuration\org.eclipse.core.runtime"
rmdir /s /q "configuration\org.eclipse.equinox.app"
rmdir /s /q "configuration\org.eclipse.osgi"
java -ea -Dosgi.classloader.singleThreadLoads=true -XX:+UseCompressedOops -XX:MaxPermSize=128M -XX:+UseParallelGC -Xmx1G -jar plugins\org.eclipse.equinox.launcher.jar -p openmole-plugins -g openmole-plugins-gui %*

rmdir /s /q "configuration\org.eclipse.core.runtime"
rmdir /s /q "configuration\org.eclipse.equinox.app"
rmdir /s /q "configuration\org.eclipse.osgi"

java -ea -Dosgi.classloader.singleThreadLoads=true -XX:MaxPermSize=128M -XX:+UseParallelGC -Xmx1G -jar plugins\org.eclipse.equinox.launcher.jar -p openmole-plugins -g openmole-plugins-gui %*

Remove the compressed oops flag for now.


rem echo off

SET mypath=%~dp0
set platformsFolder=platforms
set platformName="Visual Studio 14"

set folder=%mypath%\%platformsFolder%\%platformName%

if not exist %folder% (mkdir %folder%)

cd %platformsFolder%

rem call cmake
cmake.exe .. -G%platformName%

cd %mypath%

pause

echo off

SET mypath=%~dp0
set platformsFolder=platforms
set platformName=%1

set folder=%mypath%\%platformsFolder%\%platformName%

if not exist %folder% (mkdir %folder%)

cd %folder%

rem call cmake
cmake.exe %mypath% -G%platformName%

cd %mypath%

pause

Use parameter as platform to create project


mkdir build
cd build

set BUILD_CONFIG=Release

REM Configure step
if "%ARCH%"=="32" (
    set CMAKE_GENERATOR=Visual Studio 12 2013
) else (
    set CMAKE_GENERATOR=Visual Studio 12 2013 Win64
)
set CMAKE_GENERATOR_TOOLSET=v120_xp

REM Reduce build times and package size by removing unused stuff
set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_INCLUDE_TESTS=OFF ^
    -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF ^
    -DLLVM_ENABLE_ASSERTIONS=ON

cmake -G "%CMAKE_GENERATOR%" -T "%CMAKE_GENERATOR_TOOLSET%" ^
    -DCMAKE_BUILD_TYPE="%BUILD_CONFIG%" -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
    -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% %CMAKE_CUSTOM% %SRC_DIR%
if errorlevel 1 exit 1

REM Build step
cmake --build . --config "%BUILD_CONFIG%"
if errorlevel 1 exit 1

REM Install step
cmake --build . --config "%BUILD_CONFIG%" --target install
if errorlevel 1 exit 1

mkdir build
cd build

set BUILD_CONFIG=Release

REM Configure step
if "%ARCH%"=="32" (
    set CMAKE_GENERATOR=Visual Studio 14 2015
) else (
    set CMAKE_GENERATOR=Visual Studio 14 2015 Win64
)
set CMAKE_GENERATOR_TOOLSET=v120_xp

REM Reduce build times and package size by removing unused stuff
set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_INCLUDE_TESTS=OFF ^
    -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF ^
    -DLLVM_ENABLE_ASSERTIONS=ON

cmake -G "%CMAKE_GENERATOR%" -T "%CMAKE_GENERATOR_TOOLSET%" ^
    -DCMAKE_BUILD_TYPE="%BUILD_CONFIG%" -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
    -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% %CMAKE_CUSTOM% %SRC_DIR%
if errorlevel 1 exit 1

REM Build step
cmake --build . --config "%BUILD_CONFIG%"
if errorlevel 1 exit 1

REM Install step
cmake --build . --config "%BUILD_CONFIG%" --target install
if errorlevel 1 exit 1

Upgrade to VS 2015 for llvmdev

Upgrade to VS 2015 for llvmdev


@echo off

:: set batch file directory as current
pushd "%~dp0"

set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe

call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU
if %errorlevel% NEQ 0 goto error

set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose
echo %SM_CMD%
%SM_CMD%
if %errorlevel% NEQ 0 goto error

call :NugetRestore Sharpmake.sln win
if %errorlevel% NEQ 0 goto error

goto success

:NugetRestore
echo Restoring nuget packages for %~1

set DOTNET_RESTORE=dotnet restore "%~1"
if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2
echo %DOTNET_RESTORE%
%DOTNET_RESTORE%
if %errorlevel% NEQ 0 (
    echo ERROR: Failed to restore nuget package for %~1
    exit /b 1
)
exit /b 0

@REM -----------------------------------------------------------------------
:success
COLOR 2F
echo Bootstrap succeeded^^!
timeout /t 5
exit /b 0

@REM -----------------------------------------------------------------------
:error
COLOR 4F
echo Bootstrap failed^^!
pause
set ERROR_CODE=1
goto end

@REM -----------------------------------------------------------------------
:end
:: restore caller current directory
popd
exit /b %ERROR_CODE%

@echo off

:: set batch file directory as current
pushd "%~dp0"

set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe

call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU
if %errorlevel% NEQ 0 goto error

set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose
echo %SM_CMD%
%SM_CMD%
if %errorlevel% NEQ 0 goto error

call :NugetRestore Sharpmake.sln win
if %errorlevel% NEQ 0 goto error

goto success

:NugetRestore
echo Restoring nuget packages for %~1

set DOTNET_RESTORE=dotnet restore "%~1"
if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2
echo %DOTNET_RESTORE%
%DOTNET_RESTORE%
if %errorlevel% NEQ 0 (
    echo ERROR: Failed to restore nuget package for %~1
    exit /b 1
)
exit /b 0

@REM -----------------------------------------------------------------------
:success
COLOR 2F
echo Bootstrap succeeded^!
timeout /t 5
exit /b 0

@REM -----------------------------------------------------------------------
:error
COLOR 4F
echo Bootstrap failed^!
pause
set ERROR_CODE=1
goto end

@REM -----------------------------------------------------------------------
:end
:: restore caller current directory
popd
exit /b %ERROR_CODE%

Remove extra hat in bootstrap batch file


set /p Build=<ver.txt

echo Building version %Build%

fart ..\Properties\AssemblyInfo.cs 1.0.0.0  1.0.%Build%
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV"   ..\..\Budford.sln /Rebuild Release

call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi
ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe"

set /a Build=%Build%+1
echo %Build% > ver.txt

git commit -m "New release" ver.txt
git status
git push origin master
git checkout ..\..

set /p Build=<ver.txt

echo Building version %Build%

fart ..\Properties\AssemblyInfo.cs 1.0.0.0  1.0.%Build%
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV"   ..\..\Budford.sln /Rebuild Release

call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi
ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe"

"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Users
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Budford.exe
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" CNUSLib.dll
"C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" discord-rpc.dll

set /a Build=%Build%+1
echo %Build% > ver.txt

git commit -m "New release" ver.txt
git status
git push origin master
git checkout ..\..

Build script now creates zip

Build script now creates zip


set name="%1"
set src=%~2
set pub=%~2..\..\..\..\pub

echo Copy from %src%
echo Copy to %pub%

if not exist "%pub%" mkdir "%pub%"

:: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S

 xcopy "%src%*.exe" "%pub%" /D /Y /S
 xcopy "%src%*.dll" "%pub%" /D /Y /S
 xcopy "%src%*.config" "%pub%" /D /Y /S

 xcopy "%src%*.ids" "%pub%" /D /Y /S

set name="%1"
set src=%~2
set pub=%~2..\..\..\..\pub\
set archiv=%pub%\com-kit_%APPVEYOR_BUILD_NUMBER%.zip

echo Copy from %src%
echo Copy to %pub%

if not exist "%pub%" mkdir "%pub%"

:: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S

 ::xcopy "%src%*.exe" "%pub%" /D /Y /S
 ::xcopy "%src%*.dll" "%pub%" /D /Y /S
 ::xcopy "%src%*.config" "%pub%" /D /Y /S

 ::xcopy "%src%*.ids" "%pub%" /D /Y /S

pushd "%src%"

7z a "%archiv%" "*.exe"
7z a "%archiv%" "*.dll"
7z a "%archiv%" "*.config"

7z a "%archiv%" "*.ids" -r

popd

Make zip archive from release

Make zip archive from release


@echo off

setlocal
set OUTDIR=%1
set JSENG=%2
set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\
set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files

set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32

:: Ensure that the cygwin mount points are defined
CALL %CYGWIN_ROOT%setup_mount.bat > NUL

bash -x create-config.sh %OUTDIR% %JSENG%

@echo off

setlocal
set OUTDIR=%1
set JSENG=%2
set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\
set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files

:: Fix cp.exe on vista: without this flag, the files that it creates are not accessible.
set CYGWIN=nontsec

set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32

:: Ensure that the cygwin mount points are defined
CALL %CYGWIN_ROOT%setup_mount.bat > NUL

bash -x create-config.sh %OUTDIR% %JSENG%

Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security
on top of NTFS.

BUG=1157117

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@40 0039d316-1c4b-4281-b951-d872f2087c98


if exist classes rmdir classes /s /q
mkdir classes
xcopy /E /y src classes\
"%JAVA_HOME%\bin\java" -cp ../../3rdpartypublic/classext/clojure.jar;../MMCoreJ_wrap/MMCoreJ.jar;../../3rdpartypublic/classext/ij.jar;../mmstudio/MMJ_.jar;../../3rdpartypublic/classext/bsh-2.0b4.jar;./src -Dclojure.compile.path=classes clojure.lang.Compile org.micromanager.acq-engine
"%JAVA_HOME%\bin\jar" cf MMAcqEngine.jar -C classes\ .
copy /Y MMAcqEngine.jar ..\bin_Win32\
copy /Y MMAcqEngine.jar ..\bin_x64\
copy /Y MMAcqEngine.jar ..\Install_Win32\micro-manager\plugins\Micro-Manager"
copy /Y MMAcqEngine.jar ..\Install_x64\micro-manager\plugins\Micro-Manager"

if exist classes rmdir classes /s /q
mkdir classes
xcopy /E /y src classes\
"%JAVA_HOME%\bin\java" -cp ../../3rdpartypublic/classext/clojure.jar;../MMCoreJ_wrap/MMCoreJ.jar;../../3rdpartypublic/classext/ij.jar;../mmstudio/MMJ_.jar;../../3rdpartypublic/classext/bsh-2.0b4.jar;./src -Dclojure.compile.path=classes clojure.lang.Compile org.micromanager.acq-engine
xcopy /E /y src build\
copy classes\org\micromanager\AcquisitionEngine2010.class build\org\micromanager
"%JAVA_HOME%\bin\jar" cf MMAcqEngine.jar -C build\ .
copy /Y MMAcqEngine.jar ..\bin_Win32\
copy /Y MMAcqEngine.jar ..\bin_x64\
copy /Y MMAcqEngine.jar ..\Install_Win32\micro-manager\plugins\Micro-Manager"
copy /Y MMAcqEngine.jar ..\Install_x64\micro-manager\plugins\Micro-Manager"

Use mostly JIT compiling for acq eng.

Use mostly JIT compiling for acq eng.

git-svn-id: 03a8048b5ee8463be5048a3801110fb50f378627@10516 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd


cd ..
del/q scintilla.zip
zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib
cd scintilla

cd ..
del/q scintilla.zip
zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res
cd scintilla

Remove *.res from files zipped.

Remove *.res from files zipped.


@ECHO OFF

SET BASEDIR=%~dp0..
SET USERINI=%BASEDIR%\user.ini
FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do (
   set CF_USER=%%a
   set CF_PASS=%%b
)

SET PYTHON_HOME=C:\Python36
SET DOTNET_HOME=C:\Program Files\dotnet
SET MAVEN_HOME=C:\opt\apache-maven-3.3.9

ECHO [behave.userdata] > %USERINI%
ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI%
ECHO cf_org = STEELTOE >> %USERINI%
ECHO cf_username = %CF_USER% >> %USERINI%
ECHO cf_password = %CF_PASS% >> %USERINI%

SET PATH=%PYTHON_HOME%\Scripts;%DOTNET_HOME%;%MAVEN_HOME%\bin;%PATH%

CALL %BASEDIR%\test-setup
CALL %BASEDIR%\test-run %*

@ECHO OFF

SET BASEDIR=%~dp0..
SET USERINI=%BASEDIR%\user.ini
FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do (
   set CF_USER=%%a
   set CF_PASS=%%b
)

SET PYTHON_HOME=C:\Python36
SET DOTNET_HOME=C:\Program Files\dotnet
SET JAVA_HOME=C:\opt\oracle-jdk-8
SET MAVEN_HOME=C:\opt\apache-maven-3.3.9

ECHO [behave.userdata] > %USERINI%
ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI%
ECHO cf_org = STEELTOE >> %USERINI%
ECHO cf_username = %CF_USER% >> %USERINI%
ECHO cf_password = %CF_PASS% >> %USERINI%

SET PATH=%PYTHON_HOME%\Scripts;%DOTNET_HOME%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%

CALL %BASEDIR%\test-setup
CALL %BASEDIR%\test-run %*

Update path to Java 8

Update path to Java 8


@echo off
cls
"..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "-ExcludeVersion"
"..\..\packages\FAKE\tools\Fake.exe" build.fsx
pause

@echo off
cls
"..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages"
"..\..\packages\FAKE\tools\Fake.exe" build.fsx
pause

Remove ExcludedVersion from nuget package generation command line in buld.bat


@echo off

set "INCLUDE=%LIBRARY_INC%;%INCLUDE%"
set "LIB=%LIBRARY_LIB%;%LIB%"

%PYTHON% setup.py build
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

@echo off

set "INCLUDE=%LIBRARY_INC%;%INCLUDE%"
set "LIB=%LIBRARY_LIB%;%LIB%"
xcopy %LIBRARY_LIB%\fftw3.lib %LIBRARY_LIB%\libfftw3-3.lib

%PYTHON% setup.py build
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt

Copy fftw library to correct file-name

Copy fftw library to correct file-name


set vimdir="C:\Program Files - Portable\Vim"

REM delete backup files
del %vimdir%\_vimrc.bkup
del %vimdir%\vimfiles\autoload\pathogen.vim.bkup

REM backup existing files
move %vimdir%\_vimrc %vimdir%\_vimrc.bkup
move %vimdir%\vimfiles\autoload\pathogen.vim %vimdir%\vimfiles\autoload\pathogen.vim.bkup

REM hard-link to new files
MKLINK /H %vimdir%\_vimrc .vimrc
MKLINK /H %vimdir%\vimfiles\autoload\pathogen.vim .vim\autoload\pathogen.vim

Add setup batchfile for windows (currently quite naive)


rmdir /S /Q "./build"

dotnet restore ./src/Certes/project.json
dotnet pack -c release -o ./build/nuget ./src/Certes/project.json

dotnet restore ./src/Certes.Cli/project.json
dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json

@echo off
echo dotnet ./bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat
@echo on

rmdir /S /Q "./build"

dotnet restore ./src/Certes/project.json
dotnet pack -c release -o ./build/nuget ./src/Certes/project.json

dotnet restore ./src/Certes.Cli/project.json
dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json

@echo off
echo dotnet %%^~dp0/bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat
@echo on

Fix bin path in bat.

Fix bin path in bat.


@ECHO OFF
REM =========================================================================
REM
REM Licensed to the Apache Software Foundation (ASF) under one or more
REM contributor license agreements.  See the NOTICE file distributed with
REM this work for additional information regarding copyright ownership.
REM The ASF licenses this file to You under the Apache License, Version 2.0
REM (the "License"); you may not use this file except in compliance with
REM the License.  You may obtain a copy of the License at
REM
REM    http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
REM =========================================================================

SET SERVICEMIX_BASE=${servicemix.base}
SETLOCAL
SET SERVICEMIX_HOME=${servicemix.home}

%SERVICEMIX_HOME%\bin\servicemix.bat "$*"

@ECHO OFF
REM =========================================================================
REM
REM Licensed to the Apache Software Foundation (ASF) under one or more
REM contributor license agreements.  See the NOTICE file distributed with
REM this work for additional information regarding copyright ownership.
REM The ASF licenses this file to You under the Apache License, Version 2.0
REM (the "License"); you may not use this file except in compliance with
REM the License.  You may obtain a copy of the License at
REM
REM    http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM
REM =========================================================================

SET SERVICEMIX_BASE=${servicemix.base}
SETLOCAL
SET SERVICEMIX_HOME=${servicemix.home}

%SERVICEMIX_HOME%\bin\servicemix.bat %*

SMX4KNL-87: Fix batch file used when generating new instances

git-svn-id: 60a1e9216d64284e4702c44631e657390eda35c3@698732 13f79535-47bb-0310-9956-ffa450edef68


@echo off
set lighttpd_dir=%~dp0..\third_party\lighttpd\win

REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be
REM killed by taskkill.

xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe

REM copy the cygwin dll to the lighttpd folder because otherwise it wont work.

xcopy /D %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir%

REM Start the server, using the conf file in the slave directory.

@echo on
%lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib

@echo off
set lighttpd_dir=%~dp0..\third_party\lighttpd\win

REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be
REM killed by taskkill.

xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe

REM copy the cygwin dll to the lighttpd folder because otherwise it wont work.

xcopy /D %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir%

REM Start the server, using the conf file in the slave directory.

:RESTART
echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
%lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
goto :RESTART

Make the web server auto-restart on crash

R=cmp@chromium.org
BUG=
TEST=

Review URL: http://codereview.chromium.org/8245014

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@105112 0039d316-1c4b-4281-b951-d872f2087c98


MSBuild.exe ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release
@pause

"C:/Program Files (x86)/MSBuild/14.0/bin/amd64/MSBuild.exe" ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release
@pause

Use absolute path to MSBuild in release script


:: Windows Installer for Simple 2D
::   This script will install includes, libraries, and DLLs for
::   building Simple 2D apps.

@echo off

echo.
echo Simple 2D and its dependencies will be installed to:
echo   %%LOCALAPPDATA%%\simple2d
echo   Resolving to %LOCALAPPDATA%\simple2d
echo.

set INPUT=
set /p INPUT=Continue? (y/n) %=%
if /i "%INPUT%"=="y" goto yes
echo.
echo Quitting...
timeout 3
exit /b 0

:yes
echo. & echo Copying... & echo.
set S2D_DIR=%LOCALAPPDATA%\simple2d
if not exist %S2D_DIR% mkdir %S2D_DIR%
xcopy /e /y simple2d\* %S2D_DIR%

echo.
echo Simple 2D installed successfully!
echo Remember to add %%LOCALAPPDATA%%\simple2d to your %%PATH%%
echo.
pause

Add Visual C++ installation script

Add Visual C++ installation script

This will be packaged with each release. This will install everything
needed to build Simple 2D apps using Visual C++, installed to
`%LOCALAPPDATA%\simple2d`.


mongoimport -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline

mongoimport --drop -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline

Make a drop before import the data

Make a drop before import the data


set CACHE=C:\cache
set CYGWIN_MIRROR=http://cygwin.mirror.constant.com

if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin

if not exist %CACHE% mkdir %CACHE%

echo Updating Cygwin and installing ninja and test prerequisites
%CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^
gcc-objc++,^
gcc-objc,^
libboost-devel,^
libglib2.0-devel,^
ninja,^
python3-pip,^
zlib-devel

echo Install done

set CACHE=C:\cache
set CYGWIN_MIRROR=http://cygwin.mirror.constant.com

if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin

if not exist %CACHE% mkdir %CACHE%

echo Updating Cygwin and installing ninja and test prerequisites
%CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^
gcc-objc++,^
gcc-objc,^
gobject-introspection,^
libboost-devel,^
libglib2.0-devel,^
libgtk3-devel,^
ninja,^
python3-pip,^
vala,^
zlib-devel

echo Install done

CI: Install gobject-introspection test prerequisites on Cygwin


@echo off

:: Copyright (c) 2011 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal

set NACL_SDK_ROOT=%~dp0..

:: Set the PYTHONPATH so we can import SCons modules
set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine

:: We have to do this because scons overrides PYTHONPATH and does not preserve
:: what is provided by the OS.  The custom variable name won't be overwritten.
set PYMOX=%NACL_SDK_ROOT%\third_party\pymox

:: Run the included copy of scons.
python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^
--file=build.scons ^
--site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*

@echo off

:: Copyright (c) 2011 The Native Client Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.

setlocal

set NACL_SDK_ROOT=%~dp0..

:: Set the PYTHONPATH so we can import SCons modules
set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine

:: We have to do this because scons overrides PYTHONPATH and does not preserve
:: what is provided by the OS.  The custom variable name won't be overwritten.
set PYMOX=%NACL_SDK_ROOT%\third_party\pymox

:: Run the included copy of scons.
python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^
--warn no-visual-c-missing ^
--file=build.scons ^
--site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*

Make Visual Studio related warnings go away.

This adds a flag that causes scons not to always expect VS on windows.
I had this fix verified by the testing team before uploading the CL.
Committed: http://code.google.com/p/nativeclient-sdk/source/detail?r=907
Review URL: http://codereview.chromium.org/7111051

git-svn-id: e22621a84199d42b34715cdc089545aeedbbf23f@910 050acbb0-2703-11df-ab0a-9f3f633ae91d


@echo off
net session >nul 2>&1
if %errorLevel% NEQ 0 (
    echo Please run this script with Administrator privileges
    timeout 10 > NUL
    EXIT /B 1
)
SET cdpath=%~dp0
echo Setting the system environment variable DOCKER_HOST
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f
echo Setting the system environment variable DOCKER_TLS
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f
echo Configuring the Docker daemon for TLS
if not exist c:\ProgramData\docker\certs.d\ then mkdir c:\ProgramData\docker\certs.d\
xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\
echo Configuring the Docker client to connect using TLS for the current user
if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\
xcopy /O %cdpath%client\* c:\Users\%username%\.docker\
echo Restarting Docker
net stop Docker
net start Docker
echo All done. Docker is now configured for TLS.
echo Please complete the preparation on the control domain console.
timeout 10 > NUL
EXIT /b 0

@echo off
net session >nul 2>&1
if %errorLevel% NEQ 0 (
    echo Please run this script with Administrator privileges
    timeout 10 > NUL
    EXIT /B 1
)
SET cdpath=%~dp0
echo Setting the system environment variable DOCKER_HOST
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f
echo Setting the system environment variable DOCKER_TLS
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f
echo Configuring the Docker daemon for TLS
if not exist c:\ProgramData\docker\certs.d\ mkdir c:\ProgramData\docker\certs.d\
xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\
echo Configuring the Docker client to connect using TLS for the current user
if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\
xcopy /O %cdpath%client\* c:\Users\%username%\.docker\
echo Restarting Docker
net stop Docker
net start Docker
echo All done. Docker is now configured for TLS.
echo Please complete the preparation on the control domain console.
timeout 10 > NUL
EXIT /b 0

Fix invalid dos script syntax: no then

Fix invalid dos script syntax: no then

Signed-off-by: Robert Breker <bfcd7039ca4b92386f0756a1d5e67ea4ff23cfe0@citrix.com>


mkdir %DEPLOYMENT%
mkdir %DEPLOYMENT%\src\
mkdir src\WhiteLibrary\bin\

copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\
copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\
copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.Reporting.dll src\WhiteLibrary\bin\
copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.ScreenObjects.dll src\WhiteLibrary\bin\

rmdir docs /s /q

python src/WhiteLibrary/version.py > temp.txt
set /p CMDOUT=<temp.txt

IF "%CMDOUT%" == "True" (
    mkdir docs
    python -m robot.libdoc src\WhiteLibrary docs\keywords.html
    xcopy docs %DEPLOYMENT%\docs\ /s /a
)

xcopy src %DEPLOYMENT%\src\ /s /a
copy setup.py %DEPLOYMENT%\
copy build.info %DEPLOYMENT%\

mkdir %DEPLOYMENT%
mkdir %DEPLOYMENT%\src\
mkdir src\WhiteLibrary\bin\

copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\
copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\

rmdir docs /s /q

python src/WhiteLibrary/version.py > temp.txt
set /p CMDOUT=<temp.txt

IF "%CMDOUT%" == "True" (
    mkdir docs
    python -m robot.libdoc src\WhiteLibrary docs\keywords.html
    xcopy docs %DEPLOYMENT%\docs\ /s /a
)

xcopy src %DEPLOYMENT%\src\ /s /a
copy setup.py %DEPLOYMENT%\
copy build.info %DEPLOYMENT%\

Remove unnecessary .dll files from installation


Remove *.res from files zipped.

Remove *.res from files zipped.


mkdir ..\..\..\workingdir
mkdir ..\..\..\workingdir\components

xcopy ..\..\..\das-collectionearnings-opa-calculator ..\..\..\workingdir\components /E
xcopy ..\..\..\das-collectionearnings-datalock ..\..\..\workingdir\components /E
xcopy ..\..\..\das-providerpayments-calculator ..\..\..\workingdir\components /E

xcopy ..\..\..\das-payment-reference-commitments ..\..\..\workingdir\components /E
xcopy ..\..\..\das-payment-reference-accounts ..\..\..\workingdir\components /E
xcopy ..\..\..\das-providerevents-components ..\..\..\workingdir\components /E

Add missing components to prepare script


@echo off

rem This script installs OpenSC
rem Parameters:
rem     user - Install for this user only.

setlocal

set MODE=%1

set KEY=HKEY_LOCAL_MACHINE
if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER

cd %0\..\..

if not exist bin\opensc-tool.exe goto error

for /f %%f in (".") do set OPENSC_HOME=%%~ff

set OPENSC_HOME_ESCAPED=%OPENSC_HOME:\=\\%
set REG_FILE=%TEMP%\opensc-install.reg

echo Windows Registry Editor Version 5.00 > %REG_FILE%
echo [%KEY%\SOFTWARE\OpenSC] >> %REG_FILE%
echo "ConfigFile"="%OPENSC_HOME_ESCAPED%\\etc\\opensc.conf" >> %REG_FILE%
echo [%KEY%\SOFTWARE\PKCS11-Spy] >> %REG_FILE%
echo "Module"="%OPENSC_HOME_ESCAPED%\\bin\\opensc-pkcs11.dll" >> %REG_FILE%

regedit /s %REG_FILE%
del /q %REG_FILE%

"%OPENSC_HOME%\bin\opensc-tool" -S "app:default:profile_dir:%OPENSC_HOME%\share\opensc"

goto end

:error
echo Invalid installation
goto end

:end

endlocal

@echo off

rem This script installs OpenSC
rem Parameters:
rem     user - Install for this user only.

setlocal

set MODE=%1

set KEY=HKEY_LOCAL_MACHINE
if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER

cd %0\..\..

if not exist bin\opensc-tool.exe goto error

for /f %%f in (".") do set OPENSC_HOME=%%~ff

set OPENSC_HOME_ESCAPED=%OPENSC_HOME:\=\\%
set REG_FILE=%TEMP%\opensc-install.reg

echo Windows Registry Editor Version 5.00 > %REG_FILE%
echo [%KEY%\SOFTWARE\OpenSC] >> %REG_FILE%
echo "ConfigFile"="%OPENSC_HOME_ESCAPED%\\etc\\opensc.conf" >> %REG_FILE%
echo [%KEY%\SOFTWARE\PKCS11-Spy] >> %REG_FILE%
echo "Module"="%OPENSC_HOME_ESCAPED%\\bin\\opensc-pkcs11.dll" >> %REG_FILE%

regedit /s %REG_FILE%
del /q %REG_FILE%

"%OPENSC_HOME%\bin\opensc-tool" -S "app:default:profile_dir:%OPENSC_HOME%\share\opensc"

echo You may also want to add "%OPENSC_HOME%\bin" to your PATH, for use by other applications.

goto end

:error
echo Invalid installation
goto end

:end

endlocal

Add PATH comment for Windows users

Add PATH comment for Windows users

git-svn-id: 444ed946b9c2220da791e84c3dd156a05f92db99@3489 c6295689-39f2-0310-b995-f0e70906c6a9


:: To build extensions for 64 bit Python 3, we need to configure environment
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1)
::
:: To build extensions for 64 bit Python 2, we need to configure environment
:: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0)
::
:: 32 bit builds do not require specific environment configurations.
::
:: Note: this script needs to be run with the /E:ON and /V:ON flags for the
:: cmd interpreter, at least for (SDK v7.0)
::
:: More details at:
:: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows
:: http://stackoverflow.com/a/13751649/163740
::
:: Author: Olivier Grisel
:: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
@ECHO OFF

SET COMMAND_TO_RUN=%*
SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows

SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%"
IF %MAJOR_PYTHON_VERSION% == "2" (
    SET WINDOWS_SDK_VERSION="v7.0"
) ELSE IF %MAJOR_PYTHON_VERSION% == "3" (
    SET WINDOWS_SDK_VERSION="v7.1"
) ELSE (
    ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%"
    EXIT 1
)

IF "%PYTHON_ARCH%"=="64" (
    ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture
    SET DISTUTILS_USE_SDK=1
    SET MSSdk=1
    "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION%
    "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release
    ECHO Executing: %COMMAND_TO_RUN%
    call %COMMAND_TO_RUN% || EXIT 1
) ELSE (
    ECHO Using default MSVC build environment for 32 bit architecture
    ECHO Executing: %COMMAND_TO_RUN%
    call %COMMAND_TO_RUN% || EXIT 1
)

Add missing windows configuration script


@echo off

setlocal EnableDelayedExpansion

set registryRoot=HKCU\Software\Classes
set key=OfficeScan NT

reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f
reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f
reg add "%registryRoot%\Directory\shellex\ContextMenuHandlers\%key%" /d "---" /f

Disable officescan context menu on directories


if %VS_MAJOR% == 9 (
    set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%"
)

%PYTHON% -m pip install . -vv

:: Nasty hack to force the newer MSBuild from .NET is still used for the older
:: Visual Studio build. Without this an older MSBuild will be picked up by accident on
:: AppVeyor after running `vcvars32.bat`, which fails to process our solution files.
::
:: ref: https://github.com/conda-forge/staged-recipes/pull/194#issuecomment-203577297
:: ref: https://github.com/conda-forge/libsodium-feedstock/commit/b411740e0f439d5a5d257f74f74945f86585684a#diff-d04c86b6bb20341f5f7c53165501a393R12
:: ref: https://stackoverflow.com/q/2709279
::
:: Also there is some bug using MSBuild from .NET to build with VS 2008 64-bit, which
:: we workaround as well.
::
:: ref: https://social.msdn.microsoft.com/Forums/vstudio/en-US/19bb86ab-258a-40a9-b9fc-3bf36cac46bc/team-build-error-msb4018-the-quotresolvevcprojectoutputquot-task-failed-unexpectedly?forum=tfsbuild
if %VS_MAJOR% == 9 (
    set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%"
    set VC_PROJECT_ENGINE_NOT_USING_REGISTRY_FOR_INIT=1
)

%PYTHON% -m pip install . -vv

Add more hacks for Appveyor

Add more hacks for Appveyor

Taken from
https://github.com/conda-forge/apr-feedstock/blob/master/recipe/bld.bat


"%PREFIX%\Scripts\npm.cmd" install -g npm@latest --no-spin && "%PREFIX%\Scripts\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\Scripts\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1

"%PREFIX%\node_modules\npm\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\node_modules\npm\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1

Use most canonical location for npm

Use most canonical location for npm


@echo off
@setlocal

set NuGetExe="%~dp0NuGet.exe"
set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200

REM If someone passed in a different Roslyn solution, use that.
REM We make use of this when Roslyn is an sub-module for some
REM internal repositories.
set RoslynSolution=%1
if "%RoslynSolution%" == "" set RoslynSolution=%~dp0Roslyn.sln

echo Restoring packages: Toolsets
call %NugetExe% restore "%~dp0build\ToolsetPackages\project.json" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

echo Restoring packages: Samples
call %NugetExe% restore "%~dp0src\Samples\Samples.sln" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

echo Restoring packages: Roslyn (this may take some time)
call %NugetExe% restore "%RoslynSolution%" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

exit /b 0

:RestoreFailed
echo Restore failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1

@echo off
@setlocal

set NuGetExe="%~dp0NuGet.exe"
set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200

REM If someone passed in a different Roslyn solution, use that.
REM We make use of this when Roslyn is an sub-module for some
REM internal repositories.
set RoslynSolution=%1
if "%RoslynSolution%" == "" set RoslynSolution=%~dp0Roslyn.sln

echo Deleting project.lock.json files
pushd "%~dp0src"
del /s /q project.lock.json
popd

echo Restoring packages: Toolsets
call %NugetExe% restore "%~dp0build\ToolsetPackages\project.json" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

echo Restoring packages: Samples
call %NugetExe% restore "%~dp0src\Samples\Samples.sln" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

echo Restoring packages: Roslyn (this may take some time)
call %NugetExe% restore "%RoslynSolution%" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed

exit /b 0

:RestoreFailed
echo Restore failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1

Delete project.lock.json files before restoring packages


call %LIBRARY_BIN%\run_autotools_clang_conda_build.bat
if errorlevel 1 exit 1

del %LIBRARY_LIB%\libzimg.a

call %BUILD_PREFIX%\Library\bin\run_autotools_clang_conda_build.bat
if errorlevel 1 exit 1

del %LIBRARY_LIB%\libzimg.a
if errorlevel 1 exit 1

Use exact command from autotools_clang_conda


ECHO off
ECHO MOVE C:\mongo* C:\mongodb
setx MYPATH "%PATH%;C:\mongodb\bin"

ECHO on
FOR /f %%i IN ('dir /ad /b "C:\" ^|findstr /I "mongo"') DO set dest=%%i
ECHO MOVE C:\%dest% C:\mongodb\
setx MYPATH "%PATH%;C:\mongodb\bin"

Revert "Removed for loop and used MOVE command with wildcards"

This reverts commit d4e2e10962b2c4e05b9f54cef8d12e6e4cdff7f2.

I am an idiot and glob commands / wildcards don't work in batch
scripts. Thanks Microsoft.


rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above

cd %~dp0

@if not exist version.txt (
	echo.
    echo !-- Error: version.txt is missing :/
    echo.
    pause
    goto :eof
)

rem This will sync this repo with the folder %windir%\..\buildsd
robocopy . %windir%\..\buildsd /MIR /XA:SH /XD .* /XF .* /XF *.zip
pushd %windir%\..\buildsd

set /p Version=<version.txt
dub build --compiler=ldc2 --arch=x86

if exist windows del /S /Q windows
mkdir windows
copy serve-d.exe windows\serve-d.exe
copy libcurl.dll windows\libcurl.dll
copy libeay32.dll windows\libeay32.dll
copy ssleay32.dll windows\ssleay32.dll

if exist windows.zip del windows.zip
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('windows', 'windows.zip'); }"
popd

move %windir%\..\buildsd\windows.zip "serve-d-%Version%-windows.zip"
pause

rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above

cd %~dp0

@if not exist version.txt (
	echo.
    echo !-- Error: version.txt is missing :/
    echo.
    pause
    goto :eof
)

rem This will sync this repo with the folder %SystemDrive%\buildsd
robocopy . %SystemDrive%\buildsd /MIR /XA:SH /XD .* /XF .* /XF *.zip
pushd %SystemDrive%\buildsd

set /p Version=<version.txt
dub build --compiler=ldc2 --arch=x86

if exist windows del /S /Q windows
mkdir windows
copy serve-d.exe windows\serve-d.exe
copy libcurl.dll windows\libcurl.dll
copy libeay32.dll windows\libeay32.dll
copy ssleay32.dll windows\ssleay32.dll

if exist windows.zip del windows.zip
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('windows', 'windows.zip'); }"
popd

move %SystemDrive%\buildsd\windows.zip "serve-d-%Version%-windows.zip"
pause

Use `%SystemDrive%\` instead of `%windir%\..\`


cd ..\..\..\

rm -R build
rm -R dist

"%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^
 --onefile ^
 --windowed ^
 --icon etc\bin\win\icon.ico ^
 --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5 ^
 etc\bin\unix\alignak-app.py

pause

cd ..\..\..\

rm -R build
rm -R dist

"%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^
 --onefile ^
 --windowed ^
 --icon etc\bin\win\icon.ico ^
 --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5\Qt\bin ^
 etc\bin\unix\alignak-app.py

pause

Update path of PyQt5 on Windows

Update path of PyQt5 on Windows


#!/bin/bash

load test_helper

@test "ip returns an ip" {
  ip=$(lstack ip)
  [ -n "$ip" ]
}

Use a regexp to test the IP

Use a regexp to test the IP


set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html"
pip install lytest simphony sax jax sklearn klayout
pip install "jax[cpu]===0.3.7" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
pip install gdsfactory==5.38.0
gf tool install

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

:SKIP_INSTALL
echo gdsfactory installed

set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html"
pip install lytest simphony sax jax sklearn klayout
pip install "jaxlib[cuda111]" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
pip install gdsfactory==5.38.0
gf tool install

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

:SKIP_INSTALL
echo gdsfactory installed

Set to gpu version by default and remove version number


@pushd %~dp0

ECHO Remember to build the solution first!
REM pause

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

Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools"
"specrun.exe" run default.srprofile "/baseFolder:%~dp0\TestHarness\SpecRun\bin\Debug" /log:specrun.log /report:"%~dp0\results-example-specrun.html"

pause

@popd

@pushd %~dp0

goto begin
ECHO Remember to build the solution first!
REM pause

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

Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools"
"specrun.exe" run default.srprofile "/baseFolder:%~dp0\TestHarness\SpecRun\bin\Debug" /log:specrun.log /report:"%~dp0\results-example-specrun.html"

:begin

Cd "%~dp0\TestHarness\packagesNonNuget\xunit.runner"
"xunit.console.clr4.exe" "%~dp0\TestHarness\xunit\bin\Debug\xunitHarness.dll" /xml "%~dp0\results-example-xunit.xml"

pause

@popd

Add ability to create xunit test results


cd /d %~dp0

mkdir OSVR-Unity-Dist
mkdir OSVR-Unity-Dist\OSVR-Unity
xcopy Managed-OSVR OSVR-Unity-Dist\ /Y /S

cd /d %~dp0

mkdir OSVR-Unity-Dist
mkdir OSVR-Unity-Dist\src
mkdir OSVR-Unity-Dist\src\OSVR-Unity
mkdir OSVR-Unity-Dist\src\Managed-OSVR
xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S
xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S

Adjust build to include more source

Adjust build to include more source


@if "%_echo%" neq "on" echo off
setlocal

if defined VisualStudioVersion goto :Run

set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
  for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
)
if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS%
if not exist "%_VSCOMNTOOLS%" (
    echo Error: Visual Studio 2015 or 2017 required.
    echo        Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions.
    exit /b 1
)

set VSCMD_START_DIR="%~dp0"
call "%_VSCOMNTOOLS%\VsDevCmd.bat"

:Run
powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*"
exit /b %ERRORLEVEL%

@if "%_echo%" neq "on" echo off
setlocal

if defined VisualStudioVersion goto :Run

set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
  for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools
)
if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS%
if not exist "%_VSCOMNTOOLS%" (
    echo Error: Visual Studio 2015 or 2017 required.
    echo        Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions.
    exit /b 1
)

set VSCMD_START_DIR="%~dp0"
call "%_VSCOMNTOOLS%\VsDevCmd.bat"

:Run
powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*"
exit /b %ERRORLEVEL%

Add prerelease check to vswhere to support dogfood VS builds.


@echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"

NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.0 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive

@echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"

NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.1 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive

Use ILRepack.MSBuild.Task 1.1.1 from sympa public myget feed


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: aartifact
:: http://www.aartifact.org/src/
:: Copyright (C) 2008-2010
:: A. Lapets
::
:: This software is made available under the GNU GPLv3.
::
:: Make.bat
::   Batch script for compiling with GHC under Windows
::   environments.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::

@IF EXIST o GOTO make
@MD o
@IF EXIST hi GOTO make
@MD hi
:make
ghc -O2 --make -odir o -hidir hi Main -o aa.exe

::eof

Add build script for Windows environments.