@ECHO OFF
rem ******************************************************************************
rem *
rem * Notepad2-mod
rem *
rem * build.cmd
rem *   Batch file "wrapper" for makefile.mak, used to build Notepad2 with WDK
rem *
rem * See License.txt for details about distribution and modification.
rem *
rem *                                       (c) XhmikosR 2010
rem *                                       http://code.google.com/p/notepad2-mod/
rem *
rem ******************************************************************************

SETLOCAL
CD /D %~dp0

rem Set the WDK and SDK directories
SET "WDKBASEDIR=C:\WinDDK\7600.16385.1"
SET "SDKDIR=%PROGRAMFILES%\Microsoft SDKs\Windows\v7.1"

rem Check the building environment
IF NOT EXIST "%WDKBASEDIR%" CALL :SUBMSG "ERROR" "Specify your WDK directory!"
IF NOT EXIST "%SDKDIR%" CALL :SUBMSG "ERROR" "Specify your SDK directory!"

rem check for the help switches
IF /I "%1"=="help" GOTO :SHOWHELP
IF /I "%1"=="/help" GOTO :SHOWHELP
IF /I "%1"=="-help" GOTO :SHOWHELP
IF /I "%1"=="--help" GOTO :SHOWHELP
IF /I "%1"=="/?" GOTO :SHOWHELP
GOTO :CHECKFIRSTARG

:SHOWHELP
TITLE "build.cmd %1"
ECHO.
ECHO:Usage:  build.cmd [Clean^|Build^|Rebuild] [x86^|x64^|all]
ECHO.
ECHO:Note:   You can also prefix the commands with "-", "--" or "/".
ECHO.
ECHO.
ECHO:Edit "build.cmd" and set your WDK and SDK directories.
ECHO:You shouldn't need to make any changes other than that.
ECHO.
ECHO.
ECHO:Executing "build.cmd" will use the defaults: "build.cmd build all"
ECHO:If you skip an argument the default one will be used.
ECHO.
ECHO:Examples:
ECHO:  "build.cmd rebuild" is equivalent to "build.cmd rebuild all"
ECHO:  "build.cmd x86" is equivalent to "build.cmd build x86"
ECHO.
ENDLOCAL
EXIT /B

:CHECKFIRSTARG
REM Check for the first switch
IF "%1" == "" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
IF /I "%1" == "/x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
IF /I "%1" == "-x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
IF /I "%1" == "--x86" SET ARCH=x86&&GOTO :CHECKSECONDARG
IF /I "%1" == "x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
IF /I "%1" == "/x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
IF /I "%1" == "-x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
IF /I "%1" == "--x64" SET ARCH=x64&&GOTO :CHECKSECONDARG
IF /I "%1" == "all" SET ARCH=all&&GOTO :CHECKSECONDARG
IF /I "%1" == "/all" SET ARCH=all&&GOTO :CHECKSECONDARG
IF /I "%1" == "-all" SET ARCH=all&&GOTO :CHECKSECONDARG
IF /I "%1" == "--all" SET ARCH=all&&GOTO :CHECKSECONDARG
ECHO.
ECHO:"%1": Unsupported commandline switch!
ECHO:Run "build.cmd help" for details about the commandline switches.
CALL :SUBMSG "ERROR" "Compilation failed!"

:CHECKSECONDARG
REM Check for the second switch
IF "%2" == "" SET ARCH=all&&GOTO :START
IF /I "%2" == "x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "/x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "-x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "--x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "/x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "-x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "--x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "all" SET ARCH=all&&GOTO :START
IF /I "%2" == "/all" SET ARCH=all&&GOTO :START
IF /I "%2" == "-all" SET ARCH=all&&GOTO :START
IF /I "%2" == "--all" SET ARCH=all&&GOTO :START
IF /I "%2" == "Build" SET BUILDTYPE=Build&&GOTO :START
IF /I "%2" == "/Build" SET BUILDTYPE=Build&&GOTO :START
IF /I "%2" == "-Build" SET BUILDTYPE=Build&&GOTO :START
IF /I "%2" == "--Build" SET BUILDTYPE=Build&&GOTO :START
IF /I "%2" == "Clean" SET BUILDTYPE=Clean&&GOTO :START
IF /I "%2" == "/Clean" SET BUILDTYPE=Clean&&GOTO :START
IF /I "%2" == "-Clean" SET BUILDTYPE=Clean&&GOTO :START
IF /I "%2" == "--Clean" SET BUILDTYPE=Clean&&GOTO :START
IF /I "%2" == "Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
IF /I "%2" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
IF /I "%2" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
IF /I "%2" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :START
ECHO.
ECHO:"%2": Unsupported commandline switch!
ECHO:Run "build.cmd help" for details about the commandline switches.
CALL :SUBMSG "ERROR" "Compilation failed!"

:START
IF /I "%BUILDTYPE%" == "" SET BUILDTYPE=Build
IF /I "%ARCH%" == "" SET ARCH=all
IF /I "%BUILDTYPE%" == "Clean" GOTO :x86
PUSHD ..
CALL "update_version.bat"
POPD

:x86
SET "INCLUDE=%WDKBASEDIR%\inc\crt;%WDKBASEDIR%\inc\api;%WDKBASEDIR%\inc\api\crt\stl60;%WDKBASEDIR%\inc\ddk"
SET "LIB=%WDKBASEDIR%\lib\crt\i386;%WDKBASEDIR%\lib\win7\i386"
SET "FPATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\x86;%SDKDIR%\Bin"
SET "PATH=%FPATH%"

IF /I "%ARCH%" == "x64" GOTO :x64

TITLE Building Notepad2 x86...
ECHO. && ECHO.

IF /I "%BUILDTYPE%" == "Build" (
CALL :SUBNMAKE
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64
)

IF /I "%BUILDTYPE%" == "Rebuild" (
CALL :SUBNMAKE clean
CALL :SUBNMAKE
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64
)

IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKE clean
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64

:x64
SET "LIB=%WDKBASEDIR%\lib\crt\amd64;%WDKBASEDIR%\lib\win7\amd64"
SET "FPATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\amd64;%SDKDIR%\Bin"
SET "PATH=%FPATH%"

IF /I "%ARCH%" == "x86" GOTO :END

TITLE Building Notepad2 x64...
ECHO. && ECHO.

IF /I "%BUILDTYPE%" == "Build" (
CALL :SUBNMAKE "x64=1"
GOTO :END
)

IF /I "%BUILDTYPE%" == "Rebuild" (
CALL :SUBNMAKE "x64=1" clean
CALL :SUBNMAKE "x64=1"
GOTO :END
)

IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKE "x64=1" clean

:END
TITLE Building Notepad2 - Finished!
ENDLOCAL
EXIT /B

:SUBNMAKE
nmake /NOLOGO /f "makefile.mak" %1 %2
IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
EXIT /B

:SUBMSG
ECHO.&&ECHO:______________________________
ECHO:[%~1] %~2
ECHO:______________________________&&ECHO.
IF /I "%~1"=="ERROR" (
  PAUSE
  EXIT
) ELSE (
  EXIT /B
)

@ECHO OFF
rem ******************************************************************************
rem *
rem * Notepad2-mod
rem *
rem * build.cmd
rem *   Batch file "wrapper" for makefile.mak, used to build Notepad2 with WDK
rem *
rem * See License.txt for details about distribution and modification.
rem *
rem *                                       (c) XhmikosR 2010
rem *                                       http://code.google.com/p/notepad2-mod/
rem *
rem ******************************************************************************

SETLOCAL
CD /D %~dp0

rem Set the WDK and SDK directories
SET "WDKBASEDIR=C:\WinDDK\7600.16385.1"
SET "SDKDIR=%PROGRAMFILES%\Microsoft SDKs\Windows\v7.1"

rem Check the building environment
IF NOT EXIST "%WDKBASEDIR%" CALL :SUBMSG "ERROR" "Specify your WDK directory!"
IF NOT EXIST "%SDKDIR%" CALL :SUBMSG "ERROR" "Specify your SDK directory!"

rem check for the help switches
IF /I "%1"=="help" GOTO :SHOWHELP
IF /I "%1"=="/help" GOTO :SHOWHELP
IF /I "%1"=="-help" GOTO :SHOWHELP
IF /I "%1"=="--help" GOTO :SHOWHELP
IF /I "%1"=="/?" GOTO :SHOWHELP
GOTO :CHECKFIRSTARG

:SHOWHELP
TITLE "build.cmd %1"
ECHO.
ECHO:Usage:  build.cmd [Clean^|Build^|Rebuild] [x86^|x64^|all]
ECHO.
ECHO:Note:   You can also prefix the commands with "-", "--" or "/".
ECHO.
ECHO.
ECHO:Edit "build.cmd" and set your WDK and SDK directories.
ECHO:You shouldn't need to make any changes other than that.
ECHO.
ECHO.
ECHO:Executing "build.cmd" will use the defaults: "build.cmd build all"
ECHO:If you skip the second argument the default one will be used. Example:
ECHO:"build.cmd rebuild" is equivalent to "build.cmd rebuild all"
ECHO:NOTE: "build.cmd x86" won't work.
ECHO.
ENDLOCAL
EXIT /B

:CHECKFIRSTARG
rem Check for the first switch
IF "%1" == "" (
SET BUILDTYPE=Build
) ELSE (
IF /I "%1" == "Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Build" SET BUILDTYPE=Build&&GOTO :CHECKSECONDARG
IF /I "%1" == "Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Clean" SET BUILDTYPE=Clean&&GOTO :CHECKSECONDARG
IF /I "%1" == "Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "/Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "-Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
IF /I "%1" == "--Rebuild" SET BUILDTYPE=Rebuild&&GOTO :CHECKSECONDARG
ECHO.
ECHO:Unsupported commandline switch!
ECHO:Run "build.cmd help" for details about the commandline switches.
CALL :SUBMSG "ERROR" "Compilation failed!"
)

:CHECKSECONDARG
rem Check for the second switch
IF "%2" == "" (
SET ARCH=all
) ELSE (
IF /I "%2" == "x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "/x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "-x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "--x86" SET ARCH=x86&&GOTO :START
IF /I "%2" == "x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "/x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "-x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "--x64" SET ARCH=x64&&GOTO :START
IF /I "%2" == "all" SET ARCH=all&&GOTO :START
IF /I "%2" == "/all" SET ARCH=all&&GOTO :START
IF /I "%2" == "-all" SET ARCH=all&&GOTO :START
IF /I "%2" == "--all" SET ARCH=all&&GOTO :START
ECHO.
ECHO:Unsupported commandline switch!
ECHO:Run "build.cmd help" for details about the commandline switches.
CALL :SUBMSG "ERROR" "Compilation failed!"
)

:START
IF /I "%BUILDTYPE%" == "Clean" GOTO :x86

rem update the svn revision before building
PUSHD ..
CALL "update_version.bat"
POPD

:x86
SET "INCLUDE=%WDKBASEDIR%\inc\crt;%WDKBASEDIR%\inc\api;%WDKBASEDIR%\inc\api\crt\stl60;%WDKBASEDIR%\inc\ddk"
SET "LIB=%WDKBASEDIR%\lib\crt\i386;%WDKBASEDIR%\lib\win7\i386"
SET "PATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\x86;%SDKDIR%\Bin"

IF /I "%ARCH%" == "x64" GOTO :x64

TITLE Building Notepad2 x86...
ECHO. && ECHO.

IF /I "%BUILDTYPE%" == "Build" (
CALL :SUBNMAKE
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64
)

IF /I "%BUILDTYPE%" == "Rebuild" (
CALL :SUBNMAKE clean
CALL :SUBNMAKE
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64
)

IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKE clean
IF /I "%ARCH%" == "x86" GOTO :END
IF /I "%ARCH%" == "x64" GOTO :x64
IF /I "%ARCH%" == "all" GOTO :x64

:x64
SET "LIB=%WDKBASEDIR%\lib\crt\amd64;%WDKBASEDIR%\lib\win7\amd64"
SET "PATH=%WDKBASEDIR%\bin\x86;%WDKBASEDIR%\bin\x86\amd64;%SDKDIR%\Bin"

IF /I "%ARCH%" == "x86" GOTO :END

TITLE Building Notepad2 x64...
ECHO. && ECHO.

IF /I "%BUILDTYPE%" == "Build" (
CALL :SUBNMAKE "x64=1"
GOTO :END
)

IF /I "%BUILDTYPE%" == "Rebuild" (
CALL :SUBNMAKE "x64=1" clean
CALL :SUBNMAKE "x64=1"
GOTO :END
)

IF /I "%BUILDTYPE%" == "Clean" CALL :SUBNMAKE "x64=1" clean

:END
TITLE Building Notepad2 - Finished!
ENDLOCAL
EXIT /B

:SUBNMAKE
nmake /NOLOGO /f "makefile.mak" %1 %2
IF %ERRORLEVEL% NEQ 0 CALL :SUBMSG "ERROR" "Compilation failed!"
EXIT /B

:SUBMSG
ECHO.&&ECHO:______________________________
ECHO:[%~1] %~2
ECHO:______________________________&&ECHO.
IF /I "%~1"=="ERROR" (
  PAUSE
  EXIT
) ELSE (
  EXIT /B
)

revert previous commit

revert previous commit

git-svn-id: 756506b3b0ea8c31733a8f0a5bb416c7e269da3d@337 28bd50df-7adb-d945-0439-6e466c6a13cc


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

set THISDIR=%~dp0
set TOOL_NAME="unknown"

:: Get the tool name and put it into TOOL_NAME {{{1
:: NB: SHIFT command doesn't modify %*
:PARSE_ARGS_LOOP
  if %1 == () GOTO:TOOLNAME_NOT_FOUND
  if %1 == --tool GOTO:TOOLNAME_FOUND
  SHIFT
  goto :PARSE_ARGS_LOOP

:TOOLNAME_NOT_FOUND
echo "Please specify a tool (tsan or drmemory) by using --tool flag"
set %ERRORLEVEL% 1
goto :EOF

:TOOLNAME_FOUND
SHIFT
set TOOL_NAME=%1
:: }}}
if %TOOL_NAME% == drmemory GOTO :SETUP_DRMEMORY
if %TOOL_NAME% == tsan     GOTO :SETUP_TSAN
echo "Unknown tool: %TOOL_NAME%! Only tsan and drmemory are supported right now"
set %ERRORLEVEL% 1
goto :EOF

:SETUP_DRMEMORY
:: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1
set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory
set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe
if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK
echo "Can't find Dr. Memory executables."
echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory"
echo "for the instructions on how to get them."
set %ERRORLEVEL% 1
goto :EOF

:DRMEMORY_BINARY_OK
%DRMEMORY_SFX% -o%DRMEMORY_PATH%\unpacked -y
set DRMEMORY_COMMAND=%DRMEMORY_PATH%\unpacked\exports32\bin\drmemory.exe -dr %DRMEMORY_PATH%\unpacked\exports
:: }}}
goto :RUN_TESTS

:SETUP_TSAN
:: Set up PIN_COMMAND to invoke TSan {{{1
set TSAN_PATH=%THISDIR%..\..\third_party\tsan
set TSAN_SFX=%TSAN_PATH%\tsan-x86-windows-sfx.exe
if EXIST %TSAN_SFX% GOTO TSAN_BINARY_OK
echo "Can't find ThreadSanitizer executables."
echo "See http://www.chromium.org/developers/how-tos/using-valgrind/threadsanitizer/threadsanitizer-on-windows"
echo "for the instructions on how to get them."
set %ERRORLEVEL% 1
goto :EOF

:TSAN_BINARY_OK
%TSAN_SFX% -o%TSAN_PATH%\unpacked -y
set PIN_COMMAND=%TSAN_PATH%\unpacked\tsan-x86-windows\tsan.bat
:: }}}
goto :RUN_TESTS

:RUN_TESTS
set PYTHONPATH=%THISDIR%../python/google
set RUNNING_ON_VALGRIND=yes
python %THISDIR%/chrome_tests.py %*

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

set THISDIR=%~dp0
set TOOL_NAME="unknown"

:: Get the tool name and put it into TOOL_NAME {{{1
:: NB: SHIFT command doesn't modify %*
:PARSE_ARGS_LOOP
  if %1 == () GOTO:TOOLNAME_NOT_FOUND
  if %1 == --tool GOTO:TOOLNAME_FOUND
  SHIFT
  goto :PARSE_ARGS_LOOP

:TOOLNAME_NOT_FOUND
echo "Please specify a tool (tsan or drmemory) by using --tool flag"
set %ERRORLEVEL% 1
goto :EOF

:TOOLNAME_FOUND
SHIFT
set TOOL_NAME=%1
:: }}}
if %TOOL_NAME% == drmemory GOTO :SETUP_DRMEMORY
if %TOOL_NAME% == tsan     GOTO :SETUP_TSAN
echo "Unknown tool: %TOOL_NAME%! Only tsan and drmemory are supported right now"
set %ERRORLEVEL% 1
goto :EOF

:SETUP_DRMEMORY
:: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1
set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory
set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe
if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK
echo "Can't find Dr. Memory executables."
echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory"
echo "for the instructions on how to get them."
set %ERRORLEVEL% 1
goto :EOF

:DRMEMORY_BINARY_OK
%DRMEMORY_SFX% -o%DRMEMORY_PATH%\unpacked -y
set DRMEMORY_COMMAND=%DRMEMORY_PATH%\unpacked\bin\drmemory.exe
:: }}}
goto :RUN_TESTS

:SETUP_TSAN
:: Set up PIN_COMMAND to invoke TSan {{{1
set TSAN_PATH=%THISDIR%..\..\third_party\tsan
set TSAN_SFX=%TSAN_PATH%\tsan-x86-windows-sfx.exe
if EXIST %TSAN_SFX% GOTO TSAN_BINARY_OK
echo "Can't find ThreadSanitizer executables."
echo "See http://www.chromium.org/developers/how-tos/using-valgrind/threadsanitizer/threadsanitizer-on-windows"
echo "for the instructions on how to get them."
set %ERRORLEVEL% 1
goto :EOF

:TSAN_BINARY_OK
%TSAN_SFX% -o%TSAN_PATH%\unpacked -y
set PIN_COMMAND=%TSAN_PATH%\unpacked\tsan-x86-windows\tsan.bat
:: }}}
goto :RUN_TESTS

:RUN_TESTS
set PYTHONPATH=%THISDIR%../python/google
set RUNNING_ON_VALGRIND=yes
python %THISDIR%/chrome_tests.py %*

Update Dr. Memory paths to account for the new version of the DrM SFX
TBR=bruening
TEST=DrM FYI bot starts the proper version of DrM
Review URL: http://codereview.chromium.org/6507041

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


@echo off

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

@echo off

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

Update mare

Update mare


@echo on
mkdir %LIBRARY_BIN%
7z x 20348.1.210507-1500.fe_release_WindowsSDK.iso -aoa
if errorlevel 1 exit 1
msiexec /a "%SRC_DIR%\Installers\Universal CRT Redistributable-x86_en-us.msi" /qb TARGETDIR="%SRC_DIR%\tmp"
if errorlevel 1 exit 1
xcopy "tmp\Program Files\Windows Kits\10\Redist\%PKG_VERSION%\ucrt\DLLs\x64\"* "%PREFIX%"
if errorlevel 1 exit 1
xcopy "tmp\Program Files\Windows Kits\10\Redist\%PKG_VERSION%\ucrt\DLLs\x64\"* "%LIBRARY_BIN%"
if errorlevel 1 exit 1

@echo on
mkdir %LIBRARY_BIN%
7z x 20348.1.210507-1500.fe_release_WindowsSDK.iso -aoa
if errorlevel 1 exit 1
msiexec /a "%SRC_DIR%\Installers\Universal CRT Redistributable-x86_en-us.msi" /qb TARGETDIR="%SRC_DIR%\tmp"
if errorlevel 1 exit 1
xcopy "tmp\Windows Kits\10\Redist\%PKG_VERSION%\ucrt\DLLs\x64\"* "%PREFIX%"
if errorlevel 1 exit 1
xcopy "tmp\Windows Kits\10\Redist\%PKG_VERSION%\ucrt\DLLs\x64\"* "%LIBRARY_BIN%"
if errorlevel 1 exit 1

fix location

fix location


@echo off
setlocal
call "%~DP0setenv.bat"

REM Check if the progress bar GUI will be used.
set nogui=0
set /a nargs=0
for %%a in (%*) do (
    set /a nargs+=1
    if /i "%%a"=="--nogui" set nogui=1
    if /i "%%a"=="-h" (
        set nogui=1
    )
    if /i "%%a"=="--help" (
        set nogui=1
    )
)
if %nogui%==1 (
    call python.exe "%~DP0runtransform.py" %*
) else (
    start "Crawler" /b pythonw.exe "%~DP0runtransform.py" %*
)
endlocal
pause

@echo off
setlocal
call "%~DP0setenv.bat"

REM Check if the progress bar GUI will be used.
set nogui=0
set /a nargs=0
for %%a in (%*) do (
    set /a nargs+=1
    if /i "%%a"=="--nogui" set nogui=1
    if /i "%%a"=="-h" (
        set nogui=1
    )
    if /i "%%a"=="--help" (
        set nogui=1
    )
)
if %nogui%==1 (
    call python.exe "%~DP0runtransform.py" %*
    pause
) else (
    start "Crawler" /b pythonw.exe "%~DP0runtransform.py" %*
)
endlocal

Fix pause bug

Fix pause bug


@echo off

Packages\xunit.runner.console.2.1.0\tools\xunit.console ^
	CarFuelFacts\bin\Debug\CarFuelFacts.dll ^
	-parallel all ^
	-html Result.html ^
	-nologo

pause

remove new line

remove new line


REM =====================================================================
REM Create Certificate
REM =====================================================================
REM This script launches the ServerManager.msc interface

echo.
echo %sectionBreak%
echo Create domain certificate and bind to https port 443 using IIS Manager
echo.
echo When the "Server Manager" interface opens, perform the following^:
echo.
echo 1. Navigate to Server Manager ^> Roles ^> Web Server ^(IIS^)
echo             ^> Internet Information Services ^(IIS^) Manager
echo.
echo 2. From the Connections panel, click on the server node and then
echo             double-click on "Server Certificates" ^(in IIS group^).
echo.
echo 3. From the "Actions" panel, click "Create Domain Certificate".
echo.
echo 4. On the "Distinguished Name Properties" dialog enter...
echo.
echo      Common name^:        %ops_FQDN%
echo      Organization^:       Esri, Inc.
echo      Organization unit^:  Development
echo      City^/locality^:      Redlands
echo      State^/province^:     CA
echo      Country^/region^:     US
echo.
echo      Then click "Next" button.
echo.
echo 5. On the "Online Certificaion Authority" dialog...
echo.
echo    ^- Click "Select", click the "ESRI Enterprise Root" certificate
echo       authority and click "OK".
echo.
echo    ^- Within the "Friendly name" textbox enter "%ops_FQDN% Esri Ent Root CA".
echo.
echo    ^- Click "Finish".
echo.
echo 6. Now you will bind the certificate to https port 443...
echo.
echo    ^- From the "Connections" panel, navigate to Sites ^> Default Web Site
echo.
echo    ^- From the "Actions" panel, click "Bindings".
echo.
echo    ^- On the "Site Bindings" dialog, click "Add",
echo       select "https" in "Type" dropdown, select the certificate you made above
echo       in the "SSL certificate" dropdown and then click "OK".
echo       On the "Site Bindings" dialog, click "Close".
echo.
echo 7. Now close the "Server Manager" interface, click File ^> Exit.
echo.
echo.

%SystemRoot%\system32\ServerManager.msc
PING 127.0.0.1 -n 3 > nul

REM =====================================================================
REM Create Certificate
REM =====================================================================
REM This script launches the ServerManager.msc interface

echo.
echo %sectionBreak%
echo Create domain certificate and bind to https port 443 using IIS Manager
echo.
echo When the "Server Manager" interface opens, perform the following^:
echo.
echo 1. Navigate to Server Manager ^> Roles ^> Web Server ^(IIS^)
echo             ^> Internet Information Services ^(IIS^) Manager
echo.
echo 2. From the Connections panel, click on the server node and then
echo             double-click on "Server Certificates" ^(in IIS group^).
echo.
echo 3. From the "Actions" panel, click "Create Domain Certificate".
echo.
echo 4. On the "Distinguished Name Properties" dialog enter...
echo.
echo    *********************        NOTE        *********************
echo    - Enter the property values as they apply to your organization.
echo    - The "Common name" is composed of the host name and the domain
echo      name of your website, i.e the address you will be using to
echo      access your website.
echo    **************************************************************
echo.
echo      Common name^:        %ops_FQDN%
echo      Organization^:       Esri, Inc.
echo      Organization unit^:  Development
echo      City^/locality^:      Redlands
echo      State^/province^:     CA
echo      Country^/region^:     US
echo.
echo      Then click "Next" button.
echo.
echo 5. On the "Online Certificaion Authority" dialog...
echo.
echo    ^- Click "Select", click the "ESRI Enterprise Root" certificate
echo       authority and click "OK".
echo.
echo    ^- Within the "Friendly name" textbox enter "%ops_FQDN% Esri Ent Root CA".
echo.
echo    ^- Click "Finish".
echo.
echo 6. Now you will bind the certificate to https port 443...
echo.
echo    ^- From the "Connections" panel, navigate to Sites ^> Default Web Site
echo.
echo    ^- From the "Actions" panel, click "Bindings".
echo.
echo    ^- On the "Site Bindings" dialog, click "Add",
echo       select "https" in "Type" dropdown, select the certificate you made above
echo       in the "SSL certificate" dropdown and then click "OK".
echo       On the "Site Bindings" dialog, click "Close".
echo.
echo 7. Now close the "Server Manager" interface, click File ^> Exit.
echo.
echo.

%SystemRoot%\system32\ServerManager.msc
PING 127.0.0.1 -n 3 > nul

Fix to issue #94

Fix to issue #94


xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Pcl\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Pcl\"

xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Droid\bin\Debug\Mvb.Droid.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Droid\bin\Debug\Mvb.Droid.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"

xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Cross.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Ios\bin\Debug\Mvb.Ios.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Ios\bin\Debug\Mvb.Ios.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"

xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Pcl\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Pcl\"

xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Droid\bin\Debug\Mvb.Droid.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Droid\bin\Debug\Mvb.Droid.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Droid\"

xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Cross\bin\Debug\Mvb.Core.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Ios\bin\Debug\Mvb.Ios.dll" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"
xcopy /s "C:\Projects\MVB\Mvb\Mvb.Ios\bin\Debug\Mvb.Ios.pdb" "C:\Users\marcogm.INT\Documents\Nuget DLL Sources\Mvb\Ios\"

Update copy nuget

Update copy nuget


@echo off
md \php-gtk-dist
cd \php-gtk-dist
md php4
md winnt
md winnt\system32
md samples
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 \php\php4\php.ini-dist 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 samples
copy \php\php-gtk\test\gtk.php samples
copy \php\php-gtk\test\hello.php samples
copy \php\php-gtk\test\list.php samples
copy \php\php-gtk\test\scribble.php samples
copy \php\php-gtk\test\testgtkrc samples
copy \php\php-gtk\test\testgtkrc2 samples
copy \php\php-gtk\win32\README.txt
"c:\Program Files\WinZip\WZZip" -ampr php-gtk-0.1.1a-win32.zip
cd \php\php-gtk\win32

@echo off
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 \php\php4\php.ini-dist 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
"c:\Program Files\WinZip\WZZip" -ampr php-gtk-0.1.1a-win32.zip
cd \php\php-gtk\win32

Rename samples to test according to the docs.


@echo off

pushd .

IF EXIST "%ProgramFiles(x86)%" (
  set "ProgramFiles32=%ProgramFiles(x86)%"
) ELSE (
  set "ProgramFiles32=%ProgramFiles%"
)

set VC14VARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat
IF EXIST "%VC14VARS%" (
  set "VS_VCVARS=%VC14VARS%"
) ELSE (
  for %%e in (Enterprise Professional Community BuildTools) do (
    IF EXIST "%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat" (
      set "VS_VCVARS=%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat"
    )
  )
)

IF EXIST "%VS_VCVARS%" (
  IF NOT DEFINED Platform (
    IF EXIST "%ProgramFiles(x86)%" (
      call "%VS_VCVARS%" x64
    ) ELSE (
      ECHO 32-bit Windows is currently unsupported.
      EXIT /B
    )
  )
) ELSE (
  ECHO Visual Studio 2015 or 2017 is not installed.
  ECHO Download and install Visual Studio 2015 or 2017 from https://www.visualstudio.com/
  EXIT /B
)

popd

python mach %*

@echo off

pushd .

IF EXIST "%ProgramFiles(x86)%" (
  set "ProgramFiles32=%ProgramFiles(x86)%"
) ELSE (
  set "ProgramFiles32=%ProgramFiles%"
)

set VC14VARS=%VS140COMNTOOLS%..\..\VC\vcvarsall.bat
IF EXIST "%VC14VARS%" (
  set "VS_VCVARS=%VC14VARS%"
) ELSE (
  for %%e in (Enterprise Professional Community BuildTools) do (
    IF EXIST "%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat" (
      set "VS_VCVARS=%ProgramFiles32%\Microsoft Visual Studio\2017\%%e\VC\Auxiliary\Build\vcvarsall.bat"
    )
  )
)

IF EXIST "%VS_VCVARS%" (
  IF NOT DEFINED Platform (
    IF EXIST "%ProgramFiles(x86)%" (
      call "%VS_VCVARS%" x64
    ) ELSE (
      ECHO 32-bit Windows is currently unsupported.
      EXIT /B 1
    )
  )
) ELSE (
  ECHO Visual Studio 2015 or 2017 is not installed.
  ECHO Download and install Visual Studio 2015 or 2017 from https://www.visualstudio.com/
  EXIT /B 1
)

popd

python mach %*

exit with an error code

mach.bat: exit with an error code


@echo off
setlocal
set PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework\v4.0.30319;%WINDIR%\Microsoft.NET\Framework\v3.5

:getopts
if "%1"=="" (goto :default) else (goto :%1)
goto :exit

:default
goto :debug

:debug
set _target=Build
set _flavour=Debug
goto :main

:clean-debug
set _target=Clean
set _flavour=Debug
goto :main

:stage-debug
set _target=Stage
set _flavour=Debug
goto :main

:release
set _target=Build
set _flavour=Release
goto :main

:clean-release
set _target=Clean
set _flavour=Release
goto :main

:stage-release
set _target=Stage
set _flavour=Release
goto :main

:package-release
set _target=Package
set _flavour=Release
goto :main

:clean
echo No target 'clean'. Try 'clean-debug' or 'clean-release'.
goto :exit

:stage
echo No target 'stage'. Try 'stage-debug' or 'stage-release'.
goto :exit

:package
echo No target 'package'. Try 'package-release'.
goto :exit

:test
echo No target 'test'. Try 'test-smoke', 'test-ironpython', 'test-cpython', or 'test-all'.
goto :exit

:test-smoke
pushd bin\v2Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net35.xml
popd
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net40.xml
popd
pushd bin\v45Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net45.xml
popd
goto :exit

:test-ironpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:IronPython -result:ironpython-result.xml
popd
goto :exit

:test-cpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython,AllCPython -result:cpython-result.xml
popd
goto :exit

:test-all
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -result:all-result.xml
popd
goto :exit

:restore
set _target=RestoreReferences
set _flavour=Release
goto :main

:distclean
msbuild /t:DistClean /p:BuildFlavour=Release /verbosity:minimal /nologo
msbuild /t:DistClean /p:BuildFlavour=Debug /verbosity:minimal /nologo
goto :main

:main
msbuild Build.proj /t:%_target% /p:BuildFlavour=%_flavour% /verbosity:minimal /nologo
goto :exit

:exit
endlocal

@echo off
setlocal
set PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework\v4.0.30319;%WINDIR%\Microsoft.NET\Framework\v3.5

:getopts
if "%1"=="" (goto :default) else (goto :%1)
goto :exit

:default
goto :debug

:debug
set _target=Build
set _flavour=Debug
goto :main

:clean-debug
set _target=Clean
set _flavour=Debug
goto :main

:stage-debug
set _target=Stage
set _flavour=Debug
goto :main

:release
set _target=Build
set _flavour=Release
goto :main

:clean-release
set _target=Clean
set _flavour=Release
goto :main

:stage-release
set _target=Stage
set _flavour=Release
goto :main

:package-release
set _target=Package
set _flavour=Release
goto :main

:clean
echo No target 'clean'. Try 'clean-debug' or 'clean-release'.
goto :exit

:stage
echo No target 'stage'. Try 'stage-debug' or 'stage-release'.
goto :exit

:package
echo No target 'package'. Try 'package-release'.
goto :exit

:test
echo No target 'test'. Try 'test-smoke', 'test-ironpython', 'test-cpython', or 'test-all'.
goto :exit

:test-smoke
pushd bin\v2Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net35.xml
popd
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net40.xml
popd
pushd bin\v45Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython -result:smoke-result-net45.xml
popd
goto :exit

:test-ironpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:IronPython -result:ironpython-result.xml
popd
goto :exit

:test-cpython
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -include:StandardCPython,AllCPython -result:cpython-result.xml
popd
goto :exit

:test-all
pushd bin\Debug
IronPythonTestConsole.exe IronPythonTest -result:all-result.xml
popd
goto :exit

:test-custom
pushd bin\Debug
shift
IronPythonTestConsole.exe IronPythonTest -result:custom-result.xml %1 %2 %3 %4 %5 %6 %7 %8 %9
popd
goto :exit

:restore
set _target=RestoreReferences
set _flavour=Release
goto :main

:distclean
msbuild /t:DistClean /p:BuildFlavour=Release /verbosity:minimal /nologo
msbuild /t:DistClean /p:BuildFlavour=Debug /verbosity:minimal /nologo
goto :main

:main
msbuild Build.proj /t:%_target% /p:BuildFlavour=%_flavour% /verbosity:minimal /nologo
goto :exit

:exit
endlocal

Add a make.cmd command for custom test runs.


setlocal

if exist "%~dp0Misc\version.cmd" call "%~dp0Misc\version.cmd"

if not "%1" == "" goto %1

:build
        set "VERSION=%DATE:/=%"
        set X_VERSION=
        goto _build

:release
        for /F %%I in (%~dp0Misc\version.txt) do set VERSION=%%I
        set "X_VERSION=-X main.version %VERSION%"

:_build
        pushd "%~dp0main"
        if not exist nyagos.syso for %%I in (windres.exe) do if not "%%~$PATH:I" == "" windres.exe --output-format=coff -o nyagos.syso nyagos.rc
        for /F %%V in ('git log -1 --pretty^=format:%%H') do go build -o "%~dp0nyagos.exe" -ldflags "-X main.stamp %DATE% -X main.commit %%V %X_VERSION%"
        popd
        goto end

:fmt
        for /R . %%I in (*~) do del %%I
        for /F %%I IN ('dir /s /b /aa *.go') do go fmt "%%I" & attrib -A "%%I"
        goto end

:clean
        for %%I in (nyagos.exe nyagos.syso version.now) do if exist %%I del %%I
        goto end

:sweep
        for /R %%I in (*~) do del %%I
        goto end

:get
        go get -u github.com/mattn/go-runewidth
        go get -u github.com/shiena/ansicolor
        go get -u github.com/atotto/clipboard
        goto end

:package
        zip -9 "nyagos-%VERSION%%2.zip" nyagos.exe lua53.dll lua.exe nyagos.lua .nyagos specialfolders.vbs lnk.vbs makeicon.cmd nyagos.d\*.lua readme.md
        zip -9j "nyagos-%VERSION%%2.zip" Doc\nyagos_*.md
        goto end

:install
        if not "%2" == "" set "INSTALLDIR=%2"
        if "%INSTALLDIR%" == "" (
            echo Please %0.cmd install PATH\TO\BIN, once
            goto end
        )
        if not exist "%INSTALLDIR%" (
            echo Please %0.cmd install EXIST\PATH\TO\BIN,  once
            goto end
        )
        start %~0 install.
        goto end

:install.
        robocopy nyagos.d "%INSTALLDIR%\nyagos.d" /E
        taskkill /im nyagos.exe
        copy nyagos.exe "%INSTALLDIR%\."
        copy nyagos.lua "%INSTALLDIR%\."
        if not exist "%INSTALLDIR%\lua53.dll" copy lua53.dll "%INSTALLDIR%\."
        goto end

:icon
        makeicon.cmd
        goto end

:help
        echo Usage for make.cmd
        echo  %0          : Equals to '%0 build'
        echo  %0 build    : Build nyagos.exe as snapshot (ignore version.txt)
        echo  %0 release  : Build nyagos.exe as release  (see version.txt)
        echo  %0 fmt      : Format all source files with 'go fmt'
        echo  %0 clean    : Delete nyagos.exe and nyagos.syso
        echo  %0 package  : Make the package zip-file
        echo  %0 get      : Do 'go get' for each github library
        echo  %0 upgrade  : Do 'git pull' for each github library
        echo  %0 help     : Print help
        echo  %0 install INSTALLDIR
        echo     : Copy binaries to INSTALLDIR
        echo  %0 install
        echo     : Copy binaries to last INSTALLDIR
:end
        echo off
        ( echo @set "VERSION=%VERSION%"
          echo @set "X_VERSION=%X_VERSION%"
          echo @set "INSTALLDIR=%INSTALLDIR%"
        ) > "%~dp0Misc\version.cmd"

setlocal

if exist "%~dp0Misc\version.cmd" call "%~dp0Misc\version.cmd"

if not "%1" == "" goto %1

:build
        set "VERSION=%DATE:/=%"
        set X_VERSION=
        goto _build

:release
        for /F %%I in (%~dp0Misc\version.txt) do set VERSION=%%I
        set "X_VERSION=-X main.version %VERSION%"

:_build
        pushd "%~dp0main"
        if not exist nyagos.syso for %%I in (windres.exe) do if not "%%~$PATH:I" == "" windres.exe --output-format=coff -o nyagos.syso nyagos.rc
        for /F %%V in ('git log -1 --pretty^=format:%%H') do go build -o "%~dp0nyagos.exe" -ldflags "-X main.stamp %DATE% -X main.commit %%V %X_VERSION%"
        popd
        goto end

:fmt
        for /R . %%I in (*~) do del %%I
        for /F %%I IN ('dir /s /b /aa *.go') do go fmt "%%I" & attrib -A "%%I"
        goto end

:clean
        for %%I in (nyagos.exe nyagos.syso version.now) do if exist %%I del %%I
        goto end

:sweep
        for /R %%I in (*~) do del %%I
        goto end

:get
        go get -u github.com/mattn/go-runewidth
        go get -u github.com/shiena/ansicolor
        go get -u github.com/atotto/clipboard
        goto end

:package
        zip -9 "nyagos-%VERSION%%2.zip" nyagos.exe lua53.dll lua.exe nyagos.lua .nyagos specialfolders.vbs lnk.vbs makeicon.cmd nyagos.d\*.lua readme.md
        zip -9j "nyagos-%VERSION%%2.zip" Doc\nyagos_*.md
        goto end

:install
        if not "%2" == "" set "INSTALLDIR=%2"
        if "%INSTALLDIR%" == "" (
            echo Please %0.cmd install PATH\TO\BIN, once
            goto end
        )
        if not exist "%INSTALLDIR%" (
            echo Please %0.cmd install EXIST\PATH\TO\BIN,  once
            goto end
        )
        start %~0 install.
        goto end

:install.
        robocopy nyagos.d "%INSTALLDIR%\nyagos.d" /E
        taskkill /F /im nyagos.exe
        copy nyagos.exe "%INSTALLDIR%\."
        copy nyagos.lua "%INSTALLDIR%\."
        if not exist "%INSTALLDIR%\lua53.dll" copy lua53.dll "%INSTALLDIR%\."
        goto end

:icon
        makeicon.cmd
        goto end

:help
        echo Usage for make.cmd
        echo  %0          : Equals to '%0 build'
        echo  %0 build    : Build nyagos.exe as snapshot (ignore version.txt)
        echo  %0 release  : Build nyagos.exe as release  (see version.txt)
        echo  %0 fmt      : Format all source files with 'go fmt'
        echo  %0 clean    : Delete nyagos.exe and nyagos.syso
        echo  %0 package  : Make the package zip-file
        echo  %0 get      : Do 'go get' for each github library
        echo  %0 upgrade  : Do 'git pull' for each github library
        echo  %0 help     : Print help
        echo  %0 install INSTALLDIR
        echo     : Copy binaries to INSTALLDIR
        echo  %0 install
        echo     : Copy binaries to last INSTALLDIR
:end
        echo off
        ( echo @set "VERSION=%VERSION%"
          echo @set "X_VERSION=%X_VERSION%"
          echo @set "INSTALLDIR=%INSTALLDIR%"
        ) > "%~dp0Misc\version.cmd"

Add taskkill option /F on make install

Add taskkill option /F on make install


@if "%DEBUG%" == "" @echo off
setlocal EnableDelayedExpansion

set SOURCE_DIR=%CD%
set BUILD_DIR=%CD%\cppbuild\Release
set ZLIB_ZIP=%CD%\cppbuild\zlib1211.zip
set BUILD_DIR=%CD%\cppbuild\Release
set ZLIB_BUILD_DIR=%BUILD_DIR%\zlib-build
set ZLIB_INSTALL_DIR=%BUILD_DIR%\zlib64
set EXTRA_CMAKE_ARGS=

for %%o in (%*) do (

    if "%%o"=="--help" (
        echo %0 cppbuild.cmd [--c-warnings-as-errors] [--cxx-warnings-as-errors] [--debug-build] [--aeron-git-url $GIT_URL] [--aeron-git-tag $GIT_TAG]
        exit /b
    )

    if "%%o"=="--c-warnings-as-errors" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DC_WARNINGS_AS_ERRORS=ON
    )

    if "%%o"=="--cxx-warnings-as-errors" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DCXX_WARNINGS_AS_ERRORS=ON
    )

    if "%%o"=="--debug-build" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DCMAKE_BUILD_TYPE=Debug
    )

    if defined gitUrl (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DAERON_GIT_URL=%%o
        set "gitUrl="
    )

    if "%%o"=="--aeron-git-url" (
        set gitUrl=1
    )

    if defined gitTag (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DAERON_GIT_TAG=%%o
        set "gitTag="
    )

    if "%%o"=="--aeron-git-tag" (
        set gitTag=1
    )
)

call %CD%\cppbuild\vs-helper.cmd
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

if EXIST %BUILD_DIR% rd /S /Q %BUILD_DIR%

md %BUILD_DIR%
pushd %BUILD_DIR%
md %ZLIB_BUILD_DIR%
pushd %ZLIB_BUILD_DIR%
7z x %ZLIB_ZIP%
pushd zlib-1.2.11
md build
pushd build

cmake -DCMAKE_INSTALL_PREFIX=%ZLIB_INSTALL_DIR% ..
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

cmake --build . --target install
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

pushd %BUILD_DIR%
cmake %EXTRA_CMAKE_ARGS% %SOURCE_DIR%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

cmake --build . --config Release
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

@if "%DEBUG%" == "" @echo off
setlocal EnableDelayedExpansion

set "DIR=%~dp0"
set SOURCE_DIR=%DIR%
set BUILD_DIR=%DIR%\cppbuild\Release
set ZLIB_ZIP=%DIR%\cppbuild\zlib1211.zip
set BUILD_DIR=%DIR%\cppbuild\Release
set ZLIB_BUILD_DIR=%BUILD_DIR%\zlib-build
set ZLIB_INSTALL_DIR=%BUILD_DIR%\zlib64
set EXTRA_CMAKE_ARGS=

:loop
if not "%1"=="" (
    if "%1"=="--help" (
        echo %0 [--c-warnings-as-errors] [--cxx-warnings-as-errors] [--debug-build] [--aeron-git-url $GIT_URL] [--aeron-git-tag $GIT_TAG]
        exit /b
    )

    if "%1"=="--c-warnings-as-errors" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DC_WARNINGS_AS_ERRORS=ON
    )

    if "%1"=="--cxx-warnings-as-errors" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DCXX_WARNINGS_AS_ERRORS=ON
    )

    if "%1"=="--debug-build" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DCMAKE_BUILD_TYPE=Debug
    )

    if "%1"=="--aeron-git-url" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DAERON_GIT_URL=%2
        shift
    )

    if "%1"=="--aeron-git-tag" (
        set EXTRA_CMAKE_ARGS=!EXTRA_CMAKE_ARGS! -DAERON_GIT_TAG=%2
    )

    shift
    goto :loop
)

call %DIR%\cppbuild\vs-helper.cmd
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

if EXIST %BUILD_DIR% rd /S /Q %BUILD_DIR%

md %BUILD_DIR%
pushd %BUILD_DIR%
md %ZLIB_BUILD_DIR%
pushd %ZLIB_BUILD_DIR%
7z x %ZLIB_ZIP%
pushd zlib-1.2.11
md build
pushd build

cmake -DCMAKE_INSTALL_PREFIX=%ZLIB_INSTALL_DIR% ..
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

cmake --build . --target install
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

pushd %BUILD_DIR%
cmake %EXTRA_CMAKE_ARGS% %SOURCE_DIR%
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

cmake --build . --config Release
if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%

Simplify command line options parsing.

[C] Simplify command line options parsing.


@echo off

ECHO Adding to the registry the WakaTime package...

REM SQL SERVER MANAGEMENT STUDIO 2012
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\11.0\Packages" > nul 2> nul
if %errorlevel% equ 1 (
    REG ADD "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\11.0\Packages\{52d9c3ff-c893-408e-95e4-d7484ec7fa47}" /v SkipLoading /t REG_DWORD /d 1
)

REM SQL SERVER MANAGEMENT STUDIO 2014
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\12.0\Packages" > nul 2> nul
if %errorlevel% equ 1 (
    REG ADD "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\12.0\Packages\{52d9c3ff-c893-408e-95e4-d7484ec7fa47}" /v SkipLoading /t REG_DWORD /d 1
)

REM SQL SERVER MANAGEMENT STUDIO 2016
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\13.0\Packages" > nul 2> nul
if %errorlevel% equ 1 (
    REG ADD "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\13.0\Packages\{52d9c3ff-c893-408e-95e4-d7484ec7fa47}" /v SkipLoading /t REG_DWORD /d 1
)

REM SQL SERVER MANAGEMENT STUDIO 2017
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\14.0\Packages" > nul 2> nul
if %errorlevel% equ 1 (
    REG ADD "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\14.0\Packages\{52d9c3ff-c893-408e-95e4-d7484ec7fa47}" /v SkipLoading /t REG_DWORD /d 1
)

REM SQL SERVER MANAGEMENT STUDIO 2018
REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\15.0\Packages" > nul 2> nul
if %errorlevel% equ 1 (
    REG ADD "HKEY_CURRENT_USER\Software\Microsoft\SQL Server Management Studio\15.0\Packages\{52d9c3ff-c893-408e-95e4-d7484ec7fa47}" /v SkipLoading /t REG_DWORD /d 1
)

ECHO All packages were successfully added

Add package into registry via script

Add package into registry via script


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

:: To allow this powershell script to run if it was a byproduct of downloading
:: and unzipping the depot_tools.zip distribution, we clear the Zone.Identifier
:: alternate data stream. This is equivalent to clicking the "Unblock" button
:: in the file's properties dialog.
echo.>"%~dp0\cipd.ps1:Zone.Identifier"

powershell -NoProfile -ExecutionPolicy RemoteSigned -Command "%~dp0\cipd.ps1" %* < nul

Fix hanging powershell

Fix hanging powershell

Powershell can try to read additional commands from stdin. The `< nul` makes
sure it reads an EOF and properly returns.

The motivation for this change was a hanging WebRTC build job on an automated
build machine.

R=40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org, vadimsh@chromium.org

Details:
https://stackoverflow.com/questions/2041799/powershell-script-gets-stuck-doesnt-exit-when-called-from-batch-file
Bug:
Change-Id: I51df3927644ca3a7e212089e0c414e2e8eb0c02a
Reviewed-on: https://chromium-review.googlesource.com/549317
Reviewed-by: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org>
Commit-Queue: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org>


@echo off
cd %~dp0..

rake -f build\build.rb "build:no_test_build[., SevenDigital.Messaging.sln, build, full, local, Release]"

@echo off
cd %~dp0

rake -f build\build.rb "build:no_test_build[., SevenDigital.Messaging.sln, build, full, local, Release]"
pause

Update build.cmd to not cd up

Update build.cmd to not cd up


set pgbin_path=C:\Program Files\PostgreSQL\8.4\bin
set study_db_name=enter_site_study_database_name_here
REM 2. drop oc database using
REM user clinica password is set in the %APPDATA%\postgresql\pgpass.conf (where %APPDATA% refers to the Application Data subdirectory in the user's profile).
REM --------------------------------------------------
"%pgbin_path%\dropdb.exe" -U clinica -h localhost %study_db_name%

Create drop.cmd

Create drop.cmd


:: Copyright (c) 2018 Google LLC.
::
:: 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.
::
:: Windows Build Script.

@echo on

set BUILD_ROOT=%cd%
set SRC=%cd%\github\SPIRV-Tools
set BUILD_TYPE=%1
set VS_VERSION=%2

:: Force usage of python 3.6
set PATH=C:\python36;%PATH%

cd %SRC%
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
git clone https://github.com/google/googletest          external/googletest
cd external && cd googletest && git reset --hard 1fb1bb23bb8418dc73a5a9a82bbed31dc610fec7 && cd .. && cd ..
git clone --depth=1 https://github.com/google/effcee              external/effcee
git clone --depth=1 https://github.com/google/re2                 external/re2
git clone --depth=1 --branch v3.13.0 https://github.com/protocolbuffers/protobuf external/protobuf

:: #########################################
:: set up msvc build env
:: #########################################
if %VS_VERSION% == 2017 (
  call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
  echo "Using VS 2017..."
) else if %VS_VERSION% == 2015 (
  call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
  echo "Using VS 2015..."
) else if %VS_VERSION% == 2013 (
  call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
  echo "Using VS 2013..."
)

cd %SRC%
mkdir build
cd build

:: #########################################
:: Start building.
:: #########################################
echo "Starting build... %DATE% %TIME%"
if "%KOKORO_GITHUB_COMMIT%." == "." (
  set BUILD_SHA=%KOKORO_GITHUB_PULL_REQUEST_COMMIT%
) else (
  set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
)

set CMAKE_FLAGS=-DCMAKE_INSTALL_PREFIX=%KOKORO_ARTIFACTS_DIR%\install -GNinja -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DRE2_BUILD_TESTING=OFF -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe

:: Skip building tests for VS2013
if %VS_VERSION% == 2013 (
  set CMAKE_FLAGS=%CMAKE_FLAGS% -DSPIRV_SKIP_TESTS=ON
)

:: Skip building spirv-fuzz for VS2013; it relies on protobufs which VS2013 cannot handle.
if %VS_VERSION% NEQ 2013 (
  set CMAKE_FLAGS=%CMAKE_FLAGS% -DSPIRV_BUILD_FUZZER=ON
)

cmake %CMAKE_FLAGS% ..

if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

echo "Build everything... %DATE% %TIME%"
ninja
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
echo "Build Completed %DATE% %TIME%"

:: This lets us use !ERRORLEVEL! inside an IF ... () and get the actual error at that point.
setlocal ENABLEDELAYEDEXPANSION

:: ################################################
:: Run the tests (We no longer run tests on VS2013)
:: ################################################
echo "Running Tests... %DATE% %TIME%"
if %VS_VERSION% NEQ 2013 (
  ctest -C %BUILD_TYPE% --output-on-failure --timeout 300
  if !ERRORLEVEL! NEQ 0 exit /b !ERRORLEVEL!
)
echo "Tests Completed %DATE% %TIME%"

:: ################################################
:: Install and package.
:: ################################################
ninja install
cd %KOKORO_ARTIFACTS_DIR%
zip -r install.zip install

:: Clean up some directories.
rm -rf %SRC%\build
rm -rf %SRC%\external

exit /b 0

:: Copyright (c) 2018 Google LLC.
::
:: 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.
::
:: Windows Build Script.

@echo on

set BUILD_ROOT=%cd%
set SRC=%cd%\github\SPIRV-Tools
set BUILD_TYPE=%1
set VS_VERSION=%2

:: Force usage of python 3.6
set PATH=C:\python36;"C:\Program Files\CMake\bin";%PATH%

cd %SRC%
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Headers external/spirv-headers
git clone https://github.com/google/googletest          external/googletest
cd external && cd googletest && git reset --hard 1fb1bb23bb8418dc73a5a9a82bbed31dc610fec7 && cd .. && cd ..
git clone --depth=1 https://github.com/google/effcee              external/effcee
git clone --depth=1 https://github.com/google/re2                 external/re2
git clone --depth=1 --branch v3.13.0 https://github.com/protocolbuffers/protobuf external/protobuf

:: #########################################
:: set up msvc build env
:: #########################################
if %VS_VERSION% == 2017 (
  call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
  echo "Using VS 2017..."
) else if %VS_VERSION% == 2015 (
  call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
  echo "Using VS 2015..."
) else if %VS_VERSION% == 2013 (
  call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x64
  echo "Using VS 2013..."
)

cd %SRC%
mkdir build
cd build

:: #########################################
:: Start building.
:: #########################################
echo "Starting build... %DATE% %TIME%"
if "%KOKORO_GITHUB_COMMIT%." == "." (
  set BUILD_SHA=%KOKORO_GITHUB_PULL_REQUEST_COMMIT%
) else (
  set BUILD_SHA=%KOKORO_GITHUB_COMMIT%
)

set CMAKE_FLAGS=-DCMAKE_INSTALL_PREFIX=%KOKORO_ARTIFACTS_DIR%\install -GNinja -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DRE2_BUILD_TESTING=OFF -DCMAKE_C_COMPILER=cl.exe -DCMAKE_CXX_COMPILER=cl.exe

:: Skip building tests for VS2013
if %VS_VERSION% == 2013 (
  set CMAKE_FLAGS=%CMAKE_FLAGS% -DSPIRV_SKIP_TESTS=ON
)

:: Skip building spirv-fuzz for VS2013; it relies on protobufs which VS2013 cannot handle.
if %VS_VERSION% NEQ 2013 (
  set CMAKE_FLAGS=%CMAKE_FLAGS% -DSPIRV_BUILD_FUZZER=ON
)

cmake %CMAKE_FLAGS% ..

if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%

echo "Build everything... %DATE% %TIME%"
ninja
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
echo "Build Completed %DATE% %TIME%"

:: This lets us use !ERRORLEVEL! inside an IF ... () and get the actual error at that point.
setlocal ENABLEDELAYEDEXPANSION

:: ################################################
:: Run the tests (We no longer run tests on VS2013)
:: ################################################
echo "Running Tests... %DATE% %TIME%"
if %VS_VERSION% NEQ 2013 (
  ctest -C %BUILD_TYPE% --output-on-failure --timeout 300
  if !ERRORLEVEL! NEQ 0 exit /b !ERRORLEVEL!
)
echo "Tests Completed %DATE% %TIME%"

:: ################################################
:: Install and package.
:: ################################################
ninja install
cd %KOKORO_ARTIFACTS_DIR%
zip -r install.zip install

:: Clean up some directories.
rm -rf %SRC%\build
rm -rf %SRC%\external

exit /b 0

Add cmake to windows path for kokoro (#4129)

* Add cmake to windows path for kokoro


Add batch file for Windows users.

Add batch file for Windows users.


ghci.exe Main.hs -w -fwarn-unused-binds -fwarn-unused-imports

Add a small ghci.bat driver script

Add a small ghci.bat driver script


::
:: Copyright (c) 2008-2020 the Urho3D project.
::
:: Permission is hereby granted, free of charge, to any person obtaining a copy
:: of this software and associated documentation files (the "Software"), to deal
:: in the Software without restriction, including without limitation the rights
:: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
:: copies of the Software, and to permit persons to whom the Software is
:: furnished to do so, subject to the following conditions:
::
:: The above copyright notice and this permission notice shall be included in
:: all copies or substantial portions of the Software.
::
:: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
:: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
:: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
:: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
:: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
:: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
:: THE SOFTWARE.
::

@"%~dp0cmake_generic.bat" %* -VS=16 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION='10.0' -DVS_WINDOWS_TARGET_PLATFORM_MIN_VERSION='10.0.10240.0'

::
:: Copyright (c) 2008-2020 the Urho3D project.
::
:: Permission is hereby granted, free of charge, to any person obtaining a copy
:: of this software and associated documentation files (the "Software"), to deal
:: in the Software without restriction, including without limitation the rights
:: to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
:: copies of the Software, and to permit persons to whom the Software is
:: furnished to do so, subject to the following conditions:
::
:: The above copyright notice and this permission notice shall be included in
:: all copies or substantial portions of the Software.
::
:: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
:: IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
:: FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
:: AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
:: LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
:: OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
:: THE SOFTWARE.
::

@"%~dp0cmake_generic.bat" %* -VS=16 -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION='10.0.10240.0'

Misc: Remove unused parameter from cmake_UWP.bat


@echo off

rem   $Id$
rem   Copyright 2001-2004,2006 The Apache Software Foundation
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   ===============================================================
rem   Enviroment variables
rem   SERVER_PORT (optional) - define the rmiregistry and server port
rem
rem   JVM_ARGS - Java flags - these are handled by jmeter.bat
rem
rem   ===============================================================

REM Protect environment against changes if possible:
if "%OS%"=="Windows_NT" setlocal

rem Need to check if we are using the 4NT shell...
rem [Does that support the ~ constructs?]
if "%eval[2+2]" == "4" goto winNT1
if exist jmeter-server.bat goto winNT1
echo Changing to JMeter home directory
cd /D %~dp0
:winNT1

if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo Could not find ApacheJmeter_core.jar ...
REM Try to work out JMETER_HOME
echo ... Trying JMETER_HOME=..
set JMETER_HOME=..
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo ... trying JMETER_HOME=.
set JMETER_HOME=.
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo Cannot determine JMETER_HOME !
goto exit

:setCP
echo Found ApacheJMeter_core.jar
set CLASSPATH=%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-1.2.jar

START rmiregistry %SERVER_PORT%

if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart

rem Need to check if we are using the 4NT shell...
if "%eval[2+2]" == "4" goto setup4NT

rem On NT/2K grab all arguments at once
set JMETER_CMD_LINE_ARGS=%*
goto doneStart

:setup4NT
set JMETER_CMD_LINE_ARGS=%$
goto doneStart

:win9xStart
rem Slurp the command line arguments.  This loop allows for an unlimited number of
rem agruments (up to the command line limit, anyway).

set JMETER_CMD_LINE_ARGS=

:setupArgs
if %1a==a goto doneStart
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
shift
goto setupArgs

:doneStart
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.

if not "%SERVER_PORT%" == "" goto port

jmeter -s %JMETER_CMD_LINE_ARGS%
goto end

:port
jmeter -Dserver_port=%SERVER_PORT% -s %JMETER_CMD_LINE_ARGS%

:end

:exit

@echo off

rem   $Id$
rem   Copyright 2001-2004,2006 The Apache Software Foundation
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   ===============================================================
rem   Enviroment variables
rem   SERVER_PORT (optional) - define the rmiregistry and server port
rem
rem   JVM_ARGS - Java flags - these are handled by jmeter.bat
rem
rem   ===============================================================

REM Protect environment against changes if possible:
if "%OS%"=="Windows_NT" setlocal

rem Need to check if we are using the 4NT shell...
rem [Does that support the ~ constructs?]
if "%eval[2+2]" == "4" goto winNT1
if exist jmeter-server.bat goto winNT1
echo Changing to JMeter home directory
cd /D %~dp0
:winNT1

if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo Could not find ApacheJmeter_core.jar ...
REM Try to work out JMETER_HOME
echo ... Trying JMETER_HOME=..
set JMETER_HOME=..
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo ... trying JMETER_HOME=.
set JMETER_HOME=.
if exist %JMETER_HOME%\lib\ext\ApacheJMeter_core.jar goto setCP
echo Cannot determine JMETER_HOME !
goto exit

:setCP
echo Found ApacheJMeter_core.jar
set CLASSPATH=%JMETER_HOME%\lib\ext\ApacheJMeter_core.jar;%JMETER_HOME%\lib\jorphan.jar;%JMETER_HOME%\lib\logkit-1.2.jar

START rmiregistry %SERVER_PORT%

if not "%OS%"=="Windows_NT" goto win9xStart
:winNTStart

rem Need to check if we are using the 4NT shell...
if "%eval[2+2]" == "4" goto setup4NT

rem On NT/2K grab all arguments at once
set JMETER_CMD_LINE_ARGS=%*
goto doneStart

:setup4NT
set JMETER_CMD_LINE_ARGS=%$
goto doneStart

:win9xStart
rem Slurp the command line arguments.  This loop allows for an unlimited number of
rem agruments (up to the command line limit, anyway).

set JMETER_CMD_LINE_ARGS=

:setupArgs
if %1a==a goto doneStart
set JMETER_CMD_LINE_ARGS=%JMETER_CMD_LINE_ARGS% %1
shift
goto setupArgs

:doneStart
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.

if not "%SERVER_PORT%" == "" goto port

call jmeter -s %JMETER_CMD_LINE_ARGS%
goto end

:port
call jmeter -Dserver_port=%SERVER_PORT% -s %JMETER_CMD_LINE_ARGS%

:end

taskkill /F /IM rmiregistry.exe

:exit

Stop RMI registry when server exits

Stop RMI registry when server exits

git-svn-id: https://svn.apache.org/repos/asf/jakarta/jmeter/branches/rel-2-1@391702 13f79535-47bb-0310-9956-ffa450edef68

Former-commit-id: 48e86c59bdcbdd3dc4e18a2c2c26643a762db5c2


@ECHO off
SETLOCAL EnableExtensions
SETLOCAL EnableDelayedExpansion

:: ### Version History -- X.Y.Z_YYYYMMDD-hhmm Author Description
SET version=1.0.0_20150930-0600 &: Peter Kirschner   downloading,extract,configure and launch eclipse-installer with jre
SET version=%version: =%
SET title=idefixInstaller script %~nx0 - version %version%
TITLE %title%
SET POWERSHELL_TITLE=$Host.UI.RawUI.WindowTitle='%title%'

IF "%1"=="" (
	SET BRANCH=peterkir
) ELSE (
	SET BRANCH=%1
)

:: ###########################################################
SET SCRIPTNAME=%~n0
SET SCRIPT_PATH=%~dp0
SET SCRIPT_PATH=%SCRIPT_PATH:~0,-1%

SET IDEFIX_NAME=idefixInstaller
SET DL=%SCRIPT_PATH%\.download
:: folder must exists for powershell download requests
MKDIR %DL% 2>&1 > NUL

SET BRANCH=master
SET GITHUB_IO=http://peterkir.github.io/org.eclipse.oomph/
SET GITHUB_IO_LATEST=latest

SET GITHUB_IO_BOOT=http://peterkir.github.io/idefix/bootstrap/peterkir/win32

::ECHO.
::ECHO # workaroung for NTLMv2 ProxyAuth - starting IE
::ECHO.
::SET IE_CMD="C:\Program Files (x86)\Internet Explorer\iexplore.exe www.google.de"
::SET IE_DIR="%TEMP%"
::FOR /F "tokens=2 delims=;=" %%a IN (
::	'WMIC process call create %IE_CMD%^, %IE_DIR% ^| find "ProcessId"'
::) DO (
::	SET IE_PID=%%a
::)
::ECHO browser launched with PID %IE_PID%
:: TODO search an kill the IE if not previously open WMIC process %IE_PID% delete

SET JAVA_CMD=setupJavaSDK.cmd
ECHO.
ECHO # downloading and configuring Java via %GITHUB_IO_BOOT%/%JAVA_CMD%
ECHO.
powershell -nologo -noprofile  -command "%POWERSHELL_TITLE%;if ( Test-Path %DL%\%JAVA_CMD% ) { Write-Output 'skipping download, cause file exists - %DL%\%JAVA_CMD%' } else {(New-Object System.Net.WebClient).DownloadFile('%GITHUB_IO_BOOT%/%JAVA_CMD%','%DL%\%JAVA_CMD%')}"
IF "%ERRORLEVEL%"=="" (
	ECHO failing downloading file %GITHUB_IO_BOOT%/%JAVA_CMD%
	GOTO END
)

:: installing JDKs into %SCRIPT_PATH%/java
CALL %DL%\%JAVA_CMD% %SCRIPT_PATH%

FOR %%a IN ('DIR /B %SCRIPT_PATH%\java\1.8') do SET JAVA1.8=%SCRIPT_PATH%\java\1.8\%%a

ECHO.
ECHO # downloading and preparing %ECLIPSE_INSTALLER%
ECHO.

:: download of a file with powershell - http://superuser.com/a/423789/344922
ECHO retrieving latest build
powershell -nologo -noprofile -command "%POWERSHELL_TITLE%; (New-Object System.Net.WebClient).DownloadFile('%GITHUB_IO%/%BRANCH%/%GITHUB_IO_LATEST%','%DL%\%BRANCH%_%GITHUB_IO_LATEST%')"
SET /P LATEST=<%DL%\%BRANCH%_%GITHUB_IO_LATEST%

SET BINTRAY_BUILD_ROOT=https://dl.bintray.com/peterkir/generic/org.eclipse.oomph/1.3.0/%BRANCH%/%LATEST%

SET ECLIPSE_INSTALLER_WEB=%BINTRAY_BUILD_ROOT%/products
SET ECLIPSE_INSTALLER_ARCHIVE=org.eclipse.oomph.setup.installer.product-win32.win32.x86_64.zip
SET ECLIPSE_INSTALLER=%ECLIPSE_INSTALLER_ARCHIVE:~0,-4%

ECHO downloading archive %ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%
powershell -nologo -noprofile -command "%POWERSHELL_TITLE%;if ( Test-Path %DL%\%ECLIPSE_INSTALLER_ARCHIVE% ) { Write-Output 'skipping download, cause file exists - %DL%\%ECLIPSE_INSTALLER_ARCHIVE%' } else {(New-Object System.Net.WebClient).DownloadFile('%ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%','%DL%\%ECLIPSE_INSTALLER_ARCHIVE%')}"
IF "%ERRORLEVEL%"=="" (
	ECHO failing downloading file %ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%
	GOTO END
)

ECHO extracting ECLIPSE_INSTALLER archive to %ECLIPSE_INSTALLER%
powershell -nologo -noprofile  -command "%POWERSHELL_TITLE%;if ( Test-Path '%SCRIPT_PATH%\%IDEFIX_NAME%' -PathType Container )  { Write-Output 'skipping extraction, cause folder exists - %SCRIPT_PATH%\%IDEFIX_NAME%' } else {Add-Type -A System.IO.Compression.FileSystem; [IO.Compression.ZipFile]::ExtractToDirectory('%DL%\%ECLIPSE_INSTALLER_ARCHIVE%', '%SCRIPT_PATH%\%IDEFIX_NAME%')}"

XCOPY /E /H %SCRIPT_PATH%\java\1.8\jre %SCRIPT_PATH%\%IDEFIX_NAME%\jre

SET "IDEFIX_HOME=%SCRIPT_PATH%"
MKDIR %IDEFIX_HOME% 2>&1 > NUL

SET IDEFIX_HOME=%IDEFIX_HOME:\=/%
SET IDEFIX_INI=%SCRIPT_PATH%\%IDEFIX_NAME%\eclipse-inst.ini

ECHO adding vmArgs to ini file
:: allow installation of unsigned bundles
ECHO -Declipse.p2.unsignedPolicy=allow >> %IDEFIX_INI%

:: hidden p2 options (configured to default)
ECHO -Declipse.p2.max.threads=4  >> %IDEFIX_INI%
ECHO -Declipse.p2.force.threading=true >> %IDEFIX_INI%
ECHO -Declipse.p2.mirrors=true >> %IDEFIX_INI%

:: filtering user displayed catalogs/products/versions
ECHO -Doomph.setup.product.catalog.filter=io.klib.products >> %IDEFIX_INI%
::ECHO -Doomph.setup.product.filter=idefix.cec.161 >> %IDEFIX_INI%
::ECHO -Doomph.setup.product.version.filter=none >> %IDEFIX_INI%

ECHO -Doomph.setup.jre.choice=false >> %IDEFIX_INI%
::ECHO -Doomph.installer.update.url=%BINTRAY_BUILD_ROOT%/p2/installer >> %IDEFIX_INI%
::ECHO -Doomph.update.url=%BINTRAY_BUILD_ROOT%/p2/oomph >> %IDEFIX_INI%
ECHO -Doomph.setup.installer.mode=advanced >> %IDEFIX_INI%
ECHO -Doomph.redirection.klibProductCatalog=index:/redirectable.products.setup-^>http://peterkir.github.io/idefix/oomph/peterkir/productsCatalog.setup >> %IDEFIX_INI%
ECHO -Doomph.redirection.klibProjectCatalog=index:/redirectable.projects.setup-^>http://peterkir.github.io/idefix/oomph/peterkir/projectsCatalog.setup >> %IDEFIX_INI%

ECHO.
ECHO # launching %IDEFIX_NAME%
ECHO.
START /B %SCRIPT_PATH%\%IDEFIX_NAME%\eclipse-inst.exe

::ECHO.
::ECHO # clean-up
::ECHO.
::RMDIR /Q /S %DL%

:END

@ECHO off
SETLOCAL EnableExtensions
SETLOCAL EnableDelayedExpansion

:: ### Version History -- X.Y.Z_YYYYMMDD-hhmm Author Description
SET version=1.0.0_20150930-0600 &: Peter Kirschner   downloading,extract,configure and launch eclipse-installer with jre
SET version=%version: =%
SET title=idefixInstaller script %~nx0 - version %version%
TITLE %title%
SET POWERSHELL_TITLE=$Host.UI.RawUI.WindowTitle='%title%'

IF "%1"=="" (
	SET BRANCH=peterkir
) ELSE (
	SET BRANCH=%1
)

:: ###########################################################
SET SCRIPTNAME=%~n0
SET SCRIPT_PATH=%~dp0
SET SCRIPT_PATH=%SCRIPT_PATH:~0,-1%

SET IDEFIX_NAME=idefixInstaller
SET DL=%SCRIPT_PATH%\.download
:: folder must exists for powershell download requests
MKDIR %DL% 2>&1 > NUL

SET BRANCH=master
SET GITHUB_IO=http://peterkir.github.io/org.eclipse.oomph/
SET GITHUB_IO_LATEST=latest

SET GITHUB_IO_BOOT=http://peterkir.github.io/idefix/bootstrap/peterkir/win32

::ECHO.
::ECHO # workaroung for NTLMv2 ProxyAuth - starting IE
::ECHO.
::SET IE_CMD="C:\Program Files (x86)\Internet Explorer\iexplore.exe www.google.de"
::SET IE_DIR="%TEMP%"
::FOR /F "tokens=2 delims=;=" %%a IN (
::	'WMIC process call create %IE_CMD%^, %IE_DIR% ^| find "ProcessId"'
::) DO (
::	SET IE_PID=%%a
::)
::ECHO browser launched with PID %IE_PID%
:: TODO search an kill the IE if not previously open WMIC process %IE_PID% delete

SET JAVA_CMD=setupJavaSDK.cmd
ECHO.
ECHO # downloading and configuring Java via %GITHUB_IO_BOOT%/%JAVA_CMD%
ECHO.
powershell -nologo -noprofile  -command "%POWERSHELL_TITLE%;if ( Test-Path %DL%\%JAVA_CMD% ) { Write-Output 'skipping download, cause file exists - %DL%\%JAVA_CMD%' } else {(New-Object System.Net.WebClient).DownloadFile('%GITHUB_IO_BOOT%/%JAVA_CMD%','%DL%\%JAVA_CMD%')}"
IF "%ERRORLEVEL%"=="" (
	ECHO failing downloading file %GITHUB_IO_BOOT%/%JAVA_CMD%
	GOTO END
)

:: installing JDKs into %SCRIPT_PATH%/java
CALL %DL%\%JAVA_CMD% %SCRIPT_PATH%

FOR %%a IN ('DIR /B %SCRIPT_PATH%\java\1.8') do SET JAVA8=%SCRIPT_PATH%\java\1.8\%%a

ECHO.
ECHO # downloading and preparing %ECLIPSE_INSTALLER%
ECHO.

:: download of a file with powershell - http://superuser.com/a/423789/344922
ECHO retrieving latest build
powershell -nologo -noprofile -command "%POWERSHELL_TITLE%; (New-Object System.Net.WebClient).DownloadFile('%GITHUB_IO%/%BRANCH%/%GITHUB_IO_LATEST%','%DL%\%BRANCH%_%GITHUB_IO_LATEST%')"
SET /P LATEST=<%DL%\%BRANCH%_%GITHUB_IO_LATEST%

SET BINTRAY_BUILD_ROOT=https://dl.bintray.com/peterkir/generic/org.eclipse.oomph/1.3.0/%BRANCH%/%LATEST%

SET ECLIPSE_INSTALLER_WEB=%BINTRAY_BUILD_ROOT%/products
SET ECLIPSE_INSTALLER_ARCHIVE=org.eclipse.oomph.setup.installer.product-win32.win32.x86_64.zip
SET ECLIPSE_INSTALLER=%ECLIPSE_INSTALLER_ARCHIVE:~0,-4%

ECHO downloading archive %ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%
powershell -nologo -noprofile -command "%POWERSHELL_TITLE%;if ( Test-Path %DL%\%ECLIPSE_INSTALLER_ARCHIVE% ) { Write-Output 'skipping download, cause file exists - %DL%\%ECLIPSE_INSTALLER_ARCHIVE%' } else {(New-Object System.Net.WebClient).DownloadFile('%ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%','%DL%\%ECLIPSE_INSTALLER_ARCHIVE%')}"
IF "%ERRORLEVEL%"=="" (
	ECHO failing downloading file %ECLIPSE_INSTALLER_WEB%/%ECLIPSE_INSTALLER_ARCHIVE%
	GOTO END
)

ECHO extracting ECLIPSE_INSTALLER archive to %ECLIPSE_INSTALLER%
powershell -nologo -noprofile  -command "%POWERSHELL_TITLE%;if ( Test-Path '%SCRIPT_PATH%\%IDEFIX_NAME%' -PathType Container )  { Write-Output 'skipping extraction, cause folder exists - %SCRIPT_PATH%\%IDEFIX_NAME%' } else {Add-Type -A System.IO.Compression.FileSystem; [IO.Compression.ZipFile]::ExtractToDirectory('%DL%\%ECLIPSE_INSTALLER_ARCHIVE%', '%SCRIPT_PATH%\%IDEFIX_NAME%')}"

ECHO copying latest java into %SCRIPT_PATH%\%IDEFIX_NAME%\jre
XCOPY /E /H %JAVA8%\jre %SCRIPT_PATH%\%IDEFIX_NAME%\jre

SET "IDEFIX_HOME=%SCRIPT_PATH%"
MKDIR %IDEFIX_HOME% 2>&1 > NUL

SET IDEFIX_HOME=%IDEFIX_HOME:\=/%
SET IDEFIX_INI=%SCRIPT_PATH%\%IDEFIX_NAME%\eclipse-inst.ini

ECHO adding vmArgs to ini file
:: allow installation of unsigned bundles
ECHO -Declipse.p2.unsignedPolicy=allow >> %IDEFIX_INI%

:: hidden p2 options (configured to default)
ECHO -Declipse.p2.max.threads=4  >> %IDEFIX_INI%
ECHO -Declipse.p2.force.threading=true >> %IDEFIX_INI%
ECHO -Declipse.p2.mirrors=true >> %IDEFIX_INI%

:: filtering user displayed catalogs/products/versions
ECHO -Doomph.setup.product.catalog.filter=io.klib.products >> %IDEFIX_INI%
::ECHO -Doomph.setup.product.filter=idefix.cec.161 >> %IDEFIX_INI%
::ECHO -Doomph.setup.product.version.filter=none >> %IDEFIX_INI%

ECHO -Doomph.setup.jre.choice=false >> %IDEFIX_INI%
::ECHO -Doomph.installer.update.url=%BINTRAY_BUILD_ROOT%/p2/installer >> %IDEFIX_INI%
::ECHO -Doomph.update.url=%BINTRAY_BUILD_ROOT%/p2/oomph >> %IDEFIX_INI%
ECHO -Doomph.setup.installer.mode=advanced >> %IDEFIX_INI%
ECHO -Doomph.redirection.klibProductCatalog=index:/redirectable.products.setup-^>http://peterkir.github.io/idefix/oomph/peterkir/productsCatalog.setup >> %IDEFIX_INI%
ECHO -Doomph.redirection.klibProjectCatalog=index:/redirectable.projects.setup-^>http://peterkir.github.io/idefix/oomph/peterkir/projectsCatalog.setup >> %IDEFIX_INI%

ECHO.
ECHO # launching %IDEFIX_NAME%
ECHO.
START /B %SCRIPT_PATH%\%IDEFIX_NAME%\eclipse-inst.exe

::ECHO.
::ECHO # clean-up
::ECHO.
::RMDIR /Q /S %DL%

:END

rework setup models

rework setup models


echo Web-OS compiler + installer v1.0
echo Copyright Gum-Joe
echo This is for app veyor

echo ""

echo Installing bower and mocha
npm install -g bower mocha

echo Installing npm packages...
npm install

echo ""

echo Compiling apps...
cd app/console-app
compile.bat

echo Web-OS compiler + installer v1.0
echo Copyright Gum-Joe
echo This is for app veyor

echo ""
cd ..

echo Installing bower and mocha
npm install -g bower mocha

echo Installing npm packages...
npm install

echo ""

echo Compiling apps...
cd app/console-app
compile.bat

Update appveyor.bat

Update appveyor.bat


@ECHO OFF
@setlocal

call "..\..\tfenv.bat"

set MAKE=nmake
set CL=/MP

cd /D %~dp0
if exist Makefile (
  %MAKE% distclean
)
qmake -r CONFIG+=debug
%MAKE%
if ERRORLEVEL 1 goto :build_error

for /d %%d in (*) do (
  set TESTNAME=%%d
  echo ---------------------------------------------------------------------
  if exist %%d\debug\%%d.exe (
    echo Testing %%d\debug\%%d.exe ...

    cd %%d
    debug\%%d.exe
    if ERRORLEVEL 1 goto :error
    cd ..
  ) else if exist %%d\%%d.bat (
    echo Testing %%d\%%d.bat ...

    cd %%d
    call %%d.bat
    if ERRORLEVEL 1 goto :error
    cd ..
  )
)

echo.
echo All tests passed. Congratulations!
echo.
pause
exit /b

:build_error
echo.
echo Build error!  [ %TESTNAME% ]
echo.
pause
exit /b

:error
echo.
echo Execute error!  [ %TESTNAME% ]
echo.
pause
exit /b

@ECHO OFF
@setlocal

call "..\..\tfenv.bat"

set MAKE=nmake
set CL=/MP

cd /D %~dp0
if exist Makefile (
  %MAKE% distclean
)
qmake -r CONFIG+=debug
%MAKE%
if ERRORLEVEL 1 goto :build_error

for /d %%d in (*) do (
  set TESTNAME=%%d
  echo ---------------------------------------------------------------------
  if exist %%d\debug\%%d.exe (
    echo Testing %%d\debug\%%d.exe ...

    cd %%d
    debug\%%d.exe
    if ERRORLEVEL 1 goto :error
    cd ..
  ) else if exist %%d\%%d.bat (
    echo Testing %%d\%%d.bat ...

    cd %%d
    call %%d.bat
    if ERRORLEVEL 1 goto :error
    cd ..
  )
)

echo.
echo All tests passed. Congratulations!
echo.
exit /b

:build_error
echo.
echo Build error!  [ %TESTNAME% ]
echo.
exit /b

:error
echo.
echo Execute error!  [ %TESTNAME% ]
echo.
exit /b

fix compilation error on appveyor.

fix compilation error on appveyor.


SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\code.cloudfoundry.org\cli-acceptance-tests

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

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

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

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

cd %GATSPATH%
ginkgo.exe -r -nodes=4 %GINKGO_ARGS%

SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\code.cloudfoundry.org\cli-acceptance-tests

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

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

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

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

cd %GATSPATH%
ginkgo.exe -r -nodes=3 %GINKGO_ARGS%

reduce nodes to 3 :(

reduce nodes to 3 :(


@ECHO off
SETLOCAL enabledelayedexpansion

SET KUL_VER=master
SET YAML_VER=master
SET HASH_VER=master
SET PWD=%CD%

SET WIN_KIT=
SET VIS_STU=
SET VSCC=
SET VSCAR=
SET CXXFLAGS=/EHsc /nologo
SET INCLUDES=
SET OBJECTS=
SET LIBS=yaml.lib
SET LIBPATHS=

ECHO "Making Maiken for Windows"

IF NOT EXIST ext\kul\%KUL_VER% (
	git clone https://github.com/mkn/mkn.kul.git --branch %KUL_VER% ext/kul/%KUL_VER%
)
IF NOT EXIST ext\yaml\%YAML_VER% (
	git clone https://github.com/mkn/parse.yaml.git --branch %YAML_VER% ext/yaml/%YAML_VER%
)
IF NOT EXIST ext\sparsehash\%HASH_VER% (
	git clone https://github.com/mkn/google.sparsehash.git --branch %HASH_VER% ext/sparsehash/%HASH_VER%
)

SET /P WIN_KIT="Enter Windows Kit 10 root dir (one above 'include'): "
SET /P VIS_STU="Enter Visual Studio 14/15 root dir (one above 'VC'): "

IF NOT EXIST %VIS_STU%\VC\bin\cl.exe (
	ECHO %VIS_STU%\VC\bin\cl.exe does not exist
	GOTO end
)
SET VSCC=%VIS_STU%\VC\bin\cl
SET VSCAR=%VIS_STU%\VC\bin\lib

SET INCLUDES=%INCLUDES% /I%PWD%\ext\kul\%KUL_VER%\inc
SET INCLUDES=%INCLUDES% /I%PWD%\ext\kul\%KUL_VER%\os\win\inc
SET INCLUDES=%INCLUDES% /I%PWD%\ext\sparsehash\%HASH_VER%
SET INCLUDES=%INCLUDES% /I%PWD%\ext\yaml\%YAML_VER%\include
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\um
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\ucrt
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\shared
SET INCLUDES=%INCLUDES% /I%VIS_STU%\VC\include

SET LIBPATHS=%LIBPATHS% /LIBPATH:%PWD%\ext\kul\%KUL_VER%\bin
SET LIBPATHS=%LIBPATHS% /LIBPATH:%PWD%\ext\yaml\%YAML_VER%\bin
SET LIBPATHS=%LIBPATHS% /LIBPATH:%WIN_KIT%\Lib\10.0.10240.0\um\x86
SET LIBPATHS=%LIBPATHS% /LIBPATH:%WIN_KIT%\Lib\10.0.10240.0\ucrt\x86
SET LIBPATHS=%LIBPATHS% /LIBPATH:%VIS_STU%\VC\lib

SET OBJECTS=

RD /S/Q %PWD%\ext\yaml\%YAML_VER%\bin
MKDIR %PWD%\ext\yaml\%YAML_VER%\bin
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\src\*.cpp') do %VSCC% %CXXFLAGS% %INCLUDES% /c /Fo"%PWD%\ext\yaml\%YAML_VER%\bin\%%f.o" "%PWD%\ext\yaml\%YAML_VER%\src\%%f"
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\src\contrib\*cpp') do %VSCC% %CXXFLAGS% %INCLUDES% /c /Fo"%PWD%\ext\yaml\%YAML_VER%\bin\%%f.o" "%PWD%\ext\yaml\%YAML_VER%\src\contrib\%%f"
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\bin') do SET OBJECTS=!OBJECTS! %PWD%\ext\yaml\%YAML_VER%\bin\%%f
%VSCAR% /OUT:"%PWD%\ext\yaml\%YAML_VER%\bin\yaml.lib" /NOLOGO /LTCG %OBJECTS%

SET OBJECTS=

RD /S/Q bin
MKDIR %PWD%\bin
FOR /f %%f in ('dir /A:-D /b %PWD%\src') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\%%f"
FOR /f %%f in ('dir /A:-D /b %PWD%\src\maiken') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\maiken\%%f"
%VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\cpp.o" "%PWD%\cpp.cpp"

FOR /f %%f in ('dir /b %PWD%\bin') do SET OBJECTS=!OBJECTS! %PWD%\bin\%%f
%VIS_STU%\VC\bin\link %LIBPATHS% /OUT:%PWD%\mkn.exe /NOLOGO %OBJECTS% %LIBS%

RD /S/Q ext
RD /S/Q bin

GOTO end
:end
ECHO END

@ECHO off
SETLOCAL enabledelayedexpansion

SET KUL_VER=master
SET YAML_VER=master
SET HASH_VER=master
SET PWD=%CD%

SET WIN_KIT=
SET VIS_STU=
SET VSCC=
SET VSCAR=
SET CXXFLAGS=/EHsc /nologo
SET INCLUDES=
SET OBJECTS=
SET LIBS=yaml.lib
SET LIBPATHS=

ECHO "Making Maiken for Windows"

IF NOT EXIST ext\kul\%KUL_VER% (
	git clone https://github.com/mkn/mkn.kul.git --branch %KUL_VER% ext/kul/%KUL_VER%
)
IF NOT EXIST ext\yaml\%YAML_VER% (
	git clone https://github.com/mkn/parse.yaml.git --branch %YAML_VER% ext/yaml/%YAML_VER%
)
IF NOT EXIST ext\sparsehash\%HASH_VER% (
	git clone https://github.com/mkn/google.sparsehash.git --branch %HASH_VER% ext/sparsehash/%HASH_VER%
)

SET /P WIN_KIT="Enter Windows Kit 10 root dir (one above 'include'): "
SET /P VIS_STU="Enter Visual Studio 14/15 root dir (one above 'VC'): "

IF NOT EXIST %VIS_STU%\VC\bin\cl.exe (
	ECHO %VIS_STU%\VC\bin\cl.exe does not exist
	GOTO end
)
SET VSCC=%VIS_STU%\VC\bin\cl
SET VSCAR=%VIS_STU%\VC\bin\lib

SET INCLUDES=%INCLUDES% /I%PWD%\ext\kul\%KUL_VER%\inc
SET INCLUDES=%INCLUDES% /I%PWD%\ext\kul\%KUL_VER%\os\win\inc
SET INCLUDES=%INCLUDES% /I%PWD%\ext\sparsehash\%HASH_VER%
SET INCLUDES=%INCLUDES% /I%PWD%\ext\yaml\%YAML_VER%\include
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\um
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\ucrt
SET INCLUDES=%INCLUDES% /I%WIN_KIT%\Include\10.0.10240.0\shared
SET INCLUDES=%INCLUDES% /I%VIS_STU%\VC\include

SET LIBPATHS=%LIBPATHS% /LIBPATH:%PWD%\ext\kul\%KUL_VER%\bin
SET LIBPATHS=%LIBPATHS% /LIBPATH:%PWD%\ext\yaml\%YAML_VER%\bin
SET LIBPATHS=%LIBPATHS% /LIBPATH:%WIN_KIT%\Lib\10.0.10240.0\um\x86
SET LIBPATHS=%LIBPATHS% /LIBPATH:%WIN_KIT%\Lib\10.0.10240.0\ucrt\x86
SET LIBPATHS=%LIBPATHS% /LIBPATH:%VIS_STU%\VC\lib

SET OBJECTS=

RD /S/Q %PWD%\ext\yaml\%YAML_VER%\bin
MKDIR %PWD%\ext\yaml\%YAML_VER%\bin
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\src\*.cpp') do %VSCC% %CXXFLAGS% %INCLUDES% /c /Fo"%PWD%\ext\yaml\%YAML_VER%\bin\%%f.o" "%PWD%\ext\yaml\%YAML_VER%\src\%%f"
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\src\contrib\*cpp') do %VSCC% %CXXFLAGS% %INCLUDES% /c /Fo"%PWD%\ext\yaml\%YAML_VER%\bin\%%f.o" "%PWD%\ext\yaml\%YAML_VER%\src\contrib\%%f"
FOR /f %%f in ('dir /b %PWD%\ext\yaml\%YAML_VER%\bin') do SET OBJECTS=!OBJECTS! %PWD%\ext\yaml\%YAML_VER%\bin\%%f
%VSCAR% /OUT:"%PWD%\ext\yaml\%YAML_VER%\bin\yaml.lib" /NOLOGO /LTCG %OBJECTS%

SET OBJECTS=

RD /S/Q bin
MKDIR %PWD%\bin
FOR /f %%f in ('dir /A:-D /b %PWD%\src') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\%%f"
FOR /f %%f in ('dir /A:-D /b %PWD%\src\maiken') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\maiken\%%f"
FOR /f %%f in ('dir /A:-D /b %PWD%\src\maiken\scm') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\maiken\scm\%%f"
FOR /f %%f in ('dir /A:-D /b %PWD%\src\maiken\threading') do %VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\%%f.o" "%PWD%\src\maiken\threading\%%f"
%VSCC% %CXXFLAGS% /I%PWD%\inc %INCLUDES% /c /Fo"%PWD%\bin\cpp.o" "%PWD%\cpp.cpp"

FOR /f %%f in ('dir /b %PWD%\bin') do SET OBJECTS=!OBJECTS! %PWD%\bin\%%f
%VIS_STU%\VC\bin\link %LIBPATHS% /OUT:%PWD%\mkn.exe /NOLOGO %OBJECTS% %LIBS%

RD /S/Q ext
RD /S/Q bin

GOTO end
:end
ECHO END

make bats

make bats


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

Fix OWSLib on windows.

Fix OWSLib on windows.


@echo off
call setEnvironment.bat
java -Djava.library.path=lib -cp %VIZCLASSPATH% config.RVConfigure

Fix config.bat not working

Fix config.bat not working

Also make sure .bat files use CRLF line endings.


@ECHO off

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

REM # Note:  Do not output anything in this script file, any output
REM #        may be inadvertantly placed in any output files if
REM #        output redirection is used.
SETLOCAL

IF "%JAVA_CMD%" == "" (
	IF "%JAVA_HOME%" == "" (
		SET JAVA_CMD=java
	) ELSE (
		REM # Keep JAVA_HOME to short-name without spaces
		FOR %%A IN ("%JAVA_HOME%") DO SET JAVA_CMD=%%~sfA\bin\java
	)
)

REM #  Should work with Windows XP and greater.  If not, specify the path to where it is installed.
IF "%OPENNLP_HOME%" == "" (
	SET OPENNLP_HOME=%~sp0..
) ELSE (
	REM # Keep OPENNLP_HOME to short-name without spaces
	FOR %%A IN ("%OPENNLP_HOME%") DO SET OPENNLP_HOME=%%~sfA
)

%JAVA_CMD% -Xmx4096m -jar %OPENNLP_HOME%\lib\opennlp-tools-*.jar %*

ENDLOCAL

@ECHO off

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

REM # Note:  Do not output anything in this script file, any output
REM #        may be inadvertantly placed in any output files if
REM #        output redirection is used.
SETLOCAL

IF "%JAVA_CMD%" == "" (
	IF "%JAVA_HOME%" == "" (
		SET JAVA_CMD=java
	) ELSE (
		REM # Keep JAVA_HOME to short-name without spaces
		FOR %%A IN ("%JAVA_HOME%") DO SET JAVA_CMD=%%~sfA\bin\java
	)
)

REM #  Should work with Windows XP and greater.  If not, specify the path to where it is installed.
IF "%OPENNLP_HOME%" == "" (
	SET OPENNLP_HOME=%~sp0..
) ELSE (
	REM # Keep OPENNLP_HOME to short-name without spaces
	FOR %%A IN ("%OPENNLP_HOME%") DO SET OPENNLP_HOME=%%~sfA
)

REM #  Get the library JAR file name (JIRA OPENNLP-554)
FOR %%A IN ("%OPENNLP_HOME%\lib\opennlp-tools-*.jar") DO SET JAR_FILE=%%A

%JAVA_CMD% -Xmx4096m -jar %JAR_FILE% %*

ENDLOCAL

OPENNLP-554: Fix library wildcard issue with Java VM parser

git-svn-id: ea2ac7117ce80da69eabfd608b4fc2566390d6b5@1424797 13f79535-47bb-0310-9956-ffa450edef68


@echo off

for %%? in ("%~dp0..") do set ROO_HOME=%%~f?

rem echo Resolved ROO_HOME: %ROO_HOME%

java -Djava.ext.dirs=%ROO_HOME%/lib;%ROO_HOME%/dist org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml"

@echo off

for %%? in ("%~dp0..") do set ROO_HOME=%%~f?

rem echo Resolved ROO_HOME: %ROO_HOME%

java -Djline.nobell=true -Djava.ext.dirs=%ROO_HOME%/lib;%ROO_HOME%/dist org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml"

ROO-110: Stop beep noise on Windows machines via Roo shell


@echo off
REM I didn't use the if (...) else (...) form because when the environment variable
REM is expanded, the ")" in the directory name seems to be interpreted by the IF command.
if not "%ProgramFiles(x86)%"=="" set ProgramFiles32Bit=%ProgramFiles(x86)%
if "%ProgramFiles(x86)%"=="" set ProgramFiles32Bit=%ProgramFiles%
set BuildExe=%ProgramFiles32Bit%\MSBuild\14.0\Bin\MSBuild.exe

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

"%BuildExe%" /p:Configuration=Release "TTMouseclickSimulator.sln"
pause

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

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

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

Update the build script to use delayed environment variable expansion and instruct MSBuild to use a less verbose output.


@echo off
dotnet pack src -c Release -o .

fix output path

fix output path


@echo off

%cd%\aux_bin\create_link.bat -linkfile "C:%HOMEPATH%\Desktop\Oasys 1.2.lnk" -target "C:%HOMEPATH%\Miniconda3\Scripts\activate.bat" -linkarguments "& python -m oasys.canvas" -iconlocation "%cd%\aux_bin\oasys.ico"

@echo off

%cd%\aux_bin\create_link.bat -linkfile "C:%HOMEPATH%\Desktop\Oasys 1.2.lnk" -target "C:%HOMEPATH%\Miniconda3\Scripts\activate.bat" -linkarguments "& python -m oasys.canvas --force-discovery" -iconlocation "%cd%\aux_bin\oasys.ico"

Update create_oasys_icon.bat

Update create_oasys_icon.bat