mkdir %LIBRARY_INC%\cspice

copy "makeDynamicSpice.bat" %SRC_DIR%\src\cspice

cd %SRC_DIR%\src\cspice

call makeDynamicSpice.bat

copy "cspice.dll" %LIBRARY_LIB%

if errorlevel 1 exit 1

cd %SRC_DIR%

copy "include\\*.h" %LIBRARY_INC%\cspice

if errorlevel 1 exit 1

mkdir %LIBRARY_INC%\cspice

copy "%RECIPE_DIR%\\makeDynamicSpice.bat" %SRC_DIR%\src\cspice
copy "%RECIPE_DIR%\\cspice.def" %SRC_DIR%\src\cspice

cd %SRC_DIR%\src\cspice

call makeDynamicSpice.bat

copy "cspice.dll" %LIBRARY_LIB%

if errorlevel 1 exit 1

cd %SRC_DIR%

copy "include\\*.h" %LIBRARY_INC%\cspice

if errorlevel 1 exit 1

Copy required files to source directory

Copy required files to source directory


@echo off

echo This script is meant for the Couchbase build server.  It cannot be used by developers.
pushd %~dp0..\Couchbase.Lite
if not exist ..\couchbase.snk (
    echo Private key not found, aborting...
    popd
    exit /b 1
)

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" Couchbase.Lite.csproj /t:Transform /p:TransformFile="Properties\DynamicAssemblyInfo.tt"
dotnet restore
dotnet build -c Packaging

pushd ..\Couchbase.Lite.Support.UWP
if not exist ..\..\nuget.exe (
    powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile ..\..\nuget.exe"
)
..\..\nuget.exe restore
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" Couchbase.Lite.Support.UWP.csproj /p:Configuration=Packaging
popd

popd

@echo off

echo This script is meant for the Couchbase build server.  It cannot be used by developers.
pushd %~dp0..\Couchbase.Lite
if not exist ..\couchbase.snk (
    echo Private key not found, aborting...
    popd
    exit /b 1
)

if not defined NUGET_REPO (
    echo NUGET_REPO not defined, aborting...
    popd
    exit /b 1
)

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" Couchbase.Lite.csproj /t:Transform /p:TransformFile="Properties\DynamicAssemblyInfo.tt"
dotnet restore -s %NUGET_REPO%
dotnet build -c Packaging

pushd ..\Couchbase.Lite.Support.UWP
if not exist ..\..\nuget.exe (
    powershell -Command "Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/latest/nuget.exe -OutFile ..\..\nuget.exe"
)
..\..\nuget.exe restore -Source %NUGET_REPO%
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" Couchbase.Lite.Support.UWP.csproj /p:Configuration=Packaging
popd

popd

Modify build script to pass in the source of the CI nuget packages


@echo off

rem $Id$

::remove any quotes from JAVA_HOME and EXIST_HOME env var, will be re-added below
for /f "delims=" %%G IN (%JAVA_HOME%) DO SET JAVA_HOME=%%G
for /f "delims=" %%G IN (%EXIST_HOME%) DO SET EXIST_HOME=%%G

rem will be set by the installer
set EXIST_HOME=$INSTALL_PATH
rem will be set by the installer
set JAVA_HOME=$JAVA_HOME

:gotJavaHome
set JAVA_CMD="%JAVA_HOME%\bin\java"

set JAVA_OPTS="-Xms64m -Xmx768m"

rem make sure there's the jetty tmp directory
mkdir "%EXIST_HOME%\tools\jetty\tmp"

rem echo "JAVA_HOME: %JAVA_HOME%"
rem echo "EXIST_HOME: %EXIST_HOME%"
echo %JAVA_OPTS%

%JAVA_CMD% "%JAVA_OPTS%" -Dexist.home="%EXIST_HOME%" -Duse.autodeploy.feature=false -jar "%EXIST_HOME%\start.jar" org.exist.installer.Setup %1 %2 %3 %4 %5 %6 %7 %8 %9

:eof

@echo off

::will be set by the installer
set JAVA_HOME="$JAVA_HOME"
set EXIST_HOME="$INSTALL_PATH"

::remove any quotes from JAVA_HOME and EXIST_HOME env var, will be re-added below
for /f "delims=" %%G IN (%JAVA_HOME%) DO SET JAVA_HOME=%%G
for /f "delims=" %%G IN (%EXIST_HOME%) DO SET EXIST_HOME=%%G

:gotJavaHome
set JAVA_CMD="%JAVA_HOME%\bin\java"

set JAVA_OPTS="-Xms64m -Xmx768m"

::make sure there's the jetty tmp directory
mkdir "%EXIST_HOME%\tools\jetty\tmp"

echo "JAVA_HOME: [%JAVA_HOME%]"
echo "EXIST_HOME: [%EXIST_HOME%]"
echo "EXIST_OPTS: [%JAVA_OPTS%]"
echo:
echo:

%JAVA_CMD% "%JAVA_OPTS%" -Dexist.home="%EXIST_HOME%" -Duse.autodeploy.feature=false -jar "%EXIST_HOME%\start.jar" org.exist.installer.Setup %1 %2 %3 %4 %5 %6 %7 %8 %9

:eof

[bugfix] Make sure to correctly quote/unquote Windows paths in the installer


echo Creating map files
copy /y helpid.hm+resource.hm+hlp\HexEdit.hm+I:\Micros~1\vc98\mfc\include\afxhelp.hm+D:\bcg590\BCGControlBar\help\BCGControlBar.hm HexeditMap.tmp
sed "s/^HID/#define HID/"  <HexeditMap.tmp >HexeditMap2.tmp
del HexeditMap.tmp
sed "s/^AFX_HID/#define AFX_HID/"  <HexeditMap2.tmp >HTMLHelp\HexeditMap.hm
del HexeditMap2.tmp

echo Creating map files

REM Get MFC help IDs
rem copy /y I:\Micros~1\vc98\mfc\include\afxhelp.hm  afxhelp.tmp
copy /y "C:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include\afxhelp.hm"  afxhelp.tmp

REM Get BCG help IDs
rem copy /y D:\bcg590\BCGControlBar\help\BCGControlBar.hm  bcghelp.tmp
copy /y "I:\Devel\BCG6_2\BCGControlBar\Help\BCGControlBar.hm"  .\bcghelp.tmp

REM Copy all help IDs into one file
copy /y helpid.hm+resource.hm+hlp\HexEdit.hm+afxhelp.tmp+bcghelp.tmp  HexeditMap.tmp

rem del afxhelp.tmp
rem del bcghelp.tmp

REM Make sure they all start with #define which is what RoboHelp expects
sed "s/^HID/#define HID/"  <HexeditMap.tmp >HexeditMap2.tmp
rem del HexeditMap.tmp
sed "s/^AFX_HID/#define AFX_HID/"  <HexeditMap2.tmp >HTMLHelp\HexeditMap.h
rem del HexeditMap2.tmp

Fix creation of help map file for Robohelp
- different location for MFC and BCG .hm file
- changes needed to handle spaces in file name
- output to HexEditMap.h (not .hm)

git-svn-id: c806da28ca781a1e2f2d0b1fde2a9d9a144b325a@158 295070fd-a27b-da4f-a32e-77c6a882a0e3


:: Helper script to build Spectrecoin on Windows using VS2017 and QT.

IF "%QTDIR%" == "" GOTO NOQT
:YESQT

set CALL_DIR=%cd%
set SRC_DIR=%cd%\src
set DIST_DIR=%SRC_DIR%\dist
set BUILD_DIR=%SRC_DIR%\build
set OUT_DIR=%SRC_DIR%\bin
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cd
cd %SRC_DIR%
dir

echo on

rmdir /S /Q "%DIST_DIR%"
mkdir "%DIST_DIR%"
mkdir "%BUILD_DIR%"
mkdir "%OUT_DIR%"

pushd "%BUILD_DIR%"

%QTDIR%\bin\qmake.exe ^
  -spec win32-msvc ^
  "CONFIG += release" ^
  "%SRC_DIR%\src.pro"

nmake

popd

%QTDIR%\bin\windeployqt "%OUT_DIR%\Spectrecoin.exe"

::ren "%OUT_DIR%" Spectrecoin
::echo "The prepared package is in: %SRC_DIR%\Spectrecoin"

echo "Everything is OK"
GOTO END

:NOQT
@ECHO The QTDIR environment variable was NOT detected!

:END
cd %CALL_DIR%

:: Helper script to build Spectrecoin on Windows using VS2017 and QT.

IF "%QTDIR%" == "" GOTO NOQT
:YESQT

set CALL_DIR=%cd%
set SRC_DIR=%cd%\src
set DIST_DIR=%SRC_DIR%\dist
set BUILD_DIR=%SRC_DIR%\build
set OUT_DIR=%SRC_DIR%\bin
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
cd
cd %SRC_DIR%
dir

echo on

del "%OUT_DIR%\Spectrecoin.exe" 2>nul
rmdir /S /Q "%DIST_DIR%"
mkdir "%DIST_DIR%"
mkdir "%BUILD_DIR%"
mkdir "%OUT_DIR%"

pushd "%BUILD_DIR%"

%QTDIR%\bin\qmake.exe ^
  -spec win32-msvc ^
  "CONFIG += release" ^
  "%SRC_DIR%\src.pro"

nmake

popd

%QTDIR%\bin\windeployqt "%OUT_DIR%\Spectrecoin.exe"

::ren "%OUT_DIR%" Spectrecoin
::echo "The prepared package is in: %SRC_DIR%\Spectrecoin"

echo "Everything is OK"
GOTO END

:NOQT
@ECHO The QTDIR environment variable was NOT detected!

:END
cd %CALL_DIR%

Remove previous win executable before build


REM Load all Windows Apps / Programs in a folder to view icons
%windir%\explorer.exe shell:::{4234d49b-0245-4df3-b780-3893943456e1}

Load Applications list into a Folder for viewing


@ECHO OFF
REM $Id$

REM Bat script building FMILibrary dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se

set basedir=%~dp0
set name=FMILibrary
set codedir=%basedir%\%name%_code
set builddir=%basedir%\%name%_build
set installdir=%basedir%\%name%

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%

REM build
mkdir %builddir%
cd %builddir%
cmake -Wno-dev -G "MinGW Makefiles" -DFMILIB_FMI_PLATFORM="win64" -DFMILIB_INSTALL_PREFIX=%installdir% %codedir%
mingw32-make.exe -j4
mingw32-make.exe install

cd %basedir%
echo.
echo setupFMILibrary.bat done
pause

@ECHO OFF
REM $Id$

REM Bat script building FMILibrary dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se

set basedir=%~dp0
set name=FMILibrary
set zipdir=%name%-2.0.2
set zipfile=tools\%zipdir%-src.zip
set codedir=%basedir%\%name%_code
set builddir=%basedir%\%name%_build
set installdir=%basedir%\%name%

REM Unpack
echo.
echo Clearing old directory (if it exists)
if exist %codedir% rd /s/q %codedir%
echo Unpacking %zipfile%
tools\7z\7za.exe x %zipfile% -y > nul
move %zipdir% %codedir%

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%

REM build
mkdir %builddir%
cd %builddir%
cmake -Wno-dev -G "MinGW Makefiles" -DFMILIB_FMI_PLATFORM="win64" -DFMILIB_INSTALL_PREFIX=%installdir% %codedir%
mingw32-make.exe -j4
mingw32-make.exe install

cd %basedir%
echo.
echo setupFMILibrary.bat done
pause

Add zip file unpacking to FMILibrary windows setup script


echo off
pushd "%~dp0"
logman stop usbdkm -ets >nul 2>&1
logman delete usbdkm -ets >nul 2>&1
logman create trace usbdkm -o usbdk.etl -ow -ets
logman update usbdkm -p {88e1661f-48b6-410f-b096-ba84e9f0656f} 0x7fffffff 6 -ets
echo Recording started.
echo Reproduce the problem, then press ENTER
pause > nul
logman stop usbdkm -ets
dir usbdk.etl
echo Please collect usbdk.etl file now
pause
popd

tools: Add BAT file for recording of binary trace

Existing batch file records binary trace using TraceView that
shall be copied from WDK, which is not always installed on end
user machine. Added batch file allows recording without additional
tools, using built-in logman application.

Signed-off-by: Yuri Benditovich <9668326cb042de5d91fd7679dac7ca5ea402812c@daynix.com>
Signed-off-by: Dmitry Fleytman <f50f56ffad4b379c2a89812e98b14900ef87e9ea@redhat.com>


@echo off
pushd %~dp0
set DEPLOYMENT=deploy
set NUGET=packages
echo > build.info
call deploy.cmd
call run_tests.cmd %*
popd

@echo off
pushd %~dp0
set DEPLOYMENT=deploy
set NUGET=packages
echo. 2> build.info
call deploy.cmd
call run_tests.cmd %*
popd

Write empty build.info on local run

Write empty build.info on local run


@echo off

pushd %~dp0

SET PACKAGEPATH=.\packages\
SET NUGET=.\tools\nuget\NuGet.exe
SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion

IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.23.0 (
  %NUGET% install FAKE -Version 4.23.0 %NUGETOPTIONS%
  COPY NUL %PACKAGEPATH%FAKE\Ver_4.23.0
)

IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.4 (
  %NUGET% install FAKE.BuildLib -Version 0.1.4 %NUGETOPTIONS%
  COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.4
)

set encoding=utf-8
"%PACKAGEPATH%FAKE\tools\FAKE.exe" build.fsx %*

popd

@echo off

pushd %~dp0

SET PACKAGEPATH=.\packages\
SET NUGET=.\tools\nuget\NuGet.exe
SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion

IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.23.0 (
  %NUGET% install FAKE -Version 4.23.0 %NUGETOPTIONS%
  COPY NUL %PACKAGEPATH%FAKE\Ver_4.23.0
)

IF NOT EXIST %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.5 (
  %NUGET% install FAKE.BuildLib -Version 0.1.5 %NUGETOPTIONS%
  COPY NUL %PACKAGEPATH%FAKE.BuildLib\Ver_0.1.5
)

set encoding=utf-8
"%PACKAGEPATH%FAKE\tools\FAKE.exe" build.fsx %*

popd

Use Fake.BuildLib 0.1.5 in Build.cmd

Use Fake.BuildLib 0.1.5 in Build.cmd


"c:\Program Files\7-Zip\7z" a -tzip  ..\folderAccountBeta.xpi *  -x!PackUp.bat -x!.git

Fix packup script to work with git repo

Fix packup script to work with git repo


@echo off
cd C:\Users\dzony\Documents\projects\system\env\system\Scripts

start cmd /k "activate && cd C:\Users\dzony\Documents\projects\system\server__client\ && python start_server.py"
sleep 0.1
start cmd /k "activate && cd C:\Users\dzony\Documents\projects\system\backend\ && python start.py"

@echo off
cd C:\Users\dzony\Documents\projects\system\env\system\Scripts

start cmd /k "activate && cd C:\Users\dzony\Documents\projects\system\server__client\ && python start.py"
sleep 0.1
start cmd /k "activate && cd C:\Users\dzony\Documents\projects\system\backend\ && python start.py"

Update bat file for starting system

Update bat file for starting system


REM Start from a clean build directory
rmdir /Q /S C:\Dashboards\TubeTK\TubeTK-Release

REM Update the TubeTK Dashboard scripts
cd C:\Dashboards\TubeTK\TubeTK-DashboardScripts
REM "C:\Program Files (x86)\Git\bin\git" reset --hard HEAD
"C:\Program Files (x86)\Git\bin\git" pull
cd ..

REM Run the nightly CTest
"C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" -S "C:\Dashboards\TubeTK\TubeTK-DashboardScripts\Deathstar_Win7VM_Kitware_TubeTK.cmake" -O "C:\Dashboards\TubeTK\TubeTK_CDashClient_Nightly_log.txt"

Add .bat script for Deathstar_Win7VM.

ENH: Add .bat script for Deathstar_Win7VM.


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

doskey oq=python.exe -m openquake.commands.__main__ $*
doskey oq-engine=python.exe -m openquake.commonlib.commands engine $*

echo OpenQuake environment loaded
cmd /k

endlocal

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

doskey oq=python.exe -m openquake.commands.__main__ $*
doskey oq-engine=python.exe -m openquake.commands.__main__ engine $*

echo OpenQuake environment loaded
echo The command 'oq-engine' is deprecated and will be removed. Please use 'oq engine' instead
cmd /k

endlocal

Add deprecation warnign and fix a command


@echo Off

echo ====== Starting to build dvc installer for Windows... ======

if not exist dvc\NUL (echo Error: Please run this script from repository root && goto :error)

rmdir /Q /S build
rmdir /Q /S dist
del /Q /S dvc.spec
del /Q /S "dvc-*.exe"

where pip
if %errorlevel% neq 0 (echo Error: pip not found && goto :error)

if not exist "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" (echo Error: Couldn't find Inno Setup compiler. Please go to jrsoftware.org/isinfo.php and install Inno Setup 5 && goto :error)

echo ====== Installing requirements... ======
call pip install -r requirements.txt || goto :error
call pip install pyinstaller || goto :error

echo ====== Building dvc binary... ======
call pyinstaller --onefile --additional-hooks-dir scripts\hooks dvc/__main__.py --name dvc --specpath build

echo ====== Building dvc installer... ======
set PYTHONPATH=%cd%
call python scripts\innosetup\config_gen.py || goto :error
call "C:\Program Files (x86)\Inno Setup 5\iscc" scripts\innosetup\setup.iss || goto :error

echo ====== DONE ======
goto :EOF

:error
echo ====== FAIL ======
exit /b 1

@echo Off

echo ====== Starting to build dvc installer for Windows... ======

if not exist dvc\NUL (echo Error: Please run this script from repository root && goto :error)

rmdir /Q /S build
rmdir /Q /S dist
del /Q /S dvc.spec
del /Q /S "dvc-*.exe"

where pip
if %errorlevel% neq 0 (echo Error: pip not found && goto :error)

if not exist "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" (echo Error: Couldn't find Inno Setup compiler. Please go to jrsoftware.org/isinfo.php and install Inno Setup 5 && goto :error)

echo ====== Installing requirements... ======
call pip install -r requirements.txt || goto :error
call pip install pyinstaller || goto :error

echo ====== Building dvc binary... ======
call pyinstaller --onefile --additional-hooks-dir scripts\hooks dvc/__main__.py --name dvc --specpath build

echo ====== Copying additional files... ======
copy scripts\innosetup\addSymLinkPermissions.ps1 dist\ || goto :error

echo ====== Building dvc installer... ======
set PYTHONPATH=%cd%
call python scripts\innosetup\config_gen.py || goto :error
call "C:\Program Files (x86)\Inno Setup 5\iscc" scripts\innosetup\setup.iss || goto :error

echo ====== DONE ======
goto :EOF

:error
echo ====== FAIL ======
exit /b 1

Revert "build: win: don't look for symlink ps script"

This reverts commit 4164eddb920ad4df2b9dd805497424eb53caebf9.


@echo off

set PTOOLSPATH="%~dp0\"
php %PTOOLSPATH%phalcon.php %*

@echo off

set PTOOLSPATH=%~dp0
php %PTOOLSPATH%phalcon.php %*

Fix initialization home directory in Windows batch file.


"C:\Program Files\7-Zip\7z.exe" u -uq0 -mx9 psdle.zip ./psdle/* -r -x!*.db -x!*.ini

"C:\Program Files\7-Zip\7z.exe" u -uq0 -mx9 psdle.zip -mtc- ./psdle/* -r -x!*.db -x!*.ini

Update Chrome 7z bat file.

Update Chrome 7z bat file.


dotnet test "test\Infrastructure\Skeleton.Common.Tests" -c %1
dotnet test "test\Infrastructure\Skeleton.CQRS.Implementations.Tests" -c %1
dotnet test "test\Infrastructure\Skeleton.Dapper.Tests" -c %1

cd "test\Web.Tests"
dotnet test -c %1
cd "..\.."

Fix for tests running script was added

Fix for tests running script was added


@ECHO OFF
:: Performs necessary setup steps to allow the use of
:: virtualenv commands such as "mkvirtualenv [ENV_NAME]"
:: for creating and using Python virtual environments.

python -m pip install --upgrade virtualenv
python -m pip install --upgrade virtualenvwrapper-win
echo:
echo:
echo: *** You may now use virtualenv commands in your command shell. ***
echo:
echo: virtualenv commands:
echo:   *  "mkvirtualenv [ENV_NAME]"  -  Create a Python virtual environment
echo:   *  "deactivate"               -  Exit the current virtual environment
echo:   *  "workon [ENV_NAME]"        -  Enter an existing virtual environment
echo:   *  "lsvirtualenv" OR "workon" -  List all virtual environments
echo:   *  "rmvirtualenv [ENV_NAME]"  -  Delete a virtual environment
echo:
echo: Example:
echo:       mkvirtualenv seleniumbase
echo:       mkvirtualenv seleniumbase --python=[PATH_TO_PYTHON]
echo:

@ECHO OFF
:: Performs necessary setup steps to allow the use of
:: virtualenv commands such as "mkvirtualenv [ENV_NAME]"
:: for creating and using Python virtual environments.

python -m pip install --upgrade virtualenvwrapper-win
echo:
echo:
echo: *** You may now use virtualenv commands in your command shell. ***
echo:
echo: virtualenv commands:
echo:   *  "mkvirtualenv [ENV_NAME]"  -  Create a Python virtual environment
echo:   *  "deactivate"               -  Exit the current virtual environment
echo:   *  "workon [ENV_NAME]"        -  Enter an existing virtual environment
echo:   *  "lsvirtualenv" OR "workon" -  List all virtual environments
echo:   *  "rmvirtualenv [ENV_NAME]"  -  Delete a virtual environment
echo:
echo: Example:
echo:       mkvirtualenv seleniumbase
echo:       mkvirtualenv seleniumbase --python=[PATH_TO_PYTHON]
echo:

Simplify virtualenv installation on Windows


@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;%PATH%

cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\%CONFIGURATION%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\

cmake -GNinja -D%CONFIGURATION%=TRUE -DCMAKE_BUILD_TYPE=%CONFIGURATION% ..
cmake --build . --config %CONFIGURATION%

@call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;%PATH%

REM cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\%CONFIGURATION%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\"
%PROJECT_PATH%\cmake\scripts\robocopy.bat "%PROJECT_PATH%\scripts" "%PROJECT_PATH%\build\bin\scripts" "*.lua"

cmake -GNinja -D%CONFIGURATION%=TRUE -DCMAKE_BUILD_TYPE=%CONFIGURATION% ..
cmake --build . --config %CONFIGURATION%

Update uploaded artifact on appveyor to include the scripts dir


@echo off
pushd "%~dp0"
if exist cs (goto okcs) else (echo "No cs folder found." && goto exit)
:okcs
if exist vb (goto okvb) else (echo "No vb folder found." && goto exit)
:okvb

if [%1]==[] (
  echo Please specify Visual Studio version, e.g., 2017
  goto exit
) else (
	echo Using version %1
	set "D=%userprofile%\Documents\Visual Studio %1\Templates\ProjectTemplates"
)

set "F=%TEMP%\Revit2020AddinWizardCs0.zip"
echo Creating C# wizard archive %F%...
cd cs
..\zip\zip.exe -r "%F%" *
cd ..
echo Copying C# wizard archive to %D%\Visual C#...
copy "%F%" "%D%\Visual C#"
set "F=%TEMP%\Revit2020AddinWizardVb0.zip"
echo Creating VB wizard archive %F%...
cd vb
..\zip\zip.exe -r "%F%" *
cd ..
echo Copying VB wizard archive to %D%\Visual Basic...
copy "%F%" "%D%\Visual Basic"
:exit

@echo off
pushd "%~dp0"
if exist cs (goto okcs) else (echo "No cs folder found." && goto exit)
:okcs
if exist vb (goto okvb) else (echo "No vb folder found." && goto exit)
:okvb

if [%1]==[] (
  echo Please specify Visual Studio version, e.g., 2017
  goto exit
) else (
	echo Using version %1
	set "D=%userprofile%\Documents\Visual Studio %1\Templates\ProjectTemplates"
)

set "F=%TEMP%\Revit2020AddinWizardCs0.zip"
echo Creating C# wizard archive %F%...
cd cs
..\zip\zip.exe -r "%F%" *
cd ..
echo Copying C# wizard archive to %D%\Visual C#...
xcopy "%F%" "%D%\Visual C#\"
set "F=%TEMP%\Revit2020AddinWizardVb0.zip"
echo Creating VB wizard archive %F%...
cd vb
..\zip\zip.exe -r "%F%" *
cd ..
echo Copying VB wizard archive to %D%\Visual Basic...
xcopy "%F%" "%D%\Visual Basic\"
:exit

Use xcopy rather than copy

Use xcopy rather than copy

Use xcopy rather than copy because copy creates the directory as a file without an extension rather than a directory.


@echo off

setlocal EnableDelayedExpansion

set registryRoot=HKCU\Software\Classes

reg add "%registryRoot%\*\shell\grepWin..." /v LegacyDisable /t REG_SZ /f
reg add "%registryRoot%\*\shell\grepWin..." /v LegacyDisable /t REG_SZ /f
reg add "%registryRoot%\Directory\background\shell\grepWin..." /v LegacyDisable /t REG_SZ /f
reg add "%registryRoot%\Directory\shell\grepWin..." /v LegacyDisable /t REG_SZ /f
reg add "%registryRoot%\Drive\shell\grepWin..." /v LegacyDisable /t REG_SZ /f
reg add "%registryRoot%\Folder\shell\grepWin..." /v LegacyDisable /t REG_SZ /f

Add script for disabling grepWin context menu


@echo off
call "..\VsDevCmd.cmd"

set platform="%1"
if "%1" == "AnyCPU" (
  set platform="x86"
)

set vstest="%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"

for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do (
  if "%%~nxa"=="Magick.NET.Tests.dll" (
    echo "Running tests from: %%~dpnxa"
    %vstest% %%~dpnxa /inIsolation /platform:%platform% /TestAdapterPath:%%~dpa /logger:AppVeyor
    if %errorlevel% neq 0 exit /b %errorlevel%
  )
)

@echo off
call "..\VsDevCmd.cmd"

set platform="%1"
if "%1" == "AnyCPU" (
  set platform="x86"
)

set vstest="%VSINSTALLDIR%\Common7\IDE\Extensions\TestPlatform\vstest.console.exe"

for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do (
  if "%%~nxa"=="Magick.NET.Tests.dll" (
    echo "Running tests from: %%~dpnxa"
    %vstest% %%~dpnxa /inIsolation /platform:%platform% /TestAdapterPath:%%~dpa /logger:AppVeyor
    if %errorlevel% neq 0 exit /b %errorlevel%
  )
)

Use correct path for vstest.console.exe

Use correct path for vstest.console.exe


@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
setlocal
if /I ""%1""==""--help"" goto documentation
if /I ""%1""==""-h""     goto documentation
if /I ""%1""==""/h""     goto documentation
if    ""%1""==""/?""     goto documentation
goto run

:documentation
echo Usage: %~nx0 [options] [.exs file] [data]
echo.
echo The following options are exclusive to IEx:
echo.
echo   --dot-iex "PATH"    Overrides default .iex.exs file and uses path instead;
echo                       path can be empty, then no file will be loaded
echo   --remsh NAME        Connects to a node using a remote shell
echo   --werl              Uses Erlang's Windows shell GUI (Windows only)
echo.
echo Set the IEX_WITH_WERL environment variable to always use werl.
echo It accepts all other options listed by "elixir --help".
goto end

:run
if defined IEX_WITH_WERL (@set __ELIXIR_IEX_FLAGS=--werl) else (set __ELIXIR_IEX_FLAGS=)
call "%~dp0\elixir.bat" --no-halt --erl "-noshell -user Elixir.IEx.CLI" +iex %__ELIXIR_IEX_FLAGS% %*
:end
endlocal

@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off)
setlocal
if /I ""%1""==""--help"" goto documentation
if /I ""%1""==""-h""     goto documentation
if /I ""%1""==""/h""     goto documentation
if    ""%1""==""/?""     goto documentation
goto run

:documentation
echo Usage: %~nx0 [options] [.exs file] [data]
echo.
echo The following options are exclusive to IEx:
echo.
echo   --dot-iex "PATH"    Overrides default .iex.exs file and uses path instead;
echo                       path can be empty, then no file will be loaded
echo   --remsh NAME        Connects to a node using a remote shell
echo   --werl              Uses Erlang's Windows shell GUI (Windows only)
echo.
echo Set the IEX_WITH_WERL environment variable to always use werl.
echo It accepts all other options listed by "elixir --help".
goto end

:run
if defined IEX_WITH_WERL (set __ELIXIR_IEX_FLAGS=--werl) else (set __ELIXIR_IEX_FLAGS=)
call "%~dp0\elixir.bat" --no-halt --erl "-noshell -user Elixir.IEx.CLI" +iex %__ELIXIR_IEX_FLAGS% %*
:end
endlocal

Remove unecessary @ in bat file

Remove unecessary @ in bat file


@ECHO OFF

ECHO     + Checking shellcode for NULL bytes:
ECHO       + w32-dl-loadlib-shellcode.bin
BETA3 h --nullfree w32-dl-loadlib-shellcode.bin > nul
IF ERRORLEVEL 1 GOTO :FAILED
ECHO       + w32-dl-loadlib-shellcode-esp.bin
BETA3 h --nullfree w32-dl-loadlib-shellcode-esp.bin > nul
IF ERRORLEVEL 1 GOTO :FAILED

ECHO     + Running shellcode:
ECHO       + w32-dl-loadlib-shellcode.bin
w32-testival.exe [$]=ascii:w32-dl-loadlib-shellcode.bin eip=$ --EH | match_output.py "Hello, world![\r\n]*" --verbose > nul
IF ERRORLEVEL 1 GOTO :FAILED
ECHO       + w32-dl-loadlib-shellcode-esp.bin
w32-testival.exe [$+800]=ascii:w32-dl-loadlib-shellcode-esp.bin eip=$+800 esp=$+7FF --EH | match_output.py "Hello, world![\r\n]*" --verbose > nul
IF ERRORLEVEL 1 GOTO :FAILED

EXIT /B 0

:FAILED
  ECHO     * Test failed!
  EXIT /B %ERRORLEVEL%

@ECHO OFF

ECHO     + Checking shellcode for NULL bytes:
ECHO       + w32-dl-loadlib-shellcode.bin
CALL BETA3 h --nullfree w32-dl-loadlib-shellcode.bin > nul
IF ERRORLEVEL 1 GOTO :FAILED
ECHO       + w32-dl-loadlib-shellcode-esp.bin
CALL BETA3 h --nullfree w32-dl-loadlib-shellcode-esp.bin > nul
IF ERRORLEVEL 1 GOTO :FAILED

ECHO     + Running shellcode:
ECHO       + w32-dl-loadlib-shellcode.bin
w32-testival.exe [$]=ascii:w32-dl-loadlib-shellcode.bin eip=$ --EH | match_output.py "Hello, world![\r\n]*" --verbose > nul
IF ERRORLEVEL 1 GOTO :FAILED
ECHO       + w32-dl-loadlib-shellcode-esp.bin
w32-testival.exe [$+800]=ascii:w32-dl-loadlib-shellcode-esp.bin eip=$+800 esp=$+7FF --EH | match_output.py "Hello, world![\r\n]*" --verbose > nul
IF ERRORLEVEL 1 GOTO :FAILED

EXIT /B 0

:FAILED
  ECHO     * Test failed!
  EXIT /B %ERRORLEVEL%

Use CALL for BETA3 as it may be a .cmd file, which would terminate this script


del "spec/*.js"
call tsc "spec/ActorSpec.ts" -out "spec/ActorSpec.js"
call tsc "spec/ColorSpec.ts" -out "spec/ColorSpec.js"
call tsc "spec/PromiseSpec.ts" -out "spec/PromiseSpec.js"
call tsc "spec/CollectionSpec.ts" -out "spec/CollectionSpec.js"
call tsc "spec/LogSpec.ts" -out "spec/LogSpec.js"
call jasmine-node --verbose spec/

del "spec/*.js"
call tsc "spec/ActorSpec.ts" -out "spec/ActorSpec.js"
call tsc "spec/ColorSpec.ts" -out "spec/ColorSpec.js"
call tsc "spec/PromiseSpec.ts" -out "spec/PromiseSpec.js"
call tsc "spec/CollectionSpec.ts" -out "spec/CollectionSpec.js"
call tsc "spec/LogSpec.ts" -out "spec/LogSpec.js"
call tsc "spec/ClassSpec.ts" -out "spec/ClassSpec.js"
call tsc "spec/TimerSpec.ts" -out "spec/TimerSpec.js"
call jasmine-node --verbose spec/

Add new specs to bat

Add new specs to bat


@echo off

:: To run tests outside of MSBuild.exe
:: %1 is the path to the tests\<OSConfig> folder

pushd %1

FOR /D %%F IN (*.Tests) DO (
pushd %%F\dnxcore50
@echo "corerun.exe xunit.console.netcore.exe %%F.dll -xml testResults.xml -notrait category=failing -notrait category=nonwindowstests"
corerun.exe xunit.console.netcore.exe %%F.dll -notrait category=failing -notrait category=nonwindowstests
popd )

popd

@echo off

:: To run tests outside of MSBuild.exe
:: %1 is the path to the tests\<OSConfig> folder

pushd %1

FOR /D %%F IN (*.Tests) DO (
pushd %%F\dnxcore50
@echo "corerun.exe xunit.console.netcore.exe %%F.dll -xml testResults.xml -notrait category=failing -notrait category=nonwindowstests -notrait Benchmark=true"
corerun.exe xunit.console.netcore.exe %%F.dll -notrait category=failing -notrait category=nonwindowstests -notrait Benchmark=true
popd )

popd

Exclude perf tests from nano runs.

Exclude perf tests from nano runs.


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

@echo "Starting Windows build"

cd /d %~dp0
cd ..\..

git submodule update --init
git submodule foreach --recursive git submodule update --init

set ARTIFACTS_OUT=artifacts
cd packages\grpc-native-core
call tools\run_tests\artifacts\build_artifact_node.bat
cd ..\..

move packages\grpc-native-core\artifacts .

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

@echo "Starting Windows build"

cd /d %~dp0
cd ..\..

git submodule update --init
git submodule foreach --recursive git submodule update --init

set ARTIFACTS_OUT=artifacts
cd packages\grpc-native-core
call tools\run_tests\artifacts\build_artifact_node.bat || goto :error
cd ..\..

move packages\grpc-native-core\artifacts .
goto :EOF

:error
exit /b 1

Build failures on Windows should be noticed.


ECHO Clone Dolphin image environment
git clone -q --branch=master https://github.com/dolphinsmalltalk/Dolphin.git Dolphin

ECHO Copy executables
copy ..\..\Dolphin7.exe Dolphin
copy ..\..\DolphinVM7.dll Dolphin
copy ..\..\DolphinCR7.dll Dolphin
copy ..\..\DolphinDR7.dll Dolphin
copy ..\..\DolphinSureCrypto.dll Dolphin

ECHO Boot and test image
cd Dolphin
Dolphin7 DBOOT.img7 DolphinProfessional
DIR DBOOT*, DPRO*
CALL TestDPRO
set errorCode=%ERRORLEVEL%
DIR DPRO*
EXIT errorCode

ECHO Clone Dolphin image environment
git clone -q --branch=master https://github.com/dolphinsmalltalk/Dolphin.git Dolphin

ECHO Copy executables
copy ..\..\Dolphin7.exe Dolphin
copy ..\..\DolphinVM7.dll Dolphin
copy ..\..\DolphinCR7.dll Dolphin
copy ..\..\DolphinDR7.dll Dolphin
copy ..\..\DolphinSureCrypto.dll Dolphin

ECHO Boot and test image
cd Dolphin
Dolphin7 DBOOT.img7 DolphinProfessional
DIR DBOOT*, DPRO*
CALL TestDPRO
set errorCode=%ERRORLEVEL%
DIR DPRO*
EXIT %errorCode%

Use proper reference to error code.

Use proper reference to error code.


@echo off

set DIR=%~dp0
set LIB="%DIR%\..\lib\*"
set BIN="%DIR%\..\bin\*"

REM ???
echo {^
    "type" : "jdbc",^
    "jdbc" : {^
        "url" : "jdbc:mysql://localhost:3306/test",^
        "user" : "",^
        "password" : "",^
        "sql" :  "select *, page_id as _id from page",^
        "treat_binary_as_string" : true,^
        "elasticsearch" : {^
             "cluster" : "elasticsearch",^
             "host" : "localhost",^
             "port" : 9300^
        },^
        "index" : "metawiki"^
      }^
}

"%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="%BIN%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"

@echo off

set DIR=%~dp0
set LIB=%DIR%..\lib\*
set BIN=%DIR%..\bin

REM ???
echo {^
    "type" : "jdbc",^
    "jdbc" : {^
        "url" : "jdbc:mysql://localhost:3306/test",^
        "user" : "",^
        "password" : "",^
        "sql" :  "select *, page_id as _id from page",^
        "treat_binary_as_string" : true,^
        "elasticsearch" : {^
             "cluster" : "elasticsearch",^
             "host" : "localhost",^
             "port" : 9300^
        },^
        "index" : "metawiki"^
      }^
}^ | "%JAVA_HOME%\bin\java" -cp "%LIB%" -Dlog4j.configurationFile="%BIN%\log4j2.xml" "org.xbib.tools.Runner" "org.xbib.tools.JDBCImporter"

Update the windows bat file to make it work.Pass the parameters to next java command as an argument


@echo off

REM This script starts PostgreSQL on Windows. It assumes that you:
REM - installed PostgreSQL to the default folder;
REM - are using the postgres account;
REM - have configured the 'trust' authentication mechanism (no password).

set PGDATA=C:\Program Files\PostgreSQL\9.5\data
set PGHOST=127.0.0.1
set PGPORT=5432
set PGUSER=postgres

"C:\Program Files\PostgreSQL\9.5\bin\postgres.exe"

Add database startup script for Windows

Add database startup script for Windows


@echo on
::
:: Demo _some_ of the stompngo examples.
::
IF [%SNGD%]==[] SET SNGD=C:\gosrc\src\github.com\gmallard\stompngo_examples
echo %SNGD%
IF [%STOMP_HOST%]==[] SET STOMP_HOST=192.168.1.200
echo %STOMP_HOST%
::
set STOMP_NMSGS=1
set STOMP_NQS=1
::
cd %SNGD%
::
set STOMP_DEST=/queue/snge.ack
go run publish\publish.go
set STOMP_DEST=/queue/snge.ack.1
go run ack\ack.go
::
set STOMP_USEEOF=y
set STOMP_DEST=/queue/snge.rdr
go run publish\publish.go
set STOMP_USEEOF=y
set STOMP_DEST=/queue/snge.rdr.1
go run adhoc\reader\reader.go
::
go run conndisc\conndisc.go
::
:: Port 61611: AMQ, TLS, No cert required
set STOMP_PORT=61611
go run conndisc_tls\conndisc_tls.go
::
set STOMP_PORT=61613
go run srmgor_1conn\srmgor_1conn.go
go run srmgor_1smrconn\srmgor_1smrconn.go
go run srmgor_2conn\srmgor_2conn.go
go run srmgor_manyconn\srmgor_manyconn.go
::
set STOMP_USEEOF=y
set STOMP_DEST=/queue/snge.sub
go run publish\publish.go
set STOMP_USEEOF=y
set STOMP_DEST=/queue/snge.sub.1
set STOMP_NMSGS=2
go run subscribe\subscribe.go
::

Add Windows version of demo.

Add Windows version of demo.


@echo on
call "%VS110COMNTOOLS%vsvars32.bat"

REM Portable project
msbuild.exe /ToolsVersion:4.0 "..\Espera\Espera.sln" /p:configuration=Release

set ReleaseDir=..\Release\

REM Cleanup before we create and copy everything
rmdir %ReleaseDir% /s /q

set ReleaseDirPortable=%ReleaseDir%Portable\
mkdir %ReleaseDirPortable%

set bin=..\Espera\Espera.View\bin\Release\

copy %bin%*.dll %ReleaseDirPortable%
copy %bin%Espera.exe %ReleaseDirPortable%
copy %bin%Espera.exe.config %ReleaseDirPortable%
copy ..\Changelog.txt %ReleaseDirPortable%

REM ClickOnce project
msbuild.exe /target:publish /p:configuration=Release ..\Espera\Espera.sln"

set ReleaseDirSetup=%ReleaseDir%Setup\
mkdir %ReleaseDirSetup%

xcopy /S /Y %bin%\app.publish %ReleaseDirSetup%

pause

@echo on
call "%VS110COMNTOOLS%vsvars32.bat"

REM Portable project
msbuild.exe /ToolsVersion:4.0 /p:configuration=Release /v:minimal "..\Espera\Espera.sln"

set ReleaseDir=..\Release\

REM Cleanup before we create and copy everything
rmdir %ReleaseDir% /s /q

set ReleaseDirPortable=%ReleaseDir%Portable\
mkdir %ReleaseDirPortable%

set bin=..\Espera\Espera.View\bin\Release\

copy %bin%*.dll %ReleaseDirPortable%
copy %bin%Espera.exe %ReleaseDirPortable%
copy %bin%Espera.exe.config %ReleaseDirPortable%
copy ..\Changelog.txt %ReleaseDirPortable%

REM ClickOnce project
msbuild.exe /target:publish /p:configuration=Release /v:minimal ..\Espera\Espera.sln"

set ReleaseDirSetup=%ReleaseDir%Setup\
mkdir %ReleaseDirSetup%

xcopy /S /Y %bin%\app.publish %ReleaseDirSetup%

pause

Make build script less verbose

Make build script less verbose


@rem Turn off echoing of commands.
@echo off

rem Make sure local variables don't spill into the global environment.
setlocal EnableExtensions

rem Make sure we're in the src directory.
pushd "%~dp0src"

rem Treat the first parameter to this batch script as a target.
set target=%1

rem If a target is specified, call the subroutine
if "%target%"=="" (call :build) else (call :%target%)
goto :end

:build
  rem Compiler flags:
  rem   /nologo Don't print tedious MS logo stuff in the beginning
  rem   /DEBUG  Compile in debug mode.
  rem   /Z7     Create debug symbols as .pdb files
  rem   /TC     Compile as C, not C++
  set CFLAGS=/nologo /DEBUG /Z7 /TC

  rem Compile the sources.
  cl %CFLAGS% main.c cpu.c gfx.c interconnect.c util.c
exit /B

:clean
  rem Delete all intermediate files.
  del *.obj *.exe *.o *.a *.lib *.pdb *.ilk
exit /B

:end
rem Restore previous directory.
popd

Add support for compiling with cl on Windows


@ECHO OFF

REM GIT Tag and Build nuget package

IF "%1" == "" GOTO SyntaxError
IF "%2" == "" GOTO SyntaxError

REM main code
git tag -a %1 -m "%2"
cd GFDN.ThaiBahtText
nuget pack GFDN.ThaiBahtText.csproj ^
   -Version %1 ^
	 -Prop Configuration=Release ^
	 -OutputDirectory "Nuget Packages"
cd ..
@ECHO.
@ECHO Push to GitHub
git push origin --tags
@ECHO.
@ECHO Push to NuGet
nuget push "GFDN.ThaiBahtText\NuGet Packages\ThaiBahtText.%1.nupkg"
GOTO End

:SyntaxError
@ECHO Usage syntax:
@ECHO.
@ECHO nugetpack tag_number tag_name
@ECHO.
@ECHO Sample:
@ECHO   nugetpack 0.1 baby-peter
GOTO End

:End
@ECHO ON

@ECHO OFF

REM GIT Tag and Build nuget package

IF "%1" == "" GOTO SyntaxError
IF "%2" == "" GOTO SyntaxError

REM main code
git tag -a %1 -m "%2"
cd GFDN.ThaiBahtText
nuget pack GFDN.ThaiBahtText.csproj ^
   -Version %1 ^
	 -Prop Configuration=Release ^
	 -OutputDirectory "Nuget Packages"
cd ..
@ECHO.
@ECHO Push to GitHub
git push origin master
git push origin --tags
@ECHO.
@ECHO Push to NuGet
nuget push "GFDN.ThaiBahtText\NuGet Packages\ThaiBahtText.%1.nupkg"
GOTO End

:SyntaxError
@ECHO Usage syntax:
@ECHO.
@ECHO nugetpack tag_number tag_name
@ECHO.
@ECHO Sample:
@ECHO   nugetpack 0.1 baby-peter
GOTO End

:End
@ECHO ON

Make sure that push all updates before tagging them


@setlocal
@set TSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DWIN32 /DUSE_DL=1
@set TSLINK=link /nologo
@set TSLIB=lib /nologo

@if "%1" == "static" goto STATIC
@if not exist bin\ (
  mkdir bin
)

%TSCOMPILE% /MT scheme.c dynload.c
%TSLINK% /out:bin\tinyscheme.exe scheme.obj dynload.obj

%TSCOMPILE% /MDd scheme.c dynload.c
%TSLINK% /out:bin\tinyscheme_d.exe scheme.obj dynload.obj

@goto END

:STATIC
@if not exist lib\ (
  mkdir lib
)

%TSCOMPILE% /DSTANDALONE=0 /MT scheme.c dynload.c
%TSLIB% /out:lib\tinyscheme.lib scheme.obj dynload.obj

%TSCOMPILE% /DSTANDALONE=0 /MDd scheme.c dynload.c
%TSLIB% /out:lib\tinyscheme_d.lib scheme.obj dynload.obj

:END
del scheme.obj dynload.obj

Add a batch file to build on Windows with MSVC.


@echo off

rem This needed for pkg-config to detect pcl and eigen3 pc files
set PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig

rem Override distutils VS detection
set DISTUTILS_USE_SDK=1
set MSSdk=1

rem Renames necessary for python-pcl to detect the libraries it needs
for %%x in (io registration segmentation features filters sample_consensus
  surface search kdtree octree common) do (
    copy /y %LIBRARY_LIB%\pcl_%%x_release.lib %LIBRARY_LIB%\pcl_%%x.lib > nul
    if errorlevel 1 exit 1
)

copy /y %LIBRARY_LIB%\flann_cpp_s.lib %LIBRARY_LIB%\flann_cpp.lib > nul
if errorlevel 1 exit 1

rem Compile extension
python setup.py config --compiler=msvc build --compiler=msvc install
if errorlevel 1 exit 1

rem Remove library renames
for %%x in (io registration segmentation features filters sample_consensus
  surface search kdtree octree common) do (
    del %LIBRARY_LIB%\pcl_%%x.lib
    if errorlevel 1 exit 1
)

del %LIBRARY_LIB%\flann_cpp.lib
if errorlevel 1 exit 1

@echo off

rem This is needed for pkg-config to detect pcl and eigen3 pc files
set PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig

rem Override distutils VS detection
set DISTUTILS_USE_SDK=1
set MSSdk=1

rem Renames necessary for python-pcl to detect the libraries it needs
for %%x in (io registration segmentation features filters sample_consensus
  surface search kdtree octree common) do (
    copy /y %LIBRARY_LIB%\pcl_%%x_release.lib %LIBRARY_LIB%\pcl_%%x.lib > nul
    if errorlevel 1 exit 1
)

copy /y %LIBRARY_LIB%\flann_cpp_s.lib %LIBRARY_LIB%\flann_cpp.lib > nul
if errorlevel 1 exit 1

rem Compile extension
python setup.py config --compiler=msvc build --compiler=msvc install
if errorlevel 1 exit 1

rem Remove library renames
for %%x in (io registration segmentation features filters sample_consensus
  surface search kdtree octree common) do (
    del %LIBRARY_LIB%\pcl_%%x.lib
    if errorlevel 1 exit 1
)

del %LIBRARY_LIB%\flann_cpp.lib
if errorlevel 1 exit 1

Fix grammar in a comment

Python-pcl: Fix grammar in a comment


@echo off

rem ----- Ignore system ANT_HOME variable
set ORIGINAL_ANT_HOME=%ANT_HOME%
set ANT_HOME=tools\apache-ant-1.6.5

call %ANT_HOME%\bin\ant -version
rem call %ANT_HOME%\bin\ant -f src\build\build.xml
call %ANT_HOME%\bin\ant -f src\build\build.xml config
rem call %ANT_HOME%\bin\ant -f src\build\build.xml -Djava.endorsed.dirs=lib\endorsed -logger org.apache.tools.ant.NoBannerLogger -emacs config

rem ----- Restore ANT_HOME
set ANT_HOME=%ORIGINAL_ANT_HOME%
set ORIGINAL_ANT_HOME=

Configure script ported to Windows

Configure script ported to Windows


@echo off

chcp 65001>nul

prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s

rem Fake a UNIX environment

doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey touch=type nul$G$G$*

rem Easier navigation

doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doskey ...=cd ../..
doskey ....=cd ../../..

rem List files properly

doskey l=dir /b $*
doskey ll=dir /b $*

rem Edit functionality

IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME
    doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $*
:NOSUBLIME

rem Open functionality

doskey open=start $*

@echo on

@echo off

chcp 65001>nul

prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s

rem Fake a UNIX environment

doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey touch=type nul$G$G$*

rem Easier navigation

doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doskey ...=cd ../..
doskey ....=cd ../../..

rem List files properly

doskey l=dir /b $*
doskey ll=dir /b $*

rem Edit functionality

IF NOT EXIST "C:\Program Files (x86)\Microsoft VS Code" GOTO NOVSCODE
    doskey edit="C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd" $*
    GOTO NOSUBLIME
:NOVSCODE

IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME
    doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $*
:NOSUBLIME

rem Open functionality

doskey open=start $*

@echo on

Use vscode as editor in windows

Use vscode as editor in windows


Set Book=%BookName%%1
Call Generate %Book% name SongTi FontSize48
Call Generate %Book% name QuanZiKuFont FontSize48

:: The following fonts generated unreadable characters.
:: Call Generate %Book% name FangSong FontSize48
:: Call Generate %Book% name KaiTi FontSize48

:: The following fonts generated incomplete text.
:: Call Generate %Book% name BeiShiDaFont FontSize48
:: Call Generate %Book% name JinWen FontSize48
:: Call Generate %Book% name LiShu FontSize48
:: Call Generate %Book% name JiaGuWen FontSize48
Set Destinaton=%OutputFolder%\%1
RmDir %Destinaton% /s /q
MkDir %Destinaton%
Move /Y %Book%*.pdf %Destinaton%

Set Book=%BookName%%1
Call Generate %Book% name SongTi FontSize48
Call Generate %Book% name QuanZiKuFont FontSize48

:: The following fonts generated unreadable characters.
:: Call Generate %Book% name FangSong FontSize48
:: Call Generate %Book% name KaiTi FontSize48

:: The following fonts generated incomplete text.
REM Call Generate %Book% name BeiShiDaFont FontSize48
REM Call Generate %Book% name JinWen FontSize48
REM Call Generate %Book% name LiShu FontSize48
REM Call Generate %Book% name JiaGuWen FontSize48

Set Destinaton=%OutputFolder%\%1
RmDir %Destinaton% /s /q
MkDir %Destinaton%
Move /Y %Book%*.pdf %Destinaton%

Create more books for other font families


"%sdkverpath%" -q -version:"%sdkver%"
call setenv /x64

rem install python packages
pip install --cache-dir C:/egg_cache nose
pip install --cache-dir C:/egg_cache coverage
pip install --cache-dir C:/egg_cache numpy
pip install --cache-dir C:/egg_cache cython
pip install --cache-dir C:/egg_cache babel==1.3
pip install --cache-dir C:/egg_cache Sphinx

rem install traits
python setup.py develop

"%sdkverpath%" -q -version:"%sdkver%"
call setenv /x64

rem install python packages
pip install --cache-dir C:/egg_cache nose
pip install --cache-dir C:/egg_cache coverage
pip install --cache-dir C:/egg_cache numpy
pip install --cache-dir C:/egg_cache cython
rem Work around bug in babel 2.0: see mitsuhiko/babel#174
pip install --cache-dir C:/egg_cache babel==1.3
pip install --cache-dir C:/egg_cache Sphinx

rem install traits
python setup.py develop

Add comment explaining why we're forcing babel 1.3


@echo off

NET SESSION >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
    ECHO Not an admin, exiting.
    EXIT /B 1
)

setlocal EnableDelayedExpansion

:: ############################
:: # Create symlinks from the home directory to any desired dotfiles directory.
:: ############################

:: dotfiles directory
set dotfilesdir=%USERPROFILE%\.dotfiles

:: backup directory
set backupdir=%USERPROFILE%\dotfiles_backup

:: list of files/folders to symlink in homedir
set dotfiles=bashrc bash_profile bash dir_colors inputrc minttyrc gitconfig

for %%A in (%dotfiles%) DO (
  set target=%dotfilesdir%\%%A
  set link=%USERPROFILE%\.%%A
  set linkExists="0"

  if exist "!link!" (
    set Z=&& for %%B in ("!link!") do set Z=%%~aB
    if "!Z:~8,1!" == "l" (
      set linkExists="1"
    ) else (
      if not exist "%backupdir%" (
        mkdir "%backupdir%""
      )
      echo Moving existing !link! to %backupdir%
      move "!link!" "%backupdir%"
    )
  )

  if !linkExists! == "0" (
    if exist "!target!\" (
      mklink /d "!link!" "!target!"
    ) else (
      mklink "!link!" "!target!"
    )
  )
)

@echo off

NET SESSION >nul 2>&1
IF %ERRORLEVEL% NEQ 0 (
    ECHO Not an admin, exiting.
    EXIT /B 1
)

setlocal EnableDelayedExpansion

:: ############################
:: # Create symlinks from the home directory to any desired dotfiles directory.
:: ############################

:: dotfiles directory
set dotfilesdir=%USERPROFILE%\.dotfiles

:: backup directory
set backupdir=%USERPROFILE%\dotfiles_backup

:: list of files/folders to symlink in homedir
set dotfiles=bashrc bash_profile bash dir_colors inputrc minttyrc gitconfig

for %%A in (%dotfiles%) DO (
  set target=%dotfilesdir%\%%A
  set link=%USERPROFILE%\.%%A
  set linkExists="0"

  if exist "!link!" (
    set Z=&& for %%B in ("!link!") do set Z=%%~aB
    if "!Z:~8,1!" == "l" (
      set linkExists="1"
    ) else (
      if not exist "%backupdir%" (
        mkdir "%backupdir%""
      )
      echo Moving existing !link! to %backupdir%
      move "!link!" "%backupdir%"
    )
  )

  if !linkExists! == "0" (
    if exist "!target!\" (
      mklink /d "!link!" "!target!"
    ) else (
      mklink "!link!" "!target!"
    )
    attrib /L "!link!" +h
  )
)

Set hidden attribute of links

Set hidden attribute of links


@echo off
set PYTHONPATH=%CD%
C:\Python27\python.exe reader_archive\reader_archive.py %*

@echo off
set PYTHONPATH=%CD%
python reader_archive\reader_archive.py %*

Replace absolute path of python

Replace absolute path of python


SETLOCAL

call call_vcvars.cmd

set "_=%CD%"
cd ..
for /F %%1 in ('dir *.exe /B /S /A:-D') do (mt.exe -manifest "%%1.manifest" -outputresource:"%%1";1)
for /F %%1 in ('dir *.dll /B /S /A:-D') do (mt.exe -manifest "%%1.manifest" -outputresource:"%%1";2)
cd %_%

ENDLOCAL

pause

@echo off
SETLOCAL

call call_vcvars.cmd

set "_=%CD%"
cd ..
for /F "delims=" %%1 in ('dir *.exe /B /S /A:-D') do (echo "%%1" && mt.exe -nologo -manifest "%%1.manifest" -outputresource:"%%1";1)
for /F "delims=" %%1 in ('dir *.dll /B /S /A:-D') do (echo "%%1" && mt.exe -nologo -manifest "%%1.manifest" -outputresource:"%%1";2)
cd %_%

ENDLOCAL

Embed manifests in all files

Embed manifests in all files


set CFG=%USERPROFILE%\pydistutils.cfg
echo [config] > "%CFG%"
echo compiler=mingw32 >> "%CFG%"
echo [build] >> "%CFG%"
echo compiler=mingw32 >> "%CFG%"
echo [build_ext] >> "%CFG%"
echo compiler=mingw32 >> "%CFG%"

"%PYTHON%" setup.py install --single-version-externally-managed
if errorlevel 1 exit 1

set CFG=%USERPROFILE%\pydistutils.cfg
echo [config] > "%CFG%"
echo compiler=mingw32 >> "%CFG%"
echo [build] >> "%CFG%"
echo compiler=mingw32 >> "%CFG%"
echo [build_ext] >> "%CFG%"
echo compiler=mingw32 >> "%CFG%"

"%PYTHON%" -m pip install . --no-deps -vv
if errorlevel 1 exit 1

Replace setup.py by pip install.

Replace setup.py by pip install.


@echo off

set CURDIR=%CD%

cd /d %~dp0

rem Create Makefile by MakeItSo =======================================

..\3rdparty\makeitso\output\MakeItSo.exe -file=makefile.sln -config=MakeItSo.config

rem Copy Makefie ======================================================
xcopy /Y /D ..\vs2015\*.makefile .\

cd /d %CURDIR%

exit /b 0

:error
cd /d %CURDIR%
echo "Error====="
pause
exit /b 1

@echo off

set CURDIR=%CD%

cd /d %~dp0

rem Create Makefile by MakeItSo =======================================

..\3rdparty\makeitso\output\MakeItSo.exe -file=makefile.sln -config=MakeItSo.config -nl=crlf

rem Copy Makefie ======================================================
xcopy /Y /D ..\vs2015\*.makefile .\

cd /d %CURDIR%

exit /b 0

:error
cd /d %CURDIR%
echo "Error====="
pause
exit /b 1

Add option to specify line feed type.

Add option to specify line feed type.


@ECHO OFF

:: Note: We're not using parallel build (/m) because it doesn't seem to
::       work with Sandcastle Help File Builder.

"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" %~dp0\build.proj /nologo /v:m /flp:verbosity=detailed %1 %2 %3 %4 %5 %6 %7 %8 %9

@ECHO OFF

:: Note: We're not using parallel build (/m) because it doesn't seem to
::       work with Sandcastle Help File Builder.

"%ProgramFiles(x86)%\MSBuild\12.0\Bin\MSBuild.exe" %~dp0\build.proj /nologo /v:m /flp:verbosity=detailed  %*

Replace individual parameters with wildcard

It's not that we ever want to pass more than ten arguments; it's about
the fact that we'd like to be able to pass arguments like this:

    .\build.cmd /p:OutDir='D:\test\'

Using individual arguments, MSBuild is called like this:

    MSBuild.exe /p:OutDir D:\test\

That's because the equal sign is considered a separator in batch files.


@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
@if defined GHC_PACKAGE_PATH ( 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 ^
               ".."        ^
               %*

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

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

Reset GHC_PACKAGE_PATH varialbe (4th try).

See #110. [skip ci]


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

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

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

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

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

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

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

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

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

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

: END

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


del log.txt

..\..\Bin\Release\v40\YC.YaccConstructor.exe -i .\..\..\..\YC.Abstract.SQL\src\TSQL\mssqlNonAbstract.yrd -c Linearize -g "RNGLR.Generator -table LALR -o RNGLR.sql.yrd.fs"
..\..\Bin\Release\v40\YC.YaccConstructor.exe -i .\..\..\..\YC.Abstract.SQL\src\TSQL\mssqlNonAbstract.yrd -c Linearize -g "RNGLR.EBNFGenerator -table LALR -o RNGLREBNF.sql.yrd.fs"

del log.txt

..\..\Bin\Release\v40\YC.YaccConstructor.exe -i .\..\..\..\YC.Abstract.SQL\src\Grammars\TSQL\mssqlNonAbstract.yrd  -c Linearize -g "RNGLR.EBNFGenerator -table LALR -o RNGLREBNF.sql.yrd.fs"

Change script for gen pasrer

Change script for gen pasrer


@ECHO OFF
SET oldPath=%PATH%

git.exe 2> NUL
if %ERRORLEVEL%==9009 GOTO :trydefaultpath
GOTO :EOF

:trydefaultpath
path=C:\Program Files (x86)\Git\cmd;%PATH%
git.exe 2> NUL
if %ERRORLEVEL%==9009 GOTO :showerror
GOTO :EOF

:showerror
path=%oldPath%
ECHO Git is not in your path and could not be found in C:\Program Files (x86)\Git\bin
set /p install=" Do you want to install Git through Chocolatey [y/n]? " %=%
if %install%==y (
	GOTO :installgit
) else (
	GOTO :cantcontinue
)

:cantcontinue
ECHO Can't complete the build without Git being in the path. Please add it to be able to continue.
GOTO :EOF

:installgit
ECHO Installing Chocolatey first
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
ECHO Installing Git through Chocolatey
choco install git
path=C:\Program Files (x86)\Git\cmd;%path%

@ECHO OFF
SET oldPath=%PATH%

git.exe 2> NUL
if %ERRORLEVEL%==9009 GOTO :trydefaultpath
GOTO :EOF

:trydefaultpath
path=C:\Program Files (x86)\Git\cmd;C:\Program Files\Git\cmd;%PATH%
git.exe 2> NUL
if %ERRORLEVEL%==9009 GOTO :showerror
GOTO :EOF

:showerror
path=%oldPath%
ECHO Git is not in your path and could not be found in C:\Program Files (x86)\Git\cmd
set /p install=" Do you want to install Git through Chocolatey [y/n]? " %=%
if %install%==y (
	GOTO :installgit
) else (
	GOTO :cantcontinue
)

:cantcontinue
ECHO Can't complete the build without Git being in the path. Please add it to be able to continue.
GOTO :EOF

:installgit
ECHO Installing Chocolatey first
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
ECHO Installing Git through Chocolatey
choco install git
path=C:\Program Files (x86)\Git\cmd;%path%

Update in case people have 64bit git installed


@echo off

rem This batch file is not actually used for the nightly build, but performs
rem similar steps and is handy for testing the build with similar settings.

rem It also demonstrates how to set up an automated build by calling Ant
rem directly.

rem Note, however, that this batch file will not clean the source tree before
rem building.

set batch_file_dir=%~dp0
set src_root=%batch_file_dir%\..\..
set log_filename=%src_root%\buildlog.xml
set report_filename=%src_root%\buildreport.html

if exist %log_filename% (
  del %log_filename%
)

call ant -f %src_root%\buildscripts\nightly\nightlybuild_Windows.xml ^
  -listener org.apache.tools.ant.XmlLogger ^
  -logger org.apache.tools.ant.listener.SimpleBigProjectLogger ^
  -DXmlLogger.file=%log_filename% ^
  -Dmm.versionstring=test_build

if not exist %log_filename% (
  echo Ant failed without producing XML log file
  exit /b 1
)

python -c "import sys" -c "if sys.version_info.major != 3 or sys.version_info.minor < 3: sys.exit(1)"
if errorlevel 1 (
  echo Python 3.3 or later required to generate build error report
  exit /b
)

python %src_root%\buildscripts\nightly\genreport_Windows.py %src_root% %log_filename% %report_filename%
start %report_filename%

@echo off
setlocal enableextensions enabledelayedexpansion

rem This batch file is not actually used for the nightly build, but performs
rem similar steps and is handy for testing the build with similar settings.

rem It also demonstrates how to set up an automated build by calling Ant
rem directly.

rem Note, however, that this batch file will not clean the source tree before
rem building.

set batch_file_dir=%~dp0
set src_root=%batch_file_dir%\..\..
set log_filename=%src_root%\buildlog.xml
set report_filename=%src_root%\buildreport.html

if exist %log_filename% (
  del %log_filename%
)

rem Prevent 'only one logger' error.
set ANT_ARGS=

call ant -f %src_root%\buildscripts\nightly\nightlybuild_Windows.xml ^
  -listener org.apache.tools.ant.XmlLogger ^
  -logger org.apache.tools.ant.listener.SimpleBigProjectLogger ^
  -DXmlLogger.file=%log_filename% ^
  -Dmm.versionstring=test_build

if not exist %log_filename% (
  echo Ant failed without producing XML log file
  exit /b 1
)

python -c "import sys" -c "if sys.version_info.major != 3 or sys.version_info.minor < 3: sys.exit(1)"
if errorlevel 1 (
  echo Python 3.3 or later required to generate build error report
  exit /b
)

python %src_root%\buildscripts\nightly\genreport_Windows.py %src_root% %log_filename% %report_filename%
start %report_filename%

Tweak nightly build test script.

Tweak nightly build test script.

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


cd C:\srhome\stoneridge
C:\Python27\python.exe C:\srhome\stoneridge\srrun.py C:\srhome\stoneridge\windows\srwebworker.py --config C:\srhome\stoneridge.ini --log C:\srhome\srworker.log

Add worker batch script for windows

Add worker batch script for windows

This is what we will put a link to in shell:startup so this will run
when the user logs in.


SET BUILD_ATOM_RELEASES_S3_KEY=%BUILD_ATOM_WIN_RELEASES_S3_KEY%
SET BUILD_ATOM_RELEASES_S3_SECRET=%BUILD_ATOM_WIN_RELEASES_S3_SECRET%
SET BUILD_ATOM_RELEASES_S3_BUCKET=%BUILD_ATOM_WIN_RELEASES_S3_BUCKET%

ECHO Here I go Windowsing again

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\cibuild" %*
) ELSE (
  node  "%~dp0\cibuild" %*
)

SET BUILD_ATOM_RELEASES_S3_KEY=%BUILD_ATOM_WIN_RELEASES_S3_KEY%
SET BUILD_ATOM_RELEASES_S3_SECRET=%BUILD_ATOM_WIN_RELEASES_S3_SECRET%
SET BUILD_ATOM_RELEASES_S3_BUCKET=%BUILD_ATOM_WIN_RELEASES_S3_BUCKET%

@IF EXIST "%~dp0\node.exe" (
  "%~dp0\node.exe"  "%~dp0\cibuild" %*
) ELSE (
  node  "%~dp0\cibuild" %*
)

Revert "Let's see if we get here."

Revert "Let's see if we get here."

This reverts commit 481cacb5d31d28251da8ee276dba6b203753e869.


@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 GIT_HOME=C:\Program Files\Git
SET MAVEN_HOME=C:\opt\apache-maven-3.3.9
SET CF_HOME=C:\ProgramData\chocolatey\bin
SET TEST_OUT=C:\st\%~nx1

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%
ECHO cf_max_attempts = 250 >> %USERINI%
ECHO output = %TEST_OUT% >> %USERINI%

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

RMDIR /S /Q %TEST_OUT%
REM CALL %BASEDIR%\test-setup
REM CALL %BASEDIR%\test-run %*
behave %*

@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 GIT_HOME=C:\Program Files\Git
SET MAVEN_HOME=C:\opt\apache-maven-3.3.9
SET CF_HOME=C:\ProgramData\chocolatey\bin
SET TEST_OUT=C:\st\%~nx1

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%
ECHO cf_max_attempts = 250 >> %USERINI%
REM ECHO output = %TEST_OUT% >> %USERINI%

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

RMDIR /S /Q %TEST_OUT%
REM CALL %BASEDIR%\test-setup
REM CALL %BASEDIR%\test-run %*
behave %*

Remove override of output dir on Windows


@echo off

setlocal EnableDelayedExpansion

set registryRoot=HKCU\Software\Classes

reg delete %registryRoot%\*\shell\grepWin...
reg delete %registryRoot%\*\shell\grepWin...
reg delete %registryRoot%\Directory\background\shell\grepWin...
reg delete %registryRoot%\Directory\shell\grepWin...
reg delete %registryRoot%\Drive\shell\grepWin...
reg delete %registryRoot%\Folder\shell\grepWin...

Add script to remove global grepWin context menu


@ECHO OFF
ECHO This will install Topographica and its package dependencies.
if "%1"=="" ECHO If default path is not acceptable, enter path as parameter to setup.bat
if NOT "%1"=="" ECHO Target is %1\Topographica\

REM Developer's Note: Install Python then call the setup.py script
REM inside the external/win32 directory.
REM $Id: setup.bat,v 1.6 2004/06/30 15:43:59 judah Exp $

external\win32\util\Y_OR_N /Q /A "Do you wish to continue? [Y/n]"

IF ERRORLEVEL 3 GOTO :INSTALL
IF ERRORLEVEL 2 GOTO :EXIT
IF ERRORLEVEL 1 GOTO :INSTALL

:INSTALL
ftype Python.File | findstr "Python.File="
IF ERRORLEVEL 1 GOTO :INSTALL_PYTHON
IF ERRORLEVEL 0 GOTO :RUN_SETUP

:INSTALL_PYTHON
ECHO Python file associations not detected: Installing Python 2.4
start /wait external\win32\python-2.4.msi

:RUN_SETUP
cd external\win32
cd
start /wait setup.py configure
start /wait /B setup.py install %1

:EXIT
ECHO Install Complete

@ECHO OFF
ECHO This will install Topographica and its package dependencies.
if "%1"=="" ECHO If default path is not acceptable, enter path as parameter to setup.bat
if NOT "%1"=="" ECHO Target is %1\Topographica\

REM Developer's Note: Install Python then call the setup.py script
REM inside the external/win32 directory.
REM $Id: setup.bat,v 1.6 2004/06/30 15:43:59 judah Exp $

external\win32\util\Y_OR_N /Q /A "Do you wish to continue? [Y/n]"

IF ERRORLEVEL 3 GOTO :INSTALL
IF ERRORLEVEL 2 GOTO :EXIT
IF ERRORLEVEL 1 GOTO :INSTALL

:INSTALL
ftype Python.File | findstr "Python.File="
IF ERRORLEVEL 1 GOTO :INSTALL_PYTHON
IF ERRORLEVEL 0 GOTO :RUN_SETUP

:INSTALL_PYTHON
ECHO Python file associations not detected: Installing Python 2.4
start /wait external\win32\python-2.4.2.msi

:RUN_SETUP
cd external\win32
cd
start /wait setup.py configure
start /wait /B setup.py install %1

:EXIT
ECHO Install Complete

Upgrade Python 2.4.2 for Windows

Upgrade Python 2.4.2 for Windows


:Beg
driver --load --path C:\Code\hadesmem\dist\debug\x64\chimera.sys --name Chimera
driver --unload --path C:\Code\hadesmem\dist\debug\x64\chimera.sys --name Chimera
goto Beg

[Scripts] Add a script for stress testing load/unload.


@setlocal
@prompt $G$S
@set CMDHOME=%~dp0.

@if NOT "%VS120COMNTOOLS%"=="" (
  @set VSTOOLSDIR="%VS120COMNTOOLS%"
  @set VSVER=Visual Studio 2013
) else (
  @set VSTOOLSDIR="%VS110COMNTOOLS%"
  @set VSVER=Visual Studio 2012
)

@set PKG=Orleans Tools for %VSVER%

@echo --- Uninstalling %PKG%
@Echo -- VS Tools directory = %VSTOOLSDIR%

@Echo - Unsetting OrleansSDK environment variable
SetX.exe OrleansSDK ""

@ECHO - Uninstalling Visual Studio extension package %PKG%
%VSTOOLSDIR%\..\IDE\vsixinstaller.exe /uninstall:462db41f-31a4-48f0-834c-1bdcc0578511

@echo --- Finished uninstalling %PKG%
@pause

@setlocal
@prompt $G$S
@set CMDHOME=%~dp0.

@if NOT "%VS140COMNTOOLS%"=="" (
  @set VSTOOLSDIR="%VS140COMNTOOLS%"
  @set VSVER=Visual Studio 2015
) else (
  @if NOT "%VS120COMNTOOLS%"=="" (
    @set VSTOOLSDIR="%VS120COMNTOOLS%"
    @set VSVER=Visual Studio 2013
  ) else (
    @set VSTOOLSDIR="%VS110COMNTOOLS%"
    @set VSVER=Visual Studio 2012
  )
)

@set PKG=Orleans Tools for %VSVER%

@echo --- Uninstalling %PKG%
@Echo -- VS Tools directory = %VSTOOLSDIR%

@Echo - Unsetting OrleansSDK environment variable
SetX.exe OrleansSDK ""

@ECHO - Uninstalling Visual Studio extension package %PKG%
%VSTOOLSDIR%\..\IDE\vsixinstaller.exe /uninstall:462db41f-31a4-48f0-834c-1bdcc0578511

@echo --- Finished uninstalling %PKG%
@pause

Add path to 2015 VS Tools.

Add path to 2015 VS Tools.


curl -sSf https://static.rust-lang.org/dist/rust-1.22.1-i686-pc-windows-msvc.exe -o rust.exe
rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
set PATH=%PATH%;C:\Rust\bin

curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe
7z x LLVM.exe -oC:\LLVM
set PATH=%PATH%;C:\LLVM\bin
set LIBCLANG_PATH=C:\LLVM\bin

curl -sSf https://static.rust-lang.org/dist/rust-1.24.0-i686-pc-windows-msvc.exe -o rust.exe
rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust"
set PATH=%PATH%;C:\Rust\bin

curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe
7z x LLVM.exe -oC:\LLVM
set PATH=%PATH%;C:\LLVM\bin
set LIBCLANG_PATH=C:\LLVM\bin

Update Rust version used by Appveyor

Update Rust version used by Appveyor


REM Start Max patch
START "" "C:\Program Files\Cycling '74\Max Runtime 6.1\maxRT.exe" C:\eim\EiMpatch\EmotionInMotion.maxproj

TIMEOUT 15

REM Set Node.js environment to production
SET NODE_ENV=production

REM Switch to EiM directory
CD c:\eim

REM Start Node.js server
C:\Users\EmotionInMotionV2\AppData\Roaming\npm\grunt default

REM Start Max patch
START "" "C:\Program Files\Cycling '74\Max Runtime 6.1\maxRT.exe" C:\eim\MaxMSP\EmotionInMotion\EmotionInMotion.maxproj

TIMEOUT 15

REM Set Node.js environment to production
SET NODE_ENV=production

REM Switch to EiM directory
CD c:\eim

REM Start Node.js server
#C:\Users\EmotionInMotionV2\AppData\Roaming\npm\grunt default
node server.js

Update startup script with new path and to bypass Grunt


copy "%~dp0..\vendor\eigen-3.2.6\debug\msvc\*.natvis" "%USERPROFILE%\My Documents\Visual Studio 2015\Visualizers"
copy "%~dp0..\vendor\eigen-3.2.6\debug\msvc\*.natvis" "%USERPROFILE%\My Documents\Visual Studio 2013\Visualizers"

Add a script to install MSVC debugging visualizers from Eigen


powershell -File A:\scripts\docker\add-docker-group.ps1
powershell -File A:\scripts\docker\install-docker.ps1
powershell -File A:\scripts\docker\open-docker-insecure-port.ps1
powershell -File A:\scripts\docker\remove-docker-key-json.ps1

powershell -File A:\add-docker-group.ps1
powershell -File A:\install-docker.ps1
powershell -File A:\open-docker-insecure-port.ps1
powershell -File A:\remove-docker-key-json.ps1

Fix path to floppy files

Fix path to floppy files


@echo off
setlocal

cd "%~dp0"

if exist "dist-examples" rmdir /s /q "dist-examples"

for /d %%a in ("Examples/WPF/*") do (
echo Examples/WPF/%%~a
mkdir "dist-examples/WPF/%%~a"
xcopy /s /d /q "Examples/WPF/%%~a/bin/Release" "dist-examples/WPF/%%~a\"
)

for /d %%a in ("Examples/WPF.SharpDX/*") do (
echo Examples/WPF.SharpDX/%%~a
mkdir "dist-examples/WPF.SharpDX/%%~a"
xcopy /s /d /q "Examples/WPF.SharpDX/%%~a/bin/Release" "dist-examples/WPF.SharpDX/%%~a\"
)

for /d %%a in ("Examples/WPF.SharpDX/*") do (
echo Examples/SharpDX.Core/%%~a
mkdir "dist-examples/SharpDX.Core/%%~a"
xcopy /s /d /q "Examples/SharpDX.Core/%%~a/bin/Release" "dist-examples/SharpDX.Core/%%~a\"
)

Add SharpDX.Core examples into example package


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

ECHO [directories] > setup.cfg
ECHO basedirlist = %LIBRARY_PREFIX% >> setup.cfg
ECHO [packages] >> setup.cfg
ECHO tests = False >> setup.cfg
ECHO sample_data = False >> setup.cfg
ECHO toolkits_tests = False >> setup.cfg

rem matplotlib will link to png, zlib statically if it exists. Replace the static library with shared
del %LIBRARY_LIB%\libpng16_static.lib
copy %LIBRARY_LIB%\libpng16.lib %LIBRARY_LIB%\libpng16_static.lib
del %LIBRARY_LIB%\zlibstatic.lib
copy %LIBRARY_LIB%\z.lib %LIBRARY_LIB%\zlibstatic.lib

%PYTHON% -m pip install . --no-deps -vv
if errorlevel 1 exit 1

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

ECHO [directories] > setup.cfg
ECHO basedirlist = %LIBRARY_PREFIX% >> setup.cfg
ECHO [packages] >> setup.cfg
ECHO tests = False >> setup.cfg
ECHO sample_data = False >> setup.cfg
ECHO toolkits_tests = False >> setup.cfg

%PYTHON% -m pip install . --no-deps -vv
if errorlevel 1 exit 1

Remove unneeded handling of static libraries on windows

Matplotlib no longer depends on these.


@echo off
java -Xmx256m -Xms32m -jar SimpleServer.jar
pause

Revert "fix console input echo"

Revert "fix console input echo"

Didn't work.

This reverts commit 110f7c87aee87e59940b8ce3ecfe0a2298b644cc.


@ECHO OFF
pushd "%~dp0.."
SET parentDir=%cd%
popd

SET SUFFIX=%1
IF '%SUFFIX%' == '' GOTO NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c Release -o "%parentDir%\nugets" --version-suffix %SUFFIX%
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs\Suite\Microsoft.Diagnostics.EventFlow.Suite.nuspec" -OutputDirectory "%parentDir%\nugets" -Suffix %SUFFIX%
GOTO END

:NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c Release -o "%parentDir%\nugets"
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs\Suite\Microsoft.Diagnostics.EventFlow.Suite.nuspec" -OutputDirectory "%parentDir%\nugets"
GOTO END

:END

@ECHO OFF
pushd "%~dp0.."
SET parentDir=%cd%
popd

SET CONFIGURATION=%2
IF '%CONFIGURATION%' == '' SET CONFIGURATION=Release

SET SUFFIX=%1
IF '%SUFFIX%' == '' GOTO NOSUFFIX

for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c %CONFIGURATION% -o "%parentDir%\nugets" --version-suffix %SUFFIX%
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs\Suite\Microsoft.Diagnostics.EventFlow.Suite.nuspec" -OutputDirectory "%parentDir%\nugets" -Suffix %SUFFIX%
GOTO END

:NOSUFFIX
for /f %%a in ('findstr /sm packOptions %parentDir%\src\project.json') do dotnet pack %%a --no-build -c %CONFIGURATION% -o "%parentDir%\nugets"
"%~dp0\nuget.exe" pack "%parentDir%\nuspecs\Suite\Microsoft.Diagnostics.EventFlow.Suite.nuspec" -OutputDirectory "%parentDir%\nugets"
GOTO END

:END

Allow building Nuget packages out of Debug binaries


@echo off

IF "%~1"=="" (
  goto usage
) ELSE IF "%~1"=="init" (
  mkdir _pill\bin
  set CONDA_BIN_PATH="conda info --root"
  set CONDA_DEFAULT_ENV
) ELSE IF "%~1"=="in" (
  echo "Ready to go in"
) ELSE IF "%~1" == "out" (
  echo "Ready to go out"
) ELSE (
  echo "error"
  goto usage
  exit /b 1
)
exit /b

:usage
echo usage: pill [COMMAND]
echo.
echo SYNOPSIS
echo     Create a local python and conda environment in the current directory.
echo     When activated all the libraries will be installed and imported from
echo     the '_pill' directory in the root of your project.
echo.
echo USAGE
echo     Create and run temporal/local environments.
echo.
echo       $ pill init
echo       $ source pill in
echo       $ source pill out
echo.
echo COMMANDS
echo     init    Creates the .pill directory and create links.
echo     in      Modifies CONDA_DEFAULT_ENV and PATH to use
echo             the .pill directory and sets the PILL_NAME variable.
echo     out     Restores the previous CONDA_DEFAULT_ENV and PATH. Also
echo             unsets PILL_NAME.
echo.
exit /b

:create_symlinks

exit /b

:backup
set PILL_OLD_PATH=%PATH%
set PILL_OLD_CONDA_DEFAULT_ENV=%CONDA_DEFAULT_ENV%
set PILL_PROMPT=%PROMPT%
exit /b

:remove_current_conda
  set CONDA_BIN_PATH="conda info --root"
  set CONDA_BIN_PATH="%CONDA_BIN_PATH%\bin"
  PATH=:$PATH:
  PATH=${PATH//:$CONDA_BIN_PATH:/:}
exit /b

Switch statement in batch file

Switch statement in batch file


@echo off

echo.
echo === TEST ===
echo.
dotnet test  --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj

echo.
echo === PACKAGE ===
echo.
dotnet pack --include-symbols --include-source --configuration Release --output ..\.. src\DeepEqual\DeepEqual.csproj

echo.
pause

@echo off

echo.
echo === TEST ===
echo.
dotnet test  --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj

echo.
echo === PACKAGE ===
echo.
dotnet pack ^
  --include-symbols ^
	 -p:SymbolPackageFormat=snupkg ^
	--include-source ^
	--configuration Release ^
	--output . ^
	src\DeepEqual\DeepEqual.csproj

dotnet pack ^
  --include-symbols ^
	 -p:SymbolPackageFormat=snupkg ^
	--include-source ^
	--configuration Release ^
	--output . ^
	src\DeepEqual.System.Text.Json\DeepEqual.System.Text.Json.csproj

echo.
pause

Add steps for packaging Json extension. Use snupkg format for symbols.


@echo off

set source_dir=%~dp0\..
set arma3_dir=C:\Program Files (x86)\Steam\steamApps\common\Arma 3

IF NOT EXIST P: GOTO NODRIVE
IF NOT EXIST %arma3_dir% GOTO NOARMA3DIR

mkdir P:\z
mkdir "%arma3_dir%\z"

echo "Run this script as administrator!"

mklink /D "%arma3_dir%\z\hehu" "%source_dir%"
mklink /D "P:\z\hehu" "%source_dir%"

pause
exit 0

:NODRIVE
echo "OMFG. Set up the P: drive!"
pause
exit 1

:NOARMA3DIR
echo You don't have a %arma3_dir% directory. Please adjust the path in this script!
pause
exit 1

Add a script to set up symlinks in P: and game dir

This should help with module loading later so I don't have to restart
the game on every change.


REM To avoid building in work/ alongside the source. Rather build in work/build/
mkdir build
cd build

REM Remove dot from PY_VER for use in library name
set MY_PY_VER=%PY_VER:.=%

REM Configure step
cmake -G "%CMAKE_GENERATOR%" ^
 -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^
 -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^
 -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^
 --config "%CONFIGURATION%" ^
 -DENABLE_MODULE_IRRLICHT=ON ^
 -DENABLE_MODULE_FEA=OFF ^
 -DENABLE_MODULE_POSTPROCESS=OFF ^
 -DENABLE_MODULE_PYTHON=ON ^
 -DBUILD_DEMOS=OFF ^
 -DBUILD_TESTING=OFF ^
 -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^
 -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^
 ..
if errorlevel 1 exit 1

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

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

REM Install step
REM ninja install
REM if errorlevel 1 exit 1

REM To avoid building in work/ alongside the source. Rather build in work/build/
mkdir build
cd build

REM Remove dot from PY_VER for use in library name
set MY_PY_VER=%PY_VER:.=%

REM Configure step
cmake -G "%CMAKE_GENERATOR%" ^
 -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
 -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^
 -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^
 -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^
 --config "%CONFIGURATION%" ^
 -DENABLE_MODULE_IRRLICHT=ON ^
 -DENABLE_MODULE_FEA=OFF ^
 -DENABLE_MODULE_POSTPROCESS=OFF ^
 -DENABLE_MODULE_PYTHON=ON ^
 -DBUILD_DEMOS=OFF ^
 -DBUILD_TESTING=OFF ^
 -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^
 -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^
 ..
if errorlevel 1 exit 1

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

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

REM Install step
REM ninja install
REM if errorlevel 1 exit 1

Build into virtual environment of Conda

Build into virtual environment of Conda


call DeletePdbFiles.cmd ..\Output\NET45\Examples
call DeletePdbFiles.cmd ..\Output\NET40\Examples

del /S /Q ..\Output\NET40\Examples

"C:\Program Files\7-Zip\7z.exe" a -r ..\Output\HelixToolkit-%1.zip ..\Output\*.* > ZipRelease.log

mkdir ..\Output\Release
mkdir ..\Output\Release\NET40
mkdir ..\Output\Release\NET45

copy ..\Output\NET45\HelixToolkit.??? ..\Output\Release
copy ..\Output\NET45\HelixToolkit.Wpf.??? ..\Output\Release\NET45
copy ..\Output\NET40\HelixToolkit.Wpf.??? ..\Output\Release\NET40
copy ..\Output\NET45\HelixToolkit.Wpf.Input.??? ..\Output\Release\NET45
copy ..\Output\NET40\HelixToolkit.Wpf.Input.??? ..\Output\Release\NET40
copy ..\Output\NET45\HelixToolkit.Wpf.SharpDX.??? ..\Output\Release\NET45
copy ..\Output\NET40\HelixToolkit.Wpf.SharpDX.??? ..\Output\Release\NET40

"C:\Program Files\7-Zip\7z.exe" a -r ..\Output\HelixToolkit-%1.zip ..\Output\Release\*.* > ZipRelease.log

Remove examples from Codeplex Release package.


@echo off

set NODE_ENV=production
set AUTH_TOKEN=changeme
set PORT=80

if %AUTH_TOKEN%==changeme (
  echo *****************************************************
  echo Please change the AUTH_TOKEN in server/bin/server.bat
  echo *****************************************************
  pause > nul
  EXIT
)

coffee ./bin/server.coffee

@echo off

set NODE_ENV=production
set AUTH_TOKEN=changeme
set PORT=80

if %AUTH_TOKEN%==changeme (
  echo *****************************************************
  echo Please change the AUTH_TOKEN in server/bin/server.bat
  echo *****************************************************
  pause > nul
  EXIT
)

forever ./bin/server.coffee

Make app use forever on windows

Make app use forever on windows


anvil

copy ./lib/standard/postal.* ./example/standard/js
copy ./lib/amd/postal.* ./example/amd/js/libs/postal
copy ./lib/amd/postal.js ./example/node/client/js/lib
copy ./lib/node/postal.js ./example/node/messaging

Add in a new build bat for teh windoze

Add in a new build bat for teh windoze


cd ..
del/q scite.zip
zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak
cd scite

cd ..
del/q scite.zip
zip scite.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak
cd scite

Store OS X files in zips.

Store OS X files in zips.


nuget pack AgateLib/AgateLib.csproj
nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj
nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj
nuget pack AgateLib.Platform.WinForms/AgateLib.Platform.WinForms.csproj
nuget pack AgateLib.Platform.Test/AgateLib.Platform.Test.csproj
nuget pack AgateLib.Platform.IntegrationTest/AgateLib.Platform.IntegrationTest.csproj

mkdir packages
move *.nupkg packages

nuget pack AgateLib/AgateLib.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

nuget pack AgateLib.Platform.WinForms/AgateLib.Platform.WinForms.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

nuget pack AgateLib.Platform.Test/AgateLib.Platform.Test.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

nuget pack AgateLib.Platform.IntegrationTest/AgateLib.Platform.IntegrationTest.csproj
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

Add error checking to package.bat.

Add error checking to package.bat.


@echo off

chcp 65001>nul

prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s

rem Fake a UNIX environment

doskey clear=cls
doskey ls=dir /b $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*

rem Easier navigation

doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doskey ...=cd ../..
doskey ....=cd ../../..

rem List files properly

doskey l=dir /b $*
doskey ll=dir /b $*

rem Edit functionality

IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME
    doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $*
:NOSUBLIME

rem Open functionality

doskey open=start $*

@echo on

@echo off

chcp 65001>nul

prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s

rem Fake a UNIX environment

doskey clear=cls
doskey ls=dir /d $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*

rem Easier navigation

doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..
doskey ...=cd ../..
doskey ....=cd ../../..

rem List files properly

doskey l=dir /b $*
doskey ll=dir /b $*

rem Edit functionality

IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME
    doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $*
:NOSUBLIME

rem Open functionality

doskey open=start $*

@echo on

Use /d switch for ls

Use /d switch for ls


@echo off
rem NuGet Package Script
rem ====================
rem Creates a release build then generates the NuGet package into the output directory.
rem Remember to update the version number and release notes in the "nuspec" file before each release.

echo.
echo Creating Release build
msbuild "%~dp0Emlid.WindowsIot.Hardware.csproj" /p:Configuration=Release
if %errorlevel% neq 0 goto error

echo.
echo Creating NuGet Package
"%~dp0..\..\Tools\NuGet\nuget.exe" pack "%~dp0Emlid.WindowsIot.Hardware.csproj" -Prop Configuration=Release -OutputDirectory "%~dp0bin\ARM\Release"
if %errorlevel% neq 0 goto error

echo.
echo Packaging successful.
exit /b 0

:error
set result=%errorlevel%
echo.
echo Error %result%
exit /b %result%

@echo off
rem NuGet Package Script
rem ====================
rem Creates a release build then generates the NuGet package into the output directory.
rem Remember to update the version number and release notes in the "nuspec" file before each release.

echo.
echo Initializing Visual Studio tools...
call "%vs140comntools%\vsvars32.bat"
if %errorlevel% neq 0 goto error

echo.
echo Creating Release build
msbuild "%~dp0Emlid.WindowsIot.Hardware.csproj" /p:Configuration=Release
if %errorlevel% neq 0 goto error

echo.
echo Creating NuGet Package
"%~dp0..\..\Tools\NuGet\nuget.exe" pack "%~dp0Emlid.WindowsIot.Hardware.csproj" -Prop Configuration=Release -OutputDirectory "%~dp0bin\ARM\Release"
if %errorlevel% neq 0 goto error

echo.
echo Packaging successful.
exit /b 0

:error
set result=%errorlevel%
echo.
echo Error %result%
exit /b %result%

Add VS tools initialization to NuGet package command so it can run standalone.


@echo off

SET sdkpath=%xilinxpath%\SDK\%xilinxversion%\bin

SET cfile=%~1
SET jsonfile=%~2
SET projectname=%~3
SET cswfile=%cfile:~3,-2%_sw.c
SET ciffile=%cfile:~3,-2%_if.c

SET toolchainpath=%~4

if not {%~1} == {} if not {%~2} == {} if not {%~3} == {} (

  mkdir software
  copy %ciffile% software
  copy %cswfile% software\helloworld.c
  copy %toolchainpath%\utils\lscript.ld software
  rem copy %toolchainpath%\utils\timer.c software
  rem copy %toolchainpath%\utils\timer.h software
  python %toolchainpath%\python\generatesdktcl.py %cfile% %jsonfile% %projectname% %toolchainpath%
  %sdkpath%\xsdk.bat -batch -source %projectname%_build_sdk.tcl

) else (
    echo "few arguments!"
)

@echo off

SET sdkpath=%xilinxpath%\SDK\%xilinxversion%\bin

SET cfile=%~1
SET jsonfile=%~2
SET projectname=%~3
SET cswfile=%cfile:~3,-2%_sw.c
SET ciffile=%cfile:~3,-2%_if.c

SET toolchainpath=%~4

if not {%~1} == {} if not {%~2} == {} if not {%~3} == {} (

  mkdir software
  copy %ciffile% software
  copy %cswfile% software\helloworld.c
  copy %toolchainpath%\utils\lscript.ld software
  python %toolchainpath%\python\generatesdktcl.py %cfile% %jsonfile% %projectname% %toolchainpath%
  %sdkpath%\xsdk.bat -batch -source %projectname%_build_sdk.tcl

) else (
    echo "few arguments!"
)

Delete copy statements of timer.[ch]

Delete copy statements of timer.[ch]


"C:\Program Files\ffmpeg\bin\ffmpeg.exe" -f gdigrab -framerate 30 -i title="REACT RUNNING" -c:v h264_nvenc -qp 0 output-4.mkv

Add window capture script for windows

Add window capture script for windows


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

rem the -F 0x4 is to turn off smartypants.
third-party/discount-2.1.6-win32/markdown.exe -F 0x4 -o README.html OSVR-Unity/README.md
move README.html OSVR-Unity-Dist\

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

rem the -F 0x4 is to turn off smartypants.
third-party\discount-2.1.6-win32\markdown.exe -F 0x4 -o README.html OSVR-Unity/README.md
move README.html OSVR-Unity-Dist\

Fix slashes in batch file.

Fix slashes in batch file.


:: Set $HOME to the current dir so msys runs here
set HOME=%cd%

:: Configure, build, test, and install using `make`.
bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=$LIBRARY_PREFIX"
if errorlevel 1 exit 1
bash -lc "make test"
if errorlevel 1 exit 1
bash -lc "make PREFIX=$LIBRARY_PREFIX install"
if errorlevel 1 exit 1

:: Set $HOME to the current dir so msys runs here
set HOME=%cd%

:: Configure, build, test, and install using `make`.
bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=`echo $LIBRARY_PREFIX | tr '\\' '/'`"
if errorlevel 1 exit 1
bash -lc "make test"
if errorlevel 1 exit 1
bash -lc "make PREFIX=`echo $LIBRARY_PREFIX | tr '\\' '/'` install"
if errorlevel 1 exit 1

openblas: Fix Windows paths to play nice with MinGW.


@echo off

REM TODO: detect these automatically. Probably a job for PowerShell...

set PROJECTS=Benchmarks,CodeDiagnostics,CodeDiagnostics.Test,Demo
set PROJECTS=%PROJECTS%,Serialization.JsonNet,Serialization.Test,Test
set PROJECTS=%PROJECTS%,TzdbCompiler.Test,Web

for %%p in (%PROJECTS%) DO (
  echo Restoring NodaTime.%%p packages
  nuget restore -NonInteractive -PackagesDirectory src\packages src\NodaTime.%%p\packages.config
)

Add a script to restore nuget packages for all projects needing them.


cd C:\projects\lexington-pentaho-etl\
call git pull origin master
:: set KETTLE_HOME="C:\projects\lexington-pentaho-etl\.kettle\"
call data-integration\Pan.bat -level=Basic -file "pull-last-day-of-foreclosure-sales.ktr"

cd C:\projects\lexington-pentaho-etl\
call git pull origin master

cd data-integration
call Pan.bat -level=Basic -file "../pull-last-day-of-foreclosure-sales.ktr"
call Pan.bat -level=Basic -file "../parcel-lookup-foreclosure-sales.ktr"

Call parcel lookup after pulling foreclosures


@echo off
cd %~dp0

"%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^
powershell Write-NuGetPackage nuget.autopkg

@echo off
cd %~dp0

"%VS120COMNTOOLS%\VsMSBuildCmd.bat" && ^
msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^
msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo

"%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^
msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^
powershell Write-NuGetPackage nuget.autopkg

Expand build to include VS 2013.

Expand build to include VS 2013.


CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
pyinstaller .\rocketleagueminimapgenerator\main.py --onefile

MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets

powershell Compress-Archive -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip

pause

CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
pyinstaller .\rocketleagueminimapgenerator\main.py --onefile

MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets

powershell Compress-Archive -Force -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip

pause

Fix minor issue with build script.

Fix minor issue with build script.


@echo off

REM docs\build_autodoc_files.py
sphinx-build -b html doc_src pywinauto\docs

REM c:\.temp\pudge\pudge\cli  --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto  -v  -d website  -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests   -t doc_source\template

REM These are the python modules
REM application.py
REM clipboard.py
REM findbestmatch.py
REM findwindows.py
REM handleprops.py
REM taskbar.py
REM win32defines.py
REM win32functions.py
REM win32structures.py
REM XMLHelpers.py

REM controls
REM tests

REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste   -t \.temp\pudge\pudge\template\green_paste

@echo off

doc_src\build_autodoc_files.py
sphinx-build -b html doc_src pywinauto\docs

REM c:\.temp\pudge\pudge\cli  --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto  -v  -d website  -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests   -t doc_source\template

REM These are the python modules
REM application.py
REM clipboard.py
REM findbestmatch.py
REM findwindows.py
REM handleprops.py
REM taskbar.py
REM win32defines.py
REM win32functions.py
REM win32structures.py
REM XMLHelpers.py

REM controls
REM tests

REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste   -t \.temp\pudge\pudge\template\green_paste

Fix the path to build_autodoc_files.py and call it by default everytime (it is safe as it does not re-generate files which already exist)


git checkout azure-deployment-chillintest Chalmers.ILL/Web.ChalmersILL.config
git reset HEAD Chalmers.ILL/Web.ChalmersILL.config
git checkout azure-deployment-chillintest Chalmers.ILL/Web.ChillinTest.Debug.config
git reset HEAD Chalmers.ILL/Web.ChillinTest.Debug.config
git checkout azure-deployment-chillintest Chalmers.ILL/Web.ChillinTest.Release.config
git reset HEAD Chalmers.ILL/Web.ChillinTest.Release.config
git checkout azure-deployment-chillintest Chalmers.ILL/Config/umbracoSettings.config
git reset HEAD Chalmers.ILL/Config/umbracoSettings.config

git checkout azure-deployment Chalmers.ILL/Web.ChalmersILL.config
git reset HEAD Chalmers.ILL/Web.ChalmersILL.config
git checkout azure-deployment Chalmers.ILL/Web.ChillinTest.Debug.config
git reset HEAD Chalmers.ILL/Web.ChillinTest.Debug.config
git checkout azure-deployment Chalmers.ILL/Web.ChillinTest.Release.config
git reset HEAD Chalmers.ILL/Web.ChillinTest.Release.config
git checkout azure-deployment Chalmers.ILL/Config/umbracoSettings.config
git reset HEAD Chalmers.ILL/Config/umbracoSettings.config

Check out private config from correct branch.


@rem Licensed to the Apache Software Foundation (ASF) under one
@rem or more contributor license agreements.  See the NOTICE file
@rem distributed with this work for additional information
@rem regarding copyright ownership.  The ASF licenses this file
@rem to you under the Apache License, Version 2.0 (the
@rem "License"); you may not use this file except in compliance
@rem with 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,
@rem software distributed under the License is distributed on an
@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@rem KIND, either express or implied.  See the License for the
@rem specific language governing permissions and limitations
@rem under the License.

@rem Then run from the directory containing the RC tarball
@rem
@rem verify-release-candidate.bat apache-parquet-cpp-%VERSION%

@echo on

if not exist "C:\tmp\" mkdir C:\tmp
if exist "C:\tmp\parquet-verify-release" rd C:\tmp\parquet-verify-release /s /q
if not exist "C:\tmp\parquet-verify-release" mkdir C:\tmp\parquet-verify-release

tar xvf %1.tar.gz -C "C:/tmp/"

set GENERATOR=Visual Studio 14 2015 Win64
set CONFIGURATION=release
set PARQUET_SOURCE=C:\tmp\%1
set INSTALL_DIR=C:\tmp\%1\install

pushd %PARQUET_SOURCE%

set PARQUET_TEST_DATA=%PARQUET_SOURCE%\data

set PARQUET_HOME=%INSTALL_DIR%
set PATH=%INSTALL_DIR%\bin;%PATH%

mkdir build
pushd build

cmake -G "%GENERATOR%" ^
      -DCMAKE_INSTALL_PREFIX=%PARQUET_HOME% ^
      -DPARQUET_BOOST_USE_SHARED=OFF ^
      -DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
      -DPARQUET_CXXFLAGS="/WX /MP" ^
      ..  || exit /B
cmake --build . --target INSTALL --config %CONFIGURATION%  || exit /B

ctest -VV  || exit /B
popd

PARQUET-1110: Add release verification script for Windows

Author: Wes McKinney <wes.mckinney@twosigma.com>

Closes #401 from wesm/windows-verify-release and squashes the following commits:

61e573b [Wes McKinney] Add release verification script for Windows


mkdir "%SRC_DIR%"\build
pushd "%SRC_DIR%"\build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%"  -DBUILD_PYTHON_INTERFACE=ON -G "%CMAKE_GENERATOR%" ..
cmake --build . --config Release --target install
popd

mkdir "%SRC_DIR%"\build
pushd "%SRC_DIR%"\build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%"  -DBUILD_PYTHON_INTERFACE=ON -G "Ninja" ..
ninja
ninja install
popd

Use ninja explicitly instead of default cmake generator


FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i"
bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc
set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%"

maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native"

FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i
set "CMAKE_GENERATOR=NMake Makefiles"
%PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv

FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i"
bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc
set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%"
set "CMAKE_GENERATOR=NMake Makefiles"

maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native"

FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i

%PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv

Move set generator before maturin build

Move set generator before maturin build