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

setlocal

md build
cd build

cmake -L ^
-G "%~1" ^
-T "%~2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_MODULE_MPI=ON ^
-D OSPRAY_MODULE_BILINEAR_PATCH=ON ^
-D OSPRAY_ENABLE_TESTING=ON ^
-D USE_IMAGE_MAGICK=OFF ^
..

(cmake --build . --config Release --target ALL_BUILD -- /m /nologo) ^
-and ^
(ctest . -C Release)

:abort
endlocal
:end

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

setlocal

md build
cd build

cmake -L ^
-G "%~1" ^
-T "%~2" ^
-D OSPRAY_BUILD_ISA=ALL ^
-D OSPRAY_MODULE_MPI=ON ^
-D OSPRAY_MODULE_BILINEAR_PATCH=ON ^
-D OSPRAY_ENABLE_TESTING=ON ^
-D USE_IMAGE_MAGICK=OFF ^
..

cmake --build . --config Release --target ALL_BUILD -- /m /nologo
ctest . -C Release

:abort
endlocal
:end

Revert "have Windows ci build jobs fail if compilation fails"

This reverts commit 391febaae23e4be9802d271798c7738bfb446772.


mkdir -p classes
javac -d classes src/adaptorlib/*java src/adaptorlib/tests/*java src/templateadaptor/*java
cp src/logging.properties classes/

REM TODO: Reintroduce src/local-fs-adaptor/*java .

mkdir -p classes
javac -d classes src/adaptorlib/*java src/adaptorlib/tests/*java src/templateadaptor/*java
copy src/logging.properties classes/

REM TODO: Reintroduce src/local-fs-adaptor/*java .

Use 'copy' instead of 'cp' on Windows

Use 'copy' instead of 'cp' on Windows


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

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

Store OS X files in zips.

Store OS X files in zips.


@echo off

if not "%JAVA_HOME%" == "" goto gotJavaHome
echo Java environment not found. Please set
echo your JAVA_HOME environment variable to
echo the home of you JDK.
goto :eof

:gotJavaHome
set ANT_HOME=%EXIST_HOME%\tools
set _LIBJARS=%CLASSPATH%;%ANT_HOME%\lib\ant-launcher.jar;%ANT_HOME%\lib\junit.jar;%JAVA_HOME%\lib\tools.jar

set JAVA_ENDORSED_DIRS=%EXIST_HOME%\lib\endorsed
set JAVA_OPTS=-Xms32000k -Xmx256000k -Djava.endorsed.dirs=%JAVA_ENDORSED_DIRS% -Dant.home=%ANT_HOME%

echo eXist Build
echo -------------------

echo Building with classpath %_LIBJARS%

echo Starting Ant...

java %JAVA_OPTS% -classpath %_LIBJARS% org.apache.tools.ant.launch.Launcher %1 %2 %3 %4 %5

@echo off

if not "%JAVA_HOME%" == "" goto gotJavaHome
echo Java environment not found. Please set
echo your JAVA_HOME environment variable to
echo the home of you JDK.
goto :eof

:gotJavaHome
if not "%EXIST_HOME%" == "" goto gotExistHome
set EXIST_HOME=%CD%

:gotExistHome
set ANT_HOME=%EXIST_HOME%\tools
set _LIBJARS=%CLASSPATH%;%ANT_HOME%\lib\ant-launcher.jar;%ANT_HOME%\lib\junit.jar;%JAVA_HOME%\lib\tools.jar

set JAVA_ENDORSED_DIRS=%EXIST_HOME%\lib\endorsed
set JAVA_OPTS=-Xms64M -Xmx512M -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -Dant.home="%ANT_HOME%"

echo eXist Build
echo -------------------
echo JAVA_HOME=%JAVA_HOME%
echo EXIST_HOME=%EXIST_HOME%
echo _LIBJARS=%_LIBJARS%

echo Starting Ant...

"%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%_LIBJARS%" org.apache.tools.ant.launch.Launcher %1 %2 %3 %4 %5

XP: Correct java is used now (selected by %JAVA_HOME%) and EXIST_HOME is set now (if not set before)

svn path=/trunk/eXist-1.0/; revision=1308


@ECHO OFF

REM vundle requires git
WHERE git >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO Please install git first. && GOTO :EOF

REM vundle requires curl
WHERE curl >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO Please install curl first (see vundle windows install docs). && GOTO :EOF

REM If _vimrc file already exists, prompt user to overwrite it.
IF EXIST %USERPROFILE%\_vimrc (
    set /p OVERWRITEVIMRC="vimrc file already exists, do you want to overwrite it? [yn] "
    IF "%OVERWRITEVIMRC%" EQU "y" (
        move /Y %USERPROFILE%\_vimrc %USERPROFILE%\_vimrc_bak
    ) ELSE (
        ECHO Aborting...
        GOTO :EOF
    )
)

ECHO Copying new vimrc file.
copy .\files\vimrc %USERPROFILE%\_vimrc

SET VUNDLEDIR=%USERPROFILE%\vimfiles\bundle\

IF EXIST %VUNDLEDIR% (
    ECHO Removing existing vundle install
    rmdir /S/Q %VUNDLEDIR%
)

ECHO Installing vundle.
mkdir %VUNDLEDIR%
git clone https://github.com/VundleVim/Vundle.vim.git %VUNDLEDIR%\Vundle.vim

ECHO Installing plugins
gvim +PluginInstall +qall

@ECHO OFF
REM This is required to enable reading of variables set in if statement blocks.
REM Variables read with "!" e.g. !errorlevel! use delayed expansion.
REM See http://ss64.com/nt/delayedexpansion.html for more info.
setlocal enabledelayedexpansion

REM vundle requires git
WHERE git >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO Please install git first. && GOTO :EOF

REM vundle requires curl
WHERE curl >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO Please install curl first (see vundle windows install docs). && GOTO :EOF

REM If _vimrc file already exists, prompt user to overwrite it.
IF EXIST %USERPROFILE%\_vimrc (
    choice /c yn /m "vimrc file already exists, do you want to overwrite it? "
    IF !errorlevel! equ 1 (
        move /Y %USERPROFILE%\_vimrc %USERPROFILE%\_vimrc_bak
    ) ELSE (
        ECHO Aborting...
        GOTO :EOF
    )
)

ECHO Copying new vimrc file.
copy .\files\vimrc %USERPROFILE%\_vimrc

SET VUNDLEDIR=%USERPROFILE%\vimfiles\bundle\

IF EXIST %VUNDLEDIR% (
    ECHO Removing existing vundle install
    rmdir /S/Q %VUNDLEDIR%
)

ECHO Installing vundle.
mkdir %VUNDLEDIR%
git clone https://github.com/VundleVim/Vundle.vim.git %VUNDLEDIR%\Vundle.vim

ECHO Installing plugins
gvim +PluginInstall +qall

Fix strange behaviour when prompting user.

When the vim config already exists, the prompt asks the user if
they wanted to overwrite, but it always failed first time.
Switching on delayed variable expansion fixed this.


@echo off

set DOTNET_VERSION=4.7.1

echo Check for installed .NET Framework %DOTNET_VERSION%

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v%DOTNET_VERSION%" /ve >nul 2>&1

if %ERRORLEVEL% neq 0 (
  echo ".NET Framework %DOTNET_VERSION% is not installed. Please download it from https://www.microsoft.com/net/download/visual-studio-sdks"
  pause
  goto:eof
)

if not exist "%ProgramFiles(x86)%" (
  set "ProgramFiles(x86)=%ProgramFiles%"
)

set "VSWhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"

:MSBuild
echo Looking for MSBuild
for /f "usebackq delims=" %%i in (`^""%VSWhere%" -latest -version "[15.0,16.0)" -products * -requires "Microsoft.Component.MSBuild" -property "installationPath"^"`) do (
  set InstallDir=%%i
)

set "MSBuild=%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"

if not exist "%MSBuild%" (
  echo MSBuild not found. Please make sure Visual Studio 15.2+ is installed.
  pause
  goto:eof
)

echo Building Builder.sln
"%MSBuild%" Builder.sln /nologo /maxcpucount /nodeReuse:false /verbosity:minimal /t:Restore;Build

start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\net471\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %*

@echo off

if not exist "%ProgramFiles(x86)%" (
  set "ProgramFiles(x86)=%ProgramFiles%"
)

set "VSWhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"

:MSBuild
echo Looking for MSBuild
for /f "usebackq delims=" %%i in (`^""%VSWhere%" -latest -version "[15.0,16.0)" -products * -requires "Microsoft.Component.MSBuild" -property "installationPath"^"`) do (
  set InstallDir=%%i
)

set "MSBuild=%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"

if not exist "%MSBuild%" (
  echo MSBuild not found. Please make sure Visual Studio 15.2+ is installed.
  pause
  goto:eof
)

echo Building Builder.sln
"%MSBuild%" Builder.sln /nologo /maxcpucount /nodeReuse:false /verbosity:minimal /t:Restore;Build

start "Cosmos Builder" "source\Cosmos.Build.Builder\bin\Debug\net471\Cosmos.Build.Builder.exe" "-VSPATH=%InstallDir%" %*

Remove .net framework check from install.


@echo off

WHERE dotnet >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO You need to install .NET Core from https://dot.net && EXIT \b 1

dotnet Decompiler.dll %*

@echo off

WHERE dotnet >nul 2>nul
IF %ERRORLEVEL% NEQ 0 ECHO You need to install .NET Core from https://dot.net && EXIT /B 1

dotnet Decompiler.dll %*
EXIT /B %errorlevel%

Exit batch with dotnet's exit code

Exit batch with dotnet's exit code


if not exist "C:\Windows\Temp\puppet.msi" (
  powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://downloads.puppetlabs.com/windows/puppet-3.3.0.msi', 'C:\Windows\Temp\puppet.msi')" <NUL
)

:: http://docs.puppetlabs.com/pe/latest/install_windows.html
msiexec /qn /i C:\Windows\Temp\puppet.msi /log C:\Windows\Temp\puppet.log

<nul set /p ".=;C:\Program Files (x86)\Puppet Labs\Puppet\bin" >> C:\Windows\Temp\PATH
set /p PATH=<C:\Windows\Temp\PATH
setx PATH "%PATH%" /m

if not exist "C:\Windows\Temp\puppet.msi" (
  powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://downloads.puppetlabs.com/windows/puppet-3.4.3.msi', 'C:\Windows\Temp\puppet.msi')" <NUL
)

:: http://docs.puppetlabs.com/pe/latest/install_windows.html
msiexec /qn /i C:\Windows\Temp\puppet.msi /log C:\Windows\Temp\puppet.log

<nul set /p ".=;C:\Program Files (x86)\Puppet Labs\Puppet\bin" >> C:\Windows\Temp\PATH
set /p PATH=<C:\Windows\Temp\PATH
setx PATH "%PATH%" /m

Update Puppet Version to 3.4.3

Update Puppet Version to 3.4.3


@echo off
pip install -r requirements.txt
cd src
copy src\settings\local.py.example src\settings\local.py
pause

@echo off
pip install -r requirements.txt
copy src\settings\local.py.example src\settings\local.py
pause

Delete buggy line ("cd src") in windows installer


@ECHO OFF
SETLOCAL
SET LOG_PATH="H:\bravo_logs\"
SET LOG_FILE="marvin_errors.log"
IF NOT EXIST %LOG_PATH% (SET LOG_PATH="%USERPROFILE%\Desktop\")
SET SCRIPT="%USERPROFILE%\Repos\standalone_scripts\upload_robot_logs.py"
SET STB_CONF="%USERPROFILE%\Repos\statusdb.yaml"
SET STB_LOG="%USERPROFILE%\Repos\statusdb_upload.log"
FOR /F "DELIMS=" %%A IN ('DATE /T') DO (SET TODAY=%%A)
FOR /F "TOKENS=1-2 DELIMS=/:" %%A IN ("%TIME%") DO (SET NOW=%%A:%%B)
ECHO %TODAY% %NOW% %* >> %LOG_PATH%%LOG_FILE%
ECHO %* | python %SCRIPT% --name "Marvin" --conf %STB_CONF% --logfile %STB_LOG%

@ECHO OFF
SETLOCAL
SET LOG_PATH="Y:\Bravo\bravo_logs\"
SET LOG_FILE="marvin_errors.log"
IF NOT EXIST %LOG_PATH% (SET LOG_PATH="%USERPROFILE%\Desktop\")
SET SCRIPT="%USERPROFILE%\Repos\standalone_scripts\upload_robot_logs.py"
SET STB_CONF="%USERPROFILE%\Repos\statusdb.yaml"
SET STB_LOG="%USERPROFILE%\Repos\statusdb_upload.log"
FOR /F "DELIMS=" %%A IN ('DATE /T') DO (SET TODAY=%%A)
FOR /F "TOKENS=1-2 DELIMS=/:" %%A IN ("%TIME%") DO (SET NOW=%%A:%%B)
ECHO %TODAY% %NOW% %* >> %LOG_PATH%%LOG_FILE%
ECHO %* | python %SCRIPT% --name "Marvin" --conf %STB_CONF% --logfile %STB_LOG%

Change path where error messages are saved on Homer


@echo off

rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
rem or more contributor license agreements. Licensed under the Elastic License;
rem you may not use this file except in compliance with the Elastic License.

setlocal enabledelayedexpansion
setlocal enableextensions

call "%~dp0..\elasticsearch-env.bat" || exit /b 1

call "%~dp0x-pack-env.bat" || exit /b 1

set CLI_JAR=!ES_CLASSPATH!;!ES_HOME!/plugins/x-pack/bin/sql-cli-*.jar

%JAVA% ^
  -jar "%CLI_JAR%" ^
  %*

endlocal
endlocal

@echo off

rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
rem or more contributor license agreements. Licensed under the Elastic License;
rem you may not use this file except in compliance with the Elastic License.

setlocal enabledelayedexpansion
setlocal enableextensions

call "%~dp0..\elasticsearch-env.bat" || exit /b 1

call "%~dp0x-pack-env.bat" || exit /b 1

set CLI_JAR=%ES_HOME%/plugins/x-pack/bin/*

%JAVA% ^
  -cp "%CLI_JAR%" ^
  org.elasticsearch.xpack.sql.cli.Cli ^
  %*

endlocal
endlocal

Update cli to work on windows

Update cli to work on windows

Original commit: elastic/x-pack-elasticsearch@84f6ba3c1f45f9898c630da5ac3749a541c71f13


@more +1 "%~0" | "%~dp0..\nyagos.exe" - 2>nul & exit /b
set FLAG=OK
if not 1 == 1 echo NG(1) ; set "FLAG=NG(2)"
echo %FLAG%

Add testcode for skipping statements when IF FALSE


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

IF [%1] EQU [] (
	echo USAGE: %0 server.properties
	EXIT /B 1
)

SetLocal
IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] (
    set KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:%~dp0../../config/log4j.properties
)
IF ["%KAFKA_HEAP_OPTS%"] EQU [""] (
    set KAFKA_HEAP_OPTS=-Xmx1G -Xms1G
)
%~dp0kafka-run-class.bat kafka.Kafka %*
EndLocal

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

IF [%1] EQU [] (
	echo USAGE: %0 server.properties
	EXIT /B 1
)

SetLocal
IF ["%KAFKA_LOG4J_OPTS%"] EQU [""] (
    set KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:%~dp0../../config/log4j.properties
)
IF ["%KAFKA_HEAP_OPTS%"] EQU [""] (
    rem detect OS architecture
    wmic os get osarchitecture | find /i "32-bit" >nul 2>&1
    IF NOT ERRORLEVEL 1 (
        rem 32-bit OS
        set KAFKA_HEAP_OPTS=-Xmx512M -Xms512M
    ) ELSE (
        rem 64-bit OS
        set KAFKA_HEAP_OPTS=-Xmx1G -Xms1G
    )
)
%~dp0kafka-run-class.bat kafka.Kafka %*
EndLocal

KAFKA-4271: Fix the server start script for Windows 32-bit OS

Without this fix the new consumer fails to run on a 32-bit Windows OS.

Author: Vahid Hashemian <vahidhashemian@us.ibm.com>

Reviewers: Jason Gustafson, Guozhang Wang

Closes #2189 from vahidhashemian/KAFKA-4271


@echo off
SET pathToVS12=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
SET pathToVS11=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe

IF EXIST %pathToVS12%(
"%pathToVS12%" /RootSuffix YC /ReSharper.Internal
Exit /b
)

IF EXIST %pathToVS11%
(
"%pathToVS11%" /RootSuffix YC /ReSharper.Internal
Exit /b
)
ELSE
(
echo "Microsoft Visual Studio 11 and Microsoft Visual Studio 12 weren't found. Try run plugin manually with keys /RootSuffix YC /ReSharper.Internal"
)

Edit script that runs studio with plugin


@echo off

set targetDllPath="%~1\bin\SDL2.dll"
if not exist %targetDllPath% (
    echo Copying SDL2.dll to %targetDllPath%
    copy SDL2.dll %targetDllPath% || exit /b 1
)

cd /d %1
if not exist build mkdir build
cd build

set slnName="%~2.sln"
set binTargetName="%~2-gamebins"

IF NOT EXIST %slnName% (
cmake -G "Visual Studio 16 2019" ^
    -A x64 ^
    -DHALLEY_PATH=../halley ^
    -DBUILD_HALLEY_TOOLS=0 ^
    -DBUILD_HALLEY_TESTS=0 ^
    -DCMAKE_INCLUDE_PATH="lib\include" ^
    -DCMAKE_LIBRARY_PATH="lib\windows64" ^
    -DBOOST_ROOT="lib\boost" ^
    -DBoost_USE_STATIC_LIBS=1 ^
    .. || exit /b 1
)

cmake.exe --build . --target %binTargetName% --config %3 || exit /b 1

echo Build successful.

@echo off

set targetDllDir="%~1\bin"
if not exist %targetDllDir% (
    mkdir %targetDllDir%
)
set targetDllPath="%~1\bin\SDL2.dll"
if not exist %targetDllPath% (
    echo Copying SDL2.dll to %targetDllPath%
    copy SDL2.dll %targetDllPath% || exit /b 1
)

cd /d %1
if not exist build mkdir build
cd build

set slnName="%~2.sln"
set binTargetName="%~2-gamebins"

IF NOT EXIST %slnName% (
cmake -G "Visual Studio 16 2019" ^
    -A x64 ^
    -DHALLEY_PATH=../halley ^
    -DBUILD_HALLEY_TOOLS=0 ^
    -DBUILD_HALLEY_TESTS=0 ^
    -DCMAKE_INCLUDE_PATH="lib\include" ^
    -DCMAKE_LIBRARY_PATH="lib\windows64" ^
    -DBOOST_ROOT="lib\boost" ^
    -DBoost_USE_STATIC_LIBS=1 ^
    .. || exit /b 1
)

cmake.exe --build . --target %binTargetName% --config %3 || exit /b 1

echo Build successful.

Create bin dir if needed

Create bin dir if needed


@ECHO OFF

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

REM delete output from previous run
del actual.txt

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

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

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

@ECHO OFF

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

REM delete output from previous run
del actual.txt

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

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

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

Remove duplicate javac from test script

Remove duplicate javac from test script


@ECHO OFF
set BASE=%~dp0
set DEFAULT_TARGET=
IF [%1]==[] set DEFAULT_TARGET="%BASE%atest"
pybot -c regression -L DEBUG --pythonpath "%BASE%src" %DEFAULT_TARGET% %*
pause

Add script to execute tests on windows.

Add script to execute tests on windows.


@echo off

echo Generating C-style Win32 APIs and tests
call dart %~dp0win32\generate_ffi_files.dart
call dart %~dp0win32\generate_tests.dart
echo.

echo Generating COM classes
call dart %~dp0generate\generate.dart %~dp0generate\com %~dp0..\lib\src\generated
echo.

echo Generating Windows Runtime classes from IDL
call dart %~dp0generate\generate.dart %~dp0generate\winrt %~dp0..\lib\src\generated
echo.

echo Generating Windows Runtime classes from inspection
call dart %~dp0winmd\winmd.dart %~dp0..\lib\src\generated
echo.

echo Formatting generated source code
call dart format %~dp0..\lib\src
call dart format %~dp0..\test\api_test.dart
echo.

echo Running tests
call dart pub run test

@echo off

echo Generating C-style Win32 APIs and tests
call dart --enable-experiment=non-nullable %~dp0win32\generate_ffi_files.dart
call dart --enable-experiment=non-nullable %~dp0win32\generate_tests.dart
echo.

echo Generating COM classes
call dart --enable-experiment=non-nullable %~dp0generate\generate.dart %~dp0generate\com %~dp0..\lib\src\generated
echo.

echo Generating Windows Runtime classes from IDL
call dart --enable-experiment=non-nullable %~dp0generate\generate.dart %~dp0generate\winrt %~dp0..\lib\src\generated
echo.

echo Generating Windows Runtime classes from inspection
call dart --enable-experiment=non-nullable %~dp0winmd\winmd.dart %~dp0..\lib\src\generated
echo.

echo Formatting generated source code
call dart --enable-experiment=non-nullable format %~dp0..\lib\src
call dart --enable-experiment=non-nullable format %~dp0..\test\api_test.dart
echo.

echo Running tests
call dart --enable-experiment=non-nullable pub run test

Call non-nullable Dart for generators

Call non-nullable Dart for generators


@echo off
setlocal enabledelayedexpansion

pushd %1

set attempts=5
set counter=0

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

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

goto end

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

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

:end
popd
echo Finished successfully.
exit /b 0

@echo off
setlocal enabledelayedexpansion

pushd %1

set attempts=5
set counter=0

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

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

goto end

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

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

:end
popd
echo Finished successfully.
exit /b 0

Update kudu to use new kuduscript with python3.6 support


"%PYTHON%" setup.py install
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.

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

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.

Fix conda recipe for Windows build

Fix conda recipe for Windows build

Sync Windows build script options with Linux/OS X build script
options.    Packages can be tested by running the following on
Windows:    ```  conda install -c koverholt ibis-framework  ```

Author: Kristopher Overholt <koverholt@gmail.com>

Closes #509 from koverholt/fix/conda-recipes-win and squashes the following commits:

2631674 [Kristopher Overholt] Fix conda recipe for windows build


@PowerShell.exe -ExecutionPolicy RemoteSigned -Command "Invoke-Expression -Command ((Get-Content -Path '%~f0' | Select-Object -Skip 2) -join [environment]::NewLine)"
@exit /b %Errorlevel%
#Install scoop
set-executionpolicy unrestricted -s cu -f
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install sudo

# Add Enable Consent to Windows Registry
$registryPath = "HKLM:\Software\Microsoft\MicrosoftEdge"
$registryPathItem = "$($registryPath)\MediaCapture"
$name = "EnableConsentPrompt"
$value = "0"

echo "Adding enable consent to Windows registry..."

sudo New-Item -Path $registryPath -Force | Out-Null
sudo New-Item -Path $registryPathItem -Force | Out-Null
sudo New-ItemProperty -Path $registryPathItem -Name $name -Value $value -PropertyType DWORD -Force | Out-Null

echo "Success!"

@PowerShell.exe -ExecutionPolicy RemoteSigned -Command "Invoke-Expression -Command ((Get-Content -Path '%~f0' | Select-Object -Skip 2) -join [environment]::NewLine)"
@exit /b %Errorlevel%
#Install scoop
set-executionpolicy unrestricted -s cu -f
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop install sudo

# Add Enable Consent to Windows Registry
$registryPath = "HKLM:\Software\Microsoft\MicrosoftEdge"
$registryPathItem = "$($registryPath)\MediaCapture"
$name = "EnableConsentPrompt"
$value = "0"

echo "Adding enable consent to Windows registry..."

sudo New-Item -Path $registryPath -Force | Out-Null
sudo New-Item -Path $registryPathItem -Force | Out-Null
sudo New-ItemProperty -Path $registryPathItem -Name $name -Value $value -PropertyType DWORD -Force | Out-Null

echo "Restarting Microsoft Edge..."

Stop-Process -Name "MicrosoftEdge"
Stop-Process -Name "MicrosoftEdgeCP"
Start-Sleep -s 10
Start-Process -FilePath "MicrosoftEdge" -Wait -WindowStyle Maximized

echo "Success!"

Add Edge restarting once consent enabled


@ECHO OFF
REM gdump - JSTOR/Harvard Object Validation Environment
REM Copyright 2004-2005 by the President and Fellows of Harvard College
REM JHOVE is made available under the GNU General Public License (see the
REM file LICENSE for details)
REM
REM Driver script for the GIF dump utility
REM
REM Usage: gdump file
REM
REM where file is a GIF file
REM
REM Configuration constants:
REM JHOVE_HOME Jhove installation directory
REM JAVA_HOME  Java JRE directory
REM JAVA       Java interpreter
REM EXTRA_JARS Extra jar files to add to CLASSPATH

SET JHOVE_HOME="C:\Program Files\jhove"

SET JAVA_HOME="C:\Program Files\java\j2re1.4.1_02"
SET JAVA=%JAVA_HOME%\bin\java

SET EXTRA_JARS=

REM NOTE: Nothing below this line should be edited
REM #########################################################################

SET CP=%JHOVE_HOME%\bin\JhoveApp.jar
IF "%EXTRA_JARS%"=="" GOTO FI
  SET CP=%CP%:%EXTRA_JARS
:FI

REM Retrieve a copy of all command line arguments to pass to the application

SET ARGS=
:WHILE
IF "%1"=="" GOTO LOOP
  SET ARGS=%ARGS% %1
  SHIFT
  GOTO WHILE
:LOOP

REM Set the CLASSPATH and invoke the Java loader
%JAVA% -classpath %CP% GDump %ARGS%

Add stray file from 1.11a1

Add stray file from 1.11a1


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

echo Testing (Google Test)...

set failures=0

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

EXIT /B %failures%

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

echo Testing (Google Test)...

set failures=0

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

EXIT /B %failures%

Solve problem of non-failing native tests


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

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

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

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

Switch all recipes to pip install instead of setup.py install

(This has nothing to do with land surface modeling)


setlocal

IF "%1"=="" (
	set BUILD_CONFIG="Debug"
) ELSE (
	set BUILD_CONFIG=%1
)

REM Presence of a second argument indicates that the caller has already run vsvars32.bat
IF "%2"=="" (
	if not "%VS120COMNTOOLS%" == "" (
		echo Setting up Visual Studio Pro 2013 Tools...
		@call "%VS120COMNTOOLS%vsvars32.bat"
		goto build
	)

	if not "%VS100COMNTOOLS%" == "" (
		echo Setting up Visual Studio Pro 2010 Tools...
		@call "%VS100COMNTOOLS%vsvars32.bat"
		goto build
	)

	if not "%VS110COMNTOOLS%" == "" (
		echo Setting up Visual Studio Express 2010 Tools...
		@call "%VS110COMNTOOLS%vsvars32.bat"
		goto build
	)
)

:build
git pull --rebase
msbuild "Palaso.sln" /verbosity:quiet /maxcpucount /p:Configuration=%BUILD_CONFIG%

setlocal

IF "%1"=="" (
	set BUILD_CONFIG="Debug"
) ELSE (
	set BUILD_CONFIG=%1
)

REM Presence of a second argument indicates that the caller has already run vsvars32.bat
IF "%2"=="" (
	if not "%VS120COMNTOOLS%" == "" (
		echo Setting up Visual Studio Pro 2013 Tools...
		@call "%VS120COMNTOOLS%vsvars32.bat"
		goto build
	)

	if not "%VS100COMNTOOLS%" == "" (
		echo Setting up Visual Studio Pro 2010 Tools...
		@call "%VS100COMNTOOLS%vsvars32.bat"
		goto build
	)

	if not "%VS110COMNTOOLS%" == "" (
		echo Setting up Visual Studio Express 2010 Tools...
		@call "%VS110COMNTOOLS%vsvars32.bat"
		goto build
	)
)

:build
git pull --rebase
msbuild "build/Palaso.proj" /target:build /verbosity:quiet /maxcpucount /p:Configuration=%BUILD_CONFIG%

Update GetAndBuild script to match TC Build Step


"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jquery.jsPlumb-1.6.4.js ^
--js=jquery/jquery.placeholder.js ^
--js=jquery/jquery.simplePagination.js ^
--js=handlebars-v2.0.0.js ^
--js=handlebars.form-helpers.js ^
--js=dropdown.js ^
--js=tab.js ^
--js=typeahead.bundle.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js

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

"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.4.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jquery.jsPlumb-1.6.4.js ^
--js=jquery/jquery.placeholder.js ^
--js=jquery/jquery.simplePagination.js ^
--js=handlebars-v2.0.0.js ^
--js=handlebars.form-helpers.js ^
--js=dropdown.js ^
--js=tab.js ^
--js=typeahead.bundle.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js

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

Bump versiona nd update third party build to use latest jquery ui we have


:: Copyright (c) 2011, Jon Maken
:: License: 3-clause BSD (see project LICENSE file)
:: Revision: 01/29/2011 10:20:16 AM

@echo off
setlocal
:: echo initial:
:: echo   %%0 = %0
:: echo   %%* = %*
:: fix ruby.exe invocation when explicitly disabling RubyGems
if "x%1" == "x--disable-gems" (
  set NOGEM=%1
  for /F "tokens=1*" %%i in ("%*") do set RB_ARGS=%%j
) else (
  set NOGEM=
  set RB_ARGS=%*
)

:: echo pre call ruby:
:: echo   NOGEM = %NOGEM%
:: echo   RB_ARGS = %RB_ARGS%
ruby.exe %NOGEM% -x %~f0 %RB_ARGS%

endlocal
exit /b
#!ruby
__DIR__ = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(__DIR__, 'lib'))

require 'inquisitor'

Inquisitor.run

:: Copyright (c) 2011, Jon Maken
:: License: 3-clause BSD (see project LICENSE file)
:: Revision: 01/29/2011 10:20:16 AM

@echo off
setlocal
:: echo initial:
:: echo   %%0 = %0
:: echo   %%* = %*
:: fix ruby.exe invocation when explicitly disabling RubyGems
if "x%1" == "x--disable-gems" (
  set NOGEM=%1
  for /F "tokens=1*" %%i in ("%*") do set RB_ARGS=%%j
) else (
  set NOGEM=
  set RB_ARGS=%*
)

:: echo pre call ruby:
:: echo   NOGEM = %NOGEM%
:: echo   RB_ARGS = %RB_ARGS%
ruby.exe %NOGEM% -x %~f0 %RB_ARGS%

endlocal
exit /b
#!ruby
__DIR__ = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(__DIR__, 'lib'))
$LOAD_PATH.unshift(File.join(__DIR__))

require 'inquisitor'

Inquisitor.run

Add project root dir to $LOAD_PATH.

Add project root dir to $LOAD_PATH.


@echo off
if not defined HOST_PYTHON set HOST_PYTHON=python
%HOST_PYTHON% build_ssl.py %1 %2

@echo off
cd
if not defined HOST_PYTHON set HOST_PYTHON=python
%HOST_PYTHON% build_ssl.py %1 %2

Add debug output to analyse buildbot failure.


@echo on

cd git\SwiftShader

git submodule update --init

"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild" SwiftShader.sln

@echo on

SET PATH=%PATH%;C:\python27

cd git\SwiftShader

git submodule update --init

"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild" SwiftShader.sln

Add Python path to Kokoro batch script

Add Python path to Kokoro batch script

Bug b/123360006

Change-Id: Ie29b1fea3607ad0da2fb48cf3a5248e976c2cf5f
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27389
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Chris Forbes <c3279c50043e18e9442c1ae071cafa0e7a4ca967@google.com>
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>


RMDIR "%~dp0..\Drops" /S /Q
MKDIR "%~dp0..\Drops"
MKDIR "%~dp0..\Drops\Temp"
MKDIR "%~dp0..\Drops\Temp\agent"
MKDIR "%~dp0..\Drops\Temp\agent\bin"

XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp"
XCOPY /E /Y  "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin"
DEL "%~dp0..\Drops\Temp\agent\bin\*.xml"
DEL "%~dp0..\Drops\Temp\agent\bin\*.pdb"

@PowerShell -File %~dp0Create-Zip.ps1 %~dp0..\Drops\Temp\agent\ %~dp0..\Drops\Temp\agent\octopuspuppet-metarunner.zip
PAUSE
DEL "%~dp0..\Drops\Temp\agent\*.xml"
RMDIR "%~dp0..\Drops\Temp\agent\bin" /S /Q
PAUSE
@PowerShell -File "%~dp0Create-Zip.ps1" -target %~dp0..\Drops\Temp\ %~dp0..\Drops\octopuspuppet-metarunner.zip

RMDIR "%~dp0..\Drops\Temp\" /S /Q

PAUSE

Remove pause as we want to build it from CI agent


@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
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


@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

SETLOCAL

SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln

IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"

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

:build

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

@ECHO OFF

SETLOCAL

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

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

IF EXIST %CACHED_NUGET% goto restore
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"

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

:build

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

Add a helpful message when tools are missing

While you can build the unit tests and run them without Visual Studio
2015 (or the build tools) installed, you need to have it installed to
run the program or build.cmd. Generate a helpful error when these
are missing.


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

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

Bring back AOT compiling for acquisition engine

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


.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Library.csproj
.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Mvc.csproj

.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Library.csproj
.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages MVC\Mvc.csproj

Fix paths in build script

Fix paths in build script


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

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

:found_vcvars
call %vcvars%

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

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

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

:found_vcvars
call %vcvars%

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

:: Add 7z.exe to PATH.
set PATH=%PROGRAMFILES%\7-Zip;%PATH%

echo Final PATH:
echo %PATH%
%*

Add 7z.exe to PATH for drmemory build environment

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

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


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

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

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

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

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

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

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

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

Fix missing files in release ZIP didn't work, will do this later...


@echo off
set config=%1
if "%config%" == "" (
   set config=Release
)

set version=0.1.2.1
if not "%PackageVersion%" == "" (
   set version=%PackageVersion%
)

set nuget=
if "%nuget%" == "" (
	set nuget=src\.nuget\nuget.exe
)

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\Nancy.ReSharper.Plugin.sln /t:Rebuild /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

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

@echo off
set config=%1
if "%config%" == "" (
   set config=Release
)

set version=0.1.2.2-EAP-20131112
if not "%PackageVersion%" == "" (
   set version=%PackageVersion%
)

set nuget=
if "%nuget%" == "" (
	set nuget=src\.nuget\nuget.exe
)

%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\Nancy.ReSharper.Plugin.sln /t:Rebuild /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false

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

Mark package as pre-release until 8.1 is released


@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setlocal

set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi

REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd --run-e2e-tests --build-traceabilitytool %*
if errorlevel 1 goto :eof
cd %build-root%

@REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.

setlocal

set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi

REM -- C --
cd %build-root%\c\build_all\windows
call build.cmd --use-websockets --run-e2e-tests --build-traceabilitytool %*
if errorlevel 1 goto :eof
cd %build-root%

Modify to build WebSockets 32-bit

Modify to build WebSockets 32-bit


@mkdir _shake 2> nul
@ghc --make Main.hs -rtsopts -with-rtsopts=-I0 -outputdir=_shake -o _shake/build && _shake\build --lint --directory ".." %*

@mkdir _shake 2> nul
@ghc --make src/Main.hs -isrc -rtsopts -with-rtsopts=-I0 -outputdir=_shake -o _shake/build && _shake\build --lint --directory ".." %*

Fix paths to source files.

Fix paths to source files.


Rem This batch file will run the Ring Notepad Application.
Rem Ring Notepad is just a sample about what we can do using Ring in little hours.
Rem Using Ring Notepad we can write and execute Ring programs quickly.
Rem Author : Mahmoud Fayed <msfclipper@yahoo.com>

echo off
cls

cd applications
cd rnote
"../../bin/ring.exe" rnote.ring

Rem This batch file will run the Ring Notepad Application.
Rem Ring Notepad is just a sample about what we can do using Ring in little hours.
Rem Using Ring Notepad we can write and execute Ring programs quickly.
Rem Author : Mahmoud Fayed <msfclipper@yahoo.com>

echo off
cls

cd applications
cd rnote
start ../../bin/ringw.exe rnote.ring

Update start.bar - Using ringw.exe instead of ring.exe to run the Ring Notepad - To hide the console window.


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

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

Use link to create a single dll.

Use link to create a single dll.

Gets rid of the netmodule, specifically.


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

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

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

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

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

Build script error propagation fix

Build script error propagation fix


@echo off

if not exist mercury-x64 mkdir mercury-x64

pushd mercury-x64
set CommonCompilerFlags=-Od -I.. -I..\glfw-3.1.1\include -MTd -fp:fast -fp:except- -Gm- -GR- -EHa- -Oi -W4
set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib glfw3dll.lib opengl32.lib -libpath:..\glfw-x64\src\Release

cl %CommonCompilerFlags% ..\mercury.cpp /link %CommonLinkerFlags%
popd

@echo off

if not exist mercury-x64 mkdir mercury-x64

pushd mercury-x64
set CommonCompilerFlags=-nologo -Od -I.. -I..\glfw-3.1.1\include -MTd -fp:fast -fp:except- -Gm- -GR- -EHa- -Oi -W4 -WX -wd4201 -wd4100 -wd4189 -wd4505 -wd4127
set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib glfw3dll.lib opengl32.lib -libpath:..\glfw-x64\src\Release

cl %CommonCompilerFlags% ..\mercury.cpp /link %CommonLinkerFlags%
popd

Add trivial warnings to ignore list

Add trivial warnings to ignore list


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

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

Rename Zafir packages to WebSharper

Rename Zafir packages to WebSharper


dir

7za x lts\ldc2-1.9.0-windows-x64.7z -o%SRC_DIR%\lts

mkdir build
cd build
cmake -G Ninja ^
      -DCMAKE_BUILD_TYPE=Release ^
      -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
      -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
      -DBUILD_SHARED_LIBS=ON ^
      -DD_COMPILER=%SRC_DIR%\lts\ldc2-1.9.0-windows-x64\bin\ldmd2.exe ^
      ..
ninja install
ldc2 -version

dir

7za x lts\ldc2-1.9.0-windows-x64.7z -o%SRC_DIR%\lts

mkdir build
cd build
cmake -G Ninja ^
      -DCMAKE_BUILD_TYPE=Release ^
      -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^
      -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^
      -DD_COMPILER=%SRC_DIR%\lts\ldc2-1.9.0-windows-x64\bin\ldmd2.exe ^
      ..
ninja install
ldc2 -version

Remove build shared libs as it is not supported


@ECHO OFF

REM TeamCity chokes on the COMPONENTSVERSION processing here, it thinks
REM COMPONENTSVERSION is required going into the build step when we would
REM define it in the build step.

SETLOCAL

REM ---------------------------------------------------------------------------
REM Check usage
REM ---------------------------------------------------------------------------

IF "%1" == "" GOTO Usage

SET BUILD_NUMBER=%1

REM ---------------------------------------------------------------------------
REM Build packages
REM ---------------------------------------------------------------------------

SET /P COMPONENTSVERSION=<ver.txt
ECHO COMPONENTSVERSION=%COMPONENTSVERSION%

call build-packages.cmd %COMPONENTSVERSION%.%BUILD_NUMBER%

GOTO :EOF

:Usage
ECHO USAGE: build_packages_teamcity.cmd (build-number)

EXIT 1

GOTO :EOF

ENDLOCAL

@ECHO OFF

REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks
REM COMPONENTS_VERSION is required going into the build step when we would
REM define it in the build step.

SETLOCAL

REM ---------------------------------------------------------------------------
REM Check usage
REM ---------------------------------------------------------------------------

IF "%1" == "" GOTO Usage

SET BUILD_NUMBER=%1
ECHO BUILD_NUMBER=%BUILD_NUMBER%

REM ---------------------------------------------------------------------------
REM Build packages
REM ---------------------------------------------------------------------------

SET /P COMPONENTS_VERSION=<ver.txt
ECHO COMPONENTS_VERSION=%COMPONENTS_VERSION%

SET BUILD_VERSION=%COMPONENTS_VERSION%.%BUILD_NUMBER%
ECHO BUILD_VERSION=%BUILD_VERSION%

call build-packages.cmd %BUILD_VERSION%

GOTO :EOF

:Usage
ECHO USAGE: build_packages_teamcity.cmd (build-number)

EXIT 1

GOTO :EOF

ENDLOCAL

Debug output for the build

Debug output for the build


@echo off
setlocal
set mypath=%~dp0
set PATH=%mypath%\python2.7;%PATH%
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg
set OQ_HOST=127.0.0.1
set OQ_PORT=8800

echo Please wait ...
REM Start the DbServer in background but within the same context
start "OpenQuake DB server" /B python.exe -m openquake.server.dbserver

REM Make sure that the dbserver is up and running
call:sleep 5

REM Start the WebUI using django
start "OpenQuake WebUI server" /B python.exe -m openquake.server.manage runserver %OQ_HOST%:%OQ_PORT%

REM Make sure that the dbserver is up and running
call:sleep 2

REM Start the browser
start http://localhost:%OQ_PORT%

endlocal
exit /b 0

:sleep
setlocal
if exist C:\Windows\System32\timeout.exe (
    timeout /t %~1 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n %~1 -w 1000 > NUL
)
endlocal

@echo off
setlocal
set mypath=%~dp0
set PATH=%mypath%\python2.7;%PATH%
set PYTHONPATH=%mypath%\lib
set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg
set OQ_HOST=127.0.0.1
set OQ_PORT=8800

echo Please wait ...
REM Start the WebUI using django
start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui start %OQ_HOST%:%OQ_PORT%

REM Make sure that the dbserver is up and running
call:check_django

REM Start the browser
start http://localhost:%OQ_PORT%

endlocal
exit /b 0

:check_django
setlocal
ping -n 1 %OQ_HOST
if ERRORLEVEL 1
    goto check_django
endlocal

:sleep
setlocal
if exist C:\Windows\System32\timeout.exe (
    timeout /t %~1 /nobreak > NUL
) else (
    REM Windows XP hack
    ping 192.0.2.2 -n %~1 -w 1000 > NUL
)
endlocal

Use new webui start command on Win and check status before opening the browser


@echo off

setlocal enabledelayedexpansion

set directory=%~f1
if [%directory%] == [] set directory=%CD%

if exist %directory%\NUL (
    set directory=%directory%
) else (
    set directory=%~dp1
)

pushd %directory%

for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i
git rev-parse --show-toplevel 1> nul 2> nul

if %errorlevel% EQU 0 (
    start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %directory%
)

popd
endlocal

@echo off

setlocal enabledelayedexpansion

set directory=%~f1
if [%directory%] == [] set directory=%CD%

if exist %directory%\NUL (
    set directory=%directory%
) else (
    set directory=%~dp1
)

pushd %directory%

for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i
git rev-parse --show-toplevel 1> nul 2> nul

if %errorlevel% EQU 0 (
    start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %directory:/=\%
)

popd
endlocal

Replace forward slashes with back slashes


cd ..\src
call msvcbuild.bat static

cd ..\ext\re
call msvcbuild.bat

cd ..\..\ext\tsx
call msvcbuild.bat

cd ..\..\sample
@setlocal
@set SCHEME_H_DIR=..\src
@set MSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_WARNINGS /I%SCHEME_H_DIR%
@set MSLINK=link /nologo
@set EXT_LIBS=..\ext\re\lib\re.lib ..\ext\tsx\lib\tsx.lib

@if not exist bin\ (
  mkdir bin
)

%MSCOMPILE% /MT repl.c
%MSLINK% /out:bin\repl.exe repl.obj ..\src\lib\miniscm.lib %EXT_LIBS%

del repl.obj

cd ..\src
call msvcbuild.bat static

cd ..\ext\re
call msvcbuild.bat

cd ..\..\ext\tsx
call msvcbuild.bat

cd ..\..\example
@setlocal
@set SCHEME_H_DIR=..\src
@set MSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_WARNINGS /I%SCHEME_H_DIR%
@set MSLINK=link /nologo
@set EXT_LIBS=..\ext\re\lib\re.lib ..\ext\tsx\lib\tsx.lib

@if not exist bin\ (
  mkdir bin
)

%MSCOMPILE% /MT repl.c
%MSLINK% /out:bin\repl.exe repl.obj ..\src\lib\miniscm.lib %EXT_LIBS%

del repl.obj

Fix typo in example's bat

Fix typo in example's bat


@ECHO OFF

cd ..\picklesdoc.github.com
rmdir Output /s /q
echo D | xcopy ..\pickles\Output Output /e
powershell -Command "(gc index_template.md) -replace 'VERSION_PLACEHOLDER', '%1' | Out-File -encoding ASCII index.md"
cd ..\pickles

Add script for deploying documentation

Add script for deploying documentation


set PATH=%PATH%;"%WIX%\bin"
cd build
md output
copy *.exe output
copy "c:\vcpkg\installed\x64-windows\bin\sqlite3.dll" output
cd output
windeployqt codequery.exe
dir/b/a/s
candle.exe -ext WixUIExtension -ext WixUtilExtension "..\..\windows-install\win64\codequery64.wxs"
light.exe -ext WixUIExtension -ext WixUtilExtension codequery64.wixobj

Add Wix to env GHA

Add Wix to env GHA


@ECHO OFF
ECHO.
ECHO Downloading Libbitcoin Explorer dependencies from NuGet
CALL nuget.exe install ..\vs2013\bitcoin-explorer\packages.config
CALL nuget.exe install ..\vs2013\libbitcoin-explorer\packages.config
CALL nuget.exe install ..\vs2013\libbitcoin-explorer-test\packages.config
ECHO.
CALL buildbase.bat ..\vs2013\libbitcoin-explorer.sln 12
ECHO.
PAUSE

@ECHO OFF
ECHO.
ECHO Downloading Libbitcoin Explorer dependencies from NuGet
CALL nuget.exe install ..\vs2013\bx\packages.config
CALL nuget.exe install ..\vs2013\libbitcoin-explorer\packages.config
CALL nuget.exe install ..\vs2013\libbitcoin-explorer-test\packages.config
ECHO.
CALL buildbase.bat ..\vs2013\libbitcoin-explorer.sln 12
ECHO.
PAUSE

Update bx path for nuget refresh.

Update bx path for nuget refresh.


@echo off
"%~dp0\python2.7\Scripts\reprounzip-qt.exe" %*

@echo off
set PATH=%~dp0;%PATH%
"%~dp0\python2.7\Scripts\reprounzip-qt.exe" %*

Fix GUI not finding reprounzip on Windows

If running the GUI on Windows after installing from the installer, and
opening a package by double-clicking (not browsing from the app), the
GUI would fail with a "Couldn't find reprounzip command" message.


echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"

if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2019 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%

rem check compiler version
cl

set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%

echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%"

if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%
if %MSVS% == 2019 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM%

rem check compiler version
cl

set PATH=C:\Qt\Tools\QtCreator\bin;%PATH%

Remove VC2013 support from AppVeyor script


"%WIX%\bin\heat.exe" dir "..\..\..\..\..\Java" -ag -sfrag -dr "APPLICATIONFOLDER" -cg JavaFilesGroup -var var.JavaPath -out ..\..\..\javaFiles.wxs
powershell -Command "(gc ..\..\..\javaFiles.wxs) -replace '<Component ', '<Component Win64=\"yes\" ' | Out-File ..\..\..\javaFiles.wxs" -encoding UTF8

Add a script to harvest the java files and create the wxs file


call mvn package
jpackage --input .\target\ --main-jar mtg-workstation-%1.jar --name mtg-workstation --win-dir-chooser --win-menu --win-shortcut --icon src\main\resources\icon\icon.ico --app-version %1

Add script to generate installer

Add script to generate installer


@echo off
setlocal
call :Main "%~f0" "%~dp0" "%~dp0.."
goto :eof

:Main
set script_path=%~f1
set script_dir=%~f2
set repo_dir=%~f3
set build_dir=%repo_dir%\_build

if exist "%build_dir%" (
    rd /s /q "%build_dir%"
)

mkdir "%build_dir%"
cd /d "%build_dir%"
cmake -G "Visual Studio 14 2015 Win64" ..

Create batch file for Windows

Create batch file for Windows


@echo off
pushd "%~dp0"
for %%i in (Debug Release) do "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\msbuild" /target:Clean /p:Configuration=%%i src\NCrontab.sln
popd

Clean script can simply delegate to build script


@echo off

SET version=v1.0.1

SET for_minecraft=1.9
SET for_realms=1.8.3

:: Minecraft path
SET minecraft=%appdata%\.minecraft

echo Sphinx Client Patch Installer %version%
echo For Minecraft %for_minecraft%.
echo For Realms %for_realms%.
echo.

:: Check to see if Minecraft can run Sphinx.
echo Checking system requirements...
if not exist "%minecraft%\versions\1.9" (
	echo Cannot install Sphinx!
	echo You must have Minecraft installed in the default location and Minecraft 1.9 installed.
	goto end
)

if exist "%minecraft%\versions\1.9-Sphinx" (
	echo Sphinx is already installed!
	goto end
)

:: Create tempoary directory. If it already exists, delete it and recreate it.
if exist tmp (
	del /F /S /Q tmp 1>nul
	rmdir /S /Q tmp
)
mkdir tmp

:: Download Sphinx version json file.
echo Downloading patch...
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/mitchfizz05/Sphinx/master/Sphinx-Patch/patches/1.9/1.9-Sphinx.json', 'tmp/Sphinx.json')"

:: Install the patch.
echo Installing patch...

mkdir "%minecraft%\versions\1.9-Sphinx" >NUL
copy /Y "%minecraft%\versions\1.9\1.9.jar" "%minecraft%\versions\1.9-Sphinx\1.9-Sphinx.jar" >NUL
copy /Y "tmp\Sphinx.json" "%minecraft%\versions\1.9-Sphinx\1.9-Sphinx.json" >NUL

echo.
echo Patch successfully installed!

:: Remove tempoary directory. (with a short delay so files can be unlocked)
ping localhost -n 1 >NUL
del /F /S /Q tmp 1>NUL
rmdir /S /Q tmp >NUL

goto end

:end

echo.
pause

Add Windows Installer for Realms 1.9.

Add Windows Installer for Realms 1.9.


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

cd ..

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

cd ..

Add Program Files\7-Zip to path

Add Program Files\7-Zip to path


if not exist "C:\Windows\Temp\build-tools.exe" (
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Windows\Temp\build-tools.exe')" <NUL
)

start /wait C:\Windows\Temp\build-tools.exe /Passive /AdminFile A:\buildtools-adminfile.xml

setx PATH "%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x86\" /m

if not exist "C:\Windows\Temp\build-tools.exe" (
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Windows\Temp\build-tools.exe')" <NUL
)

start /wait C:\Windows\Temp\build-tools.exe /Passive /AdminFile A:\buildtools-adminfile.xml

setx PATH "%PATH%;C:\Program Files (x86)\Windows Kits\8.1\bin\x86" /m

Fix path update to not include trailing backslash


:: Run all unit tests
@echo off

setlocal EnableDelayedExpansion
dir /b unit-tests > tempFile1
findstr /e /c:".py" tempFile1 > tempFile2
findstr /B /R /C:"[^__]" tempFile2 > tempFile3
del tempFile1
del tempFile2

set /A testIndex=1
for /F "tokens=*" %%A in (tempFile3) do (
	echo|set /p=Test !testIndex!:
	echo  %%~nA
	echo ----------------------------------------------------------------------
	call python -m unit-tests.%%~nA -v
	set /A "testIndex+=1"
	echo.
)

del tempFile3

Add unit testing script for Windows.

Add unit testing script for Windows.


@echo off

rem =======================================================
rem Settings
rem =======================================================

set Platform=Win64
set BuildMode=Development

rem =======================================================
rem Release variables
rem =======================================================

set VersionName=%1
set InputProject=%2
set OutputDir=%3
set UAT=%4

rem =======================================================
rem Run UAT
rem =======================================================

%UAT% -ScriptsForProject=%InputProject% BuildCookRun -nocompile -nocompileeditor -installed -nop4 -project=%InputProject% -cook -stage -archive -archivedirectory=%OutputDir% -package -clientconfig=%BuildMode% -ue4exe=UE4Editor-Cmd.exe -clean -pak -compressed -prereqs -distribution -nodebuginfo -createreleaseversion=%VersionName% -targetplatform=%Platform% -build -utf8output -CookCultures=en-US+fr-FR

Upgrade build script to include en-EN, fr-FR cultures


@echo "mkDistribution v1.3"

if exist current (
	rmdir /s /q current
)

mkdir current

mkdir current\netcf-10
nant -t:netcf-1.0 -D:build.output.dir=current\netcf-10 -buildfile:sharpZLib.build build

mkdir current\netcf-20
nant -t:netcf-2.0 -D:build.output.dir=current\netcf-20 -buildfile:sharpZLib.build build

mkdir current\net-11
nant -t:net-1.1 -D:build.output.dir=current\net-11 -buildfile:sharpZLib.build build

mkdir current\net-20
nant -t:net-2.0 -D:build.output.dir=current\net-20 -buildfile:sharpZLib.build build

mkdir current\doc
copy doc\readme.rtf current\doc
copy doc\Changes.txt current\doc
copy doc\Copying.txt current\doc
copy SharpZipLib.chm current\doc
copy installGAC.bat current
copy uninstallGAC.bat current

"c:\Program Files\EWSoftware\Sandcastle Help File Builder\SandcastleBuilderConsole.exe" .\SharpZipLib.shfb

samples\cs\bin\sz -rc current\SharpZipLib.zip current\*.dll

@echo TODO Compress source to SharpZipLib_SourceSamples.zip
@echo TODO Build Bin Zip files

@echo "mkDistribution v1.4"

if exist current (
	rmdir /s /q current
)

mkdir current

mkdir current\netcf-10
nant -t:netcf-1.0 -D:build.output.dir=current\netcf-10 -buildfile:sharpZLib.build build

mkdir current\netcf-20
nant -t:netcf-2.0 -D:build.output.dir=current\netcf-20 -buildfile:sharpZLib.build build

mkdir current\net-11
nant -t:net-1.1 -D:build.output.dir=current\net-11 -buildfile:sharpZLib.build build

mkdir current\net-20
nant -t:net-2.0 -D:build.output.dir=current\net-20 -buildfile:sharpZLib.build build

"c:\Program Files\EWSoftware\Sandcastle Help File Builder\SandcastleBuilderConsole.exe" .\SharpZipLib.shfb

mkdir current\doc
copy doc\readme.rtf current\doc
copy doc\Changes.txt current\doc
copy doc\Copying.txt current\doc
copy SharpZipLib.chm current\doc
copy installGAC.bat current
copy uninstallGAC.bat current

samples\cs\bin\sz -rc current\SharpZipLib.zip current\*.dll

@echo TODO Compress source to SharpZipLib_SourceSamples.zip
@echo TODO Build Bin Zip files

Build help file before copying it!

Build help file before copying it!


@echo off
cd /D %~dp0
call settings.cmd
call ..\unxutils.cmd

cd dist\%ARCH%

call pp -B -o psass.exe ^
-I ../../../blib/lib ^
-M Encode::Byte ^
-M List::MoreUtils::XS ^
-M List::MoreUtils::PP ^
-M Win32::ChangeNotify ^
-M Filesys::Notify::Simple ^
CSS-Sass-%RELVERSION%/bin/psass

cd ..\..

REM tested and working, but much bigger size
REM -l "%PERLPATH%/c/bin/_libsass-0.dll" ^

copy %CD%\dist\%ARCH%\psass.exe %CD%\..\create\%XARCH%

@echo off
cd /D %~dp0
call settings.cmd
call ..\unxutils.cmd

cd dist\%ARCH%

call pp -B -o psass.exe ^
-I ../../../blib/lib ^
-M Encode::Byte ^
-M PerlIO::encoding ^
-M List::MoreUtils::XS ^
-M List::MoreUtils::PP ^
-M Win32::ChangeNotify ^
-M Filesys::Notify::Simple ^
CSS-Sass-%RELVERSION%/bin/psass

cd ..\..

REM tested and working, but much bigger size
REM -l "%PERLPATH%/c/bin/_libsass-0.dll" ^

copy %CD%\dist\%ARCH%\psass.exe %CD%\..\create\%XARCH%

Add missing perl dependency for packer

Add missing perl dependency for packer


<!-- :
@echo off
echo ==^> Enabling updates for other products from Microsoft Update
net stop wuauserv

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v EnableFeaturedSoftware /t REG_DWORD /d 1 /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v IncludeRecommendedUpdates /t REG_DWORD /d 1 /f

cscript //nologo "%~f0?.wsf"

net start wuauserv
exit /b

----- Begin wsf script --->
<job><script language="VBScript">
  Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
  Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")
</script></job>

<!-- :
@echo off
echo ==^> Enabling updates for other products from Microsoft Update
net stop wuauserv

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v EnableFeaturedSoftware /t REG_DWORD /d 1 /f

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v IncludeRecommendedUpdates /t REG_DWORD /d 1 /f

cscript //nologo "%~f0?.wsf"

net start wuauserv
exit /b

----- Begin wsf script --->
<job><script language="VBScript">
  Set ServiceManager = CreateObject("Microsoft.Update.ServiceManager")
  Set NewUpdateService = ServiceManager.AddService2("7971f918-a847-4430-9279-4a52d1efe18d",7,"")

  Const NOT_CONFIGURED = 0
  Const DISABLED = 1
  Const PROMPT_TO_APPROVE_BEFORE_DOWNLOAD = 2
  Const DOWNLOAD_AUTOMATICALLY = 3
  Const SCHEDULED_INSTALLATION = 4
  Set AutoUpdate = CreateObject("Microsoft.Update.AutoUpdate")
  Set AutoUpdateSettings = AutoUpdate.Settings
  AutoUpdateSettings.NotificationLevel = DISABLED
  AutoUpdateSettings.Save
  AutoUpdateSettings.Refresh
</script></job>

Disable updates on Windows 2008 R2 and Windows 7


call \ned\bin\switchpy 23
python setup.py develop
nosetests
call \ned\bin\switchpy 24
python setup.py develop
nosetests
call \ned\bin\switchpy 25
python setup.py develop
nosetests
call \ned\bin\switchpy 26
python setup.py develop
nosetests

call \ned\bin\switchpy 23
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 24
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 25
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests
call \ned\bin\switchpy 26
python setup.py develop
nosetests
del coverage\tracer.pyd
nosetests

Test the code without a C extension.

Test the code without a C extension.


@echo off
set ildasmFolder=%~1
set ilasmFolder=%~2
set inputFolder=%~3
set inputFilename=%~4
set debug=%~5

mkdir tempSigning
"%ildasmFolder%\sn.exe" -k tempSigning\keyPair.snk
echo Key Written
"%ildasmFolder%\ildasm.exe" "%inputFolder%\%inputFilename%" /out:"tempSigning\%inputFilename%.il"
echo Disassembled
"%ilasmFolder%\ilasm.exe" "tempSigning\%inputFilename%.il" /dll /key=tempSigning\keyPair.snk /output="tempSigning\%inputFilename%"
echo Assembled
move /Y "tempSigning\%inputFilename%" "%inputFolder%\%inputFilename%"
echo Overwritten

IF "%debug%"=="" rmdir /s /q tempSigning

Add bat to help sign unsigned dependencies


rem @echo off
set VIBE_BIN=%~dps0
set LIBDIR=%VIBE_BIN%..\lib\win-i386
set BINDIR=%VIBE_BIN%..\lib\bin
set LIBS="%LIBDIR%\event2.lib" "%LIBDIR%\eay.lib" "%LIBDIR%\ssl.lib" ws2_32.lib
set EXEDIR=%TEMP%\.rdmd\source
set START_SCRIPT=%EXEDIR%\vibe.cmd

if NOT EXIST %EXEDIR% (
	mkdir %EXEDIR%
)
copy "%VIBE_BIN%*.dll" %EXEDIR% > nul 2>&1
copy "%VIBE_BIN%*.dll" . > nul 2>&1
copy "%VIBE_BIN%vpm.d" %EXEDIR% > nul 2>&1

rem Run, execute, do everything.. but when you do it, do it with the vibe!
rdmd -debug -g -w -property -of%EXEDIR%\vpm.exe -I%VIBE_BIN%..\source %LIBS% %EXEDIR%\vpm.d %VIBE_BIN% %START_SCRIPT% %1 %2 %3 %4 %5 %6 %7 %8 %9

rem Finally, start the app, if vpm succeded.
if ERRORLEVEL 0 %START_SCRIPT%

Put back the @echo off..

Put back the @echo off..


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Cake is a Windows batch script for invoking CakePHP shell commands
::
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
::
:: Licensed under The MIT License
:: Redistributions of files must retain the above copyright notice.
::
:: @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
:: @link          http://cakephp.org CakePHP(tm) Project
:: @since         2.0.0
:: @license       http://www.opensource.org/licenses/mit-license.php MIT License
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: In order for this script to work as intended, the cake\console\ folder must be in your PATH

@echo.
@echo off

SET app=%0
SET lib=%~dp0

php "%lib%cake.php" %*

echo.

exit /B %ERRORLEVEL%

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Cake is a Windows batch script for invoking CakePHP shell commands
::
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
::
:: Licensed under The MIT License
:: Redistributions of files must retain the above copyright notice.
::
:: @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
:: @link          http://cakephp.org CakePHP(tm) Project
:: @since         2.0.0
:: @license       http://www.opensource.org/licenses/mit-license.php MIT License
::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: In order for this script to work as intended, the cake\console\ folder must be in your PATH

@echo off

SET app=%0
SET lib=%~dp0

php "%lib%cake.php" %*

echo.

exit /B %ERRORLEVEL%

Remove an empty line output

Remove an empty line output

Prevent to output an empty line before the XML declaration when a command is run using `--xml` option


@echo off
REM Delete all compiled module binaries to force dynamic compilation (.csproj) to kick in
set SRC=src\Orchard.Web\Modules
for /f %%i in ('dir %SRC% /b /ad') do del /q %SRC%\%%i\bin\%%i.dll

Add utility to force dynamic compilation

--HG--
branch : dev


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

cd %WORKSPACE%
%PYTHON% check_packages.py

cd %WORKSPACE%
python setup.py build -cmingw32

cd %WORKSPACE%
python setup.py docs

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

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

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

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

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

cd Output
xcopy setupSasView.exe %WORKSPACE%\dist

cd  %WORKSPACE%

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

cd %WORKSPACE%
%PYTHON% check_packages.py

cd %WORKSPACE%
python setup.py build -cmingw32

cd %WORKSPACE%
python setup.py docs

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

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

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

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

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

cd Output
xcopy setupSasView.exe %WORKSPACE%\dist

cd %WORKSPACE%
%PYLINT% --rcfile "%WORKSPACE%cd /build_tools/pylint.rc" -f parseable sasview-install/sasview*.egg/sas sasview > test/sasview.txt

cd  %WORKSPACE%

Update new windows build script

Update new windows build script


:: 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.


@SET SUBDIR=%~dp0
@cd %SUBDIR%

@ctest -V -S test.cmake
@SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;%PATH%
@ctest -V -S test.cmake

Add batch script to test 64bit and 32bit MSVC from the terminal


copy mpi.f.single mpi.f
copy mpif.h.single mpif.h

if errorlevel 1 exit 1

flang -g -w -O -Wall -o genesis2 main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f  input.f output.f mpi.f > output.txt 2>&1

if errorlevel 1 exit 1

echo "DEBUG Info..."
dir

echo "The build output was: "
type output.txt

echo "-----------------------------------------------"

echo "Copying the file to Library Bin at %LIBRARY_BIN%"
copy genesis2.exe %LIBRARY_BIN%

if errorlevel 1 exit 1
exit 0

copy mpi.f.single mpi.f
copy mpif.h.single mpif.h

if errorlevel 1 exit 1

flang -g -w -O -Wall -o genesis2 main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f  input.f output.f mpi.f > output.txt 2>&1

echo "DEBUG Info..."
dir

echo "The build output was: "
type output.txt

echo "-----------------------------------------------"

echo "Copying the file to Library Bin at %LIBRARY_BIN%"
copy genesis2.exe %LIBRARY_BIN%

if errorlevel 1 exit 1
exit 0

Remove errorlevel 1 after compile to be able to print the errors.


@echo off

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

SetLocal ENABLEDELAYEDEXPANSION
REM Change the working directory to the script's directory.
REM E.g. if the user right-clicks on the script and selects "Run as Administrator",
REM the working directory would be the windows\system32 dir.
cd %~dp0

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

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

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

@echo off

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

SetLocal ENABLEDELAYEDEXPANSION
REM Change the working directory to the script's directory.
REM E.g. if the user right-clicks on the script and selects "Run as Administrator",
REM the working directory would be the windows\system32 dir.
cd "%~dp0"

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

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

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

Follow-Up: Use quotation marks for path parameters.


@echo off

mkdir public\compiled

set ts_apps=common chess ceval game tree

for %%t in (%ts_apps%) do @(
    call echo Building TypeScript: %%t
    call cd ui\%%t
    call yarn install --non-interactive
    call yarn run compile --non-interactive
	call cd ..\..
)

set apps=site chat challenge notify learn insight editor puzzle round analyse lobby tournament tournamentSchedule simul perfStat dasher

for %%a in (%apps%) do @(
  call echo Building: %%a
  call cd ui\%%a
  call yarn install --non-interactive
  call gulp dev
  call cd ..\..
)

Replace a tab with 4 spaces

Replace a tab with 4 spaces


@echo off

rem installer bug. http://stackoverflow.com/a/25095327
mkdir "%APPDATA%\npm" > NUL 2>&1

set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH%
call npm install

for /f "delims=\" %%i in ("%CD%") do set UID=%%i

if "%REDIS_URL%" = "" (
  set REDIS_URL=redis://localhost:6379/%UID%
)

if "%1" == "start" (
  forever start ^
    --uid "%UID%" ^
    --minUptime 10000 --spinSleepTime 600000 ^
    -o hubot.log -a ^
    -w --watchDirectory scripts ^
    -c coffee node_modules\.bin\hubot.cmd -a direct %*
) else if "%1" == "stop" (
  forever stop "%UID%"
) else if "%1" == "restart" (
  forever restart "%UID%"
) else if "%1" == "status" (
  forever list | find "] %UID% "
) else if "%1" == "logs" (
  cat hubot.log | more
) else (
  node_modules\.bin\hubot.cmd -a direct %*
)

@echo off

rem installer bug. http://stackoverflow.com/a/25095327
mkdir "%APPDATA%\npm" > NUL 2>&1

set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH%
call npm install

for /f "delims=\" %%i in ("%CD%") do set UID=%%i

if "%REDIS_URL%" == "" (
  set REDIS_URL=redis://localhost:6379/%UID%
)

if "%1" == "start" (
  forever start ^
    --uid "%UID%" ^
    --minUptime 10000 --spinSleepTime 600000 ^
    -o hubot.log -a ^
    -w --watchDirectory scripts ^
    -c coffee node_modules\.bin\hubot.cmd -a direct %*
) else if "%1" == "stop" (
  forever stop "%UID%"
) else if "%1" == "restart" (
  forever restart "%UID%"
) else if "%1" == "status" (
  forever list | find "] %UID% "
) else if "%1" == "logs" (
  cat hubot.log | more
) else (
  node_modules\.bin\hubot.cmd -a direct %*
)

Fix the condition to compare strings in the script on Windows.


set CMAKE_CONFIG=Release

mkdir build_%CMAKE_CONFIG%
pushd build_%CMAKE_CONFIG%

cmake -G "NMake Makefiles"                           ^
      -DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG%       ^
      -DBLA_VENDOR:STRING=OpenBLAS                   ^
      -DENABLE_PYTHON:BOOL=ON                        ^
      -DBUILD_DOCUMENTATION:BOOL=OFF                 ^
      "%SRC_DIR%"
if errorlevel 1 exit rem 1

cmake --build . --target install --config %CMAKE_CONFIG%
if errorlevel 1 exit 1

popd

set CMAKE_CONFIG=Release

mkdir build_%CMAKE_CONFIG%
pushd build_%CMAKE_CONFIG%

cmake -G "NMake Makefiles"                           ^
      -DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG%       ^
      -DBLA_VENDOR:STRING=OpenBLAS                   ^
      -DENABLE_PYTHON:BOOL=ON                        ^
      -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
      -DBUILD_DOCUMENTATION:BOOL=OFF                 ^
      -DVCOMP_WORKAROUND=OFF                         ^
      "%SRC_DIR%"
if errorlevel 1 exit rem 1

cmake --build . --target install --config %CMAKE_CONFIG%
if errorlevel 1 exit 1

popd

Set install prefix in windows

Set install prefix in windows


SETLOCAL
SET Version=2.5.0
SET Prerelease=auto

@SET Config=%1%
@IF [%1] == [] SET Config=Debug

IF NOT DEFINED VisualStudioVersion CALL "%VS140COMNTOOLS%VsDevCmd.bat" || ECHO ERROR: Cannot find Visual Studio 2015, missing VS140COMNTOOLS variable. && GOTO Error0
@ECHO ON

REM Updating the version of all projects
PowerShell .\ChangeVersion.ps1 %Version% %Prerelease% || GOTO Error0

REM NuGet Automatic Package Restore requires "NuGet.exe restore" to be executed before the command-line build.
WHERE /Q NuGet.exe || ECHO ERROR: Please download the NuGet.exe command line tool. && GOTO Error0
NuGet.exe restore Rhetos.sln -NonInteractive || GOTO Error0
MSBuild.exe "Rhetos.sln" /target:rebuild /p:Configuration=%Config% /verbosity:minimal /fileLogger || GOTO Error0
CALL CreateInstallationPackage.bat %Config% /NOPAUSE || GOTO Error0

REM Updating the version of all projects back to "dev" (internal development build), to avoid spamming git history.
PowerShell .\ChangeVersion.ps1 %Version% dev || GOTO Error0

@REM ================================================

@ECHO.
@ECHO %~nx0 SUCCESSFULLY COMPLETED.
@EXIT /B 0

:Error0
@ECHO.
@ECHO %~nx0 FAILED.
@IF /I [%2] NEQ [/NOPAUSE] @PAUSE
@EXIT /B 1

SETLOCAL
SET Version=2.5.0
SET Prerelease=auto

@SET Config=%1%
@IF [%1] == [] SET Config=Debug

IF NOT DEFINED VisualStudioVersion CALL "%VS140COMNTOOLS%VsDevCmd.bat" || ECHO ERROR: Cannot find Visual Studio 2015, missing VS140COMNTOOLS variable. && GOTO Error0
@ECHO ON

REM Updating the version of all projects
PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% %Prerelease% || GOTO Error0

REM NuGet Automatic Package Restore requires "NuGet.exe restore" to be executed before the command-line build.
WHERE /Q NuGet.exe || ECHO ERROR: Please download the NuGet.exe command line tool. && GOTO Error0
NuGet.exe restore Rhetos.sln -NonInteractive || GOTO Error0
MSBuild.exe "Rhetos.sln" /target:rebuild /p:Configuration=%Config% /verbosity:minimal /fileLogger || GOTO Error0
CALL CreateInstallationPackage.bat %Config% /NOPAUSE || GOTO Error0

REM Updating the version of all projects back to "dev" (internal development build), to avoid spamming git history.
PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% dev || GOTO Error0

@REM ================================================

@ECHO.
@ECHO %~nx0 SUCCESSFULLY COMPLETED.
@EXIT /B 0

:Error0
@ECHO.
@ECHO %~nx0 FAILED.
@IF /I [%2] NEQ [/NOPAUSE] @PAUSE
@EXIT /B 1

Set Powershell ExecutionPolicy for build.


mkdir mage
composer install
rem Actions after deploy (database creation, files copy, etc)
copy ..\src\app\etc\nmmlm mage\app\etc

mkdir mage
composer install
rem Actions after deploy (database creation, files copy, etc)
xcopy ..\src\app\etc\nmmlm mage\app\etc\nmmlm /E /Y /I

Deploy script changed from copy to xcopy


@echo Off
set config=%1
if "%config%" == "" (
   set config=Release
)

set version=1.0.0
if not "%PackageVersion%" == "" (
   set version=%PackageVersion%
)

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

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

mkdir Build
mkdir Build\lib
mkdir Build\lib\net45

%nuget% pack "Bot.Messenger.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"

@echo Off
set config=%1
if "%config%" == "" (
   set config=Release
)

set version=1.0.0
if not "%PackageVersion%" == "" (
   set version=%PackageVersion%
)

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

%programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe Bot.Messenger.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false

mkdir Build
mkdir Build\lib
mkdir Build\lib\net461

%nuget% pack "Bot.Messenger.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"

Build commant updated to target MSBuild\14.0


@ECHO OFF

:: Note: We've disabled node reuse because it causes file locking issues.
::       The issue is that we extend the build with our own targets which
::       means that that rebuilding cannot successully delete the task
::       assembly.

"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=normal %1 %2 %3 %4 %5 %6 %7 %8 %9

@ECHO OFF

:: Note: We've disabled node reuse because it causes file locking issues.
::       The issue is that we extend the build with our own targets which
::       means that that rebuilding cannot successfully delete the task
::       assembly.

"%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo /m /v:m /nr:false /flp:verbosity=normal %*

Replace individual parameters with wildcard

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

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

Using individual arguments, MSBuild is called like this:

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

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


@echo off
.\choosenim\choosenim.exe stable --firstInstall

for /f "delims=" %%a in ('.\choosenim\choosenim.exe --getNimbleBin') do @set NIMBLEBIN=%%a
copy .\choosenim\choosenim.exe "%NIMBLEBIN%\choosenim.exe"

echo             Work finished.
echo             Now you must ensure that the Nimble bin dir is in your PATH:
echo               %NIMBLEBIN%

pause

Add bat script that is added into choosenim zip release.


@ECHO OFF
ECHO.
ECHO ===============================================================
ECHO.
ECHO Building: %1
ECHO.
ECHO ===============================================================
ECHO.

Call "C:\Program Files (x86)\MSBuild\12.0\Bin\MsBuild.exe" %1 /p:Configuration=Release /consoleloggerparameters:Summary;ErrorsOnly /nologo /p:PostBuildEvent=

Build Parameters (less logging in console)

Just turn the logging down for the build


call "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
nmake
dir WIN2000_DEBUG\*.exe
copy WIN2000_DEBUG\*.exe ..\Bin\
pause

call "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
nmake nodebug=1
dir WIN2000_DEBUG\*.exe
copy WIN2000_DEBUG\*.exe ..\Bin\
pause

Use RETAIL mode for Python Library Issues


@echo off

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

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

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

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

@echo off

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

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

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

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

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

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

BUG=1157117

git-svn-id: http://src.chromium.org/svn/trunk/src@40 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

Former-commit-id: 3f3a345fa4a4849ac50b16979cde53f6dd26d163


start nodemon SimulationManager/server.js
start nodemon FloodSim/server.js
start nodemon CriticalObjectSim/server.js
start nodemon ElectricalNetworkSim/server.js
start nodemon HazardousObjectSim/server.js
start nodemon RoadSim/server.js
start nodemon CommunicationSim/server.js

Add script to start all services at once.


@ECHO OFF
set GO_ROOT=%~dp0\..\..\..
set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11
set SERVER_ROOT=%GO_ROOT%\server
set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new
set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9
set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME%
set PATH=%JRUBY_BASE%\bin;%PATH%

set JRUBY_OPTS='-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Djruby.compile.invokedynamic=false -J-Djruby.compile.mode=OFF'
%JRUBY_BASE%\bin\jruby.bat %*

@ECHO OFF
set GO_ROOT=%~dp0\..\..\..
set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11
set SERVER_ROOT=%GO_ROOT%\server
set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new
set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9
set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME%
set PATH=%JRUBY_BASE%\bin;%PATH%

set JRUBY_OPTS='-J-XX:+TieredCompilation -J-XX:TieredStopAtLevel=1 -J-Djruby.compile.invokedynamic=false -J-Djruby.compile.mode=OFF %JRUBY_OPTS%'
%JRUBY_BASE%\bin\jruby.bat %*

Append to JRUBY_OPTS instead of overriding it


setlocal
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat

%HIDEWINDOW% h

set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255

set PYTHONUNBUFFERED=TRUE

%PYTHON% %MYDIRBLOCK%ArchiverAccess\archiver_access.py

@echo off
setlocal
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat

%HIDEWINDOW% h

set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255

set PYTHONUNBUFFERED=TRUE

%PYTHONW% %MYDIRBLOCK%ArchiverAccess\archiver_access.py

Put back echo and python

Put back echo and python