setlocal EnableDelayedExpansion
@echo on

:: Make a build folder and change to it
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1

:: configure
:: enable gnuradio components explicitly so we get build error when unsatisfied
:: the following are disabled:
::   DOXYGEN because we don't need docs in the conda package
::   TESTING because we don't intend to run the unit tests, just import test
:: the following can be disabled to speed up the build (dependencies remain in
:: meta.yaml):
::   GR_CTRLPORT
::   GR_DTV
::   GR_FEC
::   GR_TRELLIS
::   GR_VIDEO_SDL
::   GR_VOCODER
::   GR_WAVELET
::   GR_ZEROMQ
::   GRC
cmake -G "Ninja" ^
    -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_BUILD_TYPE:STRING=Release ^
    -DPYTHON_EXECUTABLE:PATH="%PYTHON%" ^
    -DBoost_NO_BOOST_CMAKE=ON ^
    -DGR_PYTHON_DIR:PATH="%SP_DIR%" ^
    -DENABLE_COMMON_PCH=OFF ^
    -DENABLE_CTRLPORT_THRIFT=OFF ^
    -DENABLE_DOXYGEN=OFF ^
    -DENABLE_EXAMPLES=ON ^
    -DENABLE_GNURADIO_RUNTIME=ON ^
    -DENABLE_GR_ANALOG=ON ^
    -DENABLE_GR_AUDIO=ON ^
    -DENABLE_GR_BLOCKS=ON ^
    -DENABLE_GR_BLOCKTOOL=ON ^
    -DENABLE_GR_CHANNELS=ON ^
    -DENABLE_GR_CTRLPORT=ON ^
    -DENABLE_GR_DIGITAL=ON ^
    -DENABLE_GR_DTV=ON ^
    -DENABLE_GR_FEC=ON ^
    -DENABLE_GR_FFT=ON ^
    -DENABLE_GR_FILTER=ON ^
    -DENABLE_GR_MODTOOL=ON ^
    -DENABLE_GR_NETWORK=ON ^
    -DENABLE_GR_QTGUI=ON ^
    -DENABLE_GR_SOAPY=ON ^
    -DENABLE_GR_TRELLIS=ON ^
    -DENABLE_GR_UHD=ON ^
    -DENABLE_GR_UTILS=ON ^
    -DENABLE_GR_VIDEO_SDL=ON ^
    -DENABLE_GR_VOCODER=ON ^
    -DENABLE_GR_WAVELET=ON ^
    -DENABLE_GR_ZEROMQ=ON ^
    -DENABLE_GRC=ON ^
    -DENABLE_POSTINSTALL=OFF ^
    -DENABLE_PYTHON=ON ^
    -DENABLE_TESTING=OFF ^
    ..
if errorlevel 1 exit 1

:: build
cmake --build . --config Release -- -j%CPU_COUNT%
if errorlevel 1 exit 1

:: remove intermediate build outputs to save disk space
del /s /q "*.obj"
if errorlevel 1 exit 1

setlocal EnableDelayedExpansion
@echo on

:: Python assumes an old Visual Studio without snprintf, but this breaks
:: compiling QtGUI Python bindings. Need to define HAVE_SNPRINTF to fix.
:: https://github.com/boostorg/system/issues/32#issuecomment-462912013
set "CXXFLAGS=%CXXFLAGS% -DHAVE_SNPRINTF"

:: Make a build folder and change to it
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1

:: configure
:: enable gnuradio components explicitly so we get build error when unsatisfied
:: the following are disabled:
::   DOXYGEN because we don't need docs in the conda package
::   TESTING because we don't intend to run the unit tests, just import test
:: the following can be disabled to speed up the build (dependencies remain in
:: meta.yaml):
::   GR_CTRLPORT
::   GR_DTV
::   GR_FEC
::   GR_TRELLIS
::   GR_VIDEO_SDL
::   GR_VOCODER
::   GR_WAVELET
::   GR_ZEROMQ
::   GRC
cmake -G "Ninja" ^
    -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^
    -DCMAKE_BUILD_TYPE:STRING=Release ^
    -DPYTHON_EXECUTABLE:PATH="%PYTHON%" ^
    -DBoost_NO_BOOST_CMAKE=ON ^
    -DGR_PYTHON_DIR:PATH="%SP_DIR%" ^
    -DENABLE_COMMON_PCH=OFF ^
    -DENABLE_CTRLPORT_THRIFT=OFF ^
    -DENABLE_DOXYGEN=OFF ^
    -DENABLE_EXAMPLES=ON ^
    -DENABLE_GNURADIO_RUNTIME=ON ^
    -DENABLE_GR_ANALOG=ON ^
    -DENABLE_GR_AUDIO=ON ^
    -DENABLE_GR_BLOCKS=ON ^
    -DENABLE_GR_BLOCKTOOL=ON ^
    -DENABLE_GR_CHANNELS=ON ^
    -DENABLE_GR_CTRLPORT=ON ^
    -DENABLE_GR_DIGITAL=ON ^
    -DENABLE_GR_DTV=ON ^
    -DENABLE_GR_FEC=ON ^
    -DENABLE_GR_FFT=ON ^
    -DENABLE_GR_FILTER=ON ^
    -DENABLE_GR_MODTOOL=ON ^
    -DENABLE_GR_NETWORK=ON ^
    -DENABLE_GR_QTGUI=ON ^
    -DENABLE_GR_SOAPY=ON ^
    -DENABLE_GR_TRELLIS=ON ^
    -DENABLE_GR_UHD=ON ^
    -DENABLE_GR_UTILS=ON ^
    -DENABLE_GR_VIDEO_SDL=ON ^
    -DENABLE_GR_VOCODER=ON ^
    -DENABLE_GR_WAVELET=ON ^
    -DENABLE_GR_ZEROMQ=ON ^
    -DENABLE_GRC=ON ^
    -DENABLE_POSTINSTALL=OFF ^
    -DENABLE_PYTHON=ON ^
    -DENABLE_TESTING=OFF ^
    ..
if errorlevel 1 exit 1

:: build
cmake --build . --config Release -- -j%CPU_COUNT%
if errorlevel 1 exit 1

:: remove intermediate build outputs to save disk space
del /s /q "*.obj"
if errorlevel 1 exit 1

Define HAVE_SNPRINTF to fix Windows compilation with Python 3.7 and 3.8.


@echo off
call tools\build.bat virtio-win.sln Win10 ARM64
if errorlevel 1 goto :fail
call tools\build.bat virtio-win.sln "Wxp Wnet Wlh Win7 Win8 Win8.1 Win10" %*
if errorlevel 1 goto :fail
call tools\build.bat NetKVM\NetKVM-VS2015.vcxproj "Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat vioscsi\vioscsi.vcxproj "Win8_SDV Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat viostor\viostor.vcxproj "Win8_SDV Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat ivshmem\ivshmem.vcxproj "Win10_SDV" %*
if errorlevel 1 goto :fail

path %path%;C:\Program Files (x86)\Windows Kits\10\bin\x86\
for %%D in (pciserial fwcfg packaging Q35) do (
  echo building also %%D
  pushd %%D
  call buildAll.bat
  if errorlevel 1 goto :fail
  popd
)

exit /B 0

:fail

exit /B 1

@echo off
call tools\build.bat virtio-win.sln Win10 ARM64
if errorlevel 1 goto :fail
call tools\build.bat virtio-win.sln "Wxp Wnet Wlh Win7 Win8 Win8.1 Win10" %*
if errorlevel 1 goto :fail
call tools\build.bat NetKVM\NetKVM-VS2015.vcxproj "Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat vioscsi\vioscsi.vcxproj "Win8_SDV Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat viostor\viostor.vcxproj "Win8_SDV Win10_SDV" %*
if errorlevel 1 goto :fail
call tools\build.bat ivshmem\ivshmem.vcxproj "Win10_SDV" %*
if errorlevel 1 goto :fail

path %path%;C:\Program Files (x86)\Windows Kits\10\bin\x86\
for %%D in (pciserial fwcfg packaging Q35) do (
  echo building also %%D
  pushd %%D
  call buildAll.bat
  if errorlevel 1 goto :fail
  popd
)

for /R %%f in (*.dvl.xml) do call :process_xml %%f

exit /B 0

:fail

exit /B 1

:process_xml
echo creating "%~dpn1-compat%~x1"
findstr /v /c:"General.Checksum" "%~1" > "%~dpn1-compat%~x1"
goto :eof

build: create DVL.MXL files compatible to earlier HCKs

HCKs of 2012 and 2016 do not recognize 'Checksum' element
in DVL XML file and fail respective HCK test. Current commit
creates compatible XML files after the build without this
problematic line and also keeps existing ones (2019 HCK
is able to work with them).

Signed-off-by: Yuri Benditovich <9668326cb042de5d91fd7679dac7ca5ea402812c@daynix.com>


for /f %%i in ('npm version %1 --no-git-tag-version') do set VERSION=%%i
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\scripts\ps\set-assembly-version.ps1' %VERSION%"
git commit -a -m "Release %VERSION%" && git tag -a -m "Release %VERSION%" %VERSION%

for /f %%i in ('npm version %1 --no-git-tag-version') do set VERSION=%%i
set ASSEMBLY_VERSION=%VERSION:~1%
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\scripts\ps\set-assembly-version.ps1' %ASSEMBLY_VERSION%"
git commit -a -m "Release %VERSION%" && git tag -a -m "Release %VERSION%" %VERSION%

Fix assembly versioning script

Fix assembly versioning script

  - Remove 'v' from assembly version string


@echo off

SETLOCAL

if NOT DEFINED JAVA_HOME goto err

set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI

set ES_CLASSPATH=$CLASSPATH;"%ES_HOME%/lib/*"
set ES_PARAMS=-Delasticsearch -Des.path.home="%ES_HOME%"

"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% -cp "%ES_CLASSPATH%" "org.elasticsearch.plugins.PluginManager" %*
goto finally

:err
echo JAVA_HOME environment variable must be set!
pause

:finally

ENDLOCAL

@echo off

SETLOCAL

if NOT DEFINED JAVA_HOME goto err

set SCRIPT_DIR=%~dp0
for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI

set ES_CLASSPATH=%CLASSPATH%;%ES_HOME%/lib/*
set ES_PARAMS=-Delasticsearch -Des.path.home="%ES_HOME%"

"%JAVA_HOME%\bin\java" %JAVA_OPTS% %ES_JAVA_OPTS% %ES_PARAMS% -cp "%ES_CLASSPATH%" "org.elasticsearch.plugins.PluginManager" %*
goto finally

:err
echo JAVA_HOME environment variable must be set!
pause

:finally

ENDLOCAL

fix plugin.bat classpath, closes #1002.

fix plugin.bat classpath, closes #1002.


set startdir=%cd%
set PWD=%~dp0
if "%PWD:~-1%"=="\" set PWD=%PWD:~0,-1%
cd /d %~dp0
start /MIN dbserver\bin\openmole-dbserver.bat
cd %cd%
mkdir "%UserProfile%\.openmole\.tmp"
set ran="%UserProfile%\.openmole\.tmp\%random%"
java -d64 -version >nul 2>&1
if errorlevel 1 goto is32bit
set FLAG="-XX:+UseCompressedOops"
:is32bit

set SCRIPT_ARGS=

:run
java -Xss2M -Dfile.encoding=UTF-8 -Dosgi.locking=none -Dopenmole.location="%PWD%" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -XX:MaxPermSize=128M -XX:+UseG1GC -XX:CICompilerCount=2 -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:G1ConcRefinementThreads=2 -Xmx1500m -XX:MaxPermSize=128M %FLAG% -cp "%PWD%/launcher/*" org.openmole.launcher.Launcher  --plugins "%PWD%/plugins/" --run org.openmole.ui.Application --priority "logging" --osgi-directory %ran% -- %* %SCRIPT_ARGS%
set ret=%errorlevel%
rmdir /s /q %ran%

if %ret% EQU 254 (
  set SCRIPT_ARGS=--no-browser
  goto run
)

EXIT /B %ret%

set startdir=%cd%
set PWD=%~dp0
if "%PWD:~-1%"=="\" set PWD=%PWD:~0,-1%
cd /d %~dp0
start /MIN dbserver\bin\openmole-dbserver.bat
cd %cd%
mkdir "%UserProfile%\.openmole\.tmp"
set ran="%UserProfile%\.openmole\.tmp\%random%"

set MEMORY=1500

java -d64 -version >nul 2>&1
if errorlevel 1 goto is32bit
set MEMORY=2000
set FLAG="-XX:+UseCompressedOops"
:is32bit

set SCRIPT_ARGS=

:run
java -Xss2M -Dfile.encoding=UTF-8 -Dosgi.locking=none -Dopenmole.location="%PWD%" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -XX:MaxPermSize=128M -XX:+UseG1GC -XX:CICompilerCount=2 -XX:ParallelGCThreads=2 -XX:ConcGCThreads=2 -XX:G1ConcRefinementThreads=2 -Xmx%MEMORY%m -XX:MaxPermSize=128M %FLAG% -cp "%PWD%/launcher/*" org.openmole.launcher.Launcher  --plugins "%PWD%/plugins/" --run org.openmole.ui.Application --priority "logging" --osgi-directory %ran% -- %* %SCRIPT_ARGS%
set ret=%errorlevel%
rmdir /s /q %ran%

if %ret% EQU 254 (
  set SCRIPT_ARGS=--no-browser
  goto run
)

EXIT /B %ret%

[App] enh: adjust memory on windows if it is 32 bits.


Normalize all the line endings

Normalize all the line endings


@echo off
rmdir "app/cache" /s /q
composer install --prefer-dist --optimize-autoloader && php app/console assetic:dump --env=prod --no-debug && php app/console cache:clear --env=prod --no-warmup

test mock

test mock

git-svn-id: 80960b1af802dc749f4fe4aaeef1d170bd8270eb@434 d2da55db-5866-43f3-bc33-3da1c376b5d1


go get golang.org/x/sys/unix
set GOARCH=amd64
set GOOS=linux
go build arkgo-gui.go

set GOOS=windows
go build arkgo-gui.go

go get golang.org/x/sys/unix
set GOARCH=amd64
set GOOS=linux
go build .\arkgo-gui.go .\database.go .\helpers.go .\payouts.go

set GOOS=windows
go build .\arkgo-gui.go .\database.go .\helpers.go .\payouts.go

make file updated

make file updated


@CALL ..\setenv.bat

@SET logs_dir=.\logs
@MKDIR %logs_dir%
@FOR /f "tokens=2 delims==" %%x IN ('WMIC OS Get localdatetime /value') DO @SET ts=%%x
@SET ts=%ts:~0,8%-%ts:~8,6%
@SET "gclog_options=-Xloggc:%logs_dir%\gc-%ts%.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
@SET "heap_options=-Xms1g -Xmx2g"
@SET "logging_options=-Djava.util.logging.config.file=./logging.properties"

java -classpath target/classes %gclog_options% %heap_options% %logging_options% jpt.app01.Main -p7666 -q0

@CALL ..\setenv.bat

@SET logs_dir=.\logs
@MKDIR %logs_dir%
@FOR /f "tokens=2 delims==" %%x IN ('WMIC OS Get localdatetime /value') DO @SET ts=%%x
@SET ts=%ts:~0,8%-%ts:~8,6%
@SET "gclog_options=-Xloggc:%logs_dir%\gc-%ts%.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps"
@SET "heap_options=-Xms1g -Xmx2g"
@SET "logging_options=-Djava.util.logging.config.file=./logging.properties"
@SET "jmx_options=-Dcom.sun.management.jmxremote.port=6789"
@SET "jmx_options=%jmx_options% -Dcom.sun.management.jmxremote.ssl=false"
@SET "jmx_options=%jmx_options% -Dcom.sun.management.jmxremote.authenticate=false"

java -classpath target/classes %gclog_options% %heap_options% %logging_options% %jmx_options% jpt.app01.Main -p7666 -q0

fix(apps/app01): add jmx options to server to enable profiling with jvisualvm (CMD)


@echo off
setlocal

set ROOT=%~dp0
set MARIAN_ROOT=%ROOT%..

:: If you already have vcpkg (a C++ library manager for Windows), and it is not in your PATH
:: set the following variable to the directory that contains the vcpkg.exe
set VCPKG_ROOT=

:: Clone or update vcpkg (used to manage the dependencies)
:: -------------------------------------------------------
if "%VCPKG_ROOT%" == "" for /f "delims=" %%p in ('where vcpkg 2^>nul') do set VCPKG_ROOT=%%~dpp

if "%VCPKG_ROOT%" == "" set VCPKG_ROOT=%ROOT%deps\vcpkg

if not exist %VCPKG_ROOT% (
    echo --- Cloning vcpkg...
    git clone https://github.com/Microsoft/vcpkg.git %VCPKG_ROOT%

    set BOOTSTRAP_VCPKG=1
) else (
    echo --- Updating vcpkg...
    pushd %VCPKG_ROOT%
    git pull >nul
    for /f "delims=" %%p in ('git pull') do (
        if not "%%p" == "Already up to date." set BOOTSTRAP_VCPKG=1
    )
    popd
)

if "%BOOTSTRAP_VCPKG%" == "1" (
    pushd %VCPKG_ROOT%
    call bootstrap-vcpkg.bat
    popd
)

set VCPKG_DEFAULT_TRIPLET=x64-windows-static
set VCPKG_INSTALL=%VCPKG_ROOT%\installed\%VCPKG_DEFAULT_TRIPLET%
set VCPKG=%VCPKG_ROOT%\vcpkg

echo.

:: Check dependencies and configure CMake
:: -------------------------------------------------------

echo --- Checking dependencies...

set CMAKE_OPT=

:: Use vcpkg toolchain
set CMAKE_OPT=%CMAKE_OPT% -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake
set CMAKE_OPT=%CMAKE_OPT% -DVCPKG_TARGET_TRIPLET=%VCPKG_DEFAULT_TRIPLET%

::
:: Check prerequisites
::

:: -------------------------
echo ... CUDA
if not exist "%CUDA_PATH%" (
    echo The CUDA_PATH environment variable is not defined: please make sure CUDA 8.0+ is installed.
    goto :eof
)
echo Found Cuda SDK in %CUDA_PATH%

:: -------------------------
echo ... CUDNN
if not exist "%CUDA_PATH%\lib\x64" (
    echo CuDNN not found in your CUDA installation
    goto :eof
)
echo Found CuDNN in "%CUDA_PATH%\lib\x64"

set CMAKE_OPT=%CMAKE_OPT% -D CUDNN_LIBRARY:PATH="%CUDA_PATH%\lib\x64\cudnn.lib"
set CMAKE_OPT=%CMAKE_OPT% -D CUDNN_INCLUDE:PATH="%CUDA_PATH%\include"

:: -------------------------
echo ... Intel MKL
set MKLROOT="C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl"
if not exist %MKLROOT% (
    echo Please modify the script file to set MKLROOT to the installation path of the Intel MKL library.
    goto :eof
)
echo Found Intel MKL in %MKLROOT%

set CMAKE_OPT=%CMAKE_OPT% -DMKL_ROOT:PATH=%MKLROOT%
set CMAKE_OPT=%CMAKE_OPT% -DMKL_INCLUDE_DIRS:PATH=%MKLROOT%\include
set CMAKE_OPT=%CMAKE_OPT% -DMKL_CORE_LIBRARY:FILEPATH=%MKLROOT%\lib\intel64\mkl_core.lib
set CMAKE_OPT=%CMAKE_OPT% -DMKL_INTERFACE_LIBRARY:FILEPATH=%MKLROOT%\lib\intel64\mkl_intel_ilp64.lib
set CMAKE_OPT=%CMAKE_OPT% -DMKL_SEQUENTIAL_LAYER_LIBRARY:FILEPATH=%MKLROOT%\lib\intel64\mkl_sequential.lib

:: -------------------------
echo ... Boost (1.58+)
%VCPKG% install boost-chrono boost-filesystem boost-iostreams boost-program-options boost-regex boost-system boost-thread boost-timer boost-asio

:: -------------------------
echo ... zlib
%VCPKG% install zlib

:: -------------------------
echo ... OpenSSL
%VCPKG% install openssl
set CMAKE_OPT=%CMAKE_OPT% -DOPENSSL_USE_STATIC_LIBS:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -DOPENSSL_MSVC_STATIC_RT:BOOL=TRUE

echo.

echo --- Configuring CMake...

set CMAKE_OPT=%CMAKE_OPT% -DBUILD_STATIC:BOOL=TRUE

:: -----  Target Visual Studio 2017 64bits -----
set CMAKE_OPT=%CMAKE_OPT% -G"Visual Studio 15 2017 Win64"

:: Policy CMP0074: find_package uses <PackageName>_ROOT variables.
set CMAKE_OPT=%CMAKE_OPT% -D CMAKE_POLICY_DEFAULT_CMP0074=NEW

:: -----  Disable some tool build -----
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_TRAIN:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_DECODER:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_SERVER:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_SCORER:BOOL=FALSE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_PYTHON:BOOL=FALSE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_VOCAB:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_EXAMPLES:BOOL=FALSE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_TESTS:BOOL=FALSE

set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_CPU:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_CUDA:BOOL=TRUE

set CMAKE_OPT=%CMAKE_OPT% -D USE_CUDNN:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D USE_MPI:BOOL=FALSE

echo.
echo.
echo --------------------------------------------------
echo CMAKE configuration flags:
echo %CMAKE_OPT%
echo --------------------------------------------------
echo.
echo.

set BUILD_ROOT=%ROOT%build-vs
if not exist %BUILD_ROOT% mkdir %BUILD_ROOT%
pushd %BUILD_ROOT%

echo.
echo --- Creating Visual Studio projects...
cmake %CMAKE_OPT% %MARIAN_ROOT%

::echo.
::echo --- Building projects...
::cmake --build .

popd

@echo off
setlocal

set ROOT=%~dp0
set MARIAN_ROOT=%ROOT%..

set NEED_VCPKG=
if "%BOOST_INCLUDE_PATH%" == "" set NEED_VCPKG=1
if "%ZLIB_PATH%" == "" set NEED_VCPKG=1
if "%OPENSSL_PATH%" == "" set NEED_VCPKG=1

if "%NEED_VCPKG%"=="" goto :checkDeps

:: If you already have vcpkg (a C++ library manager for Windows), and it is not in your PATH
:: Please set the VCPKG_ROOT variable to the directory that contains the vcpkg.exe

:: Clone or update vcpkg (used to manage the dependencies)
:: -------------------------------------------------------
if "%VCPKG_ROOT%" == "" for /f "delims=" %%p in ('where vcpkg 2^>nul') do set VCPKG_ROOT=%%~dpp

if "%VCPKG_ROOT%" == "" set VCPKG_ROOT=%ROOT%deps\vcpkg

if not exist %VCPKG_ROOT% (
    echo --- Cloning vcpkg...
    git clone https://github.com/Microsoft/vcpkg.git %VCPKG_ROOT%

    set BOOTSTRAP_VCPKG=1
) else (
    echo --- Updating vcpkg...
    pushd %VCPKG_ROOT%
    git pull >nul
    for /f "delims=" %%p in ('git pull') do (
        if not "%%p" == "Already up to date." set BOOTSTRAP_VCPKG=1
    )
    popd
)

if "%BOOTSTRAP_VCPKG%" == "1" (
    pushd %VCPKG_ROOT%
    call bootstrap-vcpkg.bat
    popd
)

set VCPKG_DEFAULT_TRIPLET=x64-windows-static
set VCPKG_INSTALL=%VCPKG_ROOT%\installed\%VCPKG_DEFAULT_TRIPLET%
set VCPKG=%VCPKG_ROOT%\vcpkg

:checkDeps

:: Check dependencies and configure CMake
:: -------------------------------------------------------

echo.
echo --- Checking dependencies...

set CMAKE_OPT=

:: -------------------------
:: The CUDA_PATH env variable is normally set by the CUDA SDK installer
::
echo.
echo ... CUDA
if "%CUDA_PATH%"=="" (
    echo The CUDA_PATH environment variable is not defined: please make sure CUDA 8.0+ is installed.
    goto :eof
)
if not exist "%CUDA_PATH%" (
    echo CUDA_PATH is set to an invalid path:
    echo %CUDA_PATH%
    echo Please make sure CUDA 8.0+ is properly installed.
    goto :eof
)

echo Found Cuda SDK in %CUDA_PATH%

:: -------------------------
::
echo.
echo ... CUDNN
if not exist "%CUDA_PATH%\lib\x64\cudnn.lib" (
    echo CuDNN not found in your CUDA installation
) else (
    echo Found CuDNN library in %CUDA_PATH%\lib\x64

    set CMAKE_OPT=%CMAKE_OPT% -D CUDNN_LIBRARY:PATH="%CUDA_PATH%\lib\x64\cudnn.lib"
)

:: -------------------------
:: If MKL_PATH is not set, we use the standard default installation dir
::
echo.
echo ... Intel MKL
if "%MKL_PATH%" == "" (
    set "MKL_PATH=C:\Program Files (x86)\IntelSWTools\compilers_and_libraries\windows\mkl"
)
if not exist "%MKL_PATH%" (
    echo MKL_PATH is set to an invalid path:
    echo "%MKL_PATH%"
    echo Please set MKL_PATH to the installation path of the Intel MKL library.
    goto :eof
)
echo Found Intel MKL library in %MKL_PATH%

set CMAKE_OPT=%CMAKE_OPT% -DMKL_ROOT:PATH="%MKL_PATH%"
set CMAKE_OPT=%CMAKE_OPT% -DMKL_INCLUDE_DIRS:PATH="%MKL_PATH%\include"
set CMAKE_OPT=%CMAKE_OPT% -DMKL_CORE_LIBRARY:FILEPATH="%MKL_PATH%\lib\intel64\mkl_core.lib"
set CMAKE_OPT=%CMAKE_OPT% -DMKL_INTERFACE_LIBRARY:FILEPATH="%MKL_PATH%\lib\intel64\mkl_intel_ilp64.lib"
set CMAKE_OPT=%CMAKE_OPT% -DMKL_SEQUENTIAL_LAYER_LIBRARY:FILEPATH="%MKL_PATH%\lib\intel64\mkl_sequential.lib"

:: -------------------------
:: BOOST_INCLUDE_PATH and BOOST_LIB_PATH can be both set to an existing Boost installation.
:: If not, we use vcpkg to install the required Boost packages
::
echo.
echo ... Boost (1.58+)
if "%BOOST_INCLUDE_PATH%" == "" (
    "%VCPKG%" install boost-chrono boost-filesystem boost-iostreams boost-program-options boost-regex boost-system boost-thread boost-timer boost-asio
    set BOOST_INCLUDE_PATH="%VCPKG_INSTALL%\include"
    set BOOST_LIB_PATH="%VCPKG_INSTALL%\lib"
)
if not exist "%BOOST_INCLUDE_PATH%" (
    echo BOOST_INCLUDE_PATH is set to an invalid path:
    echo "%BOOST_INCLUDE_PATH%"
    echo Please set BOOST_INCLUDE_PATH and BOOST_LIB_PATH to the installation path of the Boost library.
    goto :eof
)
if not exist "%BOOST_LIB_PATH%" (
    echo BOOST_LIB_PATH is set to an invalid path:
    echo "%BOOST_LIB_PATH%"
    echo Please set BOOST_INCLUDE_PATH and BOOST_LIB_PATH to the installation path of the Boost library.
    goto :eof
)
echo Found Boost headers in "%BOOST_INCLUDE_PATH%"

set CMAKE_OPT=%CMAKE_OPT% -D BOOST_INCLUDEDIR:PATH="%BOOST_INCLUDE_PATH%"
set CMAKE_OPT=%CMAKE_OPT% -D BOOST_LIBRARYDIR:PATH="%BOOST_LIB_PATH%"

:: -------------------------
:: ZLIB_PATH can be set to an existing zlib installation.
:: If not, we use vcpkg to install the library
::
echo.
echo ... zlib
if "%ZLIB_PATH%"=="" (
    %VCPKG% install zlib
    set ZLIB_PATH=%VCPKG_INSTALL%
)

set CMAKE_OPT=%CMAKE_OPT% -D ZLIB_LIBRARY:PATH=%ZLIB_PATH%\lib\zlib.lib
set CMAKE_OPT=%CMAKE_OPT% -D ZLIB_INCLUDE_DIR:PATH=%ZLIB_PATH%\include

:: -------------------------
:: OPENSSL_PATH can be set to an existing OpenSSL installation.
:: If not, we use vcpkg to install the library
::
echo.
echo ... OpenSSL
if "%OPENSSL_PATH%"=="" (
    %VCPKG% install openssl
    set OPENSSL_PATH=%VCPKG_INSTALL%
)
set CMAKE_OPT=%CMAKE_OPT% -D OPENSSL_ROOT_DIR:PATH=%OPENSSL_PATH%
set CMAKE_OPT=%CMAKE_OPT% -D OPENSSL_USE_STATIC_LIBS:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D OPENSSL_MSVC_STATIC_RT:BOOL=TRUE

echo.
echo.
echo --- Configuring CMake...

:: -----  Target Visual Studio 2017 64bits -----
set CMAKE_OPT=%CMAKE_OPT% -G"Visual Studio 15 2017 Win64"

:: Policy CMP0074: find_package uses <PackageName>_ROOT variables.
set CMAKE_OPT=%CMAKE_OPT% -D CMAKE_POLICY_DEFAULT_CMP0074=NEW

:: -----  Disable some tool build -----
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_SERVER:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_EXAMPLES:BOOL=FALSE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_TESTS:BOOL=FALSE

set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_CPU:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D COMPILE_CUDA:BOOL=TRUE

set CMAKE_OPT=%CMAKE_OPT% -D USE_CUDNN:BOOL=TRUE
set CMAKE_OPT=%CMAKE_OPT% -D USE_MPI:BOOL=FALSE

echo.
echo.
echo --------------------------------------------------
echo CMAKE configuration flags:
echo %CMAKE_OPT%
echo --------------------------------------------------
echo.
echo.

set BUILD_ROOT=%ROOT%build-vs
if not exist %BUILD_ROOT% mkdir %BUILD_ROOT%
pushd %BUILD_ROOT%

echo.
echo --- Creating Visual Studio projects...
cmake %CMAKE_OPT% %MARIAN_ROOT%

::echo.
::echo --- Building projects...
::cmake --build .

popd

goto :eof

Improve configuration script to use installed libraries


@ECHO OFF
REM Determine where is RUBY_BIN (where this script is)
PUSHD %~dp0.
SET RUBY_BIN=%CD%
POPD

REM Add RUBY_BIN to the PATH
REM RUBY_BIN takes higher priority to avoid other tools
REM conflict with our own (mainly the DevKit)
SET PATH=%RUBY_BIN%;%PATH%
SET RUBY_BIN=

REM Display Ruby version
ruby.exe -v

@ECHO OFF
REM Determine where is RUBY_BIN (where this script is)
PUSHD %~dp0.
SET RUBY_BIN=%CD%
POPD

REM Now determine Root (.. from RUBY_BIN)
PUSHD %RUBY_BIN%\..
SET ROOT_DIR=%CD%
POPD

REM Add RUBY_BIN to the PATH, DevKit and then Git
REM RUBY_BIN takes higher priority to avoid other tools conflict
SET PATH=%RUBY_BIN%;%ROOT_DIR%\DevKit;%ROOT_DIR%\Git\cmd;%PATH%
SET RUBY_BIN=
SET ROOT_DIR=

REM Display Ruby version and Git versions
ruby.exe -v
git --version

Add git to setup_environment

Add git to setup_environment


@echo off
echo Check for Admn
net sessions
if %errorlevel%==0 (
echo Success, Obtained Admin Rights
) else (
echo Failure, No Admin Rights
pause
exit
)
net accounts /minpwlen:10
net accounts /maxpwage:30
net accounts /minpwage:1
net accounts

@echo off
echo Check for Admn
net sessions
if %errorlevel%==0 (
echo Success, Obtained Admin Rights
) else (
echo Failure, No Admin Rights
pause
exit
)
REM Passwords must be 10 digits
net accounts /minpwlen:10
REM Passwords must be changed every 30 days
net accounts /maxpwage:30
REM Passwords can only be changed after 1 day has passed
net accounts /minpwage:1
REM Display current password policy
net accounts

Update PasswdPolicy.bat

Update PasswdPolicy.bat


cd workspace
copy .\glaf-base\*.jar .\glaf-web\WebContent\WEB-INF\lib
copy .\glaf-web\*.jar .\glaf-web\WebContent\WEB-INF\lib

pause

add copy-jar.bat

add copy-jar.bat


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

echo "DON'T USE WINDOWS. It's bad for your health.."

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

java -cp lib/*;conf org.revapi.standalone.Main revapi.bat . %*

add rudimentary support for running revapi standalone on windows


@echo off

:: change directory to etherpad-lite root
cd /D "%~dp0.."

:: Is node installed?
cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && exit /B 1 )

echo _
echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.

mkdir node_modules
cd /D node_modules
mklink /D "ep_etherpad-lite" "..\src"

cd /D "ep_etherpad-lite"
cmd /C npm install --loglevel warn || exit /B 1

cd /D "%~dp0.."

echo _
echo Copying custom templates...
set custom_dir=node_modules\ep_etherpad-lite\static\custom
FOR %%f IN (index pad timeslider) DO (
    if NOT EXIST "%custom_dir%%%f.js" copy "%custom_dir%\js.template" "%custom_dir%%%f.js"
        if NOT EXIST "%custom_dir%%%f.css" copy "%custom_dir%\css.template" "%custom_dir%%%f.css"
)

echo _
echo Clearing cache...
del /S var\minified*

echo _
echo Setting up settings.json...
IF NOT EXIST settings.json (
    echo Can't find settings.json.
    echo Copying settings.json.template...
    cmd /C copy settings.json.template settings.json || exit /B 1
)

echo _
echo Installed Etherpad! To run Etherpad type start.bat

@echo off

:: change directory to etherpad-lite root
cd /D "%~dp0\.."

:: Is node installed?
cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && exit /B 1 )

echo _
echo Ensure that all dependencies are up to date...  If this is the first time you have run Etherpad please be patient.

mkdir node_modules
cd /D node_modules
mklink /D "ep_etherpad-lite" "..\src"

cd /D "ep_etherpad-lite"
cmd /C npm install --loglevel warn || exit /B 1

cd /D "%~dp0\.."

echo _
echo Copying custom templates...
set custom_dir=node_modules\ep_etherpad-lite\static\custom
FOR %%f IN (index pad timeslider) DO (
  if NOT EXIST "%custom_dir%\%%f.js" copy "%custom_dir%\js.template" "%custom_dir%\%%f.js"
  if NOT EXIST "%custom_dir%\%%f.css" copy "%custom_dir%\css.template" "%custom_dir%\%%f.css"
)

echo _
echo Clearing cache...
del /S var\minified*

echo _
echo Setting up settings.json...
IF NOT EXIST settings.json (
  echo Can't find settings.json.
  echo Copying settings.json.template...
  cmd /C copy settings.json.template settings.json || exit /B 1
)

echo _
echo Installed Etherpad!  To run Etherpad type start.bat

FIX missing backslashes

FIX
  missing backslashes


@echo off
IF "%1" EQU "" GOTO Help

IF "%2" NEQ ""   SET _=%2\%1
IF "%2" EQU ""   SET _=%CD%\%1

MD %_%\vc9\x86\deps\bin
MD %_%\vc9\x86\deps\lib
MD %_%\vc9\x86\deps\include
MD %_%\vc9\x64\deps\bin
MD %_%\vc9\x64\deps\lib
MD %_%\vc9\x64\deps\include

MD %_%\vc11\x86\deps\bin
MD %_%\vc11\x86\deps\lib
MD %_%\vc11\x86\deps\include
MD %_%\vc11\x64\deps\bin
MD %_%\vc11\x64\deps\lib
MD %_%\vc11\x64\deps\include

MD %_%\vc12\x86\deps\bin
MD %_%\vc12\x86\deps\lib
MD %_%\vc12\x86\deps\include
MD %_%\vc12\x64\deps\bin
MD %_%\vc12\x64\deps\lib
MD %_%\vc12\x64\deps\include

MD %_%\vc14\x86\deps\bin
MD %_%\vc14\x86\deps\lib
MD %_%\vc14\x86\deps\include
MD %_%\vc14\x64\deps\bin
MD %_%\vc14\x64\deps\lib
MD %_%\vc14\x64\deps\include

GOTO EXIT

:help
echo phpsdk_buildtree ^<nameofthetree^> [PATH]
echo  Create the common directory structure used by the PHP SDK

:EXIT

@echo off
IF "%1" EQU "" GOTO Help

IF "%2" NEQ ""   SET _=%2\%1
IF "%2" EQU ""   SET _=%CD%\%1

rem TODO rewrite this script to handle more intelligently, creating dirs for only the branch matching current env

MD %_%\vc14\x86\deps\bin
MD %_%\vc14\x86\deps\lib
MD %_%\vc14\x86\deps\include
MD %_%\vc14\x64\deps\bin
MD %_%\vc14\x64\deps\lib
MD %_%\vc14\x64\deps\include

GOTO EXIT

:help
echo phpsdk_buildtree ^<nameofthetree^> [PATH]
echo  Create the common directory structure used by the PHP SDK

:EXIT

remove unsupported branches

remove unsupported branches


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

set EDITOR=runemacs
set GYP_DEFINES="component=shared_library fastbuild=2"
set GYP_GENERATORS=ninja
set HOME=%USERPROFILE%
set PATH=%PATH%;%SYSTEMDRIVE%\emacs\bin;%SYSTEMDRIVE%\console2;%SYSTEMDRIVE%\src\depot_tools;%USERPROFILE%\.third_party\cask\bin;%SYSTEMDRIVE%\java\jdk\bin
call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"

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

set EDITOR=runemacs
set GYP_DEFINES="component=shared_library fastbuild=2"
set GYP_GENERATORS=ninja
set HOME=%USERPROFILE%
set PATH=%PATH%;%SYSTEMDRIVE%\emacs\bin;%SYSTEMDRIVE%\console2;%SYSTEMDRIVE%\src\depot_tools;%USERPROFILE%\.third_party\cask\bin;%SYSTEMDRIVE%\java\jdk\bin;%SYSTEMDRIVE%\maven\bin
call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"

Add maven path on windows.

Add maven path on windows.


echo "My Custom Deployment Script"

:: The @ supresses echoing of a line.
:: THE %% accesses environmental variables.

echo %SCM_TRACE_LEVEL%

@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off

:: The `@` supresses echoing of a line.
:: THE `%%` accesses environmental variables.

@if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off

echo "My Custom Deployment Script"

:: `where` is a command line utility (where.exe)
:: its looking for node
:: `2>nul` redirects the error message to nul
:: `>nul` redirects the command output to nul

where node 2>nul >nul

:: Error level zero means the `where` search was successful.

IF %ERRORLEVEL% NEQ 0 (

    echo Missing node.js
    goto error
)

:: Expand variables at execution time not parse time.
:: Expansion basically means replacing the variable with its value.
:: Obversely, if we expand at parse time, then at expansion time, we will execute the result.

setlocal enabledelayedexpansion

:: `%~dp0%` expands to the path of the batch file.
:: We're going back one directory and then into the artifacts folder.

echo %~dp0%

:: `SET` Sets an environmental variable for the session.
:: `IF NOT DEFINED` Checks one for existance

SET ARTIFACTS=%~dp0%..\artifacts

:: Note that within parentheses, blank lines are forbidden between statements.

IF NOT DEFINED DEPLOYMENT_SOURCE (
  SET DEPLOYMENT_SOURCE=%~dp0%.
)

IF NOT DEFINED DEPLOYMENT_TARGET (
   SET DEPLOYMENT_TARGET=%ARTIFACTS%\wwwroot

)

IF NOT DEFINED NEXT_MANIFEST_PATH (
   SET NEXT_MANIFEST_PATH=%ARTIFACTS%\manifest

    IF NOT DEFINED PREVIOUS_MANIFEST_PATH (
        SET PREVIOUS_MANIFEST_PATH=%ARTIFACTS%\manifest

    )
)

IF NOT DEFINED KUDU_SYNC_CMD (
    :: `call` lets us call one batch file from another
    echo Installing Kudu Sync with node package manager
    call npm install kudusync -g silent
    :: We're using `!!` to access the enviromental variable.
    :: That means we evaluate the variable at execution time not parse time.
    echo Parse time %ERRORLEVEL%
    echo Execution time !ERRORLEVEL!
    IF !ERRORLEVEL! NEQ 0 goto error

    SET KUDU_SYNC_CMD=%appdata%\npm\kuduSync.cmd
)

IF NOT DEFINED DEPLOYMENT_TEMP (
    SET DEPLOYMENT_TEMP=%temp%\___deployTemp%random%
    SET CLEAN_LOCAL_DEPLOYMENT_TEMP=true
)

IF DEFINED CLEAN_LOCAL_DEPLOYMENT_TEMP (
    IF EXIST "%DEPLOYMENT_TEMP%" rd /s /q "%DEPLOYMENT_TEMP%"
    mkdir "%DEPLOYMENT_TEMP%"
)

echo %DEPLOYMENT_TEMP%

IF NOT DEFINED MSBUILD_PATH (
    SET MSBUILD_PATH=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
)

::
::
:: Skip ASP.NET application deployment, for now.
:: Just focus on Kudu Sync, to find out whether we can avoid overwriting.

echo Run Kudu Sync
echo TODO

:error
echo There was an error.

Document the deploy.cmd up to Kudu Sync.


@ECHO OFF
SETLOCAL

SET build_dir=build
SET src_dir=src
SET obj_dir=%build_dir%\obj

SET cc=clang
SET cflags=-Wall -Wextra -Wno-deprecated-declarations -pedantic -Werror -std=c11 -Os

RMDIR /S /Q %build_dir%
MKDIR %obj_dir%

%cc% %cflags%  -iquote%src_dir% -c %src_dir%\ciny.c -o %obj_dir%\ciny.o -v
IF "%ERRORLEVEL%" NEQ "0" GOTO end

:end
ENDLOCAL
EXIT /B %ERRORLEVEL%

@ECHO OFF
SETLOCAL

SET build_dir=build
SET src_dir=src
SET samp_src_dir=%src_dir%\sample
SET samp_test_src_dir=test\sample
SET obj_dir=%build_dir%\obj
SET lib_dir=%build_dir%\lib
SET inc_dir=%build_dir%\include

SET cc=clang
SET cflags=-Wall -Wextra -Wno-deprecated-declarations -pedantic -Werror -std=c11 -Os -v

RMDIR /S /Q %build_dir%

ECHO:
ECHO Build CinyTest Library...
MKDIR %obj_dir%
%cc% %cflags% -iquote%src_dir% -c %src_dir%\ciny.c -o %obj_dir%\ciny.obj
IF "%ERRORLEVEL%" NEQ "0" GOTO end

REM %cc% %cflags% -iquote%src_dir% -c %src_dir%\ciny_win.c -o %obj_dir%\ciny_win.obj
IF "%ERRORLEVEL%" NEQ "0" GOTO end

MKDIR %lib_dir%
REM LIB %obj_dir%\ciny.obj %obj_dir%\ciny_win.obj /OUT:%lib_dir%\cinytest.lib /VERBOSE /NOLOGO
IF "%ERRORLEVEL%" NEQ "0" GOTO end

MKDIR %inc_dir%
COPY %src_dir%\ciny.h %inc_dir%
IF "%ERRORLEVEL%" NEQ "0" GOTO end

ECHO:
ECHO Build CinyTest Sample...
%cc% %cflags% -iquote%samp_src_dir% %samp_src_dir%\binarytree.c %samp_src_dir%\main.c -o %build_dir%\sample.exe
IF "%ERRORLEVEL%" NEQ "0" GOTO end

ECHO:
ECHO Build CinyTest Sample Tests...
TODO: clang knows of _Complex but win complex.h defines funcs based on structs, structs not visible without including header
%cc% %cflags% -iquote%build_dir%\include -iquote%samp_src_dir% ^
	-L%lib_dir% -lcinytest %samp_src_dir%\binarytree.c %samp_test_src_dir%\main.c %samp_test_src_dir%\binarytree_tests.c ^
	-o %build_dir%\sampletests.exe
IF "%ERRORLEVEL%" NEQ "0" GOTO end

:end
ENDLOCAL
EXIT /B %ERRORLEVEL%

add all build steps to win script

add all build steps to win script


echo off
REM
REM This Windows batch file builds this repository for the following targets:
REM 64/32-bit Release/Debug
REM It uses CMake to genererate the project files and then invokes msbuild
REM to build them.
REM The update_external_sources.bat batch file must be executed before running
REM this batch file
REM
REM Arguments:
REM None: Runs CMake and builds all 4 combinations
REM Argument contains:
REM     cmake (case insensitive): Deletes build and build32 and runs just CMake on both
REM     32: Deletes build32, runs CMake and builds 32-bit versions
REM     64: Deletes build, runs CMake and builds 64-bit versions
REM Example:
REM build_windows_targets.bat 64
REM deletes build, creates build, runs CMake and compiles 64-bit Debug and Release.

set do_cmake=0
set do_32=1
set do_64=1
if "%1"=="" goto no_args
set do_cmake=0
set do_32=0
set do_64=0
for %%a in (%*) do (
    echo.%%a | %WINDIR%\system32\find.exe /I "cmake">Nul && (set do_cmake=1)
    echo.%%a | %WINDIR%\system32\find.exe "32">Nul && (set do_32=1)
    echo.%%a | %WINDIR%\system32\find.exe "64">Nul && (set do_64=1)
)
:no_args
if %do_cmake%==0 (
    if %do_32%==0 (
        if %do_64%==0 (
            echo No valid parameters specified.
            exit /b 1
        )
    )
)

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

if %do_cmake%==1 (
    rmdir /Q /S build
    rmdir /Q /S build32
    mkdir build
    pushd build
    echo Generating 64-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION% Win64" ..
    popd
    mkdir build32
    pushd build32
    echo Generating 32-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION%" ..
    popd
)

REM *******************************************
REM 64-bit build
REM *******************************************
if %do_64%==1 (
    rmdir /Q /S build
    mkdir build
    pushd build
    echo Generating 64-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION% Win64" ..
    echo Building 64-bit Debug
    msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /maxcpucount /verbosity:quiet
    if errorlevel 1 (
       echo.
       echo 64-bit Debug build failed!
       popd
       exit /b 1
    )

    echo Building 64-bit Release
    msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release /maxcpucount /verbosity:quiet
    if errorlevel 1 (
       echo.
       echo 64-bit Release build failed!
       popd
       exit /b 1
    )
    popd
)

REM *******************************************
REM 32-bit build
REM *******************************************

if %do_32%==1 (
    rmdir /Q /S build32
    mkdir build32
    pushd build32
    echo Generating 32-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION%" ..
    echo Building 32-bit Debug
    msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug /maxcpucount /verbosity:quiet
    if errorlevel 1 (
       echo.
       echo 32-bit Debug build failed!
       popd
       exit /b 1
    )

    echo Building 32-bit Release
    msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release /maxcpucount /verbosity:quiet
    if errorlevel 1 (
       echo.
       echo 32-bit Release build failed!
       popd
       exit /b 1
    )
    popd
)
exit /b 0

echo off
REM
REM This Windows batch file builds this repository for the following targets:
REM 64/32-bit Release/Debug
REM It uses CMake to genererate the project files and then invokes msbuild
REM to build them.
REM The update_external_sources.bat batch file must be executed before running
REM this batch file
REM
REM Arguments:
REM None: Runs CMake and builds all 4 combinations
REM Argument contains:
REM     cmake (case insensitive): Deletes build and build32 and runs just CMake on both
REM     32: Deletes build32, runs CMake and builds 32-bit versions
REM     64: Deletes build, runs CMake and builds 64-bit versions
REM     debug (case insensitive): Builds just the debug config of a 32 and/or 64-bit build
REM     release (case insensitive): Builds just the release config of a 32 and/or 64-bit build
REM Notes:
REM cmake: When specified, generate the CMake build files only - don't compile
REM 32/64: Specifying neither or both builds both
REM debug/release: Specifying neither or both builds both
REM Examples:
REM build_windows_targets.bat 64
REM   -- deletes build, creates build, runs CMake and compiles 64-bit Debug and Release.
REM build_windows_targets.bat 64 debug
REM   -- deletes build, creates build, runs CMake and compiles 64-bit Debug.

set arg_cmake=0
set arg_32=0
set arg_64=0
set arg_debug=0
set arg_release=0

set do_cmake=0
set do_32=0
set do_64=0
set do_debug=0
set do_release=0

for %%a in (%*) do (
    echo.%%a | %WINDIR%\system32\find.exe /I "cmake">Nul && (set arg_cmake=1)
    echo.%%a | %WINDIR%\system32\find.exe "32">Nul && (set arg_32=1)
    echo.%%a | %WINDIR%\system32\find.exe "64">Nul && (set arg_64=1)
    echo.%%a | %WINDIR%\system32\find.exe /I "debug">Nul && (set arg_debug=1)
    echo.%%a | %WINDIR%\system32\find.exe /I "release">Nul && (set arg_release=1)
)

if %arg_32%==1 (
    set do_32=1
)
if %arg_64%==1 (
    set do_64=1
)
if %arg_32%==0 (
    if %arg_64%==0 (
        set do_32=1
        set do_64=1
    )
)

if %arg_debug%==1 (
    set do_debug=1
)
if %arg_release%==1 (
    set do_release=1
)
if %arg_debug%==0 (
    if %arg_release%==0 (
        set do_debug=1
        set do_release=1
    )
)

if %arg_cmake%==1 (
    set do_cmake=1
    set do_32=0
    set do_64=0
    set do_debug=0
    set do_release=0
)

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

if %do_cmake%==1 (
    rmdir /Q /S build
    rmdir /Q /S build32
    mkdir build
    pushd build
    echo Generating 64-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION% Win64" ..
    popd
    mkdir build32
    pushd build32
    echo Generating 32-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION%" ..
    popd
)

REM *******************************************
REM 64-bit build
REM *******************************************
if %do_64%==1 (
    rmdir /Q /S build
    mkdir build
    pushd build
    echo Generating 64-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION% Win64" ..
    if %do_debug% equ 1 (
        echo Building 64-bit Debug
        msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /maxcpucount /verbosity:quiet
        if errorlevel 1 (
        echo.
        echo 64-bit Debug build failed!
        popd
        exit /b 1
        )
    )

    if %do_release%==1 (
        echo Building 64-bit Release
        msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release /maxcpucount /verbosity:quiet
        if errorlevel 1 (
        echo.
        echo 64-bit Release build failed!
        popd
        exit /b 1
        )
    )
    popd
)

REM *******************************************
REM 32-bit build
REM *******************************************

if %do_32%==1 (
    rmdir /Q /S build32
    mkdir build32
    pushd build32
    echo Generating 32-bit CMake files for Visual Studio %VS_VERSION%
    cmake -G "Visual Studio %VS_VERSION%" ..
    if %do_debug%==1 (
        echo Building 32-bit Debug
        msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug /maxcpucount /verbosity:quiet
        if errorlevel 1 (
        echo.
        echo 32-bit Debug build failed!
        popd
        exit /b 1
        )
    )

    if %do_release%==1 (
        echo Building 32-bit Release
        msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release /maxcpucount /verbosity:quiet
        if errorlevel 1 (
        echo.
        echo 32-bit Release build failed!
        popd
        exit /b 1
        )
    )
    popd
)
exit /b 0

build: Allow more control in windows build script

build_windows_targets.bat now accepts 'debug' and 'release' parameters
to select the building of these configurations.


Add install script for Visual Studio templates


rem Windows Script to build Doradus distribution

set DIST_VERSION=2.4
set DIST_FILE_NAME=Doradus-distribution-%DIST_VERSION%.zip

rem Build Doradus
cd ..
start "" "mvn clean install dependency:copy-dependencies -Dgpg.skip=true -Dmaven.javadoc.skip=true"

timeout 30

cd doradus-distribution

echo "starting creating the zip file"

rem Clean up the doradus directory to place the new build binaries
if exist rmdir /Q -doradus

rem Create directories and copy all necessary files for doradus-dist-run script to run successfully

mkdir doradus
cd doradus
mkdir dependency
mkdir resources
copy ..\..\doradus-jetty\target\doradus-jetty*.jar .
copy ..\..\doradus-jetty\target\dependency\*.jar dependency
copy ..\..\doradus-server\src\main\resources\* resources
copy ..\..\doradus-client\target\doradus-client-*.jar dependency

cd ..

rem Create the final distribution file
.\tools\7za a %DIST_FILE_NAME% -r . -x!*.sh -x!*build.*

echo "Doradus Distribution created"
dir Doradus-distribution-*.zip

rem Windows Script to build Doradus distribution

set DIST_VERSION=2.4
set DIST_FILE_NAME=Doradus-distribution-%DIST_VERSION%.zip

rem Build Doradus
cd ..
start "" mvn clean install dependency:copy-dependencies -Dgpg.skip=true -Dmaven.javadoc.skip=true

timeout 30

cd doradus-distribution

echo "starting creating the zip file"

rem Clean up the doradus directory to place the new build binaries
if exist rmdir /Q -doradus

rem Create directories and copy all necessary files for doradus-dist-run script to run successfully

mkdir doradus
cd doradus
mkdir dependency
mkdir resources
copy ..\..\doradus-jetty\target\doradus-jetty*.jar .
copy ..\..\doradus-jetty\target\dependency\*.jar dependency
copy ..\..\doradus-server\src\main\resources\* resources
copy ..\..\doradus-client\target\doradus-client-*.jar dependency

cd ..

rem Create the final distribution file
.\tools\7za a %DIST_FILE_NAME% -r . -x!*.sh -x!*build.*

echo "Doradus Distribution created"
dir Doradus-distribution-*.zip

remove the quotes

remove the quotes


@echo off

rem The HEAP_SIZE variable line defines the Java heap size in MB.
rem That is the total amount of memory available to MZmine 2.
rem Please adjust according to the amount of memory of your computer.
rem Maximum value on a 32-bit Windows system is about 1300.
set HEAP_SIZE=1024

rem The TMP_FILE_DIRECTORY parameter defines the location where temporary
rem files (parsed raw data) will be placed. Default is %TEMP%, which
rem represents the system temporary directory.
set TMP_FILE_DIRECTORY=%TEMP%

rem This is the home directory path for NIST MS Search.  It should hold
rem nistms$.exe.
set NIST_MS_SEARCH_PATH=C:\NISTDEMO\MSSEARCH

rem Set R environment variables.
set R_HOME=C:\Program Files\R\R-2.12.0
set R_SHARE_DIR=%R_HOME%\share
set R_INCLUDE_DIR=%R_HOME%\include
set R_DOC_DIR=%R_HOME%\doc
set R_LIBS_USER=%USERPROFILE%\Documents\R\win-library\2.12

rem Include R DLLs in PATH.
set PATH=%PATH%;%R_HOME%\bin\i386

rem The directory holding the JRI shared library (libjri.so).
set JRI_LIB_PATH=%R_LIBS_USER%\rJava\jri\i386

rem It is usually not necessary to modify the JAVA_COMMAND parameter, but
rem if you like to run a specific Java Virtual Machine, you may set the
rem path to the java command of that JVM
set JAVA_COMMAND=java

rem It is not necessary to modify the following section
set LOGGING_CONFIG_FILE=conf/logging.properties
set JAVA_PARAMETERS=-XX:+UseParallelGC -Djava.io.tmpdir=%TMP_FILE_DIRECTORY% -Djava.util.logging.config.file=%LOGGING_CONFIG_FILE% -Xms%HEAP_SIZE%m -Xmx%HEAP_SIZE%m -Dnist.ms.search.path="%NIST_MS_SEARCH_PATH%" -Djava.library.path="%JRI_LIB_PATH%"
set CLASS_PATH=MZmine2.jar
set MAIN_CLASS=net.sf.mzmine.main.MZmineCore

rem Show java version, in case a problem occurs
%JAVA_COMMAND% -version

rem This command starts the Java Virtual Machine
%JAVA_COMMAND% %JAVA_PARAMETERS% -classpath %CLASS_PATH% %MAIN_CLASS%

rem If there was an error, give the user chance to see it
IF ERRORLEVEL 1 pause

change EOL to Windows EOL

change EOL to Windows EOL


@echo off
@setlocal
set ERROR_CODE=0
set DIR=%CD%
if "%FrameworkDir%" == "" goto EnvError
where /q git
if %ERRORLEVEL%==1 goto GitError
if "%1"=="" goto ArgError
if "%2"=="" goto ArgError
if "%3"=="" goto ArgError
if "%4"=="" goto ArgError
set MAJOR=%1
set MINOR=%2
set PATCH=%3
set BUILD=%4
if not "%5"=="" (
   set SPECIAL=%5
)
if not exist "DevAudit.sln" goto SlnError
set TAG=v%MAJOR%.x
set BUILD_TAG=%MAJOR%.%MINOR%.%PATCH%.%BUILD%
if not "%5"=="" (
   set RELEASE_TAG=%BUILD_TAG%-%SPECIAL%
) else (
    set RELEASE_TAG=%BUILD_TAG%
)
set BUILD_DIR=DevAudit.%TAG%.Build_%BUILD%
set RELEASE_DIR=%RELEASE_TAG%\DevAudit
if exist "%BUILD_DIR%" (
    rmdir /s /q "%BUILD_DIR%"
)
if exist "%RELEASE_TAG%" (
    rmdir /s /q "%RELEASE_TAG%"
)
if exist "%RELEASE_DIR%" (
    rmdir /s /q "%RELEASE_DIR%"
)
git clone --branch "%TAG%" https://github.com/OSSIndex/DevAudit %BUILD_DIR%
if not %ERRORLEVEL% == 0 goto CheckoutError
mkdir %RELEASE_TAG%
mkdir %RELEASE_TAG%\DevAudit
cd %BUILD_DIR%
call build.cmd "VersionAssembly=%MAJOR%.%MINOR%.%PATCH%.%BUILD%"
cd %DIR%
if not %ERRORLEVEL%==0 goto BuildError
if not exist "%BUILD_DIR%\Analyzers" goto AnalyzersDirError
if not exist "%BUILD_DIR%\Rules" goto RulesDirError
if not exist "%BUILD_DIR%\Examples" goto ExamplesDirError
xcopy /E /Y %BUILD_DIR%\DevAudit.AuditLibrary\bin\Debug\Gendarme.Rules.*  %BUILD_DIR%\DevAudit.CommandLine\bin\Debug\
xcopy /E /Y %BUILD_DIR%\DevAudit.CommandLine\bin\Debug\* %RELEASE_DIR%
mkdir %RELEASE_DIR%\Examples & xcopy /E /Y %BUILD_DIR%\Examples %RELEASE_DIR%\Examples
copy .\README.md %RELEASE_DIR%
copy .\LICENSE %RELEASE_DIR%
cd %RELEASE_TAG%
%DIR%\.7zip\7za a -tzip -r %DIR%\DevAudit-%RELEASE_TAG%.zip DevAudit
cd %DIR%
echo Release %RELEASE_TAG% created at %RELEASE_DIR% and at archive %DIR%\DevAudit-%RELEASE_TAG%.zip.
goto End

:EnvError
echo You must run this batch file from a Visual Studio command prompt or run vsvars32.bat before.
set ERROR_CODE=1
goto Error

:GitError
echo Git must be in the current PATH.
set ERROR_CODE=2
goto Error

:CheckoutError
echo There was an error during checkout of branch %TAG%.
set ERROR_CODE=%ERRORLEVEL%
goto Error

:ArgError
echo Command syntax is build-release.cmd major minor patch build [special].
set ERROR_CODE=4
goto Error

:SlnError
echo DevAudit.sln file could not be found.
set ERROR_CODE=5
goto Error

:BuildError
echo An error occurred during build.
set ERROR_CODE=6
goto Error

:AnalyzersDirError
echo The %BUILD_DIR%\Analyzers directory could not be found. An error may have occurred during build.
set ERROR_CODE=7
goto Error

:RulesDirError
echo The %BUILD_DIR%\Rules directory could not be found. An error may have occurred during build.
goto Error

:ExamplesDirError
echo The %BUILD_DIR%\Examples directory could not be found. An error may have occurred during build.
set ERROR_CODE=7
goto Error

:Error
if exist "%RELEASE_DIR%" (
    rmdir /s /q "%RELEASE_DIR%"
)

:End
cd %DIR%
if exist "%BUILD_DIR%" (
    rmdir /s /q "%BUILD_DIR%"
)
@endlocal
exit /b %ERROR_CODE%

@echo off
@setlocal
set ERROR_CODE=0
set DIR=%CD%
if "%FrameworkDir%" == "" goto EnvError
where /q git
if %ERRORLEVEL%==1 goto GitError
if "%1"=="" goto ArgError
if "%2"=="" goto ArgError
if "%3"=="" goto ArgError
if "%4"=="" goto ArgError
set MAJOR=%1
set MINOR=%2
set PATCH=%3
set BUILD=%4
if not "%5"=="" (
   set SPECIAL=%5
)
if not exist "DevAudit.sln" goto SlnError
set TAG=v%MAJOR%.%MINOR%.x
set BUILD_TAG=%MAJOR%.%MINOR%.%PATCH%.%BUILD%
if not "%5"=="" (
   set RELEASE_TAG=%BUILD_TAG%-%SPECIAL%
) else (
    set RELEASE_TAG=%BUILD_TAG%
)
set BUILD_DIR=DevAudit.%TAG%.Build_%BUILD%
set RELEASE_DIR=%RELEASE_TAG%\DevAudit
if exist "%BUILD_DIR%" (
    rmdir /s /q "%BUILD_DIR%"
)
if exist "%RELEASE_TAG%" (
    rmdir /s /q "%RELEASE_TAG%"
)
if exist "%RELEASE_DIR%" (
    rmdir /s /q "%RELEASE_DIR%"
)
git clone --branch "%TAG%" https://github.com/OSSIndex/DevAudit %BUILD_DIR%
if not %ERRORLEVEL% == 0 goto CheckoutError
mkdir %RELEASE_TAG%
mkdir %RELEASE_TAG%\DevAudit
cd %BUILD_DIR%
call build.cmd "VersionAssembly=%MAJOR%.%MINOR%.%PATCH%.%BUILD%"
cd %DIR%
if not %ERRORLEVEL%==0 goto BuildError
if not exist "%BUILD_DIR%\Analyzers" goto AnalyzersDirError
if not exist "%BUILD_DIR%\Rules" goto RulesDirError
if not exist "%BUILD_DIR%\Examples" goto ExamplesDirError
xcopy /E /Y %BUILD_DIR%\DevAudit.AuditLibrary\bin\Debug\Gendarme.Rules.*  %BUILD_DIR%\DevAudit.CommandLine\bin\Debug\
xcopy /E /Y %BUILD_DIR%\DevAudit.CommandLine\bin\Debug\* %RELEASE_DIR%
mkdir %RELEASE_DIR%\Examples & xcopy /E /Y %BUILD_DIR%\Examples %RELEASE_DIR%\Examples
copy .\README.md %RELEASE_DIR%
copy .\LICENSE %RELEASE_DIR%
cd %RELEASE_TAG%
%DIR%\.7zip\7za a -tzip -r %DIR%\DevAudit-%RELEASE_TAG%.zip DevAudit
cd %DIR%
echo Release %RELEASE_TAG% created at %RELEASE_DIR% and at archive %DIR%\DevAudit-%RELEASE_TAG%.zip.
goto End

:EnvError
echo You must run this batch file from a Visual Studio command prompt or run vsvars32.bat before.
set ERROR_CODE=1
goto Error

:GitError
echo Git must be in the current PATH.
set ERROR_CODE=2
goto Error

:CheckoutError
echo There was an error during checkout of branch %TAG%.
set ERROR_CODE=%ERRORLEVEL%
goto Error

:ArgError
echo Command syntax is build-release.cmd major minor patch build [special].
set ERROR_CODE=4
goto Error

:SlnError
echo DevAudit.sln file could not be found.
set ERROR_CODE=5
goto Error

:BuildError
echo An error occurred during build.
set ERROR_CODE=6
goto Error

:AnalyzersDirError
echo The %BUILD_DIR%\Analyzers directory could not be found. An error may have occurred during build.
set ERROR_CODE=7
goto Error

:RulesDirError
echo The %BUILD_DIR%\Rules directory could not be found. An error may have occurred during build.
goto Error

:ExamplesDirError
echo The %BUILD_DIR%\Examples directory could not be found. An error may have occurred during build.
set ERROR_CODE=7
goto Error

:Error
if exist "%RELEASE_DIR%" (
    rmdir /s /q "%RELEASE_DIR%"
)

:End
cd %DIR%
if exist "%BUILD_DIR%" (
    rmdir /s /q "%BUILD_DIR%"
)
@endlocal
exit /b %ERROR_CODE%

Fix build script

Fix build script


@echo off
goto :main

======================================================================
Perform a clean build, run tests and create NuGet packages for this
solution. Note that this also modifies the following file, replacing
placeholder version numbers with actual version numbers:
    src\common\GlobalAssemblyInfo.cs

(see the SetVersionNumber task in xunit.performance.msbuild)

This file will, therefore, show up as modified after the build.
Be careful NOT to check it in that way!

If you publish these packages to Nuget, then please remember to
bump the build number on BuildSemanticVersion below.
======================================================================

:main
setlocal

set BuildAssemblyVersion=1.0.0.18
set BuildSemanticVersion=1.0.0-alpha-build0018

echo Building version %BuildSemanticVersion% NuGet packages.
echo WARNING: Some source files will be modified during this build.
echo WARNING: Please be careful not to check in those modifications.

msbuild.exe /m /nologo /t:Nightly /v:m /fl xunit.performance.msbuild

goto :eof

@echo off
goto :main

======================================================================
Perform a clean build, run tests and create NuGet packages for this
solution. Note that this also modifies the following file, replacing
placeholder version numbers with actual version numbers:
    src\common\GlobalAssemblyInfo.cs

(see the SetVersionNumber task in xunit.performance.msbuild)

This file will, therefore, show up as modified after the build.
Be careful NOT to check it in that way!

If you publish these packages to Nuget, then please remember to
bump the build number on BuildSemanticVersion below.
======================================================================

:main
setlocal

set BuildAssemblyVersion=1.0.0.19
set BuildSemanticVersion=1.0.0-alpha-build0019

echo Building version %BuildSemanticVersion% NuGet packages.
echo WARNING: Some source files will be modified during this build.
echo WARNING: Please be careful not to check in those modifications.

msbuild.exe /m /nologo /t:Nightly /v:m /fl xunit.performance.msbuild

goto :eof

Bump build number

Bump build number


mkdir out
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c "..\..\..\easylogger\src\elog.c" -o "out\elog.o"
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -I "..\..\..\easylogger\plugins\file" -O0 -g3 -Wall -c "easylogger\port\elog_port.c" -o "out\elog_port.o"
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c  "..\..\..\easylogger\src\elog_utils.c" -o "out\elog_utils.o"
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c  "..\..\..\easylogger\plugins\file\elog_file.c" -o "out\elog_file.o"
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -I "..\..\..\easylogger\plugins\file" -O0 -g3 -Wall -c  "..\..\..\easylogger\plugins\file\elog_file_port.c" -o "out\elog_file_port.o"
gcc -I "easylogger\inc" -I "..\..\..\easylogger\inc" -O0 -g3 -Wall -c "main.c" -o "out\main.o"
gcc -o out\EasyLoggerWinDemo.exe "out\main.o" "out\elog_utils.o" "out\elog.o" "out\elog_port.o" "out\elog_file.o" "out\elog_file_port.o"

fix compiling error without out directory


:: This script assumes the standard setup on tensorflow Jenkins windows machines.
:: It is NOT guaranteed to work on any other machine. Use at your own risk!
::
:: REQUIREMENTS:
:: * All installed in standard locations:
::   - JDK8, and JAVA_HOME set.
::   - Microsoft Visual Studio 2015 Community Edition
::   - Msys2
::   - Anaconda3
::   - CMake
:: * Before running this script, you have to set BUILD_CC_TESTS and BUILD_PYTHON_TESTS
::   variables to either "ON" or "OFF".
:: * Either have the REPO_ROOT variable set, or run this from the repository root directory.

:: Check and set REPO_ROOT
IF [%REPO_ROOT%] == [] (
  SET REPO_ROOT=%cd%
)

:: Import all bunch of variables Visual Studio needs.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
:: Turn echo back on, above script turns it off.
ECHO ON

:: Some common variables to be shared between runs.
SET CMAKE_EXE="C:\Program Files\cmake\bin\cmake.exe"
SET SWIG_EXE="C:\ProgramData\chocolatey\bin\swig.exe"
SET PY_EXE="C:\Program Files\Anaconda3\python.exe"
SET PY_LIB="C:\Program Files\Anaconda3\libs\python35.lib"

SET CMAKE_DIR=%REPO_ROOT%\tensorflow\contrib\cmake
SET MSBUILD_EXE="C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"

:: Run cmake to create Visual Studio Project files.
%CMAKE_EXE% %CMAKE_DIR% -A x64 -DSWIG_EXECUTABLE=%SWIG_EXE% -DPYTHON_EXECUTABLE=%PY_EXE% -DCMAKE_BUILD_TYPE=Release -DPYTHON_LIBRARIES=%PY_LIB% -Dtensorflow_BUILD_PYTHON_TESTS=%BUILD_PYTHON_TESTS% -Dtensorflow_BUILD_CC_TESTS=%BUILD_CC_TESTS%

:: Run msbuild in the resulting VS project files to build a pip package.
%MSBUILD_EXE% /p:Configuration=Release /maxcpucount:32 tf_python_build_pip_package.vcxproj

:: This script assumes the standard setup on tensorflow Jenkins windows machines.
:: It is NOT guaranteed to work on any other machine. Use at your own risk!
::
:: REQUIREMENTS:
:: * All installed in standard locations:
::   - JDK8, and JAVA_HOME set.
::   - Microsoft Visual Studio 2015 Community Edition
::   - Msys2
::   - Anaconda3
::   - CMake
:: * Before running this script, you have to set BUILD_CC_TESTS and BUILD_PYTHON_TESTS
::   variables to either "ON" or "OFF".
:: * Either have the REPO_ROOT variable set, or run this from the repository root directory.

:: Check and set REPO_ROOT
IF [%REPO_ROOT%] == [] (
  SET REPO_ROOT=%cd%
)

:: Import all bunch of variables Visual Studio needs.
CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
:: Turn echo back on, above script turns it off.
ECHO ON

:: Some common variables to be shared between runs.
SET CMAKE_EXE="C:\Program Files\cmake\bin\cmake.exe"
SET SWIG_EXE="C:\swigwin-3.0.10\swig.exe"
SET PY_EXE="C:\Program Files\Anaconda3\python.exe"
SET PY_LIB="C:\Program Files\Anaconda3\libs\python35.lib"

SET CMAKE_DIR=%REPO_ROOT%\tensorflow\contrib\cmake
SET MSBUILD_EXE="C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe"

:: Run cmake to create Visual Studio Project files.
%CMAKE_EXE% %CMAKE_DIR% -A x64 -DSWIG_EXECUTABLE=%SWIG_EXE% -DPYTHON_EXECUTABLE=%PY_EXE% -DCMAKE_BUILD_TYPE=Release -DPYTHON_LIBRARIES=%PY_LIB% -Dtensorflow_BUILD_PYTHON_TESTS=%BUILD_PYTHON_TESTS% -Dtensorflow_BUILD_CC_TESTS=%BUILD_CC_TESTS%

:: Run msbuild in the resulting VS project files to build a pip package.
%MSBUILD_EXE% /p:Configuration=Release /maxcpucount:32 tf_python_build_pip_package.vcxproj

Switch Windows CI for CMake to use manually installed SWIG.

The choco-installed version of SWIG did not include the fix to
https://github.com/swig/swig/issues/567, which caused some Python
tests to fail on Windows.
Change: 139206577


set PY_PYTHON=3
py -m pip install -U pip wheel pywin32 setuptools
py -m pip install -U -r https://raw.githubusercontent.com/IlfirinPL/robotframework-MarcinKoperski/master/requirements.txt
py -m pip install -U git+https://github.com/IlfirinPL/robotframework-MarcinKoperski.git
py -m pip install -U robotframework-ride
py -m robot --version

set PY_PYTHON=3
py -m pip install -U pip wheel pywin32 setuptools
py -m pip install -U -r https://raw.githubusercontent.com/IlfirinPL/robotframework-MarcinKoperski/master/requirements.txt
py -m pip install -U git+https://github.com/IlfirinPL/robotframework-MarcinKoperski.git
py -m pip install -U git+https://github.com/robotframework/RIDE.git
py -m robot --version

Update install-all.bat

Update install-all.bat


cl -c -Zm200 -O2 -DNDEBUG -MT -D_WINDLL -DLOKI_MAKE_DLL -EHsc -GR -W4 -wd4251 -I"." -I"..\include" OrderedStatic.cpp SafeFormat.cpp SmallObj.cpp SmartPtr.cpp Singleton.cpp StrongPtr.cpp

link /NOLOGO /DLL /OUT:"..\lib\loki014.dll" OrderedStatic.obj SafeFormat.obj SmallObj.obj SmartPtr.obj Singleton.obj StrongPtr.obj

del *.obj

cl -c -Zm200 -O2 -DNDEBUG -MT -D_WINDLL -DLOKI_MAKE_DLL -EHsc -GR -W4 -wd4251 -I"." -I"..\include" OrderedStatic.cpp SafeFormat.cpp SmallObj.cpp SmartPtr.cpp Singleton.cpp StrongPtr.cpp

link /NOLOGO /DLL /OUT:"..\lib\loki015.dll" OrderedStatic.obj SafeFormat.obj SmallObj.obj SmartPtr.obj Singleton.obj StrongPtr.obj

del *.obj

build 015 dll

build 015 dll

git-svn-id: e2e1a767b54e5f731ad8ac18fa5089ee37d5625a@683 7ec92016-0320-0410-acc4-a06ded1c099a


@echo off
c:
cd \_majordomo\htdocs\objects
..\..\server\php\php.exe index.php %1 %2 %3 %4 %5 %6 %7 %8 %9>>log.txt

@echo off
c:
cd /b \_majordomo\htdocs\objects
..\..\server\php\php.exe index.php %1 %2 %3 %4 %5 %6 %7 %8 %9>>log.txt

Update obj.bat

Update obj.bat

Добавлен префикс для корректной смены диска (В случае если приложение инсталлировано не на диск с ОС)


cls
call "C:\Program Files\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
cl /c /DEBUG ring_opengl44.c -I "..\..\..\libdepwin\glew\include" -I "..\..\..\libdepwin\freeglut\include" -I"..\..\..\include"
link /DEBUG ring_opengl44.obj  ..\..\..\lib\ring.lib ..\..\..\libdepwin\glew\lib\release\win32\glew32.lib ..\..\..\libdepwin\freeglut\lib\freeglut.lib /DLL /OUT:..\..\..\bin\ring_opengl44.dll /SUBSYSTEM:CONSOLE,"5.01"
del ring_opengl44.obj

cls
call ../../../src/locatevc.bat
cl /c /DEBUG ring_opengl44.c -I "..\..\..\libdepwin\glew\include" -I "..\..\..\libdepwin\freeglut\include" -I"..\..\..\include"
link /DEBUG ring_opengl44.obj  ..\..\..\lib\ring.lib ..\..\..\libdepwin\glew\lib\release\win32\glew32.lib ..\..\..\libdepwin\freeglut\lib\freeglut.lib /DLL /OUT:..\..\..\bin\ring_opengl44.dll /SUBSYSTEM:CONSOLE,"5.01"
del ring_opengl44.obj

Update RingOpenGL 4.4 - buildvc.bat - use locatevc.bat


rem USAGE: unity_RunAutoTests.bat [<UnityExe>] [<SdkRepoName>] [<ProjRootPath>] [<BuildIdentifier>]
@echo on
rem Make folder links from the UnitySdk to this test project
rem Requires mklink which may require administrator
rem Requires the following environment variables:
rem   TestAndroid - (Optional - Default true if unset) set to "false" (without quotes) to skip building Android APK
rem   TestiPhone - (Optional - Default true if unset) set to "false" (without quotes) to skip building iOS XCode project
rem   TestWp8 - (Optional - Default true if unset) set to "false" (without quotes) to skip building Windows Universal 8 vs-sln
rem   TestPS4 - (Optional - Default true if unset) set to "false" (without quotes) to skip building PS4
rem   UNITY_PUBLISH_VERSION - (Not required if %1 is defined) Versioned Unity executable name (Assumes multiple potential Unity installations, all in your PATH, each uniquely renamed)
rem   EXECUTOR_NUMBER - (Not required if %4 is defined) Automatic Jenkins variable

setlocal
if [%1]==[] (
    set UnityExe=%UNITY_PUBLISH_VERSION%
) ELSE (
    set UnityExe=%1
)
if [%2]==[] (
    set SdkName=UnitySDK
) ELSE (
    set SdkName=%2
)
if [%3]==[] (
    set ProjRootPath=C:\dev\UnityProjects\%UnityExe%
) ELSE (
    set ProjRootPath=%~3
)
if [%4]==[] (
    set BuildIdentifier=JBuild_%SdkName%_%EXECUTOR_NUMBER%
) ELSE (
    set BuildIdentifier=%4
)
if [%TestAndroid%]==[] (set TestAndroid=true)
if [%TestiPhone%]==[] (set TestiPhone=true)
if [%TestWp8%]==[] (set TestWp8=true)
if [%TestPS4%]==[] (set TestPS4=false)

call :SetProjDefines
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught1
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught2
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught3
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestAndroid%]==[true] (call :BuildAndroid)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestiPhone%]==[true] (call :BuildiPhone)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestWp8%]==[true] (call :BuildWp8)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestPS4%]==[true] (call :BuildPS4)
endlocal
exit /b %errorLevel%

:SetProjDefines
echo === Test compilation in all example projects ===
call :SetEachProjDefine %SdkName%_BUP
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TA
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TC
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TS
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TZ
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
goto :EOF

:SetEachProjDefine
cd "%ProjRootPath%\%1"
%UnityExe% -projectPath "%ProjRootPath%\%1" -quit -batchmode -executeMethod SetupPlayFabExample.Setup -logFile "%ProjRootPath%\compile%1.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\compile%1.txt"
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught1
echo === Build Win32 Client Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeWin32TestingBuild -logFile "%ProjRootPath%\buildWin32Client.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildWin32Client.txt"
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught2
echo === Run the %UnityExe% Client UnitTests ===
cd "%ProjRootPath%\%SdkName%_TC\testBuilds"
Win32test -batchmode -nographics -logFile "%ProjRootPath%\clientTestOutput.txt"
if %errorLevel% NEQ 0 (
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught3
echo === Save test results to Jenkernaught ===
cd %WORKSPACE%/SDKGenerator/JenkinsConsoleUtility/bin/Debug
JenkinsConsoleUtility --listencs -buildIdentifier %BuildIdentifier% -workspacePath %WORKSPACE% -timeout 30 -verbose true
if %errorLevel% NEQ 0 (
    exit /b %errorLevel%
)
goto :EOF

:BuildAndroid
echo === Build Android Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeAndroidBuild -logFile "%ProjRootPath%\buildAndroidOutput.txt"
if %errorLevel% NEQ 0 (
    "%ProjRootPath%\buildAndroidOutput.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildiPhone
echo === Build iPhone Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeIPhoneBuild -logFile "%ProjRootPath%\buildiPhoneOutput.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildiPhoneOutput.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildWp8
echo === Build WinPhone Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeWp8Build -logFile "%ProjRootPath%\buildWp8Output.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildWp8Output.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildPS4
echo === Build PS4 Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath="%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakePS4Build -logFile "%ProjRootPath%\buildPS4Output.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildPS4Output.txt"
    exit /b %errorLevel%
)
goto :EOF

rem USAGE: unity_RunAutoTests.bat [<UnityExe>] [<SdkRepoName>] [<ProjRootPath>] [<BuildIdentifier>]
@echo on
rem Make folder links from the UnitySdk to this test project
rem Requires mklink which may require administrator
rem Requires the following environment variables:
rem   TestAndroid - (Optional - Default true if unset) set to "false" (without quotes) to skip building Android APK
rem   TestiPhone - (Optional - Default true if unset) set to "false" (without quotes) to skip building iOS XCode project
rem   TestWp8 - (Optional - Default true if unset) set to "false" (without quotes) to skip building Windows Universal 8 vs-sln
rem   TestPS4 - (Optional - Default true if unset) set to "false" (without quotes) to skip building PS4
rem   UNITY_PUBLISH_VERSION - (Not required if %1 is defined) Versioned Unity executable name (Assumes multiple potential Unity installations, all in your PATH, each uniquely renamed)
rem   EXECUTOR_NUMBER - (Not required if %4 is defined) Automatic Jenkins variable

setlocal
if [%1]==[] (
    set UnityExe=%UNITY_PUBLISH_VERSION%
) ELSE (
    set UnityExe=%1
)
if [%2]==[] (
    set SdkName=UnitySDK
) ELSE (
    set SdkName=%2
)
if [%3]==[] (
    set ProjRootPath=C:\dev\UnityProjects\%UnityExe%
) ELSE (
    set ProjRootPath=%~3
)
if [%4]==[] (
    set BuildIdentifier=JBuild_%SdkName%_%EXECUTOR_NUMBER%
) ELSE (
    set BuildIdentifier=%4
)
if [%TestAndroid%]==[] (set TestAndroid=true)
if [%TestiPhone%]==[] (set TestiPhone=true)
if [%TestWp8%]==[] (set TestWp8=true)
if [%TestPS4%]==[] (set TestPS4=false)

call :SetProjDefines
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught1
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught2
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :RunClientJenkernaught3
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestAndroid%]==[true] (call :BuildAndroid)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestiPhone%]==[true] (call :BuildiPhone)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestWp8%]==[true] (call :BuildWp8)
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
IF [%TestPS4%]==[true] (call :BuildPS4)
endlocal
exit /b %errorLevel%

:SetProjDefines
echo === Test compilation in all example projects ===
call :SetEachProjDefine %SdkName%_BUP
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TA
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TC
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TS
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
call :SetEachProjDefine %SdkName%_TZ
if %errorLevel% NEQ 0 (exit /b %errorLevel%)
goto :EOF

:SetEachProjDefine
cd "%ProjRootPath%\%1"
%UnityExe% -projectPath "%ProjRootPath%\%1" -quit -batchmode -executeMethod SetupPlayFabExample.Setup -logFile "%ProjRootPath%\compile%1.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\compile%1.txt"
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught1
echo === Build Win32 Client Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeWin32TestingBuild -logFile "%ProjRootPath%\buildWin32Client.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildWin32Client.txt"
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught2
echo === Run the %UnityExe% Client UnitTests ===
cd "%ProjRootPath%\%SdkName%_TC\testBuilds"
Win32test -batchmode -nographics -logFile "%ProjRootPath%\clientTestOutput.txt"
if %errorLevel% NEQ 0 (
    exit /b %errorLevel%
)
goto :EOF

:RunClientJenkernaught3
echo === Save test results to Jenkernaught ===
cd %WORKSPACE%/SDKGenerator/JenkinsConsoleUtility/bin/Debug
JenkinsConsoleUtility --listencs -buildIdentifier %BuildIdentifier% -workspacePath %WORKSPACE% -timeout 30 -verbose true
if %errorLevel% NEQ 0 (
    exit /b %errorLevel%
)
goto :EOF

:BuildAndroid
echo === Build Android Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeAndroidBuild -logFile "%ProjRootPath%\buildAndroidOutput.txt"
if %errorLevel% NEQ 0 (
    "%ProjRootPath%\buildAndroidOutput.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildiPhone
echo === Build iPhone Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeIPhoneBuild -logFile "%ProjRootPath%\buildiPhoneOutput.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildiPhoneOutput.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildWp8
echo === Build WinPhone Target ===
cd "%ProjRootPath%\%SdkName%_TC"
%UnityExe% -projectPath "%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakeWp8Build -logFile "%ProjRootPath%\buildWp8Output.txt"
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildWp8Output.txt"
    exit /b %errorLevel%
)
goto :EOF

:BuildPS4
echo === Build PS4 Target ===
cd "%ProjRootPath%\%SdkName%_TC"
pushd "%WORKSPACE%/SDKGenerator/SDKBuildScripts"
sh unity_copyTestTitleData.sh "%WORKSPACE%/sdks/UnitySDK/Testing/Resources" copy
popd
%UnityExe% -projectPath="%ProjRootPath%\%SdkName%_TC" -quit -batchmode -executeMethod PlayFab.Internal.PlayFabPackager.MakePS4Build -logFile "%ProjRootPath%\buildPS4Output.txt"
pushd "%WORKSPACE%/SDKGenerator/SDKBuildScripts"
sh unity_copyTestTitleData.sh "%WORKSPACE%/sdks/UnitySDK/Testing/Resources" delete
popd
if %errorLevel% NEQ 0 (
    type "%ProjRootPath%\buildPS4Output.txt"
    exit /b %errorLevel%
)
goto :EOF

Update unity_RunAutoTests.bat (#511)

Update unity_RunAutoTests.bat (#511)


@echo off
SET zip_file=php-gtk-0.5.0-win32.zip
md \php-gtk-dist
cd \php-gtk-dist
md php4
md winnt
md winnt\system32
md test
copy \php4\php.exe php4
copy \php4\php_win.exe php4
copy \php4\php4ts.dll php4
copy \php4\php4isapi.dll php4
copy \php4\php_gtk.dll php4
copy \php4\php_gtk_libglade.dll php4
copy \php4\php_gtk_sqpane.dll php4
copy \php\php4\php.ini-dist winnt\php.ini
type \php\php-gtk\win32\php.ini >>winnt\php.ini
copy %SystemRoot%\system32\gtk-1.3.dll winnt\system32
copy %SystemRoot%\system32\gdk-1.3.dll winnt\system32
copy %SystemRoot%\system32\gmodule-1.3.dll winnt\system32
copy %SystemRoot%\system32\glib-1.3.dll winnt\system32
copy %SystemRoot%\system32\iconv-1.3.dll winnt\system32
copy %SystemRoot%\system32\gnu-intl.dll winnt\system32
copy %SystemRoot%\system32\libglade-0.14.dll winnt\system32
copy %SystemRoot%\system32\libxml.dll winnt\system32
copy \php\php-gtk\test\fileselection.php test
copy \php\php-gtk\test\gtk.php test
copy \php\php-gtk\test\hello.php test
copy \php\php-gtk\test\list.php test
copy \php\php-gtk\test\scribble.php test
copy \php\php-gtk\test\testgtkrc test
copy \php\php-gtk\test\testgtkrc2 test
copy \php\php-gtk\win32\README.txt
copy \php\php-gtk\NEWS
"c:\Program Files\WinZip\WZZip" -ampr %zip_file%
copy %zip_file% \php\php-gtk-web\distributions
del %zip_file%
cd \php\php-gtk\win32

@echo off
SET zip_file=php-gtk-%1-win32.zip
md \php-gtk-dist
cd \php-gtk-dist
md php4
md winnt
md winnt\system32
md test
copy \php4\php.exe php4
copy \php4\php-cgi.exe php4
copy \php4\php_win.exe php4
copy \php4\php4ts.dll php4
copy \php4\php4isapi.dll php4
copy \php4\php_gtk.dll php4
copy \php4\php_gtk_libglade.dll php4
copy \php4\php_gtk_sqpane.dll php4
copy \php4\php_gtk_combobutton.dll php4
copy \php\php4\php.ini-dist winnt\php.ini
type \php\php-gtk\win32\php.ini >>winnt\php.ini
copy %SystemRoot%\system32\gtk-1.3.dll winnt\system32
copy %SystemRoot%\system32\gdk-1.3.dll winnt\system32
copy %SystemRoot%\system32\gmodule-1.3.dll winnt\system32
copy %SystemRoot%\system32\glib-1.3.dll winnt\system32
copy %SystemRoot%\system32\iconv-1.3.dll winnt\system32
copy %SystemRoot%\system32\gnu-intl.dll winnt\system32
copy %SystemRoot%\system32\libglade-0.14.dll winnt\system32
copy %SystemRoot%\system32\libxml.dll winnt\system32
copy \php\php-gtk\test\fileselection.php test
copy \php\php-gtk\test\gtk.php test
copy \php\php-gtk\test\hello.php test
copy \php\php-gtk\test\list.php test
copy \php\php-gtk\test\scribble.php test
copy \php\php-gtk\test\testgtkrc test
copy \php\php-gtk\test\testgtkrc2 test
copy \php\php-gtk\win32\README.txt
copy \php\php-gtk\NEWS
"c:\Program Files\WinZip\WZZip" -ampr %zip_file%
copy %zip_file% \php\php-gtk-web\distributions
del %zip_file%
cd \php\php-gtk\win32

Modify script for easy versioning and adding ComboButton to the distribution.


@echo off
echo Setting environment variables for mingw+WinFsp compile
set GOPATH=X:\go
set PATH=C:\Program Files\mingw-w64\i686-7.1.0-win32-dwarf-rt_v5-rev0\mingw32\bin;%PATH%
set CPATH=C:\Program Files\WinFsp\inc\fuse;C:\Program Files (x86)\WinFsp\inc\fuse

@echo off
echo Setting environment variables for mingw+WinFsp compile
set GOPATH=Z:\go
rem set PATH=C:\Program Files\mingw-w64\i686-7.1.0-win32-dwarf-rt_v5-rev0\mingw32\bin;%PATH%
set PATH=C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin;%PATH%
set CPATH=C:\Program Files\WinFsp\inc\fuse;C:\Program Files (x86)\WinFsp\inc\fuse

update windows test paths for new setup

bin: update windows test paths for new setup


@echo off

:: Add to target shorcut foc 'cmd'
:: cmd.exe /K C:\path\to\env.cmd

:: Aliases
doskey clear=cls

@echo off

:: Add to target shorcut for 'cmd'
:: cmd.exe /K C:\path\to\env.cmd

:: Aliases
doskey clear=cls
doskey python=C:\<path>\anaconda\4.2.0\python

Update env.cmd

Update env.cmd


@set args=%*
@powershell "iex((@('')*3+(cat '%~f0'|select -skip 3))-join[char]10)"
@exit /b %ERRORLEVEL%

$args = @( ([regex]'"([^"]*)"').Replace($env:args,{
        $args[0].Groups[1] -replace " ",[char]1
    }) -split " " | ForEach-Object{ $_ -replace [char]1," " })

Set-PSDebug -strict
$VerbosePreference = "Continue"
$env:GO111MODULE="on"
Write-Verbose "$ set GO111MODULE=$env:GO111MODULE"

function Do-Copy($src,$dst){
    Write-Verbose "$ copy '$src' '$dst'"
    Copy-Item $src $dst
}

function Do-Rename($old,$new){
    Write-Verbose "$ ren $old $new"
    Rename-Item -path $old -newname $new
}

function Do-Remove($file){
    if( Test-Path $file ){
        Write-Verbose "$ del '$file'"
        Remove-Item $file
    }
}

function Make-Dir($folder){
    if( -not (Test-Path $folder) ){
        Write-Verbose "$ mkdir '$folder'"
        New-Item $folder -type directory | Out-Null
    }
}

function Ask-Copy($src,$dst){
    $fname = (Join-Path $dst (Split-Path $src -Leaf))
    if( Test-Path $fname ){
        Write-Verbose "$fname already exists. Cancel to copy"
    }else{
        Do-Copy $src $dst
    }
}

function ForEach-GoDir{
    Get-ChildItem . -Recurse |
    Where-Object{ $_.Extension -eq '.go' } |
    ForEach-Object{ Split-Path $_.FullName -Parent } |
    Sort-Object |
    Get-Unique
}

function Go-Fmt{
    $status = $true
    git status -s | %{
        $fname = $_.Substring(3)
        $arrow = $fname.IndexOf(" -> ")
        if( $arrow -ge 0 ){
            $fname = $fname.Substring($arrow+4)
        }
        if( $fname -like "*.go" -and (Test-Path($fname)) ){
            $prop = Get-ItemProperty($fname)
            if( $prop.Mode -like "?a*" ){
                Write-Verbose "$ go fmt $fname"
                go fmt $fname
                if( $LastExitCode -ne 0 ){
                    $status = $false
                }else{
                    attrib -a $fname
                }
            }
        }
    }
    if( -not $status ){
        Write-Warning "Some of 'go fmt' failed."
    }
    return $status
}

function Make-SysO($version) {
    pushd Etc
    go generate
    popd
}

function Build([string]$version="",[string]$tags="",[string]$target="") {
    if( $version -eq "" ){
        $version = (git describe --tags)
    }

    Write-Verbose "Build as version='$version' tags='$tags'"

    if( $tags -ne "" ){
        $tags = "-tags=$tags"
    }

    if( -not (Go-Fmt) ){
        return
    }
    $saveGOARCH = $env:GOARCH
    $env:GOARCH = (go env GOARCH)

    Make-Dir "cmd"
    $binDir = (Join-Path "cmd" $env:GOARCH)
    Make-Dir $binDir
    if ($target -eq "") {
        $target = (Join-Path $binDir "nyagos.exe")
    }

    Make-SysO $version

    Write-Verbose "$ go build -o '$target'"
    go build "-o" $target -ldflags "-s -w -X main.version=$version" $tags
    if( $LastExitCode -eq 0 ){
        where.exe upx 2>&1 | Out-Null
        if ( $LastExitCode -eq 0 ){
            upx -9 $target
        }
        Do-Copy $target (Join-Path "." ([System.IO.Path]::GetFileName($target)))
    }
    $env:GOARCH = $saveGOARCH
}

function Make-Package($arch){
    $zipname = ("nyagos-{0}.zip" -f (& "cmd\$arch\nyagos.exe" --show-version-only))
    Write-Verbose "$ zip -9 $zipname ...."
    if( Test-Path $zipname ){
        Do-Remove $zipname
    }
    zip -9j $zipname `
        "cmd\$arch\nyagos.exe" `
        .nyagos `
        _nyagos `
        makeicon.cmd `
        LICENSE `
        readme_ja.md `
        readme.md

    zip -9 $zipname `
        nyagos.d\*.lua `
        nyagos.d\catalog\*.lua `
        Doc\*.md
}

switch( $args[0] ){
    "" {
        Build
    }
    "386"{
        $private:save = $env:GOARCH
        $env:GOARCH = "386"
        Build
        $env:GOARCH = $save
    }
    "debug" {
        $private:save = $env:GOARCH
        if( $args[1] ){
            $env:GOARCH = $args[1]
        }
        Build -tags "debug"
        $env:GOARCH = $save
    }
    "vanilla" {
        Build -tags "vanilla"
    }
    "release" {
        $private:save = $env:GOARCH
        if( $args[1] ){
            $env:GOARCH = $args[1]
        }
        Build -version (Get-Content Etc\version.txt)
        $env:GOARCH = $save
    }
    "linux" {
        $private:os = $env:GOOS
        $private:arch = $env:GOARCH
        $env:GOOS="linux"
        $env:GOARCH="amd64"
        Build -target "Cmd\linux\nyagos" -version (Get-Content Etc\version.txt)
        $env:GOOS = $os
        $env:GOARCH=$arch
    }
    "clean" {
        foreach( $p in @(`
            "cmd\amd64\nyagos.exe",`
            "cmd\386\nyagos.exe",`
            "nyagos.exe",`
            "nyagos.syso",`
            "version.now",`
            "goversioninfo.exe") )
        {
            Do-Remove $p
        }
        ForEach-GoDir | %{
            Write-Verbose "$ go clean on $_"
            pushd $_
            go clean
            popd
        }
    }
    "package" {
        $ARCH = (go env GOARCH)
        $private:VER = (Get-Content Etc\version.txt)
        if( $args[1] -eq "linux" ){
            pushd ..
            tar -zcvf "nyagos/nyagos-$VER-linux-$ARCH.tar.gz" `
                nyagos/nyagos `
                nyagos/.nyagos `
                nyagos/_nyagos `
                nyagos/readme.md `
                nyagos/readme_ja.md `
                nyagos/nyagos.d `
                nyagos/Doc/*.md
            popd
        }elseif( $args[1] -ne $null -and $args[1] -ne "" ){
            Make-Package $args[1]
        }else{
            Make-Package $ARCH
        }
    }
    "install" {
        $installDir = $args[1]
        if( $installDir -eq $null -or $installDir -eq "" ){
            $installDir = (
                Select-String 'INSTALLDIR=([^\)"]+)' Etc\version.cmd |
                ForEach-Object{ $_.Matches[0].Groups[1].Value }
            )
            if( -not $installDir ){
                Write-Warning "Usage: make.ps1 install INSTALLDIR"
                exit
            }
            if( -not (Test-Path $installDir) ){
                Write-Warning "$installDir not found."
                exit
            }
            Write-Verbose "installDir=$installDir"
        }
        Write-Output "@set `"INSTALLDIR=$installDir`"" |
            Out-File "Etc\version.cmd" -Encoding Default

        robocopy nyagos.d (Join-Path $installDir "nyagos.d") /E
        Write-Verbose "ERRORLEVEL=$LastExitCode"
        if( $LastExitCode -lt 8 ){
            Remove-Item Variable:LastExitCode
        }
        Ask-Copy "_nyagos" $installDir
        try{
            Do-Copy nyagos.exe $installDir
        }catch{
            $old = (Join-Path $installDir "nyagos.exe")
            Write-Warning "Failed to update $old"
            $now = (Get-Date -Format "yyyyMMddHHmmss")
            $backup = ($old + "-" + $now)
            try{
                try{
                    Do-Rename $old $backup
                }catch{
                    Write-Warning "Failed to rename $old to $backup"
                    Write-Warning "Try to kill nyagos.exe process"
                    taskkill /F /IM nyagos.exe
                    Do-Rename $old ($old + "-" + $now)
                }
                Do-Copy nyagos.exe $installDir
            }catch{
                Write-Error "Could not update installed nyagos.exe"
                Write-Error "Some processes holds nyagos.exe now"
            }
        }
    }
    "get" {
        go get -u
    }
    "fmt" {
        Go-Fmt | Out-Null
    }
    "help" {
        Write-Output @'
make                     build as snapshot
make debug   [386|amd64] build as debug version     (tagged as `debug`)
make release [386|amd64] build as release version
make clean               remove all work files
make package [386|amd64] make `nyagos-(VERSION)-(ARCH).zip`
make install [FOLDER]    copy executables to FOLDER or last folder
make fmt                 `go fmt`
make help                show this
'@
    }
    default {
        Write-Warning ("{0} not supported." -f $args[0])
    }
}
if( Test-Path Variable:LastExitCode ){
    exit $LastExitCode
}

# vim:set ft=ps1:

@set args=%*
@powershell "iex((@('')*3+(cat '%~f0'|select -skip 3))-join[char]10)"
@exit /b %ERRORLEVEL%

$args = @( ([regex]'"([^"]*)"').Replace($env:args,{
        $args[0].Groups[1] -replace " ",[char]1
    }) -split " " | ForEach-Object{ $_ -replace [char]1," " })

Set-PSDebug -strict
$VerbosePreference = "Continue"
$env:GO111MODULE="on"
Write-Verbose "$ set GO111MODULE=$env:GO111MODULE"

function Do-Copy($src,$dst){
    Write-Verbose "$ copy '$src' '$dst'"
    Copy-Item $src $dst
}

function Do-Rename($old,$new){
    Write-Verbose "$ ren $old $new"
    Rename-Item -path $old -newname $new
}

function Do-Remove($file){
    if( Test-Path $file ){
        Write-Verbose "$ del '$file'"
        Remove-Item $file
    }
}

function Make-Dir($folder){
    if( -not (Test-Path $folder) ){
        Write-Verbose "$ mkdir '$folder'"
        New-Item $folder -type directory | Out-Null
    }
}

function Ask-Copy($src,$dst){
    $fname = (Join-Path $dst (Split-Path $src -Leaf))
    if( Test-Path $fname ){
        Write-Verbose "$fname already exists. Cancel to copy"
    }else{
        Do-Copy $src $dst
    }
}

function ForEach-GoDir{
    Get-ChildItem . -Recurse |
    Where-Object{ $_.Extension -eq '.go' } |
    ForEach-Object{ Split-Path $_.FullName -Parent } |
    Sort-Object |
    Get-Unique
}

function Go-Fmt{
    $status = $true
    git status -s | %{
        $fname = $_.Substring(3)
        $arrow = $fname.IndexOf(" -> ")
        if( $arrow -ge 0 ){
            $fname = $fname.Substring($arrow+4)
        }
        if( $fname -like "*.go" -and (Test-Path($fname)) ){
            $prop = Get-ItemProperty($fname)
            if( $prop.Mode -like "?a*" ){
                Write-Verbose "$ go fmt $fname"
                go fmt $fname
                if( $LastExitCode -ne 0 ){
                    $status = $false
                }else{
                    attrib -a $fname
                }
            }
        }
    }
    if( -not $status ){
        Write-Warning "Some of 'go fmt' failed."
    }
    return $status
}

function Make-SysO($version) {
    pushd Etc
    go generate
    popd
}

function Build([string]$version="",[string]$tags="",[string]$target="") {
    if( $version -eq "" ){
        $version = (git describe --tags)
    }

    Write-Verbose "Build as version='$version' tags='$tags'"

    if( $tags -ne "" ){
        $tags = "-tags=$tags"
    }

    if( -not (Go-Fmt) ){
        return
    }
    $saveGOARCH = $env:GOARCH
    $env:GOARCH = (go env GOARCH)

    Make-Dir "cmd"
    $binDir = (Join-Path "cmd" $env:GOARCH)
    Make-Dir $binDir
    if ($target -eq "") {
        $target = (Join-Path $binDir "nyagos.exe")
    }

    Make-SysO $version

    Write-Verbose "$ go build -o '$target'"
    go build "-o" $target -ldflags "-s -w -X main.version=$version" $tags
    if( $LastExitCode -eq 0 ){
        where.exe upx 2>&1 | Out-Null
        if ( $LastExitCode -eq 0 ){
            upx.exe -9 $target
        }else{
            $global:LastExitCode = 0
        }

        Do-Copy $target (Join-Path "." ([System.IO.Path]::GetFileName($target)))
    }
    $env:GOARCH = $saveGOARCH
}

function Make-Package($arch){
    $zipname = ("nyagos-{0}.zip" -f (& "cmd\$arch\nyagos.exe" --show-version-only))
    Write-Verbose "$ zip -9 $zipname ...."
    if( Test-Path $zipname ){
        Do-Remove $zipname
    }
    zip -9j $zipname `
        "cmd\$arch\nyagos.exe" `
        .nyagos `
        _nyagos `
        makeicon.cmd `
        LICENSE `
        readme_ja.md `
        readme.md

    zip -9 $zipname `
        nyagos.d\*.lua `
        nyagos.d\catalog\*.lua `
        Doc\*.md
}

switch( $args[0] ){
    "" {
        Build
    }
    "386"{
        $private:save = $env:GOARCH
        $env:GOARCH = "386"
        Build
        $env:GOARCH = $save
    }
    "debug" {
        $private:save = $env:GOARCH
        if( $args[1] ){
            $env:GOARCH = $args[1]
        }
        Build -tags "debug"
        $env:GOARCH = $save
    }
    "vanilla" {
        Build -tags "vanilla"
    }
    "release" {
        $private:save = $env:GOARCH
        if( $args[1] ){
            $env:GOARCH = $args[1]
        }
        Build -version (Get-Content Etc\version.txt)
        $env:GOARCH = $save
    }
    "linux" {
        $private:os = $env:GOOS
        $private:arch = $env:GOARCH
        $env:GOOS="linux"
        $env:GOARCH="amd64"
        Build -target "Cmd\linux\nyagos" -version (Get-Content Etc\version.txt)
        $env:GOOS = $os
        $env:GOARCH=$arch
    }
    "clean" {
        foreach( $p in @(`
            "cmd\amd64\nyagos.exe",`
            "cmd\386\nyagos.exe",`
            "nyagos.exe",`
            "nyagos.syso",`
            "version.now",`
            "goversioninfo.exe") )
        {
            Do-Remove $p
        }
        ForEach-GoDir | %{
            Write-Verbose "$ go clean on $_"
            pushd $_
            go clean
            popd
        }
    }
    "package" {
        $ARCH = (go env GOARCH)
        $private:VER = (Get-Content Etc\version.txt)
        if( $args[1] -eq "linux" ){
            pushd ..
            tar -zcvf "nyagos/nyagos-$VER-linux-$ARCH.tar.gz" `
                nyagos/nyagos `
                nyagos/.nyagos `
                nyagos/_nyagos `
                nyagos/readme.md `
                nyagos/readme_ja.md `
                nyagos/nyagos.d `
                nyagos/Doc/*.md
            popd
        }elseif( $args[1] -ne $null -and $args[1] -ne "" ){
            Make-Package $args[1]
        }else{
            Make-Package $ARCH
        }
    }
    "install" {
        $installDir = $args[1]
        if( $installDir -eq $null -or $installDir -eq "" ){
            $installDir = (
                Select-String 'INSTALLDIR=([^\)"]+)' Etc\version.cmd |
                ForEach-Object{ $_.Matches[0].Groups[1].Value }
            )
            if( -not $installDir ){
                Write-Warning "Usage: make.ps1 install INSTALLDIR"
                exit
            }
            if( -not (Test-Path $installDir) ){
                Write-Warning "$installDir not found."
                exit
            }
            Write-Verbose "installDir=$installDir"
        }
        Write-Output "@set `"INSTALLDIR=$installDir`"" |
            Out-File "Etc\version.cmd" -Encoding Default

        robocopy nyagos.d (Join-Path $installDir "nyagos.d") /E
        Write-Verbose "ERRORLEVEL=$LastExitCode"
        if( $LastExitCode -lt 8 ){
            Remove-Item Variable:LastExitCode
        }
        Ask-Copy "_nyagos" $installDir
        try{
            Do-Copy nyagos.exe $installDir
        }catch{
            $old = (Join-Path $installDir "nyagos.exe")
            Write-Warning "Failed to update $old"
            $now = (Get-Date -Format "yyyyMMddHHmmss")
            $backup = ($old + "-" + $now)
            try{
                try{
                    Do-Rename $old $backup
                }catch{
                    Write-Warning "Failed to rename $old to $backup"
                    Write-Warning "Try to kill nyagos.exe process"
                    taskkill /F /IM nyagos.exe
                    Do-Rename $old ($old + "-" + $now)
                }
                Do-Copy nyagos.exe $installDir
            }catch{
                Write-Error "Could not update installed nyagos.exe"
                Write-Error "Some processes holds nyagos.exe now"
            }
        }
    }
    "get" {
        go get -u
    }
    "fmt" {
        Go-Fmt | Out-Null
    }
    "help" {
        Write-Output @'
make                     build as snapshot
make debug   [386|amd64] build as debug version     (tagged as `debug`)
make release [386|amd64] build as release version
make clean               remove all work files
make package [386|amd64] make `nyagos-(VERSION)-(ARCH).zip`
make install [FOLDER]    copy executables to FOLDER or last folder
make fmt                 `go fmt`
make help                show this
'@
    }
    default {
        Write-Warning ("{0} not supported." -f $args[0])
    }
}
if( Test-Path Variable:LastExitCode ){
    exit $LastExitCode
}

# vim:set ft=ps1:

build failed on AppVeyor

Fix: build failed on AppVeyor


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

rem ----- use the location of this script to infer $FORREST_HOME -------
set DEFAULT_FORREST_HOME=%~dp0\..
if "%FORREST_HOME%"=="" set FORREST_HOME=%DEFAULT_FORREST_HOME%

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

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

rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME=%FORREST_HOME%\ant

rem ----- Save and set CLASSPATH --------------------------------------------
set OLD_CLASSPATH=%CLASSPATH%
set CLASSPATH=
rem Change drive and directory to %FORREST_HOME%\lib\endorsed
if "%OS%"=="Windows_NT" cd /d ""%FORREST_HOME%\lib\endorsed""
if not "%OS%"=="Windows_NT" cd ""%FORREST_HOME%\lib\endorsed""

for %%i in (*.jar) do call "%FORREST_HOME%\bin\appendcp.bat" "%FORREST_HOME%\lib\endorsed\%%i"

echo.
echo Apache Forrest.  Run 'forrest -projecthelp' to list options
echo.
rem ----- call ant.. ---------------------------------------------------
echo.
call "%ANT_HOME%\bin\forrestant" -buildfile "%ANTFILE%" -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9

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

rem Fix FOR-47
if not "%OS%"=="Windows_NT" cd ""%PWD%""

Fix FOR-47 -- problem on win9x (%OS% is not 'Windows_NT'), where forrest.bat
leaves the user in a different directory. Thanks to Dave Brondsema

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