Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add also %ROOTSYS%\bin to PYTHONPATH if not already set
@echo off rem Source this script to set up the ROOT build that this script is part of. rem rem Author: Axel Naumann, 10/07/2007 set OLDPATH=%CD% set THIS=%0 set THIS=%THIS:~0,-12%. cd /D %THIS%\.. set ROOTSYS=%CD% cd /D %OLDPATH% set PATH=%ROOTSYS%\bin;%PATH% set OLDPATH= set THIS=
@echo off rem Source this script to set up the ROOT build that this script is part of. rem rem Author: Axel Naumann, 10/07/2007 set OLDPATH=%CD% set THIS=%0 set THIS=%THIS:~0,-12%. cd /D %THIS%\.. set ROOTSYS=%CD% cd /D %OLDPATH% set PATH=%ROOTSYS%\bin;%PATH% echo %PYTHONPATH%|find /i "%ROOTSYS%\bin">nul || set PYTHONPATH=%ROOTSYS%\bin;%PYTHONPATH% set OLDPATH= set THIS=
Add @REM for windows BAT file comment
## @file # # Copyright (c) 2007 - 2010, Intel Corporation # All rights reserved. This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php # # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @echo off setlocal SET NMAKE_COMMAND=%1 SHIFT :loop if "%1"=="" goto success ECHO Building %1 pushd %1 nmake %NMAKE_COMMAND% if ERRORLEVEL 1 goto error ECHO %1 built successfully (%NMAKE_COMMAND%) ECHO. shift popd goto loop :success goto exit :error popd ENDLOCAL ECHO Error while making %1! VERIFY OTHER 2>NUL :exit
@REM ## @file @REM # @REM # Copyright (c) 2007 - 2010, Intel Corporation @REM # All rights reserved. This program and the accompanying materials @REM # are licensed and made available under the terms and conditions of the BSD License @REM # which accompanies this distribution. The full text of the license may be found at @REM # http://opensource.org/licenses/bsd-license.php @REM # @REM # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, @REM # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @echo off setlocal SET NMAKE_COMMAND=%1 SHIFT :loop if "%1"=="" goto success ECHO Building %1 pushd %1 nmake %NMAKE_COMMAND% if ERRORLEVEL 1 goto error ECHO %1 built successfully (%NMAKE_COMMAND%) ECHO. shift popd goto loop :success goto exit :error popd ENDLOCAL ECHO Error while making %1! VERIFY OTHER 2>NUL :exit
Add game runner script for Windows to C++ bot
SET PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH% CALL "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 cl.exe /std:c++14 /O2 /MT /EHsc .\MyBot.cpp /link /out:MyBot.exe ..\..\environment\halite.exe -d "96 96" ".\MyBot.exe" ".\MyBot.exe"
Add parameter -N (Do not recurse into sub-projects) to skeleton generation script for Windows.
@echo off SETLOCAL SET ARGC=0 FOR %%x IN (%*) DO SET /A ARGC+=1 IF %ARGC% NEQ 2 ( echo Usage: %0 BindingIdInCamelCase BindingIdInLowerCase exit /B 1 ) mvn archetype:generate -DarchetypeGroupId=org.eclipse.smarthome.archetype -DarchetypeArtifactId=org.eclipse.smarthome.archetype.binding -DarchetypeVersion=0.8.0-SNAPSHOT -DgroupId=org.eclipse.smarthome.binding -DartifactId=org.eclipse.smarthome.binding.%2 -Dpackage=org.eclipse.smarthome.binding.%2 -DarchetypeCatalog='file://../archetype-catalog.xml' -Dversion=0.8.0-SNAPSHOT -DbindingId=%2 -DbindingIdCamelCase=%1 ENDLOCAL
@echo off SETLOCAL SET ARGC=0 FOR %%x IN (%*) DO SET /A ARGC+=1 IF %ARGC% NEQ 2 ( echo Usage: %0 BindingIdInCamelCase BindingIdInLowerCase exit /B 1 ) mvn archetype:generate -N -DarchetypeGroupId=org.eclipse.smarthome.archetype -DarchetypeArtifactId=org.eclipse.smarthome.archetype.binding -DarchetypeVersion=0.8.0-SNAPSHOT -DgroupId=org.eclipse.smarthome.binding -DartifactId=org.eclipse.smarthome.binding.%2 -Dpackage=org.eclipse.smarthome.binding.%2 -DarchetypeCatalog='file://../archetype-catalog.xml' -Dversion=0.8.0-SNAPSHOT -DbindingId=%2 -DbindingIdCamelCase=%1 ENDLOCAL
Fix source_svn test recipe on Windows
if not exist trunk exit 1 cd trunk svn info if errorlevel 1 exit 1 for /f "delims=" %%i in ('svn info | grep "Revision"') do set svnrev=%%i if not svnrev=="Revision: 1157" exit 1
if not exist trunk exit 1 cd trunk svn info if errorlevel 1 exit 1 for /f "delims=" %%i in ('svn info ^| grep "Revision"') do set svnrev=%%i if errorlevel 1 exit 1 echo %svnrev% if not "%svnrev%"=="Revision: 1157" exit 1
Use "@echo off" for brevity
@set JAVA_OPTS=-Djava.awt.headless=true @set ROOT_DIR=%~dp0 @cd "%ROOT_DIR%" @set CLASS_PATH="%ROOT_DIR%\*;." @java %JAVA_OPTS% -cp %CLASS_PATH% scalive.AgentLoader %ROOT_DIR% %*
@echo off set JAVA_OPTS=-Djava.awt.headless=true set ROOT_DIR=%~dp0 cd "%ROOT_DIR%" set CLASS_PATH="%ROOT_DIR%\*;." java %JAVA_OPTS% -cp %CLASS_PATH% scalive.AgentLoader %ROOT_DIR% %*
Fix order of arguments in mklink and prefix path with build/
mklink ./lib/ansible/release.py ./lib/ansible/ansible_release.py %PYTHON% -m pip install . -vv
mklink build/lib/ansible/ansible_release.py build/lib/ansible/release.py %PYTHON% -m pip install . -vv
Allow spaces in JAVA_HOME directory
@echo off echo building prefuse... if "%JAVA_HOME%" == "" goto error set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;.\lib\ant.jar;%CLASSPATH% set ANT_HOME=./lib echo ... using classpath %LOCALCLASSPATH% %JAVA_HOME%\bin\java.exe -Dant.home="%ANT_HOME%" -classpath "%LOCALCLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 goto end :error echo "... BUILD FAILED" echo " The JAVA_HOME environment variable was not found." echo " Please set the environment variable JAVA_HOME to the location" echo " of your preferred Java installation." :end set LOCALCLASSPATH=
@echo off echo building prefuse... if "%JAVA_HOME%" == "" goto error set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;.\lib\ant.jar;%CLASSPATH% set ANT_HOME=./lib echo ... using classpath %LOCALCLASSPATH% "%JAVA_HOME%\bin\java.exe" -Dant.home="%ANT_HOME%" -classpath "%LOCALCLASSPATH%" org.apache.tools.ant.Main %1 %2 %3 %4 %5 goto end :error echo "... BUILD FAILED" echo " The JAVA_HOME environment variable was not found." echo " Please set the environment variable JAVA_HOME to the location" echo " of your preferred Java installation." :end set LOCALCLASSPATH=
Update for ping wait to use invalid address so timeouts are reached.
echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL set cntr=0 :LoopStart IF NOT EXIST %cd%\.pid%1 Goto EndClean ping 127.0.0.1 -n 1 -w 1000 > nul IF %cntr%==5 Goto EndBad set /A cntr=%cntr%+1 Goto LoopStart :EndClean REM Give an extra second to clean up ping 127.0.0.1 -n 1 -w 1000 > nul EXIT /B 0 :EndBad EXIT /B 1
echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL set cntr=0 :LoopStart IF NOT EXIST %cd%\.pid%1 Goto EndClean ping 1.1.1.1 -n 1 -w 1000 > nul IF %cntr%==5 Goto EndBad set /A cntr=%cntr%+1 Goto LoopStart :EndClean REM Give an extra second to clean up ping 1.1.1.1 -n 1 -w 1000 > nul EXIT /B 0 :EndBad EXIT /B 1
Change to current directory after calling VSDevCmd.bat
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS% if not exist "%_VSCOMNTOOLS%" ( echo Error: Visual Studio 2015 or 2017 required. echo Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions. exit /b 1 ) call "%_VSCOMNTOOLS%\VsDevCmd.bat" :Run :: We do not want to run the first-time experience. set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*" exit /b %ERRORLEVEL%
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS% if not exist "%_VSCOMNTOOLS%" ( echo Error: Visual Studio 2015 or 2017 required. echo Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions. exit /b 1 ) call "%_VSCOMNTOOLS%\VsDevCmd.bat" :Run :: We do not want to run the first-time experience. set DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 pushd %~dp0 powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*" exit /b %ERRORLEVEL%
Add batch script to build the samples in the Windows SDK
cd %VULKAN_SDK% cd glslang md build cd build cmake -G "Visual Studio 12 Win64" .. msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet cd ..\.. cd spirv-tools md build cd build cmake -G "Visual Studio 12 Win64" .. msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet cd ..\.. cd samples md build cd build cmake -G "Visual Studio 12 Win64" .. msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet
Use ILRepack.MSBuild.Task from sympa public myget feed
@echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive NuGet.exe install ILRepack.MSBuild.Task -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
@echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.0 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Make sure we can exit cmd when we start code
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text" $* ) where atom >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=atom $* ) where code >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=code $* ) rem Open functionality doskey open=start $* @echo on
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text" $* ) where atom >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=atom $* ) where code >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=start /min code $* ) rem Open functionality doskey open=start $* @echo on
Fix for sDownload tool. Added correct v2 classpath entries. Submitted by: Jacob Danner
@rem Schema downloader @rem @rem Tool to download schemas. @echo off setlocal if "%XMLBEANS_HOME%" EQU "" (set XMLBEANS_HOME=%~dp0..) set cp= set cp=%cp%;%XMLBEANS_HOME%\build\ar\xbean.jar java -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaResourceManager %* :done
@rem Schema downloader @rem @rem Tool to download schemas. @echo off setlocal if "%XMLBEANS_HOME%" EQU "" (set XMLBEANS_HOME=%~dp0..) set cp= set cp=%cp%;%XMLBEANS_HOME%\build\ar\xbean.jar set cp=%cp%;%XMLBEANS_HOME%\build\lib\jsr173_api.jar set cp=%cp%;%XMLBEANS_HOME%\build\lib\resolver.jar java -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaResourceManager %* :done
Fix the nuget templates version
SET PACKAGE_VERSION=3.0.1 cd .\src\Templates nuget pack -Version %PACKAGE_VERSION% dotnet new -u GeneticSharp.Templates dotnet new -i GeneticSharp.Templates.%PACKAGE_VERSION%.nupkg echo GeneticSharpTspBlazorApp dotnet new GeneticSharpTspBlazorApp -n TspBlazorApp -o TspBlazorApp echo GeneticSharpConsoleApp dotnet new GeneticSharpConsoleApp -n ConsoleApp -o ConsoleApp dotnet build ConsoleApp/ConsoleApp.csproj echo GeneticSharpTspConsoleApp dotnet new GeneticSharpTspConsoleApp -n TspConsoleApp -o TspConsoleApp dotnet build TspConsoleApp/TspConsoleApp.csproj echo GeneticSharpTspUnity3d dotnet new GeneticSharpTspUnity3d -n TspUnity3d -o TspUnity3d cd ..\..
SET PACKAGE_VERSION=3.0.0 cd .\src\Templates nuget pack -Version %PACKAGE_VERSION% dotnet new -u GeneticSharp.Templates dotnet new -i GeneticSharp.Templates.%PACKAGE_VERSION%.nupkg echo GeneticSharpTspBlazorApp dotnet new GeneticSharpTspBlazorApp -n TspBlazorApp -o TspBlazorApp echo GeneticSharpConsoleApp dotnet new GeneticSharpConsoleApp -n ConsoleApp -o ConsoleApp dotnet build ConsoleApp/ConsoleApp.csproj echo GeneticSharpTspConsoleApp dotnet new GeneticSharpTspConsoleApp -n TspConsoleApp -o TspConsoleApp dotnet build TspConsoleApp/TspConsoleApp.csproj echo GeneticSharpTspUnity3d dotnet new GeneticSharpTspUnity3d -n TspUnity3d -o TspUnity3d cd ..\..
Fix up batch script line endings
@echo off echo HTTP/1.1 200 OK echo Connection: close echo. echo CGI test: echo. set
@echo off echo HTTP/1.1 200 OK echo Connection: close echo. echo CGI test: echo. set
Add utility script to quick re-generate the wiki pages
@ECHO OFF PUSHD "%~dp0." PUSHD wiki npm install node airbit.wiki.js POPD IF EXIST public\wiki RD /Q public\wiki MKLINK /J public\wiki wiki\_site POPD
Fix slight issue with the windows build script not returning to the original folder it was invoked from.
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" .. devenv musicgame.sln /build pause
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" .. devenv musicgame.sln /build cd .. pause
Change build order for CI.
cd /d "%~dp0" cd .. rmdir /s /q install rmdir /s /q build mkdir build cd build cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %* cmake --build . --config Debug cmake --build . --config RelWithDebInfo cmake --build . --config RelWithDebInfo -- /p:RunCodeAnalysis=True cmake --build . --config RelWithDebInfo --target INSTALL rem bin\Debug\LoadTest.exe --gtest_output=xml:test_details.Debug.xml rem bin\RelWithDebInfo\LoadTest.exe --gtest_output=xml:test_details.RelWithDebInfo.xml pause
cd /d "%~dp0" cd .. rmdir /s /q install rmdir /s /q build mkdir build cd build cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %* cmake --build . --config Debug cmake --build . --config RelWithDebInfo cmake --build . --config RelWithDebInfo --target INSTALL cmake --build . --config RelWithDebInfo -- /p:RunCodeAnalysis=True rem bin\Debug\LoadTest.exe --gtest_output=xml:test_details.Debug.xml rem bin\RelWithDebInfo\LoadTest.exe --gtest_output=xml:test_details.RelWithDebInfo.xml pause
Fix message in install script
@echo off echo node.js > 5.3.0 must be installed for this script to work. echo If this script fails, try closing editors and running it again first. echo Any warnings about optional dependencies can be safely ignored. pause REM Install Gulp cmd /c npm install gulp-cli -g REM Install tgui dependencies cmd /c npm install REM Flatten dependency tree cmd /c npm dedupe REM Clean dependency tree cmd /c npm prune pause
@echo off echo node.js 5.3.0 or newer must be installed for this script to work. echo If this script fails, try closing editors and running it again first. echo Any warnings about optional dependencies can be safely ignored. pause REM Install Gulp cmd /c npm install gulp-cli -g REM Install tgui dependencies cmd /c npm install REM Flatten dependency tree cmd /c npm dedupe REM Clean dependency tree cmd /c npm prune pause
Append exit 0 for AppVeyor copy script
robocopy . ..\..\..\..\..\installer\windows\x64\packages\com.kryvosproject.kryvos\data\ /E robocopy . Kryvos\ /E
robocopy . ..\..\..\..\..\installer\windows\x64\packages\com.kryvosproject.kryvos\data\ /E robocopy . Kryvos\ /E exit 0
Archive was being stored in wrong directory.
set PYTHON=C:\Python27\python.exe set BASE_DIR=[Your email-backup checkout] set OUTPUT_DIR=[Directory to output archive] set EMAIL=[Email address] set PASSWORD=[Password (application specific password for gmail accounts)] set IMAP=[IMAP server address] %python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR% %python% %BASE_DIR%\ebexporter.py -i %OUTPUT_DIR%\%EMAIL% -o %OUTPUT_DIR%\Archive.mbox
set PYTHON=C:\Python27\python.exe set BASE_DIR=[Your email-backup checkout] set OUTPUT_DIR=[Directory to output archive] set EMAIL=[Email address] set PASSWORD=[Password (application specific password for gmail accounts)] set IMAP=[IMAP server address] %python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR% %python% %BASE_DIR%\ebexporter.py -i %OUTPUT_DIR%\%EMAIL% -o %OUTPUT_DIR%\%EMAIL%\Archive.mbox
Remove files that should have been git ignored
jar -cvf bundle.jar Z80Processor-2.0.2.pom Z80Processor-2.0.2.pom.asc Z80Processor-2.0.2.jar Z80Processor-2.0.2.jar.asc Z80Processor-2.0.2-javadoc.jar Z80Processor-2.0.2-javadoc.jar.asc Z80Processor-2.0.2-sources.jar Z80Processor-2.0.2-sources.jar.asc
Update references to rename solution file
@echo off SET ROOT=%~dp0.. SET NuGetExe=%ROOT%\Tools\NuGet.exe SET SolutionFile=%ROOT%\UnitsNet.sln %NuGetExe% restore %SolutionFile%
@echo off SET ROOT=%~dp0.. SET NuGetExe=%ROOT%\Tools\NuGet.exe SET SolutionFile=%ROOT%\UnitsNet.2015.sln %NuGetExe% restore %SolutionFile%
Fix env var quoting on Windows
@echo off <% print environment.collect { entry -> """set ${entry.key}=\"${entry.value}\"""" }.join("\n") %> rem add jruby and rubygem binstubs to PATH set PATH="${additionalJRubyPaths.join(File.pathSeparator)};%PATH%" "${javaExecutable}" ^ <% print jvmArgs.collect { entry -> $/ "${entry}"/$ }.join(" ^\n") %> ^ <% print systemProperties.collect { entry -> $/ "-D${entry}"/$ }.join(" ^\n") %> ^ -cp ^ "${jrubyJar};${classpath.join(';')}" ^ ${mainClassName} ^ %*
@echo off <% print environment.collect { entry -> """set \"${entry.key}=${entry.value}\"""" }.join("\n") %> rem add jruby and rubygem binstubs to PATH set "PATH=${additionalJRubyPaths.join(File.pathSeparator)};%PATH%" "${javaExecutable}" ^ <% print jvmArgs.collect { entry -> $/ "${entry}"/$ }.join(" ^\n") %> ^ <% print systemProperties.collect { entry -> $/ "-D${entry}"/$ }.join(" ^\n") %> ^ -cp ^ "${jrubyJar};${classpath.join(';')}" ^ ${mainClassName} ^ %*
Check whether ngen.exe exists and execute only if it exists. Some versions of Windows 7 (e.g. without updates) do not include .NET Framework 4.0 by default.
::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems exit /b :64BIT %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems
::http://support.microsoft.com/kb/2570538 ::http://robrelyea.wordpress.com/2007/07/13/may-be-helpful-ngen-exe-executequeueditems/ if "%PROCESSOR_ARCHITECTURE%"=="AMD64" goto 64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems ) exit /b :64BIT if exist "%windir%\microsoft.net\framework\v4.0.30319\ngen.exe" ( %windir%\microsoft.net\framework\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe update /force /queue %windir%\microsoft.net\framework\v4.0.30319\ngen.exe executequeueditems %windir%\microsoft.net\framework64\v4.0.30319\ngen.exe executequeueditems )
Make file more readable by shortening lines.
@ECHO OFF SET CurrentPath=%~dp0 SET ReferenceFolder=%1 SET DifferenceFolder=%2 SET SupportLongFilenames=%3 IF [%3]==[] SET SupportLongFilenames=$False ECHO. PowerShell.exe -NoProfile -ExecutionPolicy ByPass -Command "%CurrentPath%FolderDiff.ps1 %ReferenceFolder% %DifferenceFolder% %SupportLongFilenames% | ForEach { $_.FullName }"
@ECHO OFF SET CurrentPath=%~dp0 SET ReferenceFolder=%1 SET DifferenceFolder=%2 SET SupportLongFilenames=%3 IF [%3]==[] SET SupportLongFilenames=$False ECHO. PowerShell.exe ^ -NoProfile ^ -ExecutionPolicy ByPass ^ -Command ^ "%CurrentPath%FolderDiff.ps1 %ReferenceFolder% %DifferenceFolder% %SupportLongFilenames% | ForEach { $_.FullName }"
Change CI build dir in appeyor
REM mkdir build REM cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^ -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^ --config "%CONFIGURATION%" ^ -H"C:\projects\chrono" ^ -DENABLE_MODULE_IRRLICHT=ON ^ -DENABLE_MODULE_FEA=OFF ^ -DENABLE_MODULE_POSTPROCESS=OFF ^ -DENABLE_MODULE_PYTHON=ON ^ -DBUILD_DEMOS=OFF ^ -DBUILD_TESTING=OFF ^ -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^ -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^ .. if errorlevel 1 exit 1 REM Build step cmake --build "C:\projects\build" --config "%CONFIGURATION%" if errorlevel 1 exit 1 REM Install step REM ninja install REM if errorlevel 1 exit 1
REM To avoid building in work/ alongside the source. Rather build in work/build/ mkdir build cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^ -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^ --config "%CONFIGURATION%" ^ -DENABLE_MODULE_IRRLICHT=ON ^ -DENABLE_MODULE_FEA=OFF ^ -DENABLE_MODULE_POSTPROCESS=OFF ^ -DENABLE_MODULE_PYTHON=ON ^ -DBUILD_DEMOS=OFF ^ -DBUILD_TESTING=OFF ^ -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^ -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^ .. if errorlevel 1 exit 1 REM Build step cmake --build . --config "%CONFIGURATION%" if errorlevel 1 exit 1 REM Install step REM ninja install REM if errorlevel 1 exit 1
Revert "swap GnuWin32 with 7zip, cuz sourceforge is broke"
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json go get -v github.com/onsi/ginkgo/ginkgo pushd %CD%\cf-cli-binaries 7z x cf-cli-binaries.tgz 7z x cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe dir .. popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -slowSpecThreshold=120 -skipPackage="logging,services,v3,routing_api,routing,backend_compatibility,ssh" -skip="NO_DEA_SUPPORT|go makes the app reachable via its bound route|SSO|takes effect after a restart, not requiring a push|doesn't die when printing 32MB|exercises basic loggregator|firehose data|Downloads the droplet for the app" -nodes=2
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json go get -v github.com/onsi/ginkgo/ginkgo pushd %CD%\cf-cli-binaries gzip -d cf-cli-binaries.tgz tar -xvf cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe dir .. popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -slowSpecThreshold=120 -skipPackage="logging,services,v3,routing_api,routing,backend_compatibility,ssh" -skip="NO_DEA_SUPPORT|go makes the app reachable via its bound route|SSO|takes effect after a restart, not requiring a push|doesn't die when printing 32MB|exercises basic loggregator|firehose data|Downloads the droplet for the app" -nodes=2
Add windows command for populating mongo
@echo off where mongoimport /q IF "%ERRORLEVEL%" == "0" ( call mongoimport --host localhost --port 27017 --collection homes --db bibliothek --jsonArray --file ./homes_data.json --verbose ) ELSE ( echo Cannot find `mongoimport` )
Build Ironframe in DiegoWindowsMSI on appveyor instead of testing it (currently freezes)
:: msbuild must be in path SET PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework64\v4.0.30319 where msbuild if errorLevel 1 ( echo "msbuild was not found on PATH" && exit /b 1 ) git submodule update --init --recursive cd IronFrame call build.bat || exit /b 1 cd .. rmdir /S /Q packages bin\nuget restore || exit /b 1 MSBuild Containerizer\Containerizer.csproj /t:Rebuild /p:Configuration=Release || exit /b 1 MSBuild Containerizer.Tests\Containerizer.Tests.csproj /t:Rebuild /p:Configuration=Release || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Containerizer.Tests\bin\Release\Containerizer.Tests.dll || exit /b 1
:: msbuild must be in path SET PATH=%PATH%;%WINDIR%\Microsoft.NET\Framework64\v4.0.30319 where msbuild if errorLevel 1 ( echo "msbuild was not found on PATH" && exit /b 1 ) git submodule update --init --recursive cd IronFrame call build.bat build || exit /b 1 cd .. rmdir /S /Q packages bin\nuget restore || exit /b 1 MSBuild Containerizer\Containerizer.csproj /t:Rebuild /p:Configuration=Release || exit /b 1 MSBuild Containerizer.Tests\Containerizer.Tests.csproj /t:Rebuild /p:Configuration=Release || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Containerizer.Tests\bin\Release\Containerizer.Tests.dll || exit /b 1
Fix run_all_test script to avoid git-cl variable clashes.
@echo off :: Copyright 2009 Google Inc. All Rights Reserved. :: :: 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 PYTHON="%~dp0..\third_party\python_26\python.exe" set SCRIPT="%~dp0tests\run_all_tests.py" set INTERNAL_TESTS="%~dp0internal\run_all_tests.bat" %PYTHON% %SCRIPT% %* IF EXIST %INTERNAL_TESTS% ( %INTERNAL_TESTS% %* )
@echo off :: Copyright 2009 Google Inc. All Rights Reserved. :: :: 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 SYZYGY_PYTHON="%~dp0..\third_party\python_26\python.exe" set SYZYGY_SCRIPT="%~dp0tests\run_all_tests.py" set SYZYGY_INTERNAL_TESTS="%~dp0internal\run_all_tests.bat" %SYZYGY_PYTHON% %SYZYGY_SCRIPT% %* IF EXIST %SYZYGY_INTERNAL_TESTS% ( %SYZYGY_INTERNAL_TESTS% %* ) set SYZYGY_PYTHON= set SYZYGY_SCRIPT= set SYZYGY_INTERNAL_TESTS=
Revert dotnet restore because it did not fix the AnyCPU build.
@echo off if not exist "C:\Program Files (x86)\gs" powershell -ExecutionPolicy Unrestricted ..\Scripts\AppVeyor\InstallGhostscript.ps1 if %errorlevel% neq 0 exit /b %errorlevel% set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x -o%LIBDIR% AACQFGl4PKi9xnd15EbU5S1Ia if %errorlevel% neq 0 exit /b %errorlevel% dotnet restore ..\..\Tests\Magick.NET.Tests\Magick.NET.Tests.csproj :done
@echo off if not exist "C:\Program Files (x86)\gs" powershell -ExecutionPolicy Unrestricted ..\Scripts\AppVeyor\InstallGhostscript.ps1 if %errorlevel% neq 0 exit /b %errorlevel% set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x -o%LIBDIR% AACQFGl4PKi9xnd15EbU5S1Ia if %errorlevel% neq 0 exit /b %errorlevel% :done
Remove wildcard from del statement
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk rmdir /q /s dist\*.* del /s /q dist\*.* rem ****** Compile our executable and core zipfile python setup.py py2exe rem ****** Remove extras from core zipfile cd dist 7z d namebench.zip tcl\*.* rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos del tcl\tk8.5\images\*.eps rem ****** Final assembly of zipfile copy ..\README.txt . 7z a namebench_for_Windows.zip -r * >nul rem ****** Test assembled zipfile namebench -x -O 8.8.8.8 -q5 -o test.html start test.html cd ..
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk del /s /f /q dist rem ****** Compile our executable and core zipfile python setup.py py2exe rem ****** Remove extras from core zipfile cd dist 7z d namebench.zip tcl\*.* rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos del tcl\tk8.5\images\*.eps rem ****** Final assembly of zipfile copy ..\README.txt . 7z a namebench_for_Windows.zip -r * >nul rem ****** Test assembled zipfile namebench -x -O 8.8.8.8 -q5 -o test.html start test.html cd ..
Address exit codes on Windows.
cd winbuild if %ARCH% == 32 ( set ARCH_STRING=x86 ) else ( set ARCH_STRING=x64 ) REM This is implicitly using WinSSL. See Makefile.vc for more info. nmake /f Makefile.vc mode=dll VC=%VS_MAJOR:"=% WITH_DEVEL=%LIBRARY_PREFIX% ^ WITH_ZLIB=dll DEBUG=no ENABLE_IDN=no MACHINE=%ARCH_STRING% robocopy ..\builds\libcurl-vc%VS_MAJOR:"=%-%ARCH_STRING%-release-dll-zlib-dll-ipv6-sspi-winssl\ %LIBRARY_PREFIX% *.* /E if %ERRORLEVEL% GEQ 8 exit 1 exit /B
cd winbuild if %ARCH% == 32 ( set ARCH_STRING=x86 ) else ( set ARCH_STRING=x64 ) REM This is implicitly using WinSSL. See Makefile.vc for more info. nmake /f Makefile.vc mode=dll VC=%VS_MAJOR:"=% WITH_DEVEL=%LIBRARY_PREFIX% ^ WITH_ZLIB=dll DEBUG=no ENABLE_IDN=no MACHINE=%ARCH_STRING% if %ERRORLEVEL% 1 exit 1 robocopy ..\builds\libcurl-vc%VS_MAJOR:"=%-%ARCH_STRING%-release-dll-zlib-dll-ipv6-sspi-winssl\ %LIBRARY_PREFIX% *.* /E if %ERRORLEVEL% GEQ 8 exit 1 exit 0
Disable tests in Mingw builds
rem CMake/MinGW workaround - remove sh.exe from PATH where sh set MINGW=C:\Qt\Tools\mingw530_32 set QTDIR=C:\Qt\5.11.0\mingw53_32 set PATH=%PATH:C:\Program Files\Git\usr\bin;=% set CMAKE_PREFIX_PATH=%QTDIR% set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin :: Qt needs to find the windows platform plugin to run tests set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins mkdir build cd build cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL .. || goto :error cmake --build . --target install || goto :error ctest -VV || goto :error goto :EOF :error echo Failed with error #%errorlevel%. exit /b %errorlevel%
rem CMake/MinGW workaround - remove sh.exe from PATH where sh set MINGW=C:\Qt\Tools\mingw530_32 set QTDIR=C:\Qt\5.11.0\mingw53_32 set PATH=%PATH:C:\Program Files\Git\usr\bin;=% set CMAKE_PREFIX_PATH=%QTDIR% set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin :: Qt needs to find the windows platform plugin to run tests set QT_QPA_PLATFORM_PLUGIN_PATH=%QTDIR%\plugins mkdir build cd build cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../INSTALL .. || goto :error cmake --build . --target install || goto :error rem TODO: reenable this rem ctest -VV || goto :error goto :EOF :error echo Failed with error #%errorlevel%. exit /b %errorlevel%
Use REN instead of MOVE as the latter has issues with long path
set SRC_DIR=%cd%\src set DIST_DIR=%SRC_DIR%\dist set BUILD_DIR=%SRC_DIR%\build set OUT_DIR=%SRC_DIR%\bin set MSI_TARGET_DIR=C:\jenkins\build\whid-x64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" cd cd %SRC_DIR% dir echo on rmdir /S /Q "%DIST_DIR%" mkdir "%DIST_DIR%" mkdir "%BUILD_DIR%" mkdir "%OUT_DIR%" pushd "%BUILD_DIR%" %QTDIR%\bin\qmake.exe ^ -spec win32-msvc ^ "CONFIG += release" ^ "%SRC_DIR%\src.pro" nmake popd ::echo "Copying: %BUILD_DIR%\release\Spectrecoin.exe" "%OUT_DIR%" ::copy "%BUILD_DIR%\release\Spectrecoin.exe" "%OUT_DIR%" ::copy "%SRC_DIR%\qt\res\assets\icons\spectrecoin.ico" "%OUT_DIR%" %QTDIR%\bin\windeployqt "%OUT_DIR%\Spectrecoin.exe" MOVE "%OUT_DIR%" Spectrecoin echo "The prepared package is in: "%SRC_DIR%\Spectrecoin" echo "Everything is OK"
set SRC_DIR=%cd%\src set DIST_DIR=%SRC_DIR%\dist set BUILD_DIR=%SRC_DIR%\build set OUT_DIR=%SRC_DIR%\bin set MSI_TARGET_DIR=C:\jenkins\build\whid-x64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" cd cd %SRC_DIR% dir echo on rmdir /S /Q "%DIST_DIR%" mkdir "%DIST_DIR%" mkdir "%BUILD_DIR%" mkdir "%OUT_DIR%" pushd "%BUILD_DIR%" %QTDIR%\bin\qmake.exe ^ -spec win32-msvc ^ "CONFIG += release" ^ "%SRC_DIR%\src.pro" nmake popd %QTDIR%\bin\windeployqt "%OUT_DIR%\Spectrecoin.exe" ren "%OUT_DIR%" Spectrecoin echo "The prepared package is in: "%SRC_DIR%\Spectrecoin" echo "Everything is OK"
Create project for visual studio 14
echo off set platformsFolder=platforms set platformName=Visual set folder=%platformsFolder%\%platformName% if not exist %folder% (mkdir %folder%)
rem echo off SET mypath=%~dp0 set platformsFolder=platforms set platformName="Visual Studio 14" set folder=%mypath%\%platformsFolder%\%platformName% if not exist %folder% (mkdir %folder%) cd %platformsFolder% rem call cmake cmake.exe .. -G%platformName% cd %mypath% pause
Put database and log files in Application Data folder instead of Program Files folder.
@rem figure out the folder name @set MONETDB=%~dp0 @rem remove the final backslash from the path @set MONETDB=%MONETDB:~0,-1% @rem extend the search path with our EXE and DLL folders @rem we depend on pthreadVCE.dll having been copied to the lib folder @set PATH=%MONETDB%\bin;%MONETDB%\lib;%PATH% @rem start the real server @"%MONETDB%\bin\Mserver.exe" --set "prefix=%MONETDB%" --set "exec_prefix=%MONETDB%" %*
@echo off rem figure out the folder name set MONETDB=%~dp0 rem remove the final backslash from the path set MONETDB=%MONETDB:~0,-1% rem extend the search path with our EXE and DLL folders rem we depend on pthreadVCE.dll having been copied to the lib folder set PATH=%MONETDB%\bin;%MONETDB%\lib;%PATH% set MONETDBFARM= set SQLLOGDIR= if "%ALLUSERSPROFILE%" == "" goto skip set MONETDBFARM="--dbfarm=%ALLUSERSPROFILE%\Application Data\MonetDB" set SQLLOGDIR=--set "sql_logdir=%ALLUSERSPROFILE%\Application Data\MonetDB\var\MonetDB\log" :skip rem start the real server "%MONETDB%\bin\Mserver.exe" --set "prefix=%MONETDB%" --set "exec_prefix=%MONETDB%" %MONETDBFARM% %SQLLOGDIR% %*
Create scheduled task as current user
@echo off TITLE Adding task to start KA Lite at system start setlocal for /f "tokens=4-6 delims=[.XP " %%i in ('ver') do set WIN_VERSION="%%i.%%j" rem 5.1 and 5.2 are XP and Server 2003/64-bit XP if %WIN_VERSION% LEQ "5.2" ( echo This feature is unavailable on this version of Windows. pause ) else ( schtasks /create /tn "KALite" /tr "\"%KALITE_SCRIPT_DIR%\kalite.bat\" start" /sc onstart /ru SYSTEM /f )
@echo off TITLE Adding task to start KA Lite at system start setlocal for /f "tokens=4-6 delims=[.XP " %%i in ('ver') do set WIN_VERSION="%%i.%%j" rem 5.1 and 5.2 are XP and Server 2003/64-bit XP if %WIN_VERSION% LEQ "5.2" ( echo This feature is unavailable on this version of Windows. pause ) else ( schtasks /create /tn "KALite" /tr "\"%KALITE_SCRIPT_DIR%\kalite.bat\" start" /sc onstart /ru %USERNAME% /f )
Make build Windows command line launcher independent from the current working directory
set FrameworkVersion=v4.0.30319 set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework "%FrameworkDir%\%FrameworkVersion%\msbuild.exe" CI-build.msbuild exit /B %ERRORLEVEL%
SET BASEDIR=%~dp0 set FrameworkVersion=v4.0.30319 set FrameworkDir=%SystemRoot%\Microsoft.NET\Framework "%FrameworkDir%\%FrameworkVersion%\msbuild.exe" "%BASEDIR%CI-build.msbuild" exit /B %ERRORLEVEL%
Add standalone conda module build on Windows.
cd "%RECIPE_DIR%\..\..\" || exit 1 "%PYTHON%" setup.py module || exit 1 "%PYTHON%" setup.py module_install || exit 1 if not exist "%RECIPE_DIR%\test" mkdir "%RECIPE_DIR%\test" || exit 1 copy /y python\*.py "%RECIPE_DIR%\test"
Add bat file to test
.\bin\Debug\music_box.exe --init albums.txt .\bin\Debug\music_box.exe --load my-favorite-aor.txt .\bin\Debug\music_box.exe --play
Install builtInExtensions on windows too
@echo off setlocal title VSCode Dev pushd %~dp0\.. :: Node modules if not exist node_modules call yarn for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a set NAMESHORT=%NAMESHORT: "=% set NAMESHORT=%NAMESHORT:"=%.exe set CODE=".build\electron\%NAMESHORT%" :: Download Electron if needed node build\lib\electron.js if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron :: Build if not exist out node .\node_modules\gulp\bin\gulp.js compile :: Configuration set NODE_ENV=development set VSCODE_DEV=1 set VSCODE_CLI=1 set ELECTRON_DEFAULT_ERROR_MODE=1 set ELECTRON_ENABLE_LOGGING=1 set ELECTRON_ENABLE_STACK_DUMPING=1 :: Launch Code :: Use the following to get v8 tracing: :: %CODE% --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" . %* %CODE% . %* popd endlocal
@echo off setlocal title VSCode Dev pushd %~dp0\.. :: Node modules if not exist node_modules call yarn for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a set NAMESHORT=%NAMESHORT: "=% set NAMESHORT=%NAMESHORT:"=%.exe set CODE=".build\electron\%NAMESHORT%" :: Download Electron if needed node build\lib\electron.js if %errorlevel% neq 0 node .\node_modules\gulp\bin\gulp.js electron :: Get built-in extensions node build\lib\builtInExtensions.js || .\node_modules\.bin\gulp builtInExtensions :: Build if not exist out node .\node_modules\gulp\bin\gulp.js compile :: Configuration set NODE_ENV=development set VSCODE_DEV=1 set VSCODE_CLI=1 set ELECTRON_DEFAULT_ERROR_MODE=1 set ELECTRON_ENABLE_LOGGING=1 set ELECTRON_ENABLE_STACK_DUMPING=1 :: Launch Code :: Use the following to get v8 tracing: :: %CODE% --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" . %* %CODE% . %* popd endlocal
Add explanation to upload script
@echo off setlocal EnableDelayedExpansion SET username=%1 SET apikey=%2 SET modules="MediaPlayer" "MediaPlayer-DASH" "MediaPlayer-GLES" "MediaPlayer-GLES-FlowAbs" "MediaPlayer-GLES-QrMarker" FOR %%m in (%modules%) DO ( gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false )
@echo off setlocal EnableDelayedExpansion REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued SET username=%1 SET apikey=%2 SET modules="MediaPlayer" "MediaPlayer-DASH" "MediaPlayer-GLES" "MediaPlayer-GLES-FlowAbs" "MediaPlayer-GLES-QrMarker" FOR %%m in (%modules%) DO ( gradlew %%~m:clean %%~m:build %%~m:bintrayUpload -PbintrayUser=%username% -PbintrayKey=%apikey% -PdryRun=false )
Revert ChangeVersion on error in build script
SETLOCAL SET Version=2.0.1 SET Prerelease=auto CALL Tools\Build\FindVisualStudio.bat || GOTO Error0 REM Updating the build version. PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% %Prerelease% || GOTO Error0 WHERE /Q NuGet.exe || ECHO ERROR: Please download the NuGet.exe command line tool. && GOTO Error0 NuGet restore -NonInteractive || GOTO Error0 MSBuild /target:rebuild /p:Configuration=Debug /verbosity:minimal /fileLogger || GOTO Error0 IF NOT EXIST Install md Install NuGet pack -OutputDirectory Install || GOTO Error0 REM Updating the build version back to "dev" (internal development build), to avoid spamming git history with timestamped prerelease versions. 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 [%1] NEQ [/NOPAUSE] @PAUSE @EXIT /B 1
SETLOCAL SET Version=2.0.1 SET Prerelease=auto CALL Tools\Build\FindVisualStudio.bat || GOTO Error0 REM Updating the build version. PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% %Prerelease% || GOTO Error0 WHERE /Q NuGet.exe || ECHO ERROR: Please download the NuGet.exe command line tool. && GOTO Error0 NuGet restore -NonInteractive || GOTO Error0 MSBuild /target:rebuild /p:Configuration=Debug /verbosity:minimal /fileLogger || GOTO Error0 IF NOT EXIST Install md Install NuGet pack -OutputDirectory Install || GOTO Error0 REM Updating the build version back to "dev" (internal development build), to avoid spamming git history with timestamped prerelease versions. PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% dev || GOTO Error0 @REM ================================================ @ECHO. @ECHO %~nx0 SUCCESSFULLY COMPLETED. @EXIT /B 0 :Error0 @PowerShell -ExecutionPolicy ByPass .\ChangeVersion.ps1 %Version% dev >nul @ECHO. @ECHO %~nx0 FAILED. @IF /I [%1] NEQ [/NOPAUSE] @PAUSE @EXIT /B 1
Add cygwin to env path for windows dev
ECHO OFF SET PATH=%PATH%;%PROJECT_HOME%\misc\env\user\win32\scripts REM SET PATH=%PATH%;C:\Dev\vagrant\bin ECHO User Environment Setup.
ECHO OFF SET PATH=%PATH%;%PROJECT_HOME%\misc\env\user\win32\scripts REM SET PATH=%PATH%;C:\Dev\vagrant\bin SET PATH=%PATH%;C:\cygwin64\bin ECHO User Environment Setup.
Build script fixes for UWP.
@echo off set fdir="%ProgramFiles%\MSBuild\14.0\Bin" if not exist %fdir% ( set fdir="%ProgramFiles(x86)%\MSBuild\14.0\Bin" ) set msbuild=%fdir%\msbuild.exe FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G" %msbuild% WebSocket4Net.UWP.sln /p:Configuration=Debug /t:Clean;Rebuild /p:OutputPath=..\bin\UWP\Debug FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G" %msbuild% WebSocket4Net.UWP.sln /p:Configuration=Release /t:Clean;Rebuild /p:OutputPath=..\bin\UWP\Release pause
@echo off set fdir="%ProgramFiles%\MSBuild\14.0\Bin" if not exist %fdir% ( set fdir="%ProgramFiles(x86)%\MSBuild\14.0\Bin" ) set msbuild=%fdir%\msbuild.exe set outDir=bin\UWP\Debug FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G" %msbuild% WebSocket4Net.UWP.sln /p:Configuration=Debug /t:Clean;Rebuild /p:OutDir=..\%outDir% set outDir=%outDir%\WebSocket4Net.UWP del %outDir%\*.pdb del %outDir%\*.pri set outDir=bin\UWP\Release FOR /F "tokens=*" %%G IN ('DIR /B /AD /S obj') DO RMDIR /S /Q "%%G" %msbuild% WebSocket4Net.UWP.sln /p:Configuration=Release /t:Clean;Rebuild /p:OutDir=..\%outDir% set outDir=%outDir%\WebSocket4Net.UWP del %outDir%\*.pdb del %outDir%\*.pri pause
Add support for the Preview version of Visual Studio.
@echo off set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools if exist "%TOOLSDIR%" goto found goto notfound :found call "%TOOLSDIR%\VsDevCmd.bat" goto end :notfound echo "Unable to find Visual Studio folder." pause :end
@echo off set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\Preview\Community\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\Common7\Tools if exist "%TOOLSDIR%" goto found set TOOLSDIR=C:\Program Files (x86)\Microsoft Visual Studio\Preview\Enterprise\Common7\Tools if exist "%TOOLSDIR%" goto found goto notfound :found call "%TOOLSDIR%\VsDevCmd.bat" goto end :notfound echo "Unable to find Visual Studio folder." pause :end
Add copyright note and description to Windows-specific starter.
@python -m shcol %*
:: Copyright (c) 2013-2015, Sebastian Linke :: Released under the Simplified BSD license :: (see LICENSE file for details). :: A starter to invoke `shcol` from the Windows command-line. @python -m shcol %*
Exit on install if node is not installed.
@echo off :: change directory to etherpad-lite root cd /D "%~dp0\.." echo Checking node version... set check_version="if(['6','8'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad Lite requires v0.6.x or v0.8.x'); process.exit(1) }" cmd /C node -e %check_version% || exit /B 1 echo _ echo Installing etherpad-lite and dependencies... cmd /C npm install src/ || exit /B 1 echo _ echo Copying custom templates... set custom_dir=node_modules\ep_etherpad-lite\static\custom FOR %%f IN (index pad timeslider) DO ( if NOT EXIST "%custom_dir%\%%f.js" copy "%custom_dir%\js.template" "%custom_dir%\%%f.js" if NOT EXIST "%custom_dir%\%%f.css" copy "%custom_dir%\css.template" "%custom_dir%\%%f.css" ) echo _ echo Clearing cache... del /S var\minified* echo _ echo Setting up settings.json... IF NOT EXIST settings.json ( echo Can't find settings.json. echo Copying settings.json.template... cmd /C copy settings.json.template settings.json || exit /B 1 ) echo _ echo Installed Etherpad-lite!
@echo off :: change directory to etherpad-lite root cd /D "%~dp0\.." :: Is node installed? cmd /C node -e "" || ( echo "Please install node.js ( http://nodejs.org )" && exit /B 1 ) echo _ echo Checking node version... set check_version="if(['6','8'].indexOf(process.version.split('.')[1].toString()) === -1) { console.log('You are running a wrong version of Node. Etherpad Lite requires v0.6.x or v0.8.x'); process.exit(1) }" cmd /C node -e %check_version% || exit /B 1 echo _ echo Installing etherpad-lite and dependencies... cmd /C npm install src/ || exit /B 1 echo _ echo Copying custom templates... set custom_dir=node_modules\ep_etherpad-lite\static\custom FOR %%f IN (index pad timeslider) DO ( if NOT EXIST "%custom_dir%\%%f.js" copy "%custom_dir%\js.template" "%custom_dir%\%%f.js" if NOT EXIST "%custom_dir%\%%f.css" copy "%custom_dir%\css.template" "%custom_dir%\%%f.css" ) echo _ echo Clearing cache... del /S var\minified* echo _ echo Setting up settings.json... IF NOT EXIST settings.json ( echo Can't find settings.json. echo Copying settings.json.template... cmd /C copy settings.json.template settings.json || exit /B 1 ) echo _ echo Installed Etherpad-lite!
Update example .bat with latest client version
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 30 -clientVersion "0.57" -password "" -tcpLobby "149.202.51.185" 25565 @echo. @echo Restarting server... @echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 30 -clientVersion "0.581" -password "" -tcpLobby "149.202.51.185" 25565 @echo. @echo Restarting server... @echo. goto start
Use $G instead of > for doskey
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul>>$* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
Add note about test in windows
mkdir build cd build REM Configure step cmake .. ^ -GNinja ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_EXE_LINKER_FLAGS="/FORCE:MULTIPLE" REM Note: /FORCE:MULTIPLE is needed because of a bug in MSVC 14.1 REM in dealing with inline definitions of static REM data members (Plot::m_counter and Figure::m_counter) if errorlevel 1 exit 1 REM Build step ninja install if errorlevel 1 exit 1 REM Test step tests\Release\sciplot-cpptests.exe if errorlevel 1 exit 1
mkdir build cd build REM Configure step cmake .. ^ -GNinja ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_EXE_LINKER_FLAGS="/FORCE:MULTIPLE" REM Note: /FORCE:MULTIPLE is needed because of a bug in MSVC 14.1 REM in dealing with inline definitions of static REM data members (Plot::m_counter and Figure::m_counter) if errorlevel 1 exit 1 REM Build step ninja install if errorlevel 1 exit 1 REM Due to /FORCE:MULTIPLE, the executable for the test does not work. REM Solution is to use a newer version of MSVC (e.g., 14.2 instead of 14.1) REM Test step REM tests\Release\sciplot-cpptests.exe if errorlevel 1 exit 1
Delete .pyc files when making build. Make sure that data/configuration directory exists in the build.
@rem Makes a build directory of the viewer, so that you can run the NSIS install script @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including Qt core/ui/network/webkit/phonon dll's, and also VS2008 @rem redistributable (vcredist_x86.exe) @echo off rmdir build /S /Q md build copy readme.txt build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll xcopy ..\viewerbuilddlls\*.* build /S /C del build\pymodules\*.pyc del build\pymodules\apitest\*.pyc del build\pymodules\circuits\*.pyc del build\pymodules\communication\*.pyc del build\pymodules\core\*.pyc del build\pymodules\usr\*.pyc
@rem Makes a build directory of the viewer, so that you can run the NSIS install script @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, and also VS2008 redistributable (vcredist_x86.exe) @echo off rmdir build /S /Q md build copy readme.txt build xcopy bin\*.* build /S /C /Y del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll xcopy ..\viewerbuilddlls\*.* build /S /C /Y del build\pymodules\*.pyc del build\pymodules\apitest\*.pyc del build\pymodules\circuits\*.pyc del build\pymodules\circuits\core\*.pyc del build\pymodules\circuits\net\*.pyc del build\pymodules\circuits\tools\*.pyc del build\pymodules\circuits\web\*.pyc del build\pymodules\core\*.pyc del build\pymodules\editgui\*.pyc del build\pymodules\lib\*.pyc del build\pymodules\lib\webdav\*.pyc del build\pymodules\lib\webdav\acp\*.pyc del build\pymodules\usr\*.pyc del build\pymodules\webdavinventory\*.pyc del build\pymodules\webserver\*.pyc cd build\data rmdir configuration /S /Q mkdir configuration cd ..\..
Check if Appveyor fails when test fails
cd bin :: ### Clone MNE-CPP test data ### call git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data cd ..
cd bin :: ### Clone MNE-CPP test data ### :: call git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data cd ..
Add dir after gfortran command to check which files we have there.
copy mpi.f.single mpi.f copy mpif.h.single mpif.h gfortran -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 copy genesis2 %LIBRARY_PREFIX%
copy mpi.f.single mpi.f copy mpif.h.single mpif.h gfortran -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 echo "DEBUG Info..." dir copy genesis2 %LIBRARY_BIN%
Fix work in path with spaces on windows.
set PWD=%~dp0 start /MIN %PWD%dbserver\bin\openmole-dbserver.bat mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole.location="%PWD%\" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -splash:splashscreen.png -XX:MaxPermSize=128M -XX:+UseG1GC -Xmx1G -XX:MaxPermSize=128M %FLAG% -jar %PWD%/plugins/org.eclipse.equinox.launcher.jar -consoleLog -cp %PWD%/openmole-plugins -gp %PWD%/openmole-plugins-gui %* rmdir /s /q %ran%
set PWD=%~dp0 start /MIN "%PWD%dbserver\bin\openmole-dbserver.bat" mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole.location="%PWD%\" -Dosgi.classloader.singleThreadLoads=true -Dosgi.configuration.area=%ran% -splash:splashscreen.png -XX:MaxPermSize=128M -XX:+UseG1GC -Xmx1G -XX:MaxPermSize=128M %FLAG% -jar "%PWD%/plugins/org.eclipse.equinox.launcher.jar" -consoleLog -cp "%PWD%/openmole-plugins" -gp "%PWD%/openmole-plugins-gui" %* rmdir /s /q %ran%
Add mlcp batch file for ingesting baby name data
mlcp.bat IMPORT -host localhost -port 8200 -username admin -password admin -input_file_path .\src\test\resources\Most_Popular_Baby_Names_NYC.csv --input_file_type delimited_text -document_type xml -delimited_root_name baby-name -output_collections baby
Add a post-build batch file to delete unwanted files from the release folders
del "bin\x86\Release Dick\*.xml" del "bin\x86\Release Dick\devtools_resources.pak" del "bin\x86\Release Duck\*.xml" del "bin\x86\Release Duck\devtools_resources.pak"
Add output file name to bem download in win ci
:: Go to bin directory cd bin :: Clone MNE-CPP test data call git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data curl https://www.dropbox.com/s/464j97jbaef7q3n/sample-5120-5120-5120-bem-sol.fif?dl=1 -L curl https://www.dropbox.com/s/tkrl3p1kifbzjo1/sample-5120-5120-5120-bem.fif?dl=1 -L :: Go back to mne-cpp root cd ..
:: Go to bin directory cd bin :: Clone MNE-CPP test data call git clone https://github.com/mne-tools/mne-cpp-test-data.git mne-cpp-test-data curl https://www.dropbox.com/s/464j97jbaef7q3n/sample-5120-5120-5120-bem-sol.fif?dl=1 -L -o sample-5120-5120-5120-bem-sol.fif curl https://www.dropbox.com/s/tkrl3p1kifbzjo1/sample-5120-5120-5120-bem.fif?dl=1 -L -o sample-5120-5120-5120-bem.fif :: Go back to mne-cpp root cd ..
Add the command file to build the VNEXT project
CD SimpleIdentityServer\VNEXT\ call powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}" call dnvm upgrade call dnu restore dnu build src\SimpleIdentityServer.Host dnu build src\SimpleIdentityServer.Core dnu build src\SimpleIdentityServer.Core.Jwt dnu build src\SimpleIdentityServer.DataAccess.Fake dnu build src\SimpleIdentityServer.DataAccess.SqlServer dnu build src\SimpleIdentityServer.RateLimitation dnu build src\SimpleIdentityServer.Core.Common dnu build src\SimpleIdentityServer.Common dnu pack src\SimpleIdentityServer.Common -out nuget\ dnu pack src\SimpleIdentityServer.Core.Common -out nuget\ dnu pack src\SimpleIdentityServer.RateLimitation -out nuget\ dnu pack src\SimpleIdentityServer.DataAccess.SqlServer -out nuget\ dnu pack src\SimpleIdentityServer.DataAccess.Fake -out nuget\ dnu pack src\SimpleIdentityServer.Core.Jwt -out nuget\ dnu pack src\SimpleIdentityServer.Core -out nuget\ dnu pack src\SimpleIdentityServer.Host -out nuget\
Add SDK7.0A as one of the possible defaults during the build of coinstaller\CLI for NetKVM driver
@echo off call :set_sdk_path call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib call :clean_sdk_path goto :eof :setshortpath set %1=%~s2 goto :eof :set_sdk_path set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A" if NOT "%SDK_PATH%"=="" set __sdk_path__="%SDK_PATH%" goto :eof :clean_sdk_path set __sdk_path__= goto :eof
@echo off call :set_sdk_path call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib call :clean_sdk_path goto :eof :setshortpath set %1=%~s2 goto :eof :set_sdk_path set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A" if not exist %__sdk_path__% set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v7.0A" if NOT "%SDK_PATH%"=="" set __sdk_path__="%SDK_PATH%" goto :eof :clean_sdk_path set __sdk_path__= goto :eof
Change win 32 tool version to 50
set Version=1.0.45 call tools\nuget.exe install JetBrains.runAs -Version %Version% -o win32 copy win32\JetBrains.runAs.%Version%\tools\x64\JetBrains.runAs.exe win32\x64 /Y copy win32\JetBrains.runAs.%Version%\tools\x86\JetBrains.runAs.exe win32\x86 /Y call mvn package call createPlugin.cmd
set Version=1.0.50 call tools\nuget.exe install JetBrains.runAs -Version %Version% -o win32 copy win32\JetBrains.runAs.%Version%\tools\x64\JetBrains.runAs.exe win32\x64 /Y copy win32\JetBrains.runAs.%Version%\tools\x86\JetBrains.runAs.exe win32\x86 /Y call mvn package call createPlugin.cmd
USe FAKE prerelease for testing
@echo off cls "tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion" "tools\nuget\nuget.exe" "install" "FSharp.Formatting.CommandTool" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease" "tools\nuget\nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") "tools\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%"
@echo off cls "tools\nuget\nuget.exe" "install" "FAKE" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease" "tools\nuget\nuget.exe" "install" "FSharp.Formatting.CommandTool" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease" "tools\nuget\nuget.exe" "install" "SourceLink.Fake" "-OutputDirectory" "tools" "-ExcludeVersion" SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") "tools\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%"
Use MSBuild 14 from MS Build Tools 2015
@echo off setlocal cd "%~dp0" 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 ) if "%1"=="docs" call :docs %2 %3 %4 %5 %6 %7 %8 %9 & goto :EOF :base for %%i in (debug release) do "%MSBUILDEXE%" "MoreLinq.sln" /v:m /p:Configuration=%%i %* goto :EOF :docs call :base && "%MSBUILDEXE%" MoreLinq.shfbproj %* goto :EOF
@echo off setlocal cd "%~dp0" if "%PROCESSOR_ARCHITECTURE%"=="x86" set MSBUILD=%ProgramFiles% if defined ProgramFiles(x86) set MSBUILD=%ProgramFiles(x86)% set MSBUILD=%MSBUILD%\MSBuild\14.0\bin\msbuild if not exist "%MSBUILD%" ( echo Microsoft Build Tools 2015 does not appear to be installed on this echo machine, which is required to build the solution. You can install echo it from the URL below and then try building again: echo https://www.microsoft.com/en-us/download/detailscd .aspx?id=48159 exit /b 1 ) if "%1"=="docs" call :docs %2 %3 %4 %5 %6 %7 %8 %9 & goto :EOF :base for %%i in (debug release) do "%MSBUILD%" "MoreLinq.sln" /v:m /p:Configuration=%%i %* goto :EOF :docs call :base && "%MSBUILD%" MoreLinq.shfbproj %* goto :EOF
Build versionupdater in bin folder
ECHO ON SETLOCAL SET VERSION=%1 rmdir obj /s /q rmdir Release /s /q msbuild tools\versionupdater\versionupdater.csproj /p:Configuration=Release /p:OutputPath=.. || exit /B 1 tools\versionupdater -v %VERSION%
ECHO ON SETLOCAL SET VERSION=%1 rmdir obj /s /q rmdir Release /s /q msbuild tools\versionupdater\versionupdater.csproj /p:Configuration=Release /p:OutputPath=..\bin || exit /B 1 tools\bin\versionupdater -v %VERSION% || exit /B 1
Use "@echo off" for brevity
@set JAVA_OPTS=-Djava.awt.headless=true @set ROOT_DIR=%~dp0 @cd "%ROOT_DIR%" @set CLASS_PATH="%ROOT_DIR%\*;." @java %JAVA_OPTS% -cp %CLASS_PATH% scalive.AgentLoader %ROOT_DIR% %*
@echo off set JAVA_OPTS=-Djava.awt.headless=true set ROOT_DIR=%~dp0 cd "%ROOT_DIR%" set CLASS_PATH="%ROOT_DIR%\*;." java %JAVA_OPTS% -cp %CLASS_PATH% scalive.AgentLoader %ROOT_DIR% %*
Increase loop count in std uni test to improve reliabilty
universe = standard executable = job_ckpt_memory-file_std.cndr.exe.$$(OPSYS).$$(ARCH) output = job_ckpt_memory-file_std.out error = job_ckpt_memory-file_std.err log = job_ckpt_memory-file_std.log priority = 6 arguments = -f x_job_ckpt_memory-file_std.t1 -s 10000 -o 25000 -_condor_aggravate_bugs notification = never queue
universe = standard executable = job_ckpt_memory-file_std.cndr.exe.$$(OPSYS).$$(ARCH) output = job_ckpt_memory-file_std.out error = job_ckpt_memory-file_std.err log = job_ckpt_memory-file_std.log priority = 6 arguments = -f x_job_ckpt_memory-file_std.t1 -s 10000 -o 75000 -_condor_aggravate_bugs notification = never queue
Update Kudu to use latest KuduScript
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/93edfcb6e9c75d395e805825f5051e707bd50bb8 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
@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/af63dea4db22bae730dba99d2090c27bedcde159 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
Fix password reset on Windows
@echo off net session >nul 2>&1 if NOT %errorLevel% == 0 ( echo Failure: Current permissions inadequate. Please run as administrator. pause exit /b 1 ) set /p newpw=Please enter the new password for user 'admin': "%~dp0\urbackup_srv.exe" --cmdline --no-server --plugin urbackupserver.dll --set_admin_pw "%newpw%" exit /b 0
@echo off net session >nul 2>&1 if NOT %errorLevel% == 0 ( echo Failure: Current permissions inadequate. Please run as administrator. pause exit /b 1 ) set /p newpw=Please enter the new password for user 'admin': "%~dp0\urbackup_srv.exe" --cmdline --no-server --plugin cryptoplugin.dll --plugin urbackupserver.dll --set_admin_pw "%newpw%" exit /b 0
Revert "Moved the script directly to AppVeyor"
@echo off echo Downloading CUDA toolkit 8 appveyor DownloadFile https://developer.nvidia.com/compute/cuda/8.0/Prod2/network_installers/cuda_8.0.61_win10_network-exe -FileName setup.exe rem appveyor DownloadFile https://www.dropbox.com/s/ll2ay531hw3i1p7/cuda.zip?dl=1 rem 7z x cuda.zip -ocuda rem cd cuda echo Installing CUDA toolkit 8 setup.exe -s compiler_8.0 ^ cublas_8.0 ^ cublas_dev_8.0 ^ cudart_8.0 ^ curand_8.0 ^ curand_dev_8.0 if NOT EXIST "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\cudart64_80.dll" ( echo "Failed to install CUDA" exit /B 1 ) echo Installing VS integration copy _vs\*.* "c:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations" cd .. echo Downloading cuDNN appveyor DownloadFile https://www.dropbox.com/s/9t56hoewk7p0hfj/cudnn-8.0-windows7-x64-v5.1.zip?dl=1 7z x cudnn-8.0-windows7-x64-v5.1.zip -ocudnn copy cudnn\cuda\bin\*.* "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin" copy cudnn\cuda\lib\x64\*.* "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\lib\x64" copy cudnn\cuda\include\*.* "%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" set PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;%PATH% set CUDA_PATH=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0 set CUDA_PATH_V8_0=%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v8.0 nvcc -V rem cd .. rem git clone https://github.com/Microsoft/vcpkg.git vcpkg rem cd vcpkg rem mkdir downloads rem copy nul downloads\AlwaysAllowDownloads rem powershell -exec bypass scripts\bootstrap.ps1 rem vcpkg integrate install rem vcpkg install gtest:x64-windows cd "%APPVEYOR_BUILD_FOLDER%"
Add setlocal to make sure settings only apply to this session.
set "PATH=%PATH%;C:\Program Files\CMake\bin" if %1 == -E ( cmake.exe %* ) else ( cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit %* )
setlocal set "PATH=%PATH%;C:\Program Files\CMake\bin" if %1 == -E ( cmake.exe %* ) else ( cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit %* )
Fix character corruption in Windows
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPATH%" cc.redpen.Main %* goto finally :err echo Error: JAVA_HOME is not defined. Can not start RedPen pause :finally ENDLOCAL
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPATH%" cc.redpen.Main %* goto finally :err echo Error: JAVA_HOME is not defined. Can not start RedPen pause :finally ENDLOCAL
Remove more temporary build files from the set zipped.
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp cd scite
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.ilk -x *.idb cd scite
Check first if paket.exe is already downloaded in ..paket folder
.paket\paket.bootstrapper.exe if errorlevel 1 ( exit "There was an error with paket.bootstrapper" ) IF EXIST paket.lock ( .paket\paket.exe restore if errorlevel 1 ( exit "There was an error restoring packages from paket.lock" ) ) IF EXIST init.fsx ( .paket\paket.exe install packages\FAKE\tools\FAKE.exe init.fsx ) packages\FAKE\tools\FAKE.exe build.fsx
IF NOT EXIST .paket\paket.exe ( .paket\paket.bootstrapper.exe if errorlevel 1 ( exit "There was an error with paket.bootstrapper" ) ) IF EXIST paket.lock ( .paket\paket.exe restore if errorlevel 1 ( exit "There was an error restoring packages from paket.lock" ) ) IF EXIST init.fsx ( .paket\paket.exe install packages\FAKE\tools\FAKE.exe init.fsx ) packages\FAKE\tools\FAKE.exe build.fsx
Add Windows batch file for creating a boostrap.dat for Krugercoin
@echo off setlocal enableDelayedExpansion set KRUGERDIR=%APPDATA%\Krugercoin\blocks for /F %%x in ('dir /B/D/ON %KRUGERDIR%\blk*.*') do ( IF NOT [!B!] == [] set B=!B!+ set FILENAME=%KRUGERDIR%\%%x set B=!B!"!FILENAME!" ) copy /b %B% bootstrap.dat
Exclude nupkg script from DMLib's nuget package.
pushd %~dp0 rmdir /s /q .\lib mkdir .\lib\net45 mkdir .\lib\netstandard2.0 pushd ..\.. del /q /f *.nupkg copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.dll .\tools\nupkg\lib\net45 copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.pdb .\tools\nupkg\lib\net45 copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.XML .\tools\nupkg\lib\net45 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.dll .\tools\nupkg\lib\netstandard2.0 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.pdb .\tools\nupkg\lib\netstandard2.0 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.xml .\tools\nupkg\lib\netstandard2.0 .\.nuget\nuget.exe pack .\tools\nupkg\Microsoft.Azure.Storage.DataMovement.nuspec popd rmdir /s /q .\lib popd
pushd %~dp0 rmdir /s /q .\package mkdir .\package\lib\net45 mkdir .\package\lib\netstandard2.0 pushd ..\.. del /q /f *.nupkg copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.dll .\tools\nupkg\package\lib\net45 copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.pdb .\tools\nupkg\package\lib\net45 copy .\lib\bin\Release\Microsoft.WindowsAzure.Storage.DataMovement.XML .\tools\nupkg\package\lib\net45 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.dll .\tools\nupkg\package\lib\netstandard2.0 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.pdb .\tools\nupkg\package\lib\netstandard2.0 copy .\netcore\Microsoft.WindowsAzure.Storage.DataMovement\bin\Release\netstandard2.0\Microsoft.WindowsAzure.Storage.DataMovement.xml .\tools\nupkg\package\lib\netstandard2.0 copy .\tools\nupkg\Microsoft.Azure.Storage.DataMovement.nuspec .\tools\nupkg\package .\.nuget\nuget.exe pack .\tools\nupkg\package\Microsoft.Azure.Storage.DataMovement.nuspec popd rmdir /s /q .\package popd
Tweak to the script used to modified the version in sipXtapi.h -- it removed the start of comment resulting in compiler errors.
call setRepoEnvVar sed -i "s/SIPXTAPI_BUILDNUMBER.*\".*\"/SIPXTAPI_BUILDNUMBER \"%REPRO_VERSION%\"/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_BUILD_WORD.*/SIPXTAPI_BUILD_WORD 2,9,1,%REPRO_VERSION%/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_FULL_VERSION.*\".*\"/SIPXTAPI_FULL_VERSION \"2.9.1.%REPRO_VERSION%\"/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_BUILDDATE.*\".*\"/SIPXTAPI_BUILDDATE \"%date:~10,4%-%date:~4,2%-%date:~7,2%\"/g" ..\..\include\tapi\sipXtapi.h
call setRepoEnvVar sed -i "s/SIPXTAPI_BUILDNUMBER.*\".*\"/SIPXTAPI_BUILDNUMBER \"%REPRO_VERSION%\"/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_BUILD_WORD [0-9,,]*/SIPXTAPI_BUILD_WORD 2,9,1,%REPRO_VERSION%/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_FULL_VERSION.*\".*\"/SIPXTAPI_FULL_VERSION \"2.9.1.%REPRO_VERSION%\"/g" ..\..\include\tapi\sipXtapi.h sed -i "s/SIPXTAPI_BUILDDATE.*\".*\"/SIPXTAPI_BUILDDATE \"%date:~10,4%-%date:~4,2%-%date:~7,2%\"/g" ..\..\include\tapi\sipXtapi.h
Use zlib and openssl from conda-forge for windows
"%PYTHON%" -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv if errorlevel 1 exit 1
set "GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True" set "GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True" set "GRPC_PYTHON_CFLAGS=/DPB_FIELD_16BIT" "%PYTHON%" -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv if errorlevel 1 exit 1
Fix path to MSYS2 binaries
mkdir c:\projects\plib-build if "%APPVEYOR_REPO_BRANCH%"=="appveyor_test" ( set "BOOST_ARGS=-DPLIB_TESTS_STATIC=ON -DBOOST_ROOT=C:\Libraries\boost_1_59_0" ) if "%USE_MINGW%"=="1" ( cd c:\projects\plib-build set "PATH=C:\MinGW\bin;C:\Program Files (x86)\CMake\bin" set BUILD_TYPE=-DCMAKE_BUILD_TYPE=%configuration% cmake %BUILD_TYPE% -G"%CMAKE_GENERATOR%" %BOOST_ARGS% c:\projects\plib mingw32-make ctest ) else ( if "%USE_MSYS%"=="1" ( set "PATH=C:\msys2\bin;C:\Program Files (x86)\CMake\bin" c:\msys2\bin\bash c:\projects\plib\contrib\appveyor\build_msys.sh ) )
mkdir c:\projects\plib-build if "%APPVEYOR_REPO_BRANCH%"=="appveyor_test" ( set "BOOST_ARGS=-DPLIB_TESTS_STATIC=ON -DBOOST_ROOT=C:\Libraries\boost_1_59_0" ) if "%USE_MINGW%"=="1" ( cd c:\projects\plib-build set "PATH=C:\MinGW\bin;C:\Program Files (x86)\CMake\bin" set BUILD_TYPE=-DCMAKE_BUILD_TYPE=%configuration% cmake %BUILD_TYPE% -G"%CMAKE_GENERATOR%" %BOOST_ARGS% c:\projects\plib mingw32-make ctest ) else ( if "%USE_MSYS%"=="1" ( set "PATH=C:\msys64\usr\bin;C:\Program Files (x86)\CMake\bin" bash c:\projects\plib\contrib\appveyor\build_msys.sh ) )
Update Windows Release build script
@echo off set cwd=%cd% cd /D %~dp0 set DevCmd="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" set MSBuildOptions=/v:m /p:Configuration=Release set BuildDir64="build-exe-64" set BuildDir32="build-exe-32" call %DevCmd% echo Building 64-bit tev... mkdir %BuildDir64% cd %BuildDir64% cmake -DTEV_DEPLOY=1 -G "Visual Studio 15 2017 Win64" ..\.. msbuild %MSBuildOptions% tev.sln move "Release\tev.exe" "..\..\tev.exe" cd .. rmdir /S /Q %BuildDir64% echo Building 32-bit tev... mkdir %BuildDir32% cd %BuildDir32% cmake -DTEV_DEPLOY=1 -G "Visual Studio 15 2017" ..\.. msbuild %MSBuildOptions% tev.sln move "Release\tev.exe" "..\..\tev-32bit.exe" cd .. rmdir /S /Q %BuildDir32% echo Returning to original directory. cd /D %cwd% pause
@echo off set cwd=%cd% cd /D %~dp0 set DevCmd="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" set MSBuildOptions=/v:m /p:Configuration=Release set BuildDir64="build-exe-64" set BuildDir32="build-exe-32" call %DevCmd% echo Building 64-bit tev... mkdir %BuildDir64% cd %BuildDir64% cmake -DTEV_DEPLOY=1 -G "Visual Studio 15 2017 Win64" ..\.. msbuild %MSBuildOptions% tev.sln move "Release\tev.exe" "..\..\tev.exe" cd .. rmdir /S /Q %BuildDir64% echo Building 32-bit tev... mkdir %BuildDir32% cd %BuildDir32% cmake -DTEV_DEPLOY=1 -G "Visual Studio 15 2017" ..\.. msbuild %MSBuildOptions% tev.sln move "Release\tev.exe" "..\..\tev-32bit.exe" cd .. rmdir /S /Q %BuildDir32% echo Returning to original directory. cd /D %cwd% pause
Add bat for build release VC++2015
call "%VS140COMNTOOLS%....\VC\bin\vcvars32.bat" "%VS140COMNTOOLS%..\ide\devenv" MediaInfoLib.sln /Build "Release|Win32"
Support for cursor.png mouse cursor file
@echo off echo Building your theme... mkdir temp echo Building fonts... bin\makebundle.exe temp\8x8.fnt Template\font8x8 bin\makebundle.exe temp\7x6.fnt Template\font7x6 bin\makebundle.exe temp\4x6.fnt Template\font4x6 echo Copying colors... copy /y Template\colors.txt temp\colors.txt echo Copying graphics... copy /y Template\bevel.* temp copy /y Template\vu.* temp copy /y Template\analyzor.* temp copy /y Template\logo.* temp echo Bundling everything together... bin\makebundle.exe MyNewTheme temp echo --- echo Your new theme is now packed in the file called "MyNewTheme"! echo Copy the file in klystrack\res and restart klystrack. pause
@echo off echo Building your theme... mkdir temp echo Building fonts... bin\makebundle.exe temp\8x8.fnt Template\font8x8 bin\makebundle.exe temp\7x6.fnt Template\font7x6 bin\makebundle.exe temp\4x6.fnt Template\font4x6 echo Copying colors... copy /y Template\colors.txt temp\colors.txt echo Copying graphics... copy /y Template\bevel.* temp copy /y Template\vu.* temp copy /y Template\analyzor.* temp copy /y Template\logo.* temp copy /y Template\cursor.* temp echo Bundling everything together... bin\makebundle.exe MyNewTheme temp echo --- echo Your new theme is now packed in the file called "MyNewTheme"! echo Copy the file in klystrack\res and restart klystrack. pause
Use short filenames on Windows becauses spaces are evil
@echo off setlocal EnableDelayedExpansion SET OLDCD=%CD% cd %~dp0.. SET JAVA_OPTS= -Xmx1g SET CLASS=com.github.rnewson.couchdb.lucene.Main SET CLASSPATH="conf" for %%i in ("lib\*.jar") do @SET CLASSPATH=!CLASSPATH!;"%%~dpfi" java %JAVA_OPTS% -cp %CLASSPATH% %CLASS% > nul cd %OLDCD%
@echo off setlocal EnableDelayedExpansion SET OLDCD=%CD% cd %~dp0.. SET JAVA_OPTS= -Xmx1g SET CLASS=com.github.rnewson.couchdb.lucene.Main SET CLASSPATH="conf" for %%i in ("lib\*.jar") do @SET CLASSPATH=!CLASSPATH!;"%%~sdpfi" java %JAVA_OPTS% -cp %CLASSPATH% %CLASS% > nul cd %OLDCD%
Update fix Windows activation script
:: Store existing env vars and set to this conda env :: so other installs don't pollute the environment. @if defined CARTOPY_OFFLINE_SHARED ( set "_CONDA_SET_CARTOPY_OFFLINE_SHARED=%CARTOPY_OFFLINE_SHARED%" ) @set "CARTOPY_OFFLINE_SHARED=%CONDA_PREFIX%\Library\share\cartopy"
:: Store existing env vars and set to this conda env :: so other installs don't pollute the environment. @if defined CARTOPY_OFFLINE_SHARED ( set "_CONDA_SET_CARTOPY_OFFLINE_SHARED=%CARTOPY_OFFLINE_SHARED%" ) @set "CARTOPY_OFFLINE_SHARED=%CONDA_PREFIX%\share\cartopy"
Patch for version 0.72 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.71" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.72" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Use a specific version (commit) for kudu-script
@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 http://github.com/projectkudu/KuduScript/tarball/master 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 http://github.com/projectkudu/KuduScript/tarball/99816ade95addbfa6cfae7d74b7b616e2eebf772 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
Fix boostrap not going to end when successful, which lead to working directory not being correctly reset.
@echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error goto success @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^! timeout /t 5 exit /b 0 @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE%
@echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error goto success @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^! timeout /t 5 goto end @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE%
Delete the bytecode from the library and tests before running the tests for the first time -- like the Unix Makefile does. This avoids not catching problems in the bytecode generator and/or bytecode marshalling.
@rem Run Tests. Run the regression test suite. @rem Plain "rt" runs Release build, arguments passed on to regrtest. @rem "rt -d" runs Debug build similarly, after shifting off -d. @set _exe=python @if "%1" =="-d" set _exe=python_d @if "%1" =="-d" shift %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 @set _exe=
@rem Run Tests. Run the regression test suite. @rem Plain "rt" runs Release build, arguments passed on to regrtest. @rem "rt -d" runs Debug build similarly, after shifting off -d. @set _exe=python @if "%1" =="-d" set _exe=python_d @if "%1" =="-d" shift @del ..\Lib\*.pyc @del ..\Lib\*.pyo @del ..\Lib\test\*.pyc @del ..\Lib\test\*.pyo %_exe% ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 @set _exe=
Remove rpath in windows stack build
set "BINARY_HOME=%PREFIX%\bin" set "PACKAGE_HOME=%PREFIX%\share\%PKG_NAME%-%PKG_VERSION%-%PKG_BUILDNUM%" set "STACK_ROOT=%PACKAGE_HOME%\stackroot" mkdir "%BINARY_HOME%" || goto :error mkdir "%PACKAGE_HOME%" || goto :error mkdir "%STACK_ROOT%" || goto :error stack --local-bin-path "%PREFIX%\bin" ^ --extra-include-dirs "%PREFIX%\include" ^ --extra-lib-dirs "%PREFIX%\lib" ^ --stack-root "%STACK_ROOT%" ^ setup ^ || goto :error stack --local-bin-path "%PREFIX%\bin" ^ --extra-include-dirs "%PREFIX%\include" ^ --extra-lib-dirs "%PREFIX%\lib" ^ --stack-root "%STACK_ROOT%" ^ install --ghc-options ^ "-optl-pthread -optl-L%PREFIX%\lib -optl-Wl,-rpath,%PREFIX%\lib" ^ || goto :error strip "%PREFIX%\bin\shellcheck.exe" || goto :error rmdir /S /Q "%PACKAGE_HOME%" || goto :error goto :EOF :error echo Failed with error #%errorlevel%. exit 1
set "BINARY_HOME=%PREFIX%\bin" set "PACKAGE_HOME=%PREFIX%\share\%PKG_NAME%-%PKG_VERSION%-%PKG_BUILDNUM%" set "STACK_ROOT=%PACKAGE_HOME%\stackroot" mkdir "%BINARY_HOME%" || goto :error mkdir "%PACKAGE_HOME%" || goto :error mkdir "%STACK_ROOT%" || goto :error stack --local-bin-path "%PREFIX%\bin" ^ --extra-include-dirs "%PREFIX%\include" ^ --extra-lib-dirs "%PREFIX%\lib" ^ --stack-root "%STACK_ROOT%" ^ setup ^ || goto :error stack --local-bin-path "%PREFIX%\bin" ^ --extra-include-dirs "%PREFIX%\include" ^ --extra-lib-dirs "%PREFIX%\lib" ^ --stack-root "%STACK_ROOT%" ^ install --ghc-options ^ "-optl-pthread -optl-L%PREFIX%\lib" ^ || goto :error strip "%PREFIX%\bin\shellcheck.exe" || goto :error rmdir /S /Q "%PACKAGE_HOME%" || goto :error goto :EOF :error echo Failed with error #%errorlevel%. exit 1
Build debug overwrite files always
@ECHO OFF SET release=6.1.6 SET comment= SET version=%release% IF [%comment%] EQU [] (SET version=%release%) ELSE (SET version=%release%-%comment%) ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %release% %windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "Build-debug.proj" /p:BUILD_RELEASE=%release% /p:BUILD_COMMENT=%comment% echo off SET SRC=N:\web\webcentrum-dev.muni.cz\umbraco-source\Umbraco\build\_BuildOutput\WebApp SET DEST=N:\web\webcentrum-dev.muni.cz\%1\web echo. && echo bin: robocopy %SRC%\bin %DEST%\bin /S /XO /NJH /NFL /NDL echo. && echo umbraco: robocopy %SRC%\umbraco %DEST%\umbraco /S /XO /NJH /NFL /NDL echo. && echo umbraco_client: robocopy %SRC%\umbraco_client %DEST%\umbraco_client /S /XO /NJH /NFL /NDL REM pause
@ECHO OFF SET release=6.1.6 SET comment= SET version=%release% IF [%comment%] EQU [] (SET version=%release%) ELSE (SET version=%release%-%comment%) ReplaceIISExpressPortNumber.exe ..\src\Umbraco.Web.UI\Umbraco.Web.UI.csproj %release% %windir%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "Build-debug.proj" /p:BUILD_RELEASE=%release% /p:BUILD_COMMENT=%comment% echo off SET SRC=N:\web\webcentrum-dev.muni.cz\umbraco-source\Umbraco\build\_BuildOutput\WebApp SET DEST=N:\web\webcentrum-dev.muni.cz\%1\web echo. && echo bin: robocopy %SRC%\bin %DEST%\bin /S /XO /IS /NJH /NFL /NDL echo. && echo umbraco: robocopy %SRC%\umbraco %DEST%\umbraco /S /XO /IS /NJH /NFL /NDL echo. && echo umbraco_client: robocopy %SRC%\umbraco_client %DEST%\umbraco_client /S /XO /IS /NJH /NFL /NDL REM pause
Rollback to Visual Studio 2017
@echo off cd ../.. if not exist "temp" mkdir temp cd temp cmake -DCMAKE_INSTALL_PREFIX=../temp/install -G "Visual Studio 16 2019" -A x64 .. if %errorlevel% neq 0 exit /b %errorlevel% cd ../build/VisualStudio
@echo off cd ../.. if not exist "temp" mkdir temp cd temp cmake -DCMAKE_INSTALL_PREFIX=../temp/install -G "Visual Studio 15 2017 Win64" .. if %errorlevel% neq 0 exit /b %errorlevel% cd ../build/VisualStudio
Delete OpenAL module from build from now on, because it's not yet used.
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll del build\modules\test\*d.dll del build\modules\test\TestModule*.* del build\modules\test\non_existing_system.xml xcopy ..\viewerbuilddlls\*.* build /S /C
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll del build\modules\test\*d.dll del build\modules\test\TestModule*.* del build\modules\test\non_existing_system.xml del build\modules\core\OpenAL*.* xcopy ..\viewerbuilddlls\*.* build /S /C
Fix windows build script for hadoop external.
rm -rf ..\..\install\hdfs mkdir ..\..\install\hdfs mkdir ..\..\install\hdfs\conf cp -r %PACKAGE_NAME%\webapps ..\..\install\hdfs cp -r %PACKAGE_NAME%\lib ..\..\install\hdfs cp %PACKAGE_NAME%\hadoop-0.20.0-p1-core.jar ..\..\install\hdfs\lib cp %PACKAGE_NAME%\src\hdfs\hdfs-default.xml ..\..\install\hdfs\conf
rm -rf ..\..\install\hdfs mkdir ..\..\install\hdfs mkdir ..\..\install\hdfs\conf cp -r %PACKAGE_SRC_NAME%\webapps ..\..\install\hdfs cp -r %PACKAGE_SRC_NAME%\lib ..\..\install\hdfs cp %PACKAGE_SRC_NAME%\hadoop-0.20.0-p1-core.jar ..\..\install\hdfs\lib cp %PACKAGE_SRC_NAME%\src\hdfs\hdfs-default.xml ..\..\install\hdfs\conf
Add missing headers and source files
@echo off mkdir build cd build rem Need to handle Python 3.x case at some point (Visual Studio 2010) if %ARCH%==32 ( if %PY_VER% LSS 3 ( set CMAKE_GENERATOR="Visual Studio 9 2008" ) ) if %ARCH%==64 ( if %PY_VER% LSS 3 ( set CMAKE_GENERATOR="Visual Studio 9 2008 Win64" ) ) cmake .. -G %CMAKE_GENERATOR% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% cmake --build . --config Release mkdir %LIBRARY_LIB% copy /y Release\*.lib %LIBRARY_LIB% > nul if errorlevel 1 exit 1
@echo off mkdir build cd build rem Need to handle Python 3.x case at some point (Visual Studio 2010) if %ARCH%==32 ( if %PY_VER% LSS 3 ( set CMAKE_GENERATOR="Visual Studio 9 2008" ) ) if %ARCH%==64 ( if %PY_VER% LSS 3 ( set CMAKE_GENERATOR="Visual Studio 9 2008 Win64" ) ) cmake .. -G %CMAKE_GENERATOR% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% cmake --build . --config Release rem mkdir %LIBRARY_PREFIX%\src mkdir %LIBRARY_PREFIX%\src\gtest copy /y Release\*.lib %LIBRARY_LIB% > nul if errorlevel 1 exit 1 cd .. xcopy include %LIBRARY_INC% /E /I > nul if errorlevel 1 exit 1 xcopy src %LIBRARY_PREFIX%\src\gtest\src /E /I > nul if errorlevel 1 exit 1 xcopy cmake %LIBRARY_PREFIX%\src\gtest\cmake /E /I > nul if errorlevel 1 exit 1 copy /y CmakeLists.txt %LIBRARY_PREFIX%\src\gtest > nul if errorlevel 1 exit 1
Fix onnxruntime version for CI failure
@echo off set CUDA_VER=%1 set PY_VER=%2 set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VER%" set PY_PATH=C:\Development\Python\Python%PY_VER% set PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PY_PATH%;%PY_PATH%\Scripts\%PATH% pip install --pre cupy-cuda101 pip install -e .[test] pip install "onnx<1.7.0" onnxruntime pytest-cov pip list -v pytest -x -s -vvvs tests\onnx_chainer_tests --cov onnx_chainer
@echo off set CUDA_VER=%1 set PY_VER=%2 set "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v%CUDA_VER%" set PY_PATH=C:\Development\Python\Python%PY_VER% set PATH=%CUDA_PATH%\bin;%CUDA_PATH%\libnvvp;%PY_PATH%;%PY_PATH%\Scripts\%PATH% pip install --pre cupy-cuda101 pip install -e .[test] pip install "onnx<1.7.0" onnxruntime==1.2.0 pytest-cov pip list -v pytest -x -s -vvvs tests\onnx_chainer_tests --cov onnx_chainer
Use default MongoDB port in database update script
:: Start Emotion in Motion in Windows Machine :: Imports latest dataBase dump (mongod needs to be running) mongorestore --port 28017 -d emotion-in-motion-dev --drop ./mongodb-dump/emotion-in-motion-dev mongorestore --port 28017 -d emotion-in-motion-test --drop ./mongodb-dump/emotion-in-motion-test mongorestore --port 28017 -d emotion-in-motion-production --drop ./mongodb-dump/emotion-in-motion-production :: Start Node (not necessary in EiM terminals) :: node server.js pause
:: Start Emotion in Motion in Windows Machine :: Imports latest dataBase dump (mongod needs to be running) mongorestore --port 27017 -d emotion-in-motion-dev --drop ./mongodb-dump/emotion-in-motion-dev mongorestore --port 27017 -d emotion-in-motion-test --drop ./mongodb-dump/emotion-in-motion-test mongorestore --port 27017 -d emotion-in-motion-production --drop ./mongodb-dump/emotion-in-motion-production :: Start Node (not necessary in EiM terminals) :: node server.js pause
Add script to run unit tests on Windows CE.
set QT=%1 set CETEST=%QT%\bin\cetest.exe set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f %CETEST% %CETEST_ARGS% tests\auto\qmallocpool\qmallocpool.pro %CETEST% %CETEST_ARGS% tests\auto\qpacket\qpacket.pro %CETEST% %CETEST_ARGS% tests\auto\qpacketprotocol\qpacketprotocol.pro %CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro %CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro %CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber\tst_qvaluespacesubscriber.pro %CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubscriber_oop\tst_qvaluespacesubscriber_oop.pro %CETEST% %CETEST_ARGS% tests\auto\qsystemreadwritelock\qsystemreadwritelock\test\test.pro %CETEST% %CETEST_ARGS% tests\auto\qsystemreadwritelock_oop\qsystemreadwritelock_oop\test\test.pro
Delete .pyc files when making build. Make sure that data/configuration directory exists in the build.
@rem Makes a build directory of the viewer, so that you can run the NSIS install script @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including Qt core/ui/network/webkit/phonon dll's, and also VS2008 @rem redistributable (vcredist_x86.exe) @echo off rmdir build /S /Q md build copy readme.txt build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll xcopy ..\viewerbuilddlls\*.* build /S /C del build\pymodules\*.pyc del build\pymodules\apitest\*.pyc del build\pymodules\circuits\*.pyc del build\pymodules\communication\*.pyc del build\pymodules\core\*.pyc del build\pymodules\usr\*.pyc
@rem Makes a build directory of the viewer, so that you can run the NSIS install script @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, and also VS2008 redistributable (vcredist_x86.exe) @echo off rmdir build /S /Q md build copy readme.txt build xcopy bin\*.* build /S /C /Y del build\*.dll del build\viewerd.exe del build\modules\core\*d.dll xcopy ..\viewerbuilddlls\*.* build /S /C /Y del build\pymodules\*.pyc del build\pymodules\apitest\*.pyc del build\pymodules\circuits\*.pyc del build\pymodules\circuits\core\*.pyc del build\pymodules\circuits\net\*.pyc del build\pymodules\circuits\tools\*.pyc del build\pymodules\circuits\web\*.pyc del build\pymodules\core\*.pyc del build\pymodules\editgui\*.pyc del build\pymodules\lib\*.pyc del build\pymodules\lib\webdav\*.pyc del build\pymodules\lib\webdav\acp\*.pyc del build\pymodules\usr\*.pyc del build\pymodules\webdavinventory\*.pyc del build\pymodules\webserver\*.pyc cd build\data rmdir configuration /S /Q mkdir configuration cd ..\..