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

@echo off

set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME=..\..\tools\ant

set OLD_CLASSPATH=%CLASSPATH%
set CLASSPATH=
for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i

echo Using classpath: "%CLASSPATH%"
call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9

set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%

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

set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME=..\..\tools\ant

set OLD_CLASSPATH=%CLASSPATH%
set CLASSPATH=
for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i

echo Using classpath: "%CLASSPATH%"
call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9

set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%

Move the @echo line above license header so it is not echoed to command line. Thanks to Vincent Siveton FOR-1021

git-svn-id: 36dcc065b18e9ace584b1c777eaeefb1d96b1ee8@555984 13f79535-47bb-0310-9956-ffa450edef68


@rem Run CMake, pointing to sibling directories containing dependencies.
@rem Note that zmq and cppzmq are relative to the source dir, while
@rem protobuf is relative to the build dir.  Not sure why.
@set build_type=Release
@if not "%1"=="" set build_type=%1
@echo Configuring for build type %build_type%
cmake -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win32-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" ..
@if %errorlevel% neq 0 exit /b %errorlevel%
@echo Configuration complete.  To build, run `nmake`

@rem Run CMake, pointing to sibling directories containing dependencies.
@rem Note that zmq and cppzmq are relative to the source dir, while
@rem protobuf is relative to the build dir.  Not sure why.

@set build_type=Release
@if not "%1"=="" set build_type=%1

@set build_bitness=32
@if not "%2"=="" set build_bitness=%2

@echo Configuring for build type %build_type% for %build_bitness% bits
cmake -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win%build_bitness%-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" ..
@if %errorlevel% neq 0 exit /b %errorlevel%
@echo Configuration complete.  To build, run `nmake`

Use second parameter to define bitness

Use second parameter to define bitness

--HG--
branch : parametrize_configure


REM other targets are:
REM 'build'
REM 'test'
REM 'test-integration'

tools\nant\bin\nant.exe -f:Common.Logging.build build

REM other targets are:
REM 'build'
REM 'test'
REM 'test-integration'

tools\nant\bin\nant.exe -f:Common.Logging.build test-integration

Revert "setting ci build script to only compile as CI box will scan and run tests independently"

This reverts commit a74c5612fcccaa3779ee262d1f1fc48238502b97.


:: batch script to build a binary egg package for the currently active Python

cd ..
del /q /s build-formast\
mkdir build-formast
cd build-formast
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_JAVA=OFF ..\formast
nmake
cpack -G ZIP
cd swig\python\package
python setup.py bdist_egg

Add batch script used for creating binary egg packages for Python.


@set mesa=C:\Software\Development\projects\mesa
@SET PATH=C:\Software\Development\Git\cmd\;%mesa%\Python\;%mesa%\Py3\;%mesa%\Py3\Scripts\;%mesa%\flexbison\;%mesa%\ninja\;%mesa%\pkgconfig\;%PATH%
@call "%ProgramFiles% (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
@cd %mesa%\mesa
@set buildcmd=%mesa%\Py3\python.exe %mesa%\Py3\Scripts\meson.py . .\build\windows-x86_64
@RD /S /Q %mesa%\mesa\build\windows-x86_64
@cmd

Add a debug, highly crude script to start a Mesa3D Meson build

Related #7


@for /F "delims=" %%a in ('findstr /rc:"^    version" build.gradle') do @set versionline=%%a
@echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~15,5%*.
@taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe"
@taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "java.exe"
@echo(
@echo Starting Gradle build. This will take a while...
@echo(
@call gradlew clean shadowJar --no-daemon
@for /F "delims=" %%a in ('findstr /rc:"^    version" build.gradle') do @set versionline=%%a
@echo(
@echo Starting HubTurbo V%versionline:~15,5%. You can close this cmd window once HubTurbo begins launching.
@start "" javaw -jar build/libs/HubTurbo-%versionline:~15,5%-all.jar
@exit

Add Windows build script to root folder

Add Windows build script to root folder

The script closes any running HubTurbo instances, starts a gradle build,
then runs the newly built HubTurbo, at which point the batch script exits
while HubTurbo will continue running.

The script runs the build in --no-daemon mode, otherwise the cmd.exe
window will not close after HubTurbo has finished launching.

rbar is short for "rebuild and run".


REM This batch script is an effort at porting the Unix Makefile for
REM Windows. Therefore, it may not be updated as frequent as the Unix
REM Makefile. (Please consider helping us keeping it up to date)

@ECHO OFF

:args
IF NOT "%1"=="" (
  call :%1
  SHIFT
  GOTO args
)
GOTO :EOF

:releases
call :pre_build
call :build
grunt

:pre_build
mkdir build

:build
cp -R src/* build
call :build_server
call :build_viewer
cd build
npm install
cd ..

:build_server
npm install GochoMugo/docvy-server#develop
mv node_modules/docvy-server build/server

:build_viewer
npm install GochoMugo/docvy-viewer#develop
mv node_modules/docvy-viewer build/viewer

:src
call :src_viewer
call :src_server

:src_viewer
mklink src\viewer ..\..\docvy-viewer\dist

:src_server
mklink /d src\server ..\..\docvy-server

Add note about updates to the Windows build script


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

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

Replace absolute path of python

Replace absolute path of python


Put win32 binaries at front of path, to pick up scala &c.


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

SET "JAVA_HOME=C:\opt\jdk-8"
cd git-repo
./mvnw clean install -X

Fix location of java home for windows build

See gh-865


rem This needs to be run as an administrator!

winrm quickconfig -q
winrm set winrm/config/winrs @{MaxMemoryPerShellMB="512"}
winrm set winrm/config @{MaxTimeoutms="1800000"}
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/service/auth @{Basic="true"}
sc config WinRM start= auto

Add script to enable ps remoting

Add script to enable ps remoting


rem from https://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-5-from-the-command-line

rem install .NET version manager (DNVM)
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}"

rem install .NET execution environment (DNX) for coreclr
dnvm upgrade -r coreclr

pause

Fix missing newline at EOF.

Fix missing newline at EOF.


:: Sets up the environment for use with MSVS tools and CMake.
@echo off

setlocal
:: cmd for loops are really hard, so I hardcoded the list of MSVS paths.
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars
:found_vcvars
call %vcvars%

:: Add the normal CMake install path.
set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH%
echo Final PATH:
echo %PATH%
%*

:: Sets up the environment for use with MSVS tools and CMake.
@echo off

setlocal
:: cmd for loops are really hard, so I hardcoded the list of MSVS paths.
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars
:: VS 2008 vcvars isn't standalone, it needs this env var.
set VS90COMNTOOLS=%PROGRAMFILES%\Microsoft Visual Studio 9.0\Common7\Tools\
set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
if exist %vcvars% goto found_vcvars

:found_vcvars
call %vcvars%

:: Add the normal CMake install path.
set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH%
echo Final PATH:
echo %PATH%
%*

Fix drmemory build environment wrapper for VS 2008

vcvars32.bat isn't totally standalone, it wants this VSCOMNTOOLS variable set
up for it.

TBR=nsylvain@chromium.org
BUG=154895
Review URL: https://codereview.chromium.org/11186003

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


:: Add a new Ruby version to rbenv
@ setlocal EnableDelayedExpansion

@ call "%~dp0common_vars.cmd"

@reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL
@reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL
@reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f > NUL
@reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\shims\ruby.cmd\" \"%%1\" %%*" /f > NUL

@ echo(Ruby files are now associated with rbenv-cmd.

@ exit /b 0

:: Add a new Ruby version to rbenv
@ setlocal EnableDelayedExpansion

@ call "%~dp0common_vars.cmd"

@reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL
@reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL
@reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f > NUL
@reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\libexec\rbenv_exec.cmd\" \"%%1\" %%*" /f > NUL

@ echo(Ruby files are now associated with rbenv-cmd.

@ exit /b 0

Change register to use rbenv exec instead of Ruby shim


@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt

echo Testing (Google Test)...

set failures=0

FOR /F %%i IN (__tmp_gtest.txt) DO (
	echo %%i
	%%i --gtest_output="xml:%%i.xml"
	powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml
	IF %ERRORLEVEL% NEQ 0 (
		set /A failures=%failures%+1
	)
)
del __tmp_gtest.txt

EXIT /B %failures%

@echo off
setlocal EnableDelayedExpansion
echo Test discovery started...
dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt

echo Testing (Google Test)...

set failures=0

FOR /F %%i IN (__tmp_gtest.txt) DO (
	echo %%i
	%%i --gtest_output="xml:%%i.xml"
	IF %ERRORLEVEL% NEQ 0 (
		set /A failures=%failures%+1
	)
	powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml
)
del __tmp_gtest.txt

EXIT /B %failures%

Solve problem of non-failing native tests


@echo off

setlocal
set COLLECTOR_PROCESS_TITLE=Skywalking-Collector
set COLLECTOR_HOME=%~dp0%..
set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs"

set CLASSPATH=%COLLECTOR_HOME%\config;.;
set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH%

if defined JAVA_HOME (
 set _EXECJAVA="%JAVA_HOME:"=%"\bin\java
)

if not defined JAVA_HOME (
 echo "JAVA_HOME not set."
 set _EXECJAVA=java
)

start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" CollectorBootStartUp
endlocal

@echo off

setlocal
set COLLECTOR_PROCESS_TITLE=Skywalking-Collector
set COLLECTOR_HOME=%~dp0%..
set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs"

set CLASSPATH=%COLLECTOR_HOME%\config;.;
set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH%

if defined JAVA_HOME (
 set _EXECJAVA="%JAVA_HOME:"=%"\bin\java
)

if not defined JAVA_HOME (
 echo "JAVA_HOME not set."
 set _EXECJAVA=java
)

start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" org.apache.skywalking.apm.collector.boot.CollectorBootStartUp
endlocal

[Collector] Fix issue that collector start failed in the Windows environment


@ECHO OFF
REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`.

setlocal
set PATH=%PATH%;tools\NuGet
nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages
nuget install FSharp.Compiler.Tools -nocache -version 4.0.1.21 -excludeVersion -o tools/packages
tools\packages\FSharp.Compiler.Tools\tools\fsi.exe --exec build.fsx %*

@ECHO OFF
REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`.

setlocal
set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\4.0\Framework\v4.0
set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0
set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0
set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.0\Framework\v4.0
set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0
set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0
set PATH=%PATH%;tools\NuGet
nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages
fsi.exe --exec build.fsx %*

Revert using fsi from FSharp.Compiler.Tools


mkdir bin
ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule
csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs
csc /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs

mkdir bin
ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule
csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs
csc /debug /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs

Build tests w/ debugging symbols

Build tests w/ debugging symbols


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

cd ..

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

cd ..

Add Program Files\7-Zip to path

Add Program Files\7-Zip to path


cd %~dp0java_executor
del /s /q objs
rmdir objs
md objs
cd src
javac -d ..\objs ca\dmoj\java\*.java
cd ..\objs
del ..\..\executors\java_executor.jar
jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class

cd %~dp0java_executor
del /s /q objs
rmdir objs
md objs
cd src
javac -source 1.7 -target 1.7 -d ..\objs ca\dmoj\java\*.java
cd ..\objs
del ..\..\executors\java_executor.jar
jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class

Build for 1.7 even with 1.8 javac

Build for 1.7 even with 1.8 javac


@rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl6 "%~dp0\%0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul
goto endofperl
@rem ';
__END__
:endofperl

Add a batch file to support windows until panda gets its own automatic .bat facility generation at installation time


echo off
REM
REM This batch file builds both 32-bit and 64-bit versions of the loader.
REM It is assumed that the developer has run the update_external_sources.bat
REM file prior to running this.
REM

REM Determine the appropriate CMake strings for the current version of Visual Studio
echo Determining VS version
python .\determine_vs_version.py > vsversion.tmp
set /p VS_VERSION=< vsversion.tmp
echo Detected Visual Studio Version as %VS_VERSION%

REM Cleanup the file we used to collect the VS version output since it's no longer needed.
del /Q /F vsversion.tmp

rmdir /Q /S build
rmdir /Q /S build32

REM *******************************************
REM 64-bit LoaderAndTools build
REM *******************************************
mkdir build
pushd build

echo Generating 64-bit spirv-tools CMake files for Visual Studio %VS_VERSION%
cmake -G "Visual Studio %VS_VERSION% Win64" ..

echo Building 64-bit Debug LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug

REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Debug\vulkan-1.dll (
   echo.
   echo LoaderAndTools 64-bit Debug build failed!
   set errorCode=1
)

echo Building 64-bit Release LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release

REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Release\vulkan-1.dll (
   echo.
   echo LoaderAndTools 64-bit Release build failed!
   set errorCode=1
)

popd

REM *******************************************
REM 32-bit LoaderAndTools build
REM *******************************************
mkdir build32
pushd build32

echo Generating 32-bit LoaderAndTools CMake files for Visual Studio %VS_VERSION%
cmake -G "Visual Studio %VS_VERSION%" ..

echo Building 32-bit Debug LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug

REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Debug\vulkan-1.dll (
   echo.
   echo LoaderAndTools 32-bit Debug build failed!
   set errorCode=1
)

echo Building 32-bit Release LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release

REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Release\vulkan-1.dll (
   echo.
   echo LoaderAndTools 32-bit Release build failed!
   set errorCode=1
)

popd

misc: Create a script to allow building 32-bit and 64-bit Windows.

Create a script to allow people to build both versions of Windows
targets from a command-line.


@echo off

set DIST_DIR=dist
set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx"
set MSI_PROGRAM_NAME="Nuxeo Drive"
set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll

set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL%
set VERIFY_CMD=signtool verify /v /pa

FOR %%F IN (%DIST_DIR%\*.msi) DO (
	echo ---------------------------------------------
	echo Signing %%F
    echo ---------------------------------------------
	echo %SIGN_CMD% %%F
	%SIGN_CMD% %%F
	echo ---------------------------------------------
    echo Verifying %%F
	echo ---------------------------------------------
    echo %VERIFY_CMD% %%F
	%VERIFY_CMD% %%F
)

@echo off

set DIST_DIR=dist
set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx"
set PFX_PASSWORD=""
set MSI_PROGRAM_NAME="Nuxeo Drive"
set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll

set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /p %PFX_PASSWORD% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL%
set VERIFY_CMD=signtool verify /v /pa

FOR %%F IN (%DIST_DIR%\*.msi) DO (
	echo ---------------------------------------------
	echo Signing %%F
    echo ---------------------------------------------
	echo %SIGN_CMD% %%F
	%SIGN_CMD% %%F
	echo ---------------------------------------------
    echo Verifying %%F
	echo ---------------------------------------------
    echo %VERIFY_CMD% %%F
	%VERIFY_CMD% %%F
)

NXP-12981: Add PFX certificate password option when signing msi


robocopy C:\Users\user\Documents F:\Backup\Documents /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt
robocopy C:\Users\user\Pictures  F:\Backup\Pictures  /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
robocopy C:\Users\user\Music     F:\Backup\Music     /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
robocopy C:\Users\user\Downloads F:\Backup\Downloads /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
pause

robocopy "C:\Users\user\Documents" "F:\Backup\Documents" /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt
robocopy "C:\Users\user\Pictures"  "F:\Backup\Pictures"  /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
robocopy "C:\Users\user\Music"     "F:\Backup\Music"     /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
robocopy "C:\Users\user\Downloads" "F:\Backup\Downloads" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt
pause

Add quotation around dir path.

Add quotation around dir path.


@echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
  echo You must put a copy of depot_tools in %~dp0..\depot_tools
  goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
cd /d %~dp0
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac %*

@echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
  echo You must put a copy of depot_tools in %~dp0..\depot_tools
  goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
cd /d %~dp0
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac --logfile=twistd.log %*

Write twistd.log files on Windows

Write twistd.log files on Windows

That will simplify debugging Buildbot slave process on Windows, plus
will also enable sending those logs to the Cloud.

BUG=492404
R=dsansome@chromium.org, iannucci@chromium.org

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

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


#
# Currently, Build system does not provide post build mechanism for module
# and platform building, so just use a bat file to do post build commands.
# Originally, following post building command is for EfiLoader module.
#

set BUILD_DIR=%WORKSPACE%\Build\DuetPkg\DEBUG_MYTOOLS
set BASETOOLS_DIR=%WORKSPACE_TOOLS_PATH%\Bin\Win32
set OUTPUT_DIR=%BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT

%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_DIR%\FV\DUETEFIMAINFV.Fv
%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\IA32\DxeMain.efi
%BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\IA32\DxeIpl.efi
%BASETOOLS_DIR%\EfiLdrImage.exe -o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\IA32\EfiLoader.efi %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\FV\DUETEFIMAINFV.z
copy /b %OUTPUT_DIR%\Start.com+%OUTPUT_DIR%\Efi32.com2+%BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\FV\Efildr

Move post building command from make file to bat file. Until build system support post build, these command will be for Duet platform's post building commands.

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


"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -jar compiler.jar ^
--js=misc.js ^
--js=siggy.js ^
--js=siggy.helpers.js ^
--js=siggy.static.js ^
--js=siggy.intel.dscan.js ^
--js=siggy.intel.poses.js ^
--js=siggy.charactersettings.js ^
--js=siggy.notifications.js ^
--js=siggy.timer.js ^
--js=siggy.sigtable.js ^
--js=siggy.globalnotes.js ^
--js=siggy.map.connection.js ^
--js=siggy.hotkeyhelper.js ^
--js=siggy.map.js ^
--js=siggy.activity.siggy.js ^
--js=siggy.activity.scannedsystems.js ^
--js=siggy.activity.search.js ^
--js=siggy.activity.thera.js ^
--js=siggy.activity.notifications.js ^
--js=siggy.activity.astrolabe.js ^
--js=siggy.activity.chainmap.js ^
--source_map_format=V3 ^
--create_source_map siggy.compiled.js.map ^
--js_output_file=siggy.compiled.js

echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js

@pause

java.exe -jar compiler.jar ^
--js=misc.js ^
--js=siggy.js ^
--js=siggy.helpers.js ^
--js=siggy.static.js ^
--js=siggy.intel.dscan.js ^
--js=siggy.intel.poses.js ^
--js=siggy.charactersettings.js ^
--js=siggy.notifications.js ^
--js=siggy.timer.js ^
--js=siggy.sigtable.js ^
--js=siggy.globalnotes.js ^
--js=siggy.map.connection.js ^
--js=siggy.hotkeyhelper.js ^
--js=siggy.map.js ^
--js=siggy.activity.siggy.js ^
--js=siggy.activity.scannedsystems.js ^
--js=siggy.activity.search.js ^
--js=siggy.activity.thera.js ^
--js=siggy.activity.notifications.js ^
--js=siggy.activity.astrolabe.js ^
--js=siggy.activity.chainmap.js ^
--source_map_format=V3 ^
--create_source_map siggy.compiled.js.map ^
--js_output_file=siggy.compiled.js

echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js

@pause

Use java instead of full path

Use java instead of full path


@ECHO OFF
REM compile the code into the bin folder
javac  javac  -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java

REM run the program, feed commands from input.txt file and redirect the output to the actual.txt
java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt

REM compare the output to the expected output
FC actual.txt expected.txt

@ECHO OFF

REM create bin directory if it doesn't exist
if not exist ..\bin mkdir ..\bin

REM delete output from previous run
del actual.txt

REM compile the code into the bin folder
javac  javac  -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java

REM run the program, feed commands from input.txt file and redirect the output to the actual.txt
java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt

REM compare the output to the expected output
FC actual.txt expected.txt

Update test script to clean up at start

Update test script to clean up at start


setlocal
cd %~dp0
set path=%path;%C:\Users\marco\OneDrive\Documents\PROJECTS\ThirdParties\vtk_installRelease\bin
call "C:\Users\marco\OneDrive\Documents\PROJECTS\polytriagnulation\out\Unittests\Release\unittests.exe"
pause

Test run via bat file.

Test run via bat file.


@echo off
setlocal enabledelayedexpansion

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/f1f26085d54438c5a3eb951baba56fc0db8f90eb
IF %ERRORLEVEL% NEQ 0 goto error

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0

@echo off
setlocal enabledelayedexpansion

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/93edfcb6e9c75d395e805825f5051e707bd50bb8
IF %ERRORLEVEL% NEQ 0 goto error

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0

Update to use KuduScript 1.0.4

Update to use KuduScript 1.0.4


choco install docfx -y
choco update docfx -y
docfx docfx\docfx.json
del docs /s /q
REM the CNAME file is generated in the doc folder when added through the github
REM settings page. Apparently github uses this file to determine the custom
REM domain. The line above deletes the whole docs folder so we need to copy it
REM from the docfx folder. If we ever want to change the custom domain settings
REM we need to alter the docfx\CNAME file and not use the github settings page.
copy docfx\CNAME docs /Y
xcopy docfx\_site docs /E /Y

choco install docfx -y
choco upgrade docfx -y
docfx docfx\docfx.json
del docs /s /q
REM the CNAME file is generated in the doc folder when added through the github
REM settings page. Apparently github uses this file to determine the custom
REM domain. The line above deletes the whole docs folder so we need to copy it
REM from the docfx folder. If we ever want to change the custom domain settings
REM we need to alter the docfx\CNAME file and not use the github settings page.
copy docfx\CNAME docs /Y
xcopy docfx\_site docs /E /Y

Use choco upgrade iso update

Use choco upgrade iso update


@echo off
rem > Build-Release [cfg file]

rem  Note: compiling twice the same sources gives different binaries.

rem clean output directory
del ..\dcu\*.dcu

if '%1' NEQ '' goto use_cfg_argument

:use_default_cfg
dcc32 Drago
goto return

:use_cfg_argument
set cfg=%1
copy Drago.cfg Drago.cfg.bak > nul
copy %cfg% Drago.cfg > nul
dcc32 Drago
move Drago.cfg.bak Drago.cfg > nul

:return

Add batch to compile release binary.

Add batch to compile release binary.


@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem  Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windowz variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*
goto execute

:4NT_args
@rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega

Add gradle wrapper for Windows

Add gradle wrapper for Windows


@echo off
echo Press any key to publish
pause
".nuget\NuGet.exe" push Rssdp.2.0.0.1.nupkg
pause

@echo off
echo Press any key to publish
pause
".nuget\NuGet.exe" push Rssdp.2.0.0.2.nupkg
pause

Update publish bat for new release.

Update publish bat for new release.


@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 MAVEN_HOME=C:\opt\apache\apache-maven-3.5.3

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

SET PATH=%MAVEN_HOME%\bin;%PATH%

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

@ECHO OFF

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

SET PYTHON_HOME=C:\Python36
SET MAVEN_HOME=C:\opt\apache\apache-maven-3.3.9

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

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

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

Update paths to Python and Maven

Update paths to Python and Maven


@echo off
setlocal enableextensions

set base=%~dp0

for %%i in (node.bat node.exe) do if not "%%~$PATH:i"=="" set node=%%~$PATH:i
if "%node%"=="" echo error: node.js is not on the system path && exit /b 1

"%node%" "%base%bolt.js" %*

Convert windows batch script to use windows line endings.


@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
echo Installing _gvimrc
if exist %USERPROFILE%\_gvimrc goto END
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
popd

@echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0

if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc

:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing _gvimrc
echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc

:END
popd

Move gvimrc log message so it doesn't print unnecessarily.


call :test 4.7.2
call :test 6.9.4
call :test 7.4.0

goto :eof
:test
setlocal
docker run node:%1 node --version
docker run node:%1-nano node --version

call :test 4.7.2
call :test 6.9.4
call :test 7.4.0

goto :eof
:test
setlocal
docker run node:%1 node --version
docker run node:%1 npm --version
docker run node:%1-nano node --version
docker run node:%1-nano npm --version

Test npm version, just rebuild with 693

Test npm version, just rebuild with 693


@echo off
if not defined HOME (
  echo ϐ HOME `Ă܂
  echo ϐ HOME  _vimrc zu邽߂̃fBNgpXݒ肵Ă
  exit /b
)

set MY_DIR=%~dp0
@echo on
echo source %MY_DIR%vimrc >> %HOME%\_vimrc
echo source %MY_DIR%gvimrc >> %HOME%\_gvimrc
mkdir %HOME%\temp\vim_backup

Make temp directory in HOME

Make temp directory in HOME


Use java instead of full path

Use java instead of full path


@rem Makes a build directory of the Tundra, so that you can run the NSIS install script
@echo off
cd ..\..\..\..
rmdir build /S /Q
md build
copy README.md build
copy LICENSE build\LICENSE.txt
copy WhatsNew.txt build
copy tools\Windows\Installer\VS2008\vcredist_x86.exe build\vcredist.exe
copy tools\Windows\Installer\oalinst.exe build
copy tools\Windows\Installer\dxwebsetup.exe build
xcopy bin\*.* build /S /C /Y

:: NOTE! This script only copies content to the build\ folder. If you want to make a full development build with all the content
:: in your bin\ directory, run NSIS after running this bat.
:: If you want to create an end-user client build, run MakeClean.bat after this, and then run NSIS.

@rem Makes a build directory of the Tundra, so that you can run the NSIS install script
@echo off
cd ..\..\..\..
rmdir build /S /Q
md build
copy README.md build
copy LICENSE build\LICENSE.txt
copy WhatsNew.txt build
copy tools\Windows\Installer\VS2008\vcredist_x64.exe build\vcredist.exe
copy tools\Windows\Installer\oalinst.exe build
copy tools\Windows\Installer\dxwebsetup.exe build
xcopy bin\*.* build /S /C /Y

:: NOTE! This script only copies content to the build\ folder. If you want to make a full development build with all the content
:: in your bin\ directory, run NSIS after running this bat.
:: If you want to create an end-user client build, run MakeClean.bat after this, and then run NSIS.

Copy correct version of VS redistributable.


@echo off
IF NOT EXIST %APPDATA%\npm\tsc.cmd (
	ECHO You must have the TypeScript compiler installed. If npm is installed, run
	ECHO npm install -g typescript
	GOTO end
)

IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" (
	CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts
) ELSE (
	IF EXIST "%APPDATA%\npm\tsc.cmd" (
		CALL %APPDATA%\npm\tsc -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts
	) ELSE (
		echo TypeScript compiler not installed.
	)
)
mkdir out
COPY main.html out\main.html
XCOPY sdk out\sdk\ /r /f /e /c /h /y
ECHO.
:end

@echo off

IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" (
	CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts
) ELSE (
	IF EXIST "%APPDATA%\npm\tsc.cmd" (
		CALL %APPDATA%\npm\tsc -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts
	) ELSE (
		echo TypeScript compiler not installed.
	)
)
mkdir out
COPY main.html out\main.html
XCOPY sdk out\sdk\ /r /f /e /c /h /y
ECHO.
:end

Remove unnecessary npm tsc check.

Remove unnecessary npm tsc check.


@echo off
setlocal
pushd "%~dp0"
call :main %*
popd
goto :EOF

:main
set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
if not exist "%MSBUILDEXE%" (
    echo The .NET Framework 4.0 does not appear to be installed on this
    echo machine, which is required to build the solution.
    exit /b 1
)
set EnableNuGetPackageRestore=true
for %%s in (src\*.sln) do for %%c in (debug release) do "%MSBUILDEXE%" %%s /p:Configuration=%%c /v:m %*

@echo off
setlocal
pushd "%~dp0"
call :main %*
popd
goto :EOF

:main
set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
if not exist "%MSBUILDEXE%" (
    echo The .NET Framework 4.0 does not appear to be installed on this
    echo machine, which is required to build the solution.
    exit /b 1
)
set EnableNuGetPackageRestore=true
call :build Debug && call :build Release
goto :EOF

:build
"%MSBUILDEXE%" src\NCrontab.sln /p:Configuration=%1 /v:m %2 %3 %4 %5 %6 %7 %8 %9
goto :EOF

Build script error propagation fix

Build script error propagation fix


@echo off

SET EXPECT_OUTPUT=

FOR %%a IN (%*) DO (
  IF /I "%%a"=="-h"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--help"       SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-v"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--version"    SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-f"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--foreground" SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-w"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--wait"       SET EXPECT_OUTPUT=YES
)

IF "%EXPECT_OUTPUT%"=="YES" (
  "%~dp0\..\atom.exe" %*
) ELSE (
  "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %*
)

@echo off

SET EXPECT_OUTPUT=

FOR %%a IN (%*) DO (
  IF /I "%%a"=="-f"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--foreground" SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-h"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--help"       SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-t"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--test"       SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-v"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--version"    SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="-w"           SET EXPECT_OUTPUT=YES
  IF /I "%%a"=="--wait"       SET EXPECT_OUTPUT=YES
)

IF "%EXPECT_OUTPUT%"=="YES" (
  "%~dp0\..\atom.exe" %*
) ELSE (
  "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %*
)

Add -t and --test to expected output args


@echo off

:CountLines
setlocal
cd ..
set /a totalNumLines = 0
for /r %1 %%F in (*.java *.html *.hpp *.cs *.c) do (
  echo "%%F"
  for /f %%N in ('find /v /c "" ^<"%%F"') do set /a totalNumLines+=%%N
)

echo Total LOC (Java) = %totalNumLines%
timeout 15 > NUL

Add Java line count script for windows

Add Java line count script for windows


@echo off
call ..\..\SetNugetApiKey.bat
del *.nupkg
nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release
nuget setApiKey %NUGET_API_KEY%
nuget push *.nupkg
pause

@echo off
call ..\..\SetNugetApiKey.bat
del *.nupkg
..\..\nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release
..\..\nuget setApiKey %NUGET_API_KEY%
..\..\nuget push *.nupkg
pause

Update nuget publish script for updated nuget.exe path


ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports -package haskell-src-exts-1.3.0

Remove the restriction to haskell-src-exts-1.3.0 in the .bat file


@echo off
setlocal
set mypath=%~dp0
set PYTHONPATH=pkgs
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
    set common="%COMMONPROGRAMFILES%"
) else (
    set common="%COMMONPROGRAMFILES(x86)%"
)

REM Start the DbServer in background but within the same context
start "OpenQuake DB server" /B %common%\Python\2.7\python.exe -m openquake.server.dbserver

REM Make sure that the dbserver is up and running
echo Please wait ...
if exist C:\Windows\System32\timeout.exe (
    timeout /t 10 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n 1 -w 10000 > nul
)

REM Start the WebUI using django
%common%\Python\2.7\python.exe -m openquake.server.manage runserver %*

endlocal

@echo off
setlocal
set mypath=%~dp0
set PYTHONPATH=pkgs
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
    set common="%COMMONPROGRAMFILES%"
) else (
    set common="%COMMONPROGRAMFILES(x86)%"
)

REM Start the DbServer in background but within the same context
start "OpenQuake DB server" /B %common%\Python\2.7\python.exe -m openquake.server.dbserver

REM Make sure that the dbserver is up and running
echo Please wait ...
if exist C:\Windows\System32\timeout.exe (
    timeout /t 10 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n 1 -w 10000 > NUL
)

REM Start the WebUI using django
%common%\Python\2.7\python.exe -m openquake.server.manage runserver %*

endlocal

Use same case for NUL

Use same case for NUL


mkdir tmp-build
if errorlevel 1 exit 1
cd tmp-build
if errorlevel 1 exit 1
cmake ../pythonfmu/pythonfmu-export -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release
if errorlevel 1 exit 1
cmake --build . --config Release
if errorlevel 1 exit 1
cd ..
if errorlevel 1 exit 1

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

mkdir tmp-build
if errorlevel 1 exit 1
cd tmp-build
if errorlevel 1 exit 1
cmake ../pythonfmu/pythonfmu-export -G "Ninja" -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release
if errorlevel 1 exit 1
cmake --build . --config Release
if errorlevel 1 exit 1
cd ..
if errorlevel 1 exit 1

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

Use Ninja as generator on Windows

Use Ninja as generator on Windows


:: Build tcplotter command-line utilities using cmake

:: Change working directory to archive directory
cd "%PKG_NAME%"

:: Create build directory
cd "src"
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1

:: Build with cmake
cmake -G "Visual Studio 15 2017" -A x64 ..
if errorlevel 1 exit 1
cmake --build .
if errorlevel 1 exit 1

:: Install executables to bin directory
cmake --build . --target install --prefix=%PREFIX%
if errorlevel 1 exit 1

:: Install tcplotter
cd "%SRC_DIR%"
$PYTHON -m pip install . -vv

:: Build tcplotter command-line utilities using cmake

:: Change working directory to archive directory
cd "%PKG_NAME%"

:: Create build directory
cd "src"
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1

:: Build with cmake
cmake -G "Visual Studio 16 2019" -A x64 ..
if errorlevel 1 exit 1
cmake --build .
if errorlevel 1 exit 1

:: Install executables to bin directory
cmake --build . --target install --prefix=%PREFIX%
if errorlevel 1 exit 1

:: Install tcplotter
cd "%SRC_DIR%"
$PYTHON -m pip install . -vv

Revert to Visual Studio 16 2019

Revert to Visual Studio 16 2019


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

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

REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not
REM a directory using the echo hack.
echo f | xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe

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

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

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

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

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

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

REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not
REM a directory using the echo hack.
echo f | xcopy /D /Y %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe

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

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

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

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

Add /Y to xcopy of cygwin1.dll in lighttpd dir

So that when we make a copy in the win\ folder the batch file
won't hang waiting for confirmation.

The 5-ish step process:
- Make this batch file not hang if the dest already exists
- Copy no_dll\cygwin1.dll to the win\ folder in the lighttpd DEPS tree
- Remove third_party/cygwin
- Remove the xcopy in run_webserver.bat
- Remove the copy of cygwin1.dll in no_dll subdirectory.

BUG=123026
R=dpranke@chromium.org, iannucci@chromium.org

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

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


@setlocal
@cd SLOTaxService
@msbuild /t:build /p:Configuration=Release /nologo /v:m
@if %errorlevel% neq 0 exit /b %errorlevel%
@cd ..

@cd SLOTaxGuiTest
@msbuild /t:build /p:Configuration=Release /nologo /v:m
@if %errorlevel% neq 0 exit /b %errorlevel%
@cd ..

@setlocal

@cd SLOTaxGuiTest40
@msbuild /t:build /p:Configuration=Release /nologo /v:m
@if %errorlevel% neq 0 exit /b %errorlevel%
@cd ..

@cd SLOTaxGuiTest
@msbuild /t:build /p:Configuration=Release /nologo /v:m
@if %errorlevel% neq 0 exit /b %errorlevel%
@cd ..

@rd FinalOutput /s /q
@md FinalOutput
@cd FinalOutput
@md Net40
@md Net45

@cd ..

@copy SLOTaxGuiTest40\bin\Release\*.exe FinalOutput\Net40
@copy SLOTaxGuiTest40\bin\Release\*.dll FinalOutput\Net40
@copy SLOTaxGuiTest40\bin\Release\*.config FinalOutput\Net40
@del FinalOutput\Net40\*vshost*

@copy SLOTaxGuiTest\bin\Release\*.exe FinalOutput\Net45
@copy SLOTaxGuiTest\bin\Release\*.dll FinalOutput\Net45
@copy SLOTaxGuiTest\bin\Release\*.config FinalOutput\Net45
@del FinalOutput\Net45\*vshost*

Build .Net 4.0 and .Net 4.5 projects

Build .Net 4.0 and .Net 4.5 projects


@ECHO OFF
REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`.

setlocal
set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0
set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0
set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0
set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0
set PATH=%PATH%;tools\NuGet
nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages
fsi.exe --exec build.fsx %*

Rename Zafir packages to WebSharper

Rename Zafir packages to WebSharper


rem First, convert the input data to vrt, reprojecting from RD to wgs84, and replacing the nodata value at the same time.
rem As gdalwarp does not support AAIGrid as output, we first convert it to VRT, and use gdal_translate to translate it to an ESRI ASCII GRID file.

for %%f in (*.asc) do (
	echo Processing %%f
	"c:/Program Files/QGIS Pisa/bin/gdalwarp.exe" --config GDAL_DATA "c:/OSGeo4W64/share/gdal" -srcnodata -9999 -dstnodata -1 -t_srs EPSG:4296 -s_srs EPSG:28992 -of VRT -r average %%f %%f_intermediate.vrt
	"c:/Program Files/QGIS Pisa/bin/gdal_translate.exe" -of AAIGrid %%f_intermediate.vrt %%f.out
	del %%f_intermediate.vrt
)

Use GDAL to convert ESRI ASCII Grid files in RD to WGS84.
Requires a working GDAL installation, e..g. you can use the one that is installed with QGIS, or install it yourself.

You need to specify:

* the path to the gdalwarp en gdal_translate exe
* the path to the gdal data (specifically gcs.cvs, containing the EPSG definitions)
* the no_data value, if you wish to convert it to something shorter (e.g. -9999 --> -1).


@ECHO OFF
REM
REM Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
REM Use of this source code is governed by a BSD-style license that can be
REM found in the LICENSE file.
REM

PATH %PATH%;%DXSDK_DIR%\Utilities\bin\x86

fxc /E standardvs /T vs_2_0 /Fh standardvs.h Blit.vs
fxc /E flipyvs /T vs_2_0 /Fh flipyvs.h Blit.vs
fxc /E passthroughps /T ps_2_0 /Fh passthroughps.h Blit.ps
fxc /E luminanceps /T ps_2_0 /Fh luminanceps.h Blit.ps
fxc /E componentmaskps /T ps_2_0 /Fh componentmaskps.h Blit.ps

fxc /E VS_Passthrough /T vs_4_0 /Fh passthrough11vs.h Passthrough11.hlsl
fxc /E PS_Passthrough /T ps_4_0 /Fh passthrough11ps.h Passthrough11.hlsl

Fix mixed line endings in generateshader.bat

git-svn-id: 2a1ef23f1c4b6a1dbccd5f9514022461535c55c0@1552 736b8ea6-26fd-11df-bfd4-992fa37f6226


REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp.
REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates.

SET P4PORT=
SET P4CLIENT=
SET P4USER=
SET P4PASSWD=
SET DIR=

SET FILEPATH=%DIR%\last_updated

p4 login -s
p4 info
p4 sync -q -f

REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful
p4 add %FILEPATH%
p4 edit %FILEPATH%

ECHO %DATE%-%TIME% > %FILEPATH%
p4 submit -d "Update" %FILEPATH%

p4 logout

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS

REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp.
REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates.

ECHO [Script executed at %DATE%-%TIME%]

SET P4PORT=
SET P4CLIENT=
SET P4USER=
SET P4PASSWD=
SET DIR=

SET FILEPATH=%DIR%\last_updated

p4 login -s
p4 info
p4 sync -q -f

REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful
p4 add %FILEPATH%
p4 edit %FILEPATH%

ECHO %DATE%-%TIME% > %FILEPATH%
p4 submit -d "Update" %FILEPATH%

p4 logout

EXIT /B 0

Add experience enhancers to perf_update

[Perforce] Add experience enhancers to perf_update


@@setlocal
@@set POWERSHELL_BAT_ARGS=%*
@@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"%
@@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF

if ($args.Length -lt 1 -or $args.Length -gt 2)
{
    Write-Host "Specify an assembly path and an optional output directory.";
    Exit 1;
}

$assemblyPath = $args[0];
$outputDirectory = ".";

if ($args.Length -eq 2)
{
    $outputDirectory = $args[1];
}

$eventSourceType = [System.Diagnostics.Tracing.EventSource];
$assembly = [System.Reflection.Assembly]::LoadFrom($args[0]);
$types = $assembly.GetTypes();
foreach ($type in $types)
{
    if ($type.IsSubclassOf($eventSourceType))
    {
        Write-Host "Found type '$type'.";
        $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, $null);
        $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man";
        Write-Host "Writing manifest to '$fileName'...";
        $text | Out-File $fileName;
    }
}

Write-Host "Done.";

@@setlocal
@@set POWERSHELL_BAT_ARGS=%*
@@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"%
@@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF

if ($args.Length -lt 1 -or $args.Length -gt 2)
{
    Write-Host "Specify an assembly path and an optional output directory.";
    Exit 1;
}

$assemblyPath = $args[0];
$outputDirectory = ".";

if ($args.Length -eq 2)
{
    $outputDirectory = $args[1];
}

$eventSourceType = [System.Diagnostics.Tracing.EventSource];
$assembly = [System.Reflection.Assembly]::LoadFrom($args[0]);
$types = $assembly.GetTypes();
foreach ($type in $types)
{
    if ($type.IsSubclassOf($eventSourceType))
    {
        Write-Host "Found type '$type'.";
        $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, "NOT-USED");
        $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man";
        Write-Host "Writing manifest to '$fileName'...";
        $text | Out-File $fileName;
    }
}

Write-Host "Done.";

Add dummy resource file values for manifest


mkdir tmp-build
if errorlevel 1 exit 1
cd tmp-build
if errorlevel 1 exit 1
cmake ..\pythonfmu\pythonfmu-export --debug-output -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release
more .\CMakeFiles\CMakeOutput.log
if errorlevel 1 exit 1
cmake --build . --config Release --verbose
if errorlevel 1 exit 1
cd ..
if errorlevel 1 exit 1

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

mkdir tmp-build
if errorlevel 1 exit 1
cd tmp-build
if errorlevel 1 exit 1
cmake  --debug-output -G "Ninja" ^
       -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" ^
       -DCMAKE_BUILD_TYPE=Release ^
       ..\pythonfmu\pythonfmu-export
more .\CMakeFiles\CMakeOutput.log
if errorlevel 1 exit 1
REM cmake --build . --config Release --verbose
ninja install
if errorlevel 1 exit 1
cd ..
if errorlevel 1 exit 1

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

Switch back to Ninja as generator on win


echo 'y' | "%ANDROID_HOME%/tools/android.bat" update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3

Add android sdk upload script.

Add android sdk upload script.


java -jar Collate-TUI.jar collate from src/main to collated/main include java, fxml, css

java -jar Collate-TUI.jar collate from src/test to collated/test include java

java -jar Collate-TUI.jar collate from unused to collated/unused include java, fxml, css

Add newline to end of file

Add newline to end of file


@echo off
@rem Run from the root of master to deploy the currently built contents
@rem of the out\ directory to PPE or PROD. PPE or PROD must be the
@rem first parameter.

setlocal
set _env=%~1
if "%_env%"=="PPE" goto :StartDeployment
if "%_env%"=="PROD" goto :StartDeployment
echo ERROR: You must specify a deployment environment PPE or PROD
exit /b 1

:StartDeployment

@echo =================================================================
@echo %_env% Deployment
@echo Checking out Deploy%_env% branch which is configured in
@echo Azure App Service to automatically deploy to the %_env%
@echo ZombAttack site.
@echo =================================================================
call git checkout Deploy%_env%
if ERRORLEVEL 1 echo ERROR: Git checkout failed && exit /b 1

@echo =================================================================
@echo Copying build in the out\ directory to the %_env% deployment
@echo directory.
@echo =================================================================
robocopy.exe out\. Deployed\. /s /mir
if ERRORLEVEL 8 echo ERROR: Robocopy failed with errorlevel %ERRORLEVEL%. && exit /b 1

@echo =================================================================
@echo Committing and pushing copied deployment.
@echo =================================================================
call git add Deployed/*
call git commit -am "Deploy %_env%"
call git push --set-upstream origin Deploy%_env%

exit /b 0

@echo off
@rem Run from the root of master to deploy the currently built contents
@rem of the out\ directory to PPE or PROD. PPE or PROD must be the
@rem first parameter.

setlocal
set _env=%~1
if "%_env%"=="PPE" goto :StartDeployment
if "%_env%"=="PROD" goto :StartDeployment
echo ERROR: You must specify a deployment environment PPE or PROD
exit /b 1

:StartDeployment

@echo =================================================================
@echo %_env% Deployment
@echo Checking out Deploy%_env% branch which is configured in
@echo Azure App Service to automatically deploy to the %_env%
@echo ZombAttack site.
@echo =================================================================
call git checkout Deploy%_env%
if ERRORLEVEL 1 echo ERROR: Git checkout failed && exit /b 1
call git pull
if ERRORLEVEL 1 echo ERROR: Git pull failed && exit /b 1
call git reset --hard origin/Deploy%_env%
if ERRORLEVEL 1 echo ERROR: Git reset failed && exit /b 1

@echo =================================================================
@echo Copying build in the out\ directory to the %_env% deployment
@echo directory.
@echo =================================================================
robocopy.exe out\. Deployed\. /s /mir
if ERRORLEVEL 8 echo ERROR: Robocopy failed with errorlevel %ERRORLEVEL%. && exit /b 1

@echo =================================================================
@echo Committing and pushing copied deployment.
@echo =================================================================
call git add Deployed/*
call git commit -am "Deploy %_env%"
call git push --set-upstream origin Deploy%_env%

exit /b 0

Make deployment script more resilient

Make deployment script more resilient


cargo build
mkdir opt
rustc -O --out-dir opt -L target\deps src\rboy.rs
rustc -O --out-dir opt -L target\deps -L opt src\bin\rboy.rs

Add batch file to build optimized version on win32


nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory C:\Users\egger\Workspace\NuGet -Version 0.0.1-alpha

nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory ..\..\NuGet -Version 0.0.1-alpha

Use relative path for local nuspec build script


SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests

SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%

SET /p DOMAIN=<%CD%\bosh-lite-lock\name
call %CD%\cli-ci\ci\tasks\create-cats-config.bat
SET CONFIG=%CD%\config.json

pushd %CD%\cf-cli-binaries
	7z x cf-cli-binaries.tgz
	7z x cf-cli-binaries.tar
	MOVE %CD%\cf-cli_winx64.exe ..\cf.exe
popd

go get -v github.com/onsi/ginkgo/ginkgo

cd %GATSPATH%
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application

SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests

SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\GnuWin32\bin;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%

SET /p DOMAIN=<%CD%\bosh-lite-lock\name
call %CD%\cli-ci\ci\tasks\create-cats-config.bat
SET CONFIG=%CD%\config.json

pushd %CD%\cf-cli-binaries
	gzip -d cf-cli-binaries.tgz
	tar -xvf cf-cli-binaries.tar
	MOVE %CD%\cf-cli_winx64.exe ..\cf.exe
popd

go get -v github.com/onsi/ginkgo/ginkgo

cd %GATSPATH%
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats
ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application

Revert "switching to 7z as well, sourceforge still broke"

This reverts commit 9b2c32b64adb595d5c2e19ca7d0abf421eacc097.


@echo off

pushd %1

if exist %1\node_modules\azure-cli\bin\azure (
  call npm update azure-cli
) else (
  call npm install azure-cli
)

if exist %1\node_modules\kudusync\bin\kudusync (
  call npm update kudusync
) else (
  call npm install kudusync
)

popd

@echo off

pushd %1

if exist %1\node_modules\azure-cli\bin\azure (
  cmd /c npm update azure-cli
) else (
  cmd /c npm install azure-cli
)

IF %ERRORLEVEL% NEQ 0 goto error

if exist %1\node_modules\kudusync\bin\kudusync (
  cmd /c npm update kudusync
) else (
  cmd /c npm install kudusync
)

popd

Fix npm install intermittent failures.

Fix npm install intermittent failures.


set projectPath=%~dp0
if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1%

set releasePath=%projectPath%\.release
mkdir "%releasePath%"

for /f "tokens=*" %%a in ('type version.txt') do set version=%%a

del "%releasePath%\shareical_%version%.zip"
"build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!components -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln

set projectPath=%~dp0
if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1%

set releasePath=%projectPath%\.release
mkdir "%releasePath%"

for /f "tokens=*" %%a in ('type version.txt') do set version=%%a

del "%releasePath%\shareical_%version%.zip"
"build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln
"build_tools\7za.exe" d -tzip -r "%releasePath%\shareical_%version%.zip" components

Fix missing files in release ZIP

Fix missing files in release ZIP


call "c:\Program Files (x86)\nodejs\nodevars.bat"
call npm.cmd install grunt-contrib-compress
call npm.cmd install grunt-contrib-clean
call npm.cmd install -g grunt-cli
call grunt.cmd

call "c:\Program Files (x86)\nodejs\nodevars.bat"
call npm.cmd install grunt
call npm.cmd install grunt-contrib-compress
call npm.cmd install grunt-contrib-clean
call npm.cmd install -g grunt-cli
call grunt.cmd

Fix build by installing grunt

Fix build by installing grunt

grunt should be installed locally in order to be able to build the package successfully.


set CATALINA_HOME=C:\Java\apache-tomcat-7.0.47
set BREEZEJS_TEST=C:\git\Breeze\breeze.js\test\

Set environment variables to Jay's values


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

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

Store OS X files in zips.

Store OS X files in zips.


@echo off
setlocal ENABLEEXTENSIONS

set PATH=C:\MinGW\bin;%PATH%

set TEST_PY=26,30,31
set TEST_MPI=deinompi,mpich2_win,msmpi
set TEST_CC=msvc,mingw32

for %%A in (%TEST_PY%)  do (
for %%B in (%TEST_MPI%) do (
for %%C in (%TEST_CC%)  do (
echo --------------------------------------------------------------------------
call :Main %%A %%B %%C
echo --------------------------------------------------------------------------
)))
goto :eof

:Main
set PYVERSION=%1
set MPICONF=%2
set COMPILER=%3
echo Py: %PYVERSION% - MPI: %MPICONF% - CC: %COMPILER%

set PYTHONDIR=C:\Python%PYVERSION%
set PYTHON="%PYTHONDIR%\python.exe"
set MPIDIR=
if %MPICONF%==deinompi   set MPIDIR=%ProgramFiles%\DeinoMPI
if %MPICONF%==mpich2_win set MPIDIR=%ProgramFiles%\MPICH2
if %MPICONF%==msmpi      set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK
set MPIEXEC="%MPIDIR%\bin\mpiexec.exe"

%PYTHON% setup.py -q clean --all
%PYTHON% setup.py -q build  --mpi=%MPICONF% --compiler=%COMPILER%
%PYTHON% setup.py -q install --home=%TEMP%
%PYTHON% setup.py -q clean --all
%MPIEXEC% -n 2 %PYTHON% test\runalltest.py -q --path=%TEMP%\lib\python
del /S /Q %TEMP%\lib\python > NUL
rmdir /S /Q %TEMP%\lib\python\mpi4py
goto :eof

Add buildtest batch file for Windows

Add buildtest batch file for Windows


@echo off

if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/mare --outputDir=Build/mare --sourceDir=Ext/mare/src
if not "%1"=="" (Build\mare\mare.exe %*) else Build\mare\mare.exe --vcxproj=2013

@echo off

if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/Debug/mare --outputDir=Build/Debug/mare --sourceDir=Ext/mare/src
if not "%1"=="" (Build\Debug\mare\mare.exe %*) else Build\Debug\mare\mare.exe --vcxproj=2013

Move mare build directory to Build/Debug


@ECHO OFF
REM
REM This script generates headers for use with Visual C++ only
REM
REM Usage:
REM .\autogen.bat
REM nmake -f makefile.vc
REM
REM NOTE: DO NOT include this script in GEOS sources distribution
REM

set GEOS_HEADERS=include\geos

COPY %GEOS_HEADERS%\version.h.vc %GEOS_HEADERS%\version.h
COPY %GEOS_HEADERS%\platform.h.vc %GEOS_HEADERS%\platform.h
COPY capi\geos_c.h.in capi\geos_c.h
@ECHO #define GEOS_SVN_REVISION 0 > geos_svn_revision.h

Add step generating geos_svn_revision.h template with revision 0

Simplifies CI build steps.

[ci skip]

git-svn-id: 6c2b1bd10c324c49ea9d9e6e31006a80e70507cb@4364 5242fede-7e19-0410-aef8-94bd7d2200fb


call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true

REM Kill any instances of VBCSCompiler.exe to release locked files;
REM otherwise future CI runs may fail while trying to delete those files.
taskkill /F /IM vbcscompiler.exe

Add a CI build script

Add a CI build script

Instances of vbcscompiler.exe may hang around for a few minutes after a
Jenkins run, locking files and causing new runs on the same system to
fail. To address this, we add a script to setup the environment, run the
build and test, and then kill any instances of vbcscompiler.exe that are
left around.


REM see README.txt
REM SET UP ENVIRONMENT VARIABLES

set KDBCODE=%cd%\code
set KDBCONFIG=%cd%\config
set KDBLOG=%cd%\logs
set KDBHTML=%cd%\html
set KDBLIB=%cd%\lib

set KDBBASEPORT=6000

set PATH=%PATH%;%KDBLIB%\w32

REM to kill it, run this:
start "kill" q torq.q -load code/processes/kill.q -proctype kill -procname killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed

REM see README.txt
REM SET UP ENVIRONMENT VARIABLES

set TORQHOME=%cd%
set KDBCODE=%TORQHOME%\code
set KDBCONFIG=%TORQHOME%\config
set KDBLOG=%TORQHOME%\logs
set KDBHTML=%TORQHOME%\html
set KDBLIB=%TORQHOME%\lib
set KDBBASEPORT=6000
set KDBHDB=%TORQHOME%/hdb/database

REM App specific configuration directory
set KDBAPPCONFIG=%TORQHOME%\appconfig

set KDBBASEPORT=6000

set PATH=%PATH%;%KDBLIB%\w32

REM to kill it, run this:
start "kill" q torq.q -load code/processes/kill.q -proctype kill -procname killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed

Change environment variables in stop.bat file.


nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools
nuget install OpenCover -Version 4.6.519 -OutputDirectory tools

nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools

.\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe -targetargs:".\NUnit.Tests1\bin\Release\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user

.\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml

nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools
nuget install OpenCover -Version 4.6.519 -OutputDirectory tools

nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools

.\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe -targetargs:".\NUnit.Tests1\bin\Debug\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user

.\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml

Change nunit argument to Debug

Change nunit argument to Debug


@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 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 output = %TEST_OUT% >> %USERINI%

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

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

@ECHO OFF

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

SET PYTHON_HOME=C:\Python36
SET DOTNET_HOME=C:\Program Files\dotnet
SET JAVA_HOME=C:\opt\oracle-jdk-8
SET 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 output = %TEST_OUT% >> %USERINI%

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

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

Update path to CloundFoundry CLI

Update path to CloundFoundry CLI


@rem Build and test Mbed TLS with Visual Studio using msbuild.
@rem Usage: windows_msbuild [RETARGET]
@rem   RETARGET: version of Visual Studio to emulate
@rem             https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset

@rem These parameters are hard-coded for now.
set "arch=x64" & @rem "x86" or "x64"
set "cfg=Release" & @rem "Debug" or "Release"
set "vcvarsall=C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat"

if not "%~1"=="" set "retarget=,PlatformToolset=%1"

@rem If the %USERPROFILE%\Source directory exists, then running
@rem vcvarsall.bat will silently change the directory to that directory.
@rem Setting the VSCMD_START_DIR environment variable causes it to change
@rem to that directory instead.
set "VSCMD_START_DIR=%~dp0\..\visualc\VS2010"

"%vcvarsall%" x64 && ^
msbuild /t:Rebuild /p:Configuration=%cfg%%retarget% /m mbedTLS.sln

Add a simple build script for Windows with Visual Studio

Keep it simple and mostly non-parametrizable for now.
A path to Visual Studio 2017 is hard-coded.

Signed-off-by: Gilles Peskine <f805f64266d288fc5467baa7be6cd0ff366f477b@arm.com>


call ..\..\src\locatevc.bat
"C:\Qt\Qt5.12.2\5.12.2\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
rem "C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_2_MSVC2017_32bit-Release/Makefile qmake_all
"C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe"
copy release\ringqt.dll ..\..\bin

call ..\..\src\locatevc.bat
"C:\Qt\Qt5.12.3\5.12.3\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler"
rem "C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_3_MSVC2017_32bit-Release/Makefile qmake_all
"C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe"
copy release\ringqt.dll ..\..\bin

Update RingQt - Update from Qt 5.12.2 to Qt 5.12.3


@ECHO OFF
IF %1.==. GOTO No1
REM Remove trailing /
set CONFIG=%1

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

@powershell -Command "java -cp "..\lib\*" org.jboss.aerogear.unifiedpush.DBMaintenance $%DEBUG_OPTS% -Daerobase.config.dir=%CONFIG%"

GOTO End1

:No1
  ECHO Missing Config file
GOTO End1

:End1
@ECHO ON

Add init db windows script file

Add init db windows script file


::*******************************************************************************************************
::  BuildBeta.bat - Gbtc
::
::  Tennessee Valley Authority, 2009
::  No copyright is claimed pursuant to 17 USC  105.  All Other Rights Reserved.
::
::  This software is made freely available under the TVA Open Source Agreement (see below).
::
::  Code Modification History:
::  -----------------------------------------------------------------------------------------------------
::  10/05/2009 - Pinal C. Patel
::       Generated original version of source code.
::  10/20/2009 - Pinal C. Patel
::       Modified to force a build and suppress archives from being published to public locations.
::
::*******************************************************************************************************

@ECHO OFF
C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe Synchrophasor.buildproj /p:ForceBuild=true;SkipPublicArchive=true /l:FileLogger,Microsoft.Build.Engine;logfile=Synchrophasor.output
PAUSE

::*******************************************************************************************************
::  BuildBeta.bat - Gbtc
::
::  Tennessee Valley Authority, 2009
::  No copyright is claimed pursuant to 17 USC  105.  All Other Rights Reserved.
::
::  This software is made freely available under the TVA Open Source Agreement (see below).
::
::  Code Modification History:
::  -----------------------------------------------------------------------------------------------------
::  10/05/2009 - Pinal C. Patel
::       Generated original version of source code.
::  10/20/2009 - Pinal C. Patel
::       Modified to force a build and suppress archives from being published to public locations.
::  09/21/2010 - Mihir Brahmbhatt
::		 Change Framework path from v3.5 to v4.0
::
::*******************************************************************************************************

@ECHO OFF
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe Synchrophasor.buildproj /p:ForceBuild=true;SkipPublicArchive=true;SkipHelpFiles=true;SkipSigning=true /l:FileLogger,Microsoft.Build.Engine;logfile=Synchrophasor.output
PAUSE

Modify .Net framework version to 4.0

Synchrophasor: Modify .Net framework version to 4.0

git-tfs-id: [https://tfs.codeplex.com/tfs/TFS07]$/openpdc/Synchrophasor/Current Version;C57478


@echo off
setlocal enabledelayedexpansion

cls
echo   ###                ###
echo  # CorpBot - CorpNewt #
echo ###                ###
echo.

set "botFile=WatchDog.py"
set "pyPath=python"

for /f %%i in ('where python 2^>nul') do (
    set "p=%%i"
    if /i NOT "!p:~0,5!"=="INFO:" (
        set "pyPath=%%i"
    )
)

set "thisDir=%~dp0"

goto start

:start
if /i "%update%" == "Yes" (
    call :update
)

"%pyPath%" "%botFile%"

pause > nul

@echo off
setlocal enabledelayedexpansion

cls
echo   ###                ###
echo  # CorpBot - CorpNewt #
echo ###                ###
echo.

set "botFile=WatchDog.py"
set "pyPath=python"

for /f "tokens=*" %%i in ('where python 2^>nul') do (
    set "p=%%i"
    if /i NOT "!p:~0,5!"=="INFO:" (
        set "pyPath=%%i"
    )
)

set "thisDir=%~dp0"

goto start

:start
if /i "%update%" == "Yes" (
    call :update
)

"%pyPath%" "%botFile%"

pause > nul

Fix for spaces in path

Fix for spaces in path


@echo off

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

if exist %1\node_modules\azure-cli\bin\azure (
  cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
) else (
  cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
)

IF %ERRORLEVEL% NEQ 0 goto error

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0

@echo off

pushd %1

set attempts=5
set counter=0

:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%

if exist node_modules\azure-cli\bin\azure (
  cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
) else (
  cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
)

IF %ERRORLEVEL% NEQ 0 goto error

set long_unrequired_directory=node_modules\azure-cli\node_modules\azure\node_modules\request\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stream\test
if exist %long_unrequired_directory% (
  rmdir /s /q %long_unrequired_directory%
  IF %ERRORLEVEL% NEQ 0 goto error
)

goto end

:error
if %counter% GEQ %attempts% goto :lastError
goto retry

:lastError
popd
echo An error has occured during npm install.
exit /b 1

:end
popd
echo Finished successfully.
exit /b 0

Remove long directory from azure-cli

Remove long directory from azure-cli


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

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

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

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

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

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

:end

Make prebuild batch file more adaptable by trying to find Git.exe


python setup.py install
rmdir %~dp0windows /s /q
mkdir %~dp0windows
python setup.py py2exe
move dist\retriever.exe %~dp0windows
rmdir build dist /s /q

python setup.py install
rmdir %~dp0windows /s /q
mkdir %~dp0windows
python setup.py py2exe
move dist\retriever.exe windows\
rmdir build dist /s /q

Allow Windows batch file to work when there are spaces in the path.


@ECHO OFF
REM ---------------------------------------------------------------------------
REM Builds the file utility nuget packages.
REM ---------------------------------------------------------------------------

SETLOCAL

SET BUILD_NUMBER=%1
IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555
ECHO BUILD_NUMBER=%BUILD_NUMBER%

SET /p VERSION=<ver.file-utility-code.txt

ECHO Building targets for %VERSION%.%BUILD_NUMBER%

SET PUBLISHCMD=dotnet publish -c Release /p:Version=%VERSION%
ECHO PUBLISHCMD=%PUBLISHCMD%

%PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-win-x86\   --runtime win-x86
%PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-linux-x64\ --runtime linux-x64

ENDLOCAL

@ECHO OFF
REM ---------------------------------------------------------------------------
REM Builds the file utility nuget packages.
REM ---------------------------------------------------------------------------

SETLOCAL

SET BUILD_NUMBER=%1
IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555
ECHO BUILD_NUMBER=%BUILD_NUMBER%

ECHO Building self-contained dotnet targets

SET PUBLISHCMD=dotnet publish -c Release
ECHO PUBLISHCMD=%PUBLISHCMD%

%PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-win-x86\   --runtime win-x86
%PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-linux-x64\ --runtime linux-x64

ENDLOCAL

Remove manual versioning from self-contained targets


:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
:: https://github.com/matplotlib/matplotlib/issues/9176
for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a

python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (curl -sL https://github.com/python/cpython/pull/1224.patch | patch -fsup 1 -d %PATCH_PREFIX% ) || ( set errorlevel= )

pytest -v -s -m indexed_gzip_test --niters 250          --pyargs indexed_gzip -k "not drop_handles"
pytest -v -s -m indexed_gzip_test --niters 250 --concat --pyargs indexed_gzip -k "not drop_handles"

:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3
:: https://github.com/matplotlib/matplotlib/issues/9176
for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a

python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (curl -sL https://github.com/python/cpython/pull/1224.patch | patch -fsup 1 -d %PATCH_PREFIX% ) || ( set errorlevel=0 )

pytest -v -s -m indexed_gzip_test --niters 250          --pyargs indexed_gzip -k "not drop_handles"
pytest -v -s -m indexed_gzip_test --niters 250 --concat --pyargs indexed_gzip -k "not drop_handles"

Make sure errorlevel is not empty

Make sure errorlevel is not empty


@rem Used by the buildbot "test" step.
cd PCbuild
call rt.bat -q -d -x64 -uall -rw

@rem Used by the buildbot "test" step.
cd PCbuild
call rt.bat -d -q -x64 -uall -rwW -n

Use -W on the Windows 64 buildbots

Use -W on the Windows 64 buildbots


REM Run from anywhere, project root or bin folder. E.g. (from root):
REM   bin\kill-drivers
tasklist | find /i "driver" && taskkill /f /im "chromedriver.exe" && taskkill /f /im "IEDriverServer.exe"

@echo off
REM Run from anywhere, project root or bin folder. E.g. (from root):
REM   bin\kill-drivers
tasklist | findstr /i "driver phantomjs"
taskkill /f /im "chromedriver.exe"
taskkill /f /im "IEDriverServer.exe"
taskkill /f /im "phantomjs.exe"

Make sure all taskkills fire.

Make sure all taskkills fire.


@echo off
echo Building your theme...
mkdir temp
echo Building fonts...
bin\makebundle.exe temp\8x8.fnt Template\font8x8
bin\makebundle.exe temp\7x6.fnt Template\font7x6
bin\makebundle.exe temp\4x6.fnt Template\font4x6
echo Copying colors...
copy /y Template\colors.txt temp\colors.txt
echo Copying graphics...
copy /y Template\bevel.* temp
copy /y Template\vu.* temp
copy /y Template\analyzor.* temp
copy /y Template\logo.* temp
copy /y Template\cursor.* temp
echo Bundling everything together...
bin\makebundle.exe MyNewTheme temp
echo ---
echo Your new theme is now packed in the file called "MyNewTheme"!
echo Copy the file in klystrack\res and restart klystrack.
pause

@echo off
echo Building your theme...
mkdir temp
echo Building fonts...
bin\makebundle.exe temp\8x8.fnt Template\font8x8
bin\makebundle.exe temp\7x6.fnt Template\font7x6
bin\makebundle.exe temp\4x6.fnt Template\font4x6
echo Copying colors...
copy /y Template\colors.txt temp\colors.txt
echo Copying graphics...
copy /y Template\bevel.* temp
copy /y Template\vu.* temp
copy /y Template\analyzor.* temp
copy /y Template\logo.* temp
copy /y Template\cursor.* temp
echo Bundling everything together...
bin\makebundle.exe MyNewTheme temp
echo 'Cleaning up temporary files...'
rmdir /S /q temp
echo ---
echo Your new theme is now packed in the file called "MyNewTheme"!
echo Copy the file in klystrack\res and restart klystrack.
pause

Clean up after theme bundling

Clean up after theme bundling


@echo off

if "%1" == "" (
  echo Usage: buildrelease version-number
  goto end
)

IF EXIST tmpdocs rmdir /s /q tmpdocs
xcopy /q /s /i www\unstable\userguide tmpdocs
xcopy /q /s /i www\_layouts tmpdocs\_layouts
xcopy /q /s /i www\_plugins tmpdocs\_plugins
xcopy /q /s /i www\css tmpdocs\css
xcopy /q /s /i www\js tmpdocs\js
xcopy /q /s /i www\fonts tmpdocs\fonts
copy www\_config.yml tmpdocs
echo ug_version: %1 >> tmpdocs\_config.yml

REM Override the normal foundation layout
copy tmpdocs\_layouts\foundation-offline.html tmpdocs\_layouts\foundation.html

cd tmpdocs
call jekyll build
cd ..

:end

@echo off

if "%1" == "" (
  echo Usage: buildofflineguide version-number
  goto end
)

IF EXIST tmpdocs rmdir /s /q tmpdocs
xcopy /q /s /i www\unstable\userguide tmpdocs
xcopy /q /s /i www\_layouts tmpdocs\_layouts
xcopy /q /s /i www\_plugins tmpdocs\_plugins
xcopy /q /s /i www\css tmpdocs\css
xcopy /q /s /i www\js tmpdocs\js
xcopy /q /s /i www\fonts tmpdocs\fonts
copy www\_config.yml tmpdocs
echo ug_version: %1 >> tmpdocs\_config.yml

REM Override the normal foundation layout
copy tmpdocs\_layouts\foundation-offline.html tmpdocs\_layouts\foundation.html

cd tmpdocs
call jekyll build
cd ..

:end

Fix copy and paste typo

Fix copy and paste typo


docker run --rm --volume="%cd%:/srv/jekyll" -p 35729:35729 -p 4000:4000 --name jekyll -it jekyll/jekyll jekyll serve

Add script for automated local running

Add script for automated local running


.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.6

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1.0.2

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.GitIgnoreContent\Baseclass.Contrib.Nuget.GitIgnoreContent.nuspec -Version 0.0.2

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.7

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1.0.2

.nuget\nuget.exe pack Baseclass.Contrib.Nuget.GitIgnoreContent\Baseclass.Contrib.Nuget.GitIgnoreContent.nuspec -Version 0.0.2

Update Baseclass.Contrib.Nuget.Output version to 1.0.7


mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ..
if errorlevel 1 exit 1
cmake --build . --config Release --target install
if errorlevel 1 exit 1

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ..
if errorlevel 1 exit 1
cmake --build . --config Release
if errorlevel 1 exit 1
echo "Build finished"
cmake --config Release --target install
if errorlevel 1 exit 1

Add a separate install phase

Add a separate install phase


@ECHO OFF

:: Run unit tests
cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test
dotnet test
if not "%errorlevel%"=="0" goto failure
cd ..\..
cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test
if not "%errorlevel%"=="0" goto failure
dotnet test
cd ..\..
echo Unit Tests Pass
goto success
:failure
echo Unit Tests Failure
exit -1
:success

@ECHO OFF

:: Run unit tests
cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test
dotnet test
if not "%errorlevel%"=="0" goto failure
cd ..\..
cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test
dotnet test
if not "%errorlevel%"=="0" goto failure
cd ..\..
echo Unit Tests Pass
goto success
:failure
echo Unit Tests Failure
exit -1
:success

Fix test script for appveyor

Fix test script for appveyor


SET EXE=%2
start %1%EXE%
timeout /t %3

FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1
exit /b %errorlevel%

SET EXE=%2
SET FINISHED=0
start %1%EXE% && %FINISHED%=1

FOR /L %%I in (1,1,%3) DO (timeout /t 1 && IF %%I EQU %3 goto :timeout && IF FINISHED EQU 1 goto :taskFinished)
:taskFinished
exit /b %errorlevel%
:timeout
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1

Make Tests in Appveyor Exit when Test is finished


:: Paths assume java-jdk installed by conda
set JCC_JDK=%JAVA_HOME%

set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH%

set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include
set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib
set JDK_HOME=%JCC_JDK%

set

::cd jcc
"%PYTHON%" setup.py install --single-version-externally-managed --record record.txt
if errorlevel 1 exit 1

:: ensure that JCC_JDK is set correctly
set ACTIVATE_DIR=%PREFIX%\etc\conda\activate.d
set DEACTIVATE_DIR=%PREFIX%\etc\conda\deactivate.d
mkdir %ACTIVATE_DIR%
mkdir %DEACTIVATE_DIR%

copy %RECIPE_DIR%\scripts\activate.bat %ACTIVATE_DIR%\jcc-activate.bat
if errorlevel 1 exit 1

copy %RECIPE_DIR%\scripts\deactivate.bat %DEACTIVATE_DIR%\jcc-deactivate.bat
if errorlevel 1 exit 1

:: Paths assume openjdk installed by conda
set JCC_JDK=%JAVA_HOME%

set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH%

:: set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include
:: set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib
:: set JDK_HOME=%JCC_JDK%

:: set

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

:: ensure that JCC_JDK is set correctly
set ACTIVATE_DIR=%PREFIX%\etc\conda\activate.d
set DEACTIVATE_DIR=%PREFIX%\etc\conda\deactivate.d
mkdir %ACTIVATE_DIR%
mkdir %DEACTIVATE_DIR%

copy %RECIPE_DIR%\scripts\activate.bat %ACTIVATE_DIR%\jcc-activate.bat
if errorlevel 1 exit 1

copy %RECIPE_DIR%\scripts\deactivate.bat %DEACTIVATE_DIR%\jcc-deactivate.bat
if errorlevel 1 exit 1

Remove windows explicitly stated compiler directives.


cd /d %~dp0
java -jar pathvisio.jar -p visplugins.jar %*

cd /d %~dp0
java -Xmx1024m -jar pathvisio.jar -p visplugins.jar %*

Increase memory limit for standard installation

git-svn-id: 6d8cdd4af04c6f63acdc5840a680025514bef303@3310 4f21837e-9f06-0410-ae49-bac5c3a7b9b6


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

Build : Added pause at the end of the bat file


set PATH=%PATH:C:\Program Files\Git\usr\bin;=%

:: Configure.
cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1

:: Build.
mingw32-make
if errorlevel 1 exit 1

:: Install.
mingw32-make install
if errorlevel 1 exit 1

sixs < Example_In_1.txt

set PATH=%PATH:C:\Program Files\Git\usr\bin;=%

:: Configure.
cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% .
if errorlevel 1 exit 1

:: Build.
mingw32-make
if errorlevel 1 exit 1

:: Install.
mingw32-make install
if errorlevel 1 exit 1

sixs < Example_In_1.txt

Change install prefix to LIBRARY_PREFIX

Change install prefix to LIBRARY_PREFIX


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

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

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

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

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

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

Patch for version 0.602 update

[Nomad] Patch for version 0.602 update


"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release /maxcpucount
powershell.exe %~dp0PackageNuget.ps1

"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release;VisualStudioVersion=12.0 /maxcpucount
powershell.exe %~dp0PackageNuget.ps1

Fix build script for systems without VS2012


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

@REM @if "%1"==""         (goto build)
@REM @if "%1"=="clean"    (goto clean)
@REM @if "%1"=="cleanall" (goto cleanall)

:build
	@echo on
	ant -f %WORKSPACE%/build.xml %1 %2 %3
	@echo off
	@goto end

:clean
	@echo on
	ant clean -f %WORKSPACE%/build.xml
	@echo off
	@goto end

:cleanall
	@echo on
	ant cleanall -f %WORKSPACE%/build.xml
	@echo off
	@goto end

:end

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

ant -f %WORKSPACE%/build.xml %*

Simplify the script. It now allows normal ant targets and flags to be passed straight through. For example

build –v clean
build all –k

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


conda list -p "%PREFIX%" --canonical
if errorlevel 1 exit 1
for /f "delims=" %%i in ('conda list -p "%PREFIX%" --canonical') do set condalist=%%i
if errorlevel 1 exit 1
echo "%condalist%"
if not "%condalist%"=="conda-build-test-build-string-1.0-1" exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-1.json"
if errorlevel 1 exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-1.json" | grep '"build_number": 0'
if errorlevel 1 exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-1.json" | grep '"build": "abc"'
if errorlevel 1 exit 1

conda list -p "%PREFIX%" --canonical
if errorlevel 1 exit 1
for /f "delims=" %%i in ('conda list -p "%PREFIX%" --canonical') do set condalist=%%i
if errorlevel 1 exit 1
echo "%condalist%"
if not "%condalist%"=="conda-build-test-build-string-1.0-abc" exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-abc.json"
if errorlevel 1 exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-abc.json" | grep '"build_number": 0'
if errorlevel 1 exit 1
cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-abc.json" | grep '"build": "abc"'
if errorlevel 1 exit 1

Use correct build string in metadata files


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

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

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

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

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

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

Patch for version 0.79 update

[Nomad] Patch for version 0.79 update


for %%F in ("." "bin") do (
    cmake -G "%CMAKE_GENERATOR%" ^
          -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
          -DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^
          -DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^
          -DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^
          -DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION:STRING=%%F ^
          "%RECIPE_DIR%"
    if errorlevel 1 exit 1

    cmake --build "%SRC_DIR%" ^
          --target INSTALL ^
          --config Release
    if errorlevel 1 exit 1
)

if "%ARCH%" == "32" (set "ARCH_DIR=x86")
if "%ARCH%" == "64" (set "ARCH_DIR=amd64")

dir /a:d /o:-n /s /b C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp* > vcomp90_locs.txt
type vcomp90_locs.txt

set /p VCOMP_DIR=<vcomp90_locs.txt
echo "%VCOMP_DIR%"

for %%F in ("." "bin") do (
    cmake -G "%CMAKE_GENERATOR%" ^
          -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
          -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS:PATH="%VCOMP_DIR%\vcomp90.dll" ^
          -DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^
          -DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^
          -DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^
          -DCMAKE_INSTALL_SYSTEM_RUNTIME_DESTINATION:STRING=%%F ^
          "%RECIPE_DIR%"
    if errorlevel 1 exit 1

    cmake --build "%SRC_DIR%" ^
          --target INSTALL ^
          --config Release
    if errorlevel 1 exit 1
)

Add WinSxS path to vcomp90

Add WinSxS path to vcomp90


ECHO OFF

SET "ARCH=x64"
SET "VC_ARCH=amd64"
SET "QT_KIT=C:\Qt\5.12.0\msvc2017_64"
SET "DIR=%~dp0"
SET "BUILD_TYPE=release"
SET "BUILD_DIR=%DIR%..\build-OAuthRedirectExample-Desktop_Qt_5_12_0_MSVC2017_64bit-Release\%BUILD_TYPE%"
SET "ARCGIS_SDK_DIR=C:\Program Files (x86)\ArcGIS SDKs\Qt100.7\sdk\windows\%ARCH%\bin\%BUILD_TYPE%"

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
call %QT_KIT%\bin\windeployqt.exe %BUILD_DIR%\OAuthRedirectExample.exe --qmldir %DIR% -sensors -positioning

copy "%ARCGIS_SDK_DIR%\EsriCommonQt.dll" "%BUILD_DIR%\EsriCommonQt.dll"
copy "%ARCGIS_SDK_DIR%\runtimecore.dll" "%BUILD_DIR%\runtimecore.dll"

ECHO OFF

SET "ARCH=x64"
SET "VC_ARCH=amd64"
SET "QT_KIT=C:\Qt\5.12.6\msvc2017_64"
SET "DIR=%~dp0"
SET "BUILD_TYPE=release"
SET "BUILD_DIR=%DIR%..\build-OAuthRedirectExample-Desktop_Qt_5_12_6_MSVC2017_64bit-Release\%BUILD_TYPE%"
SET "ARCGIS_SDK_DIR=C:\Program Files (x86)\ArcGIS SDKs\Qt100.7\sdk\windows\%ARCH%\bin\%BUILD_TYPE%"

call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" %VC_ARCH%
call %QT_KIT%\bin\windeployqt.exe %BUILD_DIR%\OAuthRedirectExample.exe --qmldir %DIR% -sensors -positioning

copy "%ARCGIS_SDK_DIR%\EsriCommonQt.dll" "%BUILD_DIR%\EsriCommonQt.dll"
copy "%ARCGIS_SDK_DIR%\runtimecore.dll" "%BUILD_DIR%\runtimecore.dll"

Update the version to 5.12.6.

Update the version to 5.12.6.