Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Make .bat file work with powershell as well as cmd courtesy of panda.bat. retupmoca++
@rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl6 "%~dp0\%0" %* if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl if %errorlevel% == 9009 echo You do not have Perl in your PATH. if errorlevel 1 goto script_faile...
@rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl6 "%~dp0\%~n0" %* if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl if %errorlevel% == 9009 echo You do not have Perl in your PATH. if errorlevel 1 goto script_fai...
Use dotnet test for both tests.
@echo off call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" set solution=..\OmniKassa.sln nuget restore %solution% msbuild %solution% /m:4 /t:Rebuild /p:Configuration=Release if %errorlevel% neq 0 goto done vstest.console /inIsolation ..\tests\OmniKassa.Tests\bin\Relea...
@echo off call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Tools\VsDevCmd.bat" set solution=..\OmniKassa.sln nuget restore %solution% msbuild %solution% /m:4 /t:Rebuild /p:Configuration=Release if %errorlevel% neq 0 goto done cd ..\tests\OmniKassa.Tests\ dotnet test --no-build -c Releas...
Set env path to git
echo off Rem: set path SET PATH= SET PATH=%PATH%;D:/Binutils/Ruby192/bin SET PATH=%PATH%;C:/Binutils/Ruby192/bin SET PATH=%PATH%;D:/Binutils/Ruby-186-27/bin SET PATH=%PATH%;C:/Binutils/Ruby-186-27/bin SET PATH=%PATH%;D:/Binutils/rubygems-1.3.5/bin SET PATH=%PATH%;C:/Binutils/rubygems-1.3.5/bin SET PATH=C:/Binutils/ap...
echo off Rem: set path SET PATH= SET PATH=%PATH%;D:/Binutils/Ruby192/bin SET PATH=%PATH%;C:/Binutils/Ruby192/bin SET PATH=%PATH%;D:/Binutils/Ruby-186-27/bin SET PATH=%PATH%;C:/Binutils/Ruby-186-27/bin SET PATH=%PATH%;D:/Binutils/rubygems-1.3.5/bin SET PATH=%PATH%;C:/Binutils/rubygems-1.3.5/bin SET PATH=C:/Binutils/ap...
Use MSBuild 14 from build script
pushd %~dp0 "%PROGRAMFILES(X86)%\MSBuild\12.0\Bin\MSBuild.exe" /t:Build /p:Configuration=Debug MonoDevelop.AddinMaker.sln if not %ERRORLEVEL% == 0 goto Error "%PROGRAMFILES(X86)%\MSBuild\12.0\Bin\MSBuild.exe" /t:InstallAddin /p:Configuration=Debug MonoDevelop.AddinMaker.csproj if not %ERRORLEVEL% == 0 goto Error got...
pushd %~dp0 "%PROGRAMFILES(X86)%\MSBuild\14.0\Bin\MSBuild.exe" /t:Build /p:Configuration=Debug MonoDevelop.AddinMaker.sln if not %ERRORLEVEL% == 0 goto Error "%PROGRAMFILES(X86)%\MSBuild\14.0\Bin\MSBuild.exe" /t:InstallAddin /p:Configuration=Debug MonoDevelop.AddinMaker.csproj if not %ERRORLEVEL% == 0 goto Error got...
Add new dll dependency for Windows
rem needs strawberry perl installed and WiX Toolset in the %path% rmdir /q/s \rakudo perl Configure.pl --prefix=C:\rakudo --gen-moar gmake install rem following two lines are temporary hack rem main rakudo star Configure.pl needs fixing for windows copy c:\strawberry\perl\bin\libgcc_s_sjlj-1.dll c:\rakudo\bin copy c:\...
rem needs strawberry perl installed and WiX Toolset in the %path% rmdir /q/s \rakudo perl Configure.pl --prefix=C:\rakudo --gen-moar gmake install rem following two lines are temporary hack rem main rakudo star Configure.pl needs fixing for windows copy c:\strawberry\perl\bin\libgcc_s_sjlj-1.dll c:\rakudo\bin copy c:\...
Add CI build failure on failed GTests
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i ) del __tmp_gtest.txt
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... set failures=0 FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i set /A failures=%failures%+1 ) del __tmp_gtest.txt EXIT /B 1
Add batch file that creates the directory structure required by the XMC4500 GCC port.
REM This file should be executed from the command line prior to the first REM build. It will be necessary to refresh the Eclipse project once the REM .bat file has been executed (normally just press F5 to refresh). REM Copies all the required files from their location within the standard REM FreeRTOS directory s...
Move proto generation into cmake and remove from prepare_build
REM Copyright 2022 The Chromium Authors. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. @echo off setlocal REM This script is meant to be run once to setup the example demo agent. REM Run it with one command line argument: the path to a directory where ...
Add JAVA_HOME var on windows.
:: Copyright 2015 Rouslan Solomakhin :: :: Licensed under the Apache License, Version 2.0 (the "License") :: you may not use this file except in compliance with the License. :: You may obtain a copy of the License at :: :: http://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable law or...
:: Copyright 2015 Rouslan Solomakhin :: :: Licensed under the Apache License, Version 2.0 (the "License") :: you may not use this file except in compliance with the License. :: You may obtain a copy of the License at :: :: http://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable law or...
Use release configuration on run
@echo off setlocal set DOTNETPATH= for %%i in (dotnet.exe) do set DOTNETPATH=%%~$PATH:i if not defined DOTNETPATH call :no-dotnet set LINQPADLESS=__LINQPADLESS__ pushd "%~dp0" dotnet run -v quiet -p "%~dpn0" -- %* popd goto :EOF :no-dotnet >&2 echo dotnet CLI does not appear to be installed, which is needed to build ...
@echo off setlocal set DOTNETPATH= for %%i in (dotnet.exe) do set DOTNETPATH=%%~$PATH:i if not defined DOTNETPATH call :no-dotnet set LINQPADLESS=__LINQPADLESS__ pushd "%~dp0" dotnet run -v quiet -p "%~dpn0" -c Release -- %* popd goto :EOF :no-dotnet >&2 echo dotnet CLI does not appear to be installed, which is neede...
Clean script no longer requires working folder passed in
echo off setlocal REM elevated window does not set current directory correctly. REM Workaround it by passing the current directory around pushd %1 echo BridgeKeepRunning=%BridgeKeepRunning% if '%BridgeKeepRunning%' neq 'true' ( echo Stopping the Bridge.exe task locally... Taskkill /IM bridge.exe /F netsh ...
echo off setlocal pushd %~dp0 echo BridgeKeepRunning=%BridgeKeepRunning% if '%BridgeKeepRunning%' neq 'true' ( echo Stopping the Bridge.exe task locally... Taskkill /IM bridge.exe /F netsh http delete sslcert ipport=0.0.0.0:44285 certutil.exe -delstore my "85 58 be 22 44 5e 00 96 4d 0e 4c 7e 47 7a a6 3...
Remove w9xopen.exe and add README.txt to Windows build
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* del /s w9xpopen.exe copy ..\README.txt . 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Allow requirements file to be specified for build
mkdir uvision_release git rev-parse --verify HEAD > uvision_release\git_info.txt git diff --no-ext-diff --quiet --exit-code >> uvision_release\git_info.txt echo Uncommitted Changes: %errorlevel% >> uvision_release\git_info.txt virtualenv env call env\Scripts\activate pip install -r req...
mkdir uvision_release git rev-parse --verify HEAD > uvision_release\git_info.txt git diff --no-ext-diff --quiet --exit-code >> uvision_release\git_info.txt echo Uncommitted Changes: %errorlevel% >> uvision_release\git_info.txt virtualenv env call env\Scripts\activate REM use project re...
Delete Win32 test with testreq.pem and req: there is already a test with testreq2.pem.
echo=off set ssleay=%1% set tmp1=pem.out set cmp=fc.exe call tpem.bat crl ..\test\testcrl.pem if errorlevel 1 goto err call tpem.bat pkcs7 ..\test\testp7.pem if errorlevel 1 goto err call tpem.bat req ..\test\testreq.pem if errorlevel 1 goto err call tpem.bat req ..\test\testreq2.pem if errorlevel 1 ...
echo=off set ssleay=%1% set tmp1=pem.out set cmp=fc.exe call tpem.bat crl ..\test\testcrl.pem if errorlevel 1 goto err call tpem.bat pkcs7 ..\test\testp7.pem if errorlevel 1 goto err call tpem.bat req ..\test\testreq2.pem if errorlevel 1 goto err call tpem.bat rsa ..\test\testrsa.pem if errorlevel 1 ...
Update projects to support Quick Sync video by default.
cd bin project_generate.exe --enable-gpl --enable-version3 --enable-avisynth --enable-nonfree --enable-libmp3lame --enable-libvorbis --enable-libspeex --enable-libopus --enable-libilbc --enable-libfdk-aac --enable-libtheora --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libgme --enable-lib...
cd bin project_generate.exe --enable-gpl --enable-version3 --enable-avisynth --enable-nonfree --enable-libmp3lame --enable-libvorbis --enable-libspeex --enable-libopus --enable-libilbc --enable-libfdk-aac --enable-libtheora --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libgme --enable-lib...
Make sure to include /data/.htaccess in release ZIPs
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set projectPath=%projectPath%\.. set releasePath=%projectPath%\.release mkdir "%releasePath%" copy "%projectPath%\version.json" versiontemp.json for /f "tokens=*" %%a in ('jq .Version versiontemp.json --raw-output') do set version=%%a d...
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set projectPath=%projectPath%\.. set releasePath=%projectPath%\.release mkdir "%releasePath%" copy "%projectPath%\version.json" versiontemp.json for /f "tokens=*" %%a in ('jq .Version versiontemp.json --raw-output') do set version=%%a d...
Build Win32 first, than x64. This is WiX installer requirement.
%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild debugler.sln /p:VisualStudioVersion=11.0 /m /nologo /t:Build /p:Configuration=Release;platform=x64 if %errorlevel% neq 0 exit /b %errorlevel% %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild debugler.sln /p:VisualStudioVersion=11.0 /m /nologo /t:Build /p:Configu...
%windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild debugler.sln /p:VisualStudioVersion=11.0 /m /nologo /t:Build /p:Configuration=Release;platform=Win32 if %errorlevel% neq 0 exit /b %errorlevel% %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild debugler.sln /p:VisualStudioVersion=11.0 /m /nologo /t:Build /p:Confi...
Remove config file from myget build
%NUGET% restore GladNetV2.sln -NoCache -NonInteractive -ConfigFile Nuget.config msbuild GladNetV2.sln /p:Configuration=Release
%NUGET% restore GladNetV2.sln -NoCache -NonInteractive msbuild GladNetV2.sln /p:Configuration=Release
Fix Windows build to use Java 17
SET "JAVA_HOME=C:\opt\jdk-8" cd git-repo ./mvnw clean install
SET "JAVA_HOME=C:\opt\jdk-17" cd git-repo ./mvnw clean install
Add -DCMAKE_PREFIX_PATH=%PREFIX% to cmake script
if %PY3K% equ 1 ( set BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" ) else ( set BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" ) mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" %BUILD_PYTHON%" -G "Ninja" .. ninja ninja install move %LIBRARY_PR...
if %PY3K% equ 1 ( set BUILD_PYTHON="-DBUILD_PYTHON_INTERFACE=ON" ) else ( set BUILD_PYTHON="-DBUILD_PYTHON2_INTERFACE=ON" ) mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=%PREFIX% -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" %BUILD_PYTHON%" -G "Ninja" .. ninja ni...
Update Report Generator to 4.0.15
cd .. set "destination=testcoverage" rmdir /q /s %destination% mkdir %destination% cd content/tests dotnet test /p:AltCover=true mv coverage.xml ../../%destination%/coverage.xml cd ../../%destination% set "reportgenerator=%UserProfile%\.nuget\packages\reportgenerator\4.0.13.1\tools\net47\ReportGenerator.exe" set "ta...
cd .. set "destination=testcoverage" rmdir /q /s %destination% mkdir %destination% cd content/tests dotnet test /p:AltCover=true mv coverage.xml ../../%destination%/coverage.xml cd ../../%destination% set "reportgenerator=%UserProfile%\.nuget\packages\reportgenerator\4.0.15\tools\net47\ReportGenerator.exe" set "targ...
Update build script on windows
cmake -DCMAKE_INSTALL_PREFIX=%PREFIX% -G "Ninja" -DCMAKE_PREFIX_PATH=%PREFIX% ninja ninja install
cmake -G "Ninja" ^ -DCMAKE_PREFIX_PATH=%PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_FIND_ROOT_PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_BUILD_TYPE=Release ninja ninja install
Remove unnecessary double quotes for setting environment variables on Windows
if exist "%CATALINA_HOME%/jre${jdk.windows.version}/win" ( if not "%JAVA_HOME%" == "" ( set JAVA_HOME= ) set "JRE_HOME=%CATALINA_HOME%/jre${jdk.windows.version}/win" ) set "CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina...
if exist "%CATALINA_HOME%/jre${jdk.windows.version}/win" ( if not "%JAVA_HOME%" == "" ( set JAVA_HOME= ) set JRE_HOME="%CATALINA_HOME%/jre${jdk.windows.version}/win" ) set CATALINA_OPTS=%CATALINA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.l...
Fix restorepackages.bat to restore all packages in all solutions.
@echo off REM TODO: detect these automatically. Probably a job for PowerShell... set PROJECTS=Benchmarks,CodeDiagnostics,CodeDiagnostics.Test,Demo set PROJECTS=%PROJECTS%,Serialization.JsonNet,Serialization.Test,Test set PROJECTS=%PROJECTS%,TzdbCompiler.Test,Web for %%p in (%PROJECTS%) DO ( echo Restoring...
@echo off pushd src for %%s in (*.sln) DO ( echo Restoring %%s packages nuget restore %%s ) popd src
Install mechanical soup first on Windows
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate python -m pip install -r pyenv.pkgs --no-cache-dir CALL pyenv\Scripts\deactivate POPD
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate pip install mechanicalsoup pip install -r pyenv.pkgs CALL pyenv\Scripts\deactivate POPD
Add user identity to git in tagging
IF "%1"=="" ( GOTO HELL ) ELSE ( SET _TAG_=v%1 ) IF NOT "%2"=="" ( SET _TAG_=%_TAG_%.%2 ) rem git remote set-url origin https://%3:%4@github.com/wasteam/waslibs.git git tag -a %_TAG_% -m "Version built: %_TAG_%" git push origin %_TAG_% GOTO END :HELL ECHO VERSION NOT FOUND EXIT -1 :END ECHO PROCESS FINISHE...
IF "%1"=="" ( GOTO HELL ) ELSE ( SET _TAG_=v%1 ) IF NOT "%2"=="" ( SET _TAG_=%_TAG_%.%2 ) git config user.email "%3@outlook.com" git config user.name "%3" git remote set-url origin https://%3:%4@github.com/wasteam/waslibs.git git tag -a %_TAG_% -m "Version built: %_TAG_%" git push origin %_TAG_% GOTO END :H...
Add new specs to bat
del "spec/*.js" call tsc "spec/ActorSpec.ts" -out "spec/ActorSpec.js" call tsc "spec/ColorSpec.ts" -out "spec/ColorSpec.js" call tsc "spec/PromiseSpec.ts" -out "spec/PromiseSpec.js" call tsc "spec/CollectionSpec.ts" -out "spec/CollectionSpec.js" call tsc "spec/LogSpec.ts" -out "spec/LogSpec.js" call jasmine-node --verb...
del "spec/*.js" call tsc "spec/ActorSpec.ts" -out "spec/ActorSpec.js" call tsc "spec/ColorSpec.ts" -out "spec/ColorSpec.js" call tsc "spec/PromiseSpec.ts" -out "spec/PromiseSpec.js" call tsc "spec/CollectionSpec.ts" -out "spec/CollectionSpec.js" call tsc "spec/LogSpec.ts" -out "spec/LogSpec.js" call tsc "spec/ClassSpec...
Use quotes for PATH environment variable
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_BUI...
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_...
Remove optimization flag, for now. This'll help provide better error information whilst we're working out remaining bugs.
fsi^ --optimize+^ --lib:NHol^ --use:system.fsx^ --use:lib.fs^ --use:fusion.fs^ --use:basics.fs^ --use:nets.fs^ --use:printer.fs^ --use:preterm.fs^ --use:parser.fs^ --use:equal.fs^ --use:bool.fs^ --use:drule.fs^ --use:tactics.fs^ --use:itab.fs^ --use:simp.fs^ --use:theorems.fs^ --use:...
fsi^ --lib:NHol^ --use:system.fsx^ --use:lib.fs^ --use:fusion.fs^ --use:basics.fs^ --use:nets.fs^ --use:printer.fs^ --use:preterm.fs^ --use:parser.fs^ --use:equal.fs^ --use:bool.fs^ --use:drule.fs^ --use:tactics.fs^ --use:itab.fs^ --use:simp.fs^ --use:theorems.fs^ --use:ind_defs.fs^ ...
Build - Pause at the end of build batch file.
@ECHO OFF ECHO Compiling pony-game... REM Link to Windows Kits and native libraries. REM http://tutorial.ponylang.org/appendices/compiler-args.html ponyc -p "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64" -p "Bin\PonyGameNative\x64\Debug" -o Bin\PonyGame Source\PonyGame ECHO Copying native libs... ...
@ECHO OFF ECHO Compiling pony-game... REM Link to Windows Kits and native libraries. REM http://tutorial.ponylang.org/appendices/compiler-args.html ponyc -p "C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10240.0\ucrt\x64" -p "Bin\PonyGameNative\x64\Debug" -o Bin\PonyGame Source\PonyGame ECHO Copying native libs... ...
Update the Appveyor script to fetch with the full architecture name
setlocal rem Put curl on the PATH set PATH=C:\Program Files\Git\mingw64\bin;%PATH% set VERSION=2.0.5 mkdir %TEMP%\hlint curl -o%TEMP%\hlint\hlint-%VERSION%.zip -L --insecure https://github.com/ndmitchell/hlint/releases/download/v%VERSION%/hlint-%VERSION%.zip 7z x %TEMP%\hlint\hlint-%VERSION%.zip -o%TEMP%\hlint -y %TEMP...
setlocal rem Put curl on the PATH set PATH=C:\Program Files\Git\mingw64\bin;%PATH% set VERSION=2.0.5 mkdir %TEMP%\hlint curl -o%TEMP%\hlint\hlint.zip -L --insecure https://github.com/ndmitchell/hlint/releases/download/v%VERSION%/hlint-%VERSION%-x86_64-windows.zip 7z x %TEMP%\hlint\hlint.zip -o%TEMP%\hlint -y %TEMP%\hli...
Fix package size issue on Windows
@echo on mkdir build-cpp if errorlevel 1 exit 1 cd build-cpp cmake .. ^ -GNinja ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%CONDA_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%PREFIX% ^ -DgRPC_CARES_PROVIDER="package" ^ -DgRPC_GFLAGS_PROVIDER="package" ^ -DgRPC_PROTOBUF_PROVIDE...
@echo on @rem The `vs2015_win-64` compiler activate package sets CFLAGS and CXXFLAGS @rem to "-MD -GL". Unfortunately that causes a huge ballooning in static @rem library size (more than 100MB per .lib file). Unsetting those flags @rem simply works. set CFLAGS= set CXXFLAGS= mkdir build-cpp if errorlevel 1 exit 1 ...
Update path: get oncrpc.dll from ../lib
@echo off echo "Installing ONC/RPC for NT..." ..\bin\inst_pm remove copy ..\bin\oncrpc.dll %SystemRoot%\system32 copy ..\bin\portmap.exe %SystemRoot%\system32 if exist %SystemRoot%\system32\drivers\etc\rpc goto inst_pm mkdir %SystemRoot%\system32\drivers\etc copy ..\etc\rpc %SystemRoot%\system32\drivers\etc :in...
@echo off echo "Installing ONC/RPC for NT..." ..\bin\inst_pm remove copy ..\lib\oncrpc.dll %SystemRoot%\system32 copy ..\bin\portmap.exe %SystemRoot%\system32 if exist %SystemRoot%\system32\drivers\etc\rpc goto inst_pm mkdir %SystemRoot%\system32\drivers\etc copy ..\etc\rpc %SystemRoot%\system32\drivers\etc :in...
Set errorlevel to 0 if it's 255
@echo off setlocal set ELECTRON_RUN_AS_NODE= pushd %~dp0\.. :: Get Code.exe location 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 i...
@echo off setlocal set ELECTRON_RUN_AS_NODE= pushd %~dp0\.. :: Get Code.exe location 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 i...
Update FAKE.BuildLib 0.3.5 from 0.1.8
@echo off pushd %~dp0 SET PACKAGEPATH=.\packages\ SET NUGET=.\tools\nuget\NuGet.exe SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.23.0 ( RD /S/Q %PACKAGEPATH%FAKE %NUGET% install FAKE -Version 4.23.0 %NUGETOPTIONS% CO...
@echo off pushd %~dp0 SET PACKAGEPATH=.\packages\ SET NUGET=.\tools\nuget\NuGet.exe SET NUGETOPTIONS=-ConfigFile .\tools\nuget\NuGet.Config -OutputDirectory %PACKAGEPATH% -ExcludeVersion IF NOT EXIST %PACKAGEPATH%FAKE\Ver_4.25.4 ( RD /S/Q %PACKAGEPATH%FAKE %NUGET% install FAKE -Version 4.25.4 %NUGETOPTIONS% CO...
Fix pathname of patch file
@echo off if exist src\fscanner.l goto dir_okay echo !!!! Must run this batch file from the main source directory! exit :dir_okay echo ---- Start by patching the ylwrap script to avoid problems echo with "ln -s": patch -p1 -i contrib/msdos/ylwrap.pat echo ---- Now configure and make it. echo -- ...
@echo off if exist src\fscanner.l goto dir_okay echo !!!! Must run this batch file from the main source directory! exit :dir_okay echo ---- Start by patching the ylwrap script to avoid problems echo with "ln -s": patch -p1 -i packages/MSDOS/ylwrap.pat echo ---- Now configure and make it. echo --...
Remove deprecation warning from Win
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7\Scripts;%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg doskey oq=python.exe -m openquake.commands.__main__ $* doskey oq-engine=python.exe -m openquake.commands.__main__ engine $* echo OpenQuake...
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7\Scripts;%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg doskey oq=python.exe -m openquake.commands.__main__ $* doskey oq-engine=python.exe -m openquake.commands.__main__ engine $* echo OpenQuake...
Add a bat file to disable CEIP
@echo off REM A bat file to disable Microsoft Compatibility Telemetry schtasks /End /TN "\Microsoft\Windows\Application Experience\AitAgent" schtasks /Change /TN "\Microsoft\Windows\Application Experience\AitAgent" /DISABLE schtasks /End /TN "\Microsoft\Windows\Application Experience\Microsoft Compatibility Apprais...
Update make for VS 2015. This matches the instructions in the README, which suggests installing VS 2015.
rem The MIT License (MIT) rem Copyright (c) 2016, Microsoft rem Permission is hereby granted, free of charge, to any person obtaining a copy rem of this software and associated documentation files (the "Software"), to deal rem in the Software without restriction, including without limitation the rights rem to use, co...
rem The MIT License (MIT) rem Copyright (c) 2016, Microsoft rem Permission is hereby granted, free of charge, to any person obtaining a copy rem of this software and associated documentation files (the "Software"), to deal rem in the Software without restriction, including without limitation the rights rem to use, co...
Remove -path config from example .bat
@echo off cls :start echo Starting server... DedicatedServer64\SpaceEngineersDedicated.exe -console -path config -ip 0.0.0.0 -port 27016 -maxPlayers 10 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... DedicatedServer64\SpaceEngineersDedicated.exe -console -ip 0.0.0.0 -port 27016 -maxPlayers 10 echo. echo Restarting server... echo. goto start
Work on the CLI feature
@echo off SET TAR= SET ZIP= SET EXT= SET CMD= FOR /f "delims=" %%i IN ('where tar') DO SET TAR=%%i FOR /f "delims=" %%i IN ('where zip') DO SET ZIP=%%i IF NOT "%TAR" == "" ( SET EXT=.tar.gz SET CMD=tar -C ../vendor/Popcorn/src/Pop -xpf ) ELSE IF NOT "%ZIP" == "" ( SET EXT=.zip SET CMD=unzip -d ../vend...
@echo off SET TAR= SET ZIP= SET EXT= SET CMD= FOR /f "delims=" %%i IN ('where tar') DO SET TAR=%%i FOR /f "delims=" %%i IN ('where zip') DO SET ZIP=%%i IF NOT "%TAR" == "" ( SET EXT=.tar.gz SET CMD=tar -C ../vendor/Popcorn/src/Pop -xpf ) ELSE IF NOT "%ZIP" == "" ( SET EXT=.zip SET CMD=unzip -d ../vend...
Update win to use new oq command
@echo off setlocal set mypath=%~dp0 set PATH=%PATH%;%mypath%\python2.7 set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath% doskey oq-engine=python.exe -m openquake.engine.bin.openquake_cli $* doskey oq-lite=python.exe -m openquake.commonlib.commands $* echo OpenQuake environment loaded cmd /k endl...
@echo off setlocal set mypath=%~dp0 set PATH=%PATH%;%mypath%\python2.7 set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath% doskey oq=python.exe -m openquake.commands.__main__ $* doskey oq-engine=python.exe -m openquake.commonlib.commands engine $* echo OpenQuake environment loaded cmd /k endlocal ...
Add ThemeSelector to the pull batch file.
git subtree pull --squash --prefix=ThirdParty/WPFFutures https://github.com/FineRedMist/WPFFutures.git master
git subtree pull --squash --prefix=ThirdParty/WPFFutures https://github.com/FineRedMist/WPFFutures.git master git subtree pull --squash --prefix=ThirdParty/ThemeSelector https://github.com/FineRedMist/ThemeSelector.git master
Remove --offline option from astroml recipe
"%PYTHON%" setup.py install --ofline if errorlevel 1 exit 1 :: Add more build steps here, if they are necessary. :: See :: http://docs.continuum.io/conda/build.html :: for a list of environment variables that are set during the build process.
"%PYTHON%" setup.py install if errorlevel 1 exit 1 :: Add more build steps here, if they are necessary. :: See :: http://docs.continuum.io/conda/build.html :: for a list of environment variables that are set during the build process.
Update command line options for new windows services
START /B qdb\bin\qdbd.exe -a 127.0.0.1:28360 --security=false --transient -r qdb/db START /B qdb\bin\qdbd.exe -a 127.0.0.1:28361 --security=true --cluster-private-file=cluster-secret-key.txt --user-list=users.txt --transient -r qdb/securedb
START /B qdb\bin\qdbd.exe -a 127.0.0.1:28360 --security=false --storage-engine=transient -r qdb/db START /B qdb\bin\qdbd.exe -a 127.0.0.1:28361 --security=true --cluster-private-file=cluster-secret-key.txt --user-list=users.txt --storage-engine=transient -r qdb/securedb
Remove misleading comment causing some to configure Debug builds differently. Those seettings were for debugging unit tests.
REM Configure Jemalloc build with options CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1 -Dwith-malloc-conf=purge:decay .. REM Debug build settings REM CMake -G "Visual Studio 12 Win64" -Denable-debug=1 -Dwith-malloc-conf=junk:true ..
REM Configure Jemalloc build with options CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1 -Dwith-malloc-conf=purge:decay ..
Update paths to GDAL 1.7.1 and Python 2.6
@ECHO OFF PUSHD %~DP0 SET CURDIR=%CD% PUSHD .. SET TOPDIR=%CD% POPD POPD SET GDAL_ROOT=%TOPDIR%\OSGeo4W SET GDAL_PAM_PROXY_DIR=%TEMP% SET GDAL_DATA=%GDAL_ROOT%\apps\gdal-16\share\gdal SET GEOTIFF_CSV=%GDAL_ROOT%\share\epsg_csv SET PROJ_LIB=%GDAL_ROOT%\share\proj SET GDAL_DRIVER_PATH=%GDAL_ROOT%\apps\gdal...
@ECHO OFF PUSHD %~DP0 SET CURDIR=%CD% PUSHD .. SET TOPDIR=%CD% POPD POPD SET GDAL_ROOT=%TOPDIR%\bin\gdal SET GDAL_PAM_PROXY_DIR=%TEMP% SET GDAL_DATA=%GDAL_ROOT%\share\gdal-data SET GEOTIFF_CSV=%GDAL_DATA% SET PROJ_LIB=%GDAL_ROOT%\share\proj SET GDAL_DRIVER_PATH=%GDAL_ROOT%\bin\plugins SET PYTHONHOME=%...
Revert "have Windows ci build jobs fail if compilation fails"
@echo off rem ======================================================================== rem rem Copyright 2015-2017 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
@echo off rem ======================================================================== rem rem Copyright 2015-2017 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
Use 'copy' instead of 'cp' on Windows
mkdir -p classes javac -d classes src/adaptorlib/*java src/adaptorlib/tests/*java src/templateadaptor/*java cp src/logging.properties classes/ REM TODO: Reintroduce src/local-fs-adaptor/*java .
mkdir -p classes javac -d classes src/adaptorlib/*java src/adaptorlib/tests/*java src/templateadaptor/*java copy src/logging.properties classes/ REM TODO: Reintroduce src/local-fs-adaptor/*java .
Store OS X files in zips.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
Correct java is used now (selected by %JAVA_HOME%) and EXIST_HOME is set now (if not set before)
@echo off if not "%JAVA_HOME%" == "" goto gotJavaHome echo Java environment not found. Please set echo your JAVA_HOME environment variable to echo the home of you JDK. goto :eof :gotJavaHome set ANT_HOME=%EXIST_HOME%\tools set _LIBJARS=%CLASSPATH%;%ANT_HOME%\lib\ant-launcher.jar;%ANT_HOME%\lib\junit.jar;%JA...
@echo off if not "%JAVA_HOME%" == "" goto gotJavaHome echo Java environment not found. Please set echo your JAVA_HOME environment variable to echo the home of you JDK. goto :eof :gotJavaHome if not "%EXIST_HOME%" == "" goto gotExistHome set EXIST_HOME=%CD% :gotExistHome set ANT_HOME=%EXIST_HOME%\tools ...
Fix strange behaviour when prompting user.
@ECHO OFF REM vundle requires git WHERE git >nul 2>nul IF %ERRORLEVEL% NEQ 0 ECHO Please install git first. && GOTO :EOF REM vundle requires curl WHERE curl >nul 2>nul IF %ERRORLEVEL% NEQ 0 ECHO Please install curl first (see vundle windows install docs). && GOTO :EOF REM If _vimrc file already exists, prompt user t...
@ECHO OFF REM This is required to enable reading of variables set in if statement blocks. REM Variables read with "!" e.g. !errorlevel! use delayed expansion. REM See http://ss64.com/nt/delayedexpansion.html for more info. setlocal enabledelayedexpansion REM vundle requires git WHERE git >nul 2>nul IF %ERRORLEVEL% NEQ...
Remove .net framework check from install.
@echo off set DOTNET_VERSION=4.7.1 echo Check for installed .NET Framework %DOTNET_VERSION% reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v%DOTNET_VERSION%" /ve >nul 2>&1 if %ERRORLEVEL% neq 0 ( echo ".NET Framework %DOTNET_VERSION% is not installed. Please d...
@echo off if not exist "%ProgramFiles(x86)%" ( set "ProgramFiles(x86)=%ProgramFiles%" ) set "VSWhere=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" :MSBuild echo Looking for MSBuild for /f "usebackq delims=" %%i in (`^""%VSWhere%" -latest -version "[15.0,16.0)" -products * -requires "Microsoft....
Exit batch with dotnet's exit code
@echo off WHERE dotnet >nul 2>nul IF %ERRORLEVEL% NEQ 0 ECHO You need to install .NET Core from https://dot.net && EXIT \b 1 dotnet Decompiler.dll %*
@echo off WHERE dotnet >nul 2>nul IF %ERRORLEVEL% NEQ 0 ECHO You need to install .NET Core from https://dot.net && EXIT /B 1 dotnet Decompiler.dll %* EXIT /B %errorlevel%
Update Puppet Version to 3.4.3
if not exist "C:\Windows\Temp\puppet.msi" ( powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://downloads.puppetlabs.com/windows/puppet-3.3.0.msi', 'C:\Windows\Temp\puppet.msi')" <NUL ) :: http://docs.puppetlabs.com/pe/latest/install_windows.html msiexec /qn /i C:\Windows\Temp\puppet.msi /log...
if not exist "C:\Windows\Temp\puppet.msi" ( powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://downloads.puppetlabs.com/windows/puppet-3.4.3.msi', 'C:\Windows\Temp\puppet.msi')" <NUL ) :: http://docs.puppetlabs.com/pe/latest/install_windows.html msiexec /qn /i C:\Windows\Temp\puppet.msi /log...
Delete buggy line ("cd src") in windows installer
@echo off pip install -r requirements.txt cd src copy src\settings\local.py.example src\settings\local.py pause
@echo off pip install -r requirements.txt copy src\settings\local.py.example src\settings\local.py pause
Change path where error messages are saved on Homer
@ECHO OFF SETLOCAL SET LOG_PATH="H:\bravo_logs\" SET LOG_FILE="marvin_errors.log" IF NOT EXIST %LOG_PATH% (SET LOG_PATH="%USERPROFILE%\Desktop\") SET SCRIPT="%USERPROFILE%\Repos\standalone_scripts\upload_robot_logs.py" SET STB_CONF="%USERPROFILE%\Repos\statusdb.yaml" SET STB_LOG="%USERPROFILE%\Repos\statusdb_upload.log...
@ECHO OFF SETLOCAL SET LOG_PATH="Y:\Bravo\bravo_logs\" SET LOG_FILE="marvin_errors.log" IF NOT EXIST %LOG_PATH% (SET LOG_PATH="%USERPROFILE%\Desktop\") SET SCRIPT="%USERPROFILE%\Repos\standalone_scripts\upload_robot_logs.py" SET STB_CONF="%USERPROFILE%\Repos\statusdb.yaml" SET STB_LOG="%USERPROFILE%\Repos\statusdb_uplo...
Update cli to work on windows
@echo off rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion setlocal enableextensions call "%~dp0...
@echo off rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one rem or more contributor license agreements. Licensed under the Elastic License; rem you may not use this file except in compliance with the Elastic License. setlocal enabledelayedexpansion setlocal enableextensions call "%~dp0...
Add testcode for skipping statements when IF FALSE
@more +1 "%~0" | "%~dp0..\nyagos.exe" - 2>nul & exit /b set FLAG=OK if not 1 == 1 echo NG(1) ; set "FLAG=NG(2)" echo %FLAG%
Fix the server start script for Windows 32-bit OS
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License...
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License...
Edit script that runs studio with plugin
SET pathToVS12=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe SET pathToVS11=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe IF EXIST %pathToVS12%( "%pathToVS12%" /RootSuffix YC /ReSharper.Internal Exit /b ) IF EXIST %pathToVS11% ( "%pathToVS11%" /RootS...
@echo off SET pathToVS12=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe SET pathToVS11=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe IF EXIST %pathToVS12%( "%pathToVS12%" /RootSuffix YC /ReSharper.Internal Exit /b ) IF EXIST %pathToVS11% ( "%pathToVS...
Create bin dir if needed
@echo off set targetDllPath="%~1\bin\SDL2.dll" if not exist %targetDllPath% ( echo Copying SDL2.dll to %targetDllPath% copy SDL2.dll %targetDllPath% || exit /b 1 ) cd /d %1 if not exist build mkdir build cd build set slnName="%~2.sln" set binTargetName="%~2-gamebins" IF NOT EXIST %slnName% ( cmake -G "Visua...
@echo off set targetDllDir="%~1\bin" if not exist %targetDllDir% ( mkdir %targetDllDir% ) set targetDllPath="%~1\bin\SDL2.dll" if not exist %targetDllPath% ( echo Copying SDL2.dll to %targetDllPath% copy SDL2.dll %targetDllPath% || exit /b 1 ) cd /d %1 if not exist build mkdir build cd build set slnName=...
Remove duplicate javac from test script
@ECHO OFF REM create bin directory if it doesn't exist if not exist ..\bin mkdir ..\bin REM delete output from previous run del actual.txt REM compile the code into the bin folder javac javac -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java REM run the program, feed commands from input.txt file...
@ECHO OFF REM create bin directory if it doesn't exist if not exist ..\bin mkdir ..\bin REM delete output from previous run del actual.txt REM compile the code into the bin folder javac -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java REM run the program, feed commands from input.txt file and re...
Add script to execute tests on windows.
@ECHO OFF set BASE=%~dp0 set DEFAULT_TARGET= IF [%1]==[] set DEFAULT_TARGET="%BASE%atest" pybot -c regression -L DEBUG --pythonpath "%BASE%src" %DEFAULT_TARGET% %* pause
Call non-nullable Dart for generators
@echo off echo Generating C-style Win32 APIs and tests call dart %~dp0win32\generate_ffi_files.dart call dart %~dp0win32\generate_tests.dart echo. echo Generating COM classes call dart %~dp0generate\generate.dart %~dp0generate\com %~dp0..\lib\src\generated echo. echo Generating Windows Runtime classes from IDL cal...
@echo off echo Generating C-style Win32 APIs and tests call dart --enable-experiment=non-nullable %~dp0win32\generate_ffi_files.dart call dart --enable-experiment=non-nullable %~dp0win32\generate_tests.dart echo. echo Generating COM classes call dart --enable-experiment=non-nullable %~dp0generate\generate.dart %~dp...
Fix conda recipe for Windows build
"%PYTHON%" setup.py install if errorlevel 1 exit 1 :: Add more build steps here, if they are necessary. :: See :: http://docs.continuum.io/conda/build.html :: for a list of environment variables that are set during the build process.
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt if errorlevel 1 exit 1 :: Add more build steps here, if they are necessary. :: See :: http://docs.continuum.io/conda/build.html :: for a list of environment variables that are set during the build process.
Add Edge restarting once consent enabled
@PowerShell.exe -ExecutionPolicy RemoteSigned -Command "Invoke-Expression -Command ((Get-Content -Path '%~f0' | Select-Object -Skip 2) -join [environment]::NewLine)" @exit /b %Errorlevel% #Install scoop set-executionpolicy unrestricted -s cu -f iex (new-object net.webclient).downloadstring('https://get.scoop.sh') scoop...
@PowerShell.exe -ExecutionPolicy RemoteSigned -Command "Invoke-Expression -Command ((Get-Content -Path '%~f0' | Select-Object -Skip 2) -join [environment]::NewLine)" @exit /b %Errorlevel% #Install scoop set-executionpolicy unrestricted -s cu -f iex (new-object net.webclient).downloadstring('https://get.scoop.sh') scoop...
Solve problem of non-failing native tests
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... set failures=0 FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i --gtest_output="xml:%%i.xml" powershell C:\projects\spectre\scripts\Up...
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... set failures=0 FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i --gtest_output="xml:%%i.xml" IF %ERRORLEVEL% NEQ 0 ( set /A failures...
Switch all recipes to pip install instead of setup.py install
set CFG=%USERPROFILE%\pydistutils.cfg echo [config] > "%CFG%" echo compiler=mingw32 >> "%CFG%" echo [build] >> "%CFG%" echo compiler=mingw32 >> "%CFG%" echo [build_ext] >> "%CFG%" echo compiler=mingw32 >> "%CFG%" "%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt if errorlevel...
set CFG=%USERPROFILE%\pydistutils.cfg echo [config] > "%CFG%" echo compiler=mingw32 >> "%CFG%" echo [build] >> "%CFG%" echo compiler=mingw32 >> "%CFG%" echo [build_ext] >> "%CFG%" echo compiler=mingw32 >> "%CFG%" "%PYTHON%" -m pip install . --no-deps -vv if errorlevel 1 exit 1
Update GetAndBuild script to match TC Build Step
setlocal IF "%1"=="" ( set BUILD_CONFIG="Debug" ) ELSE ( set BUILD_CONFIG=%1 ) REM Presence of a second argument indicates that the caller has already run vsvars32.bat IF "%2"=="" ( if not "%VS120COMNTOOLS%" == "" ( echo Setting up Visual Studio Pro 2013 Tools... @call "%VS120COMNTOOLS%vsvars32.bat" goto bui...
setlocal IF "%1"=="" ( set BUILD_CONFIG="Debug" ) ELSE ( set BUILD_CONFIG=%1 ) REM Presence of a second argument indicates that the caller has already run vsvars32.bat IF "%2"=="" ( if not "%VS120COMNTOOLS%" == "" ( echo Setting up Visual Studio Pro 2013 Tools... @call "%VS120COMNTOOLS%vsvars32.bat" goto bui...
Add project root dir to $LOAD_PATH.
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "token...
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "token...
Add debug output to analyse buildbot failure.
@echo off if not defined HOST_PYTHON set HOST_PYTHON=python %HOST_PYTHON% build_ssl.py %1 %2
@echo off cd if not defined HOST_PYTHON set HOST_PYTHON=python %HOST_PYTHON% build_ssl.py %1 %2
Add Python path to Kokoro batch script
@echo on cd git\SwiftShader git submodule update --init "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild" SwiftShader.sln
@echo on SET PATH=%PATH%;C:\python27 cd git\SwiftShader git submodule update --init "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild" SwiftShader.sln
Remove pause as we want to build it from CI agent
RMDIR "%~dp0..\Drops" /S /Q MKDIR "%~dp0..\Drops" MKDIR "%~dp0..\Drops\Temp" MKDIR "%~dp0..\Drops\Temp\agent" MKDIR "%~dp0..\Drops\Temp\agent\bin" XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp" XCOPY /E /Y "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin" DEL "%~dp0..\Drops...
RMDIR "%~dp0..\Drops" /S /Q MKDIR "%~dp0..\Drops" MKDIR "%~dp0..\Drops\Temp" MKDIR "%~dp0..\Drops\Temp\agent" MKDIR "%~dp0..\Drops\Temp\agent\bin" XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp" XCOPY /E /Y "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin" DEL "%~dp0..\Drops...
Update build.cmd to not cd up
@echo off cd %~dp0.. rake -f build\build.rb "build:no_test_build[., SevenDigital.Messaging.sln, build, full, local, Release]"
@echo off cd %~dp0 rake -f build\build.rb "build:no_test_build[., SevenDigital.Messaging.sln, build, full, local, Release]" pause
Stop beep noise on Windows machines via Roo shell
@echo off for %%? in ("%~dp0..") do set ROO_HOME=%%~f? rem echo Resolved ROO_HOME: %ROO_HOME% java -Djava.ext.dirs=%ROO_HOME%/lib;%ROO_HOME%/dist org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml"
@echo off for %%? in ("%~dp0..") do set ROO_HOME=%%~f? rem echo Resolved ROO_HOME: %ROO_HOME% java -Djline.nobell=true -Djava.ext.dirs=%ROO_HOME%/lib;%ROO_HOME%/dist org.springframework.roo.bootstrap.Bootstrap "classpath:/roo-bootstrap.xml"
Update the build script to use delayed environment variable expansion and instruct MSBuild to use a less verbose output.
@echo off REM I didn't use the if (...) else (...) form because when the environment variable REM is expanded, the ")" in the directory name seems to be interpreted by the IF command. if not "%ProgramFiles(x86)%"=="" set ProgramFiles32Bit=%ProgramFiles(x86)% if "%ProgramFiles(x86)%"=="" set ProgramFiles32Bit=%ProgramFi...
@echo off SetLocal ENABLEDELAYEDEXPANSION echo.Building the TTR Mouse Click Simulator... echo. REM MSBuild is always installed in the 32-Bit program files folder if "!ProgramFiles(x86)!"=="" ( set "ProgramFiles32Bit=!ProgramFiles!" ) else ( set "ProgramFiles32Bit=!ProgramFiles(x86)!" ) set "BuildExe=!ProgramFiles32Bi...
Add a helpful message when tools are missing
@ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln IF EXIST %CACHED_NUGET% goto restore echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command ...
@ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln SET VS2015_BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" IF NOT EXIST %VS2015_BUILD_TOOLS_PATH% ( echo In order to build or run this tool you need either Visual Studio 2015 Preview ...
Fix paths in build script
.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Library.csproj .nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Mvc.csproj
.nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages Library\Library.csproj .nuget\nuget.exe pack -Build -Symbols -Properties Configuration=Release -OutputDirectory ..\..\packages MVC\Mvc.csproj
Add 7z.exe to PATH for drmemory build environment
:: Sets up the environment for use with MSVS tools and CMake. @echo off setlocal :: cmd for loops are really hard, so I hardcoded the list of MSVS paths. set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual S...
:: Sets up the environment for use with MSVS tools and CMake. @echo off setlocal :: cmd for loops are really hard, so I hardcoded the list of MSVS paths. set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual S...
Fix missing files in release ZIP didn't work, will do this later...
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set releasePath=%projectPath%\.release mkdir "%releasePath%" for /f "tokens=*" %%a in ('type version.txt') do set version=%%a del "%releasePath%\shareical_%version%.zip" "build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%versio...
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set releasePath=%projectPath%\.release mkdir "%releasePath%" for /f "tokens=*" %%a in ('type version.txt') do set version=%%a del "%releasePath%\shareical_%version%.zip" "build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%versio...
Mark package as pre-release until 8.1 is released
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set version=0.1.2.1 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=src\.nuget\nuget.exe ) %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\Nancy.ReSharper.Plugin.sln /t:Rebuil...
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set version=0.1.2.2-EAP-20131112 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=src\.nuget\nuget.exe ) %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\Nancy.ReSharper.Plugin....
Fix paths to source files.
@mkdir _shake 2> nul @ghc --make Main.hs -rtsopts -with-rtsopts=-I0 -outputdir=_shake -o _shake/build && _shake\build --lint --directory ".." %*
@mkdir _shake 2> nul @ghc --make src/Main.hs -isrc -rtsopts -with-rtsopts=-I0 -outputdir=_shake -o _shake/build && _shake\build --lint --directory ".." %*
Update start.bar - Using ringw.exe instead of ring.exe to run the Ring Notepad - To hide the console window.
Rem This batch file will run the Ring Notepad Application. Rem Ring Notepad is just a sample about what we can do using Ring in little hours. Rem Using Ring Notepad we can write and execute Ring programs quickly. Rem Author : Mahmoud Fayed <msfclipper@yahoo.com> echo off cls cd applications cd rnote "../../bin/ring.e...
Rem This batch file will run the Ring Notepad Application. Rem Ring Notepad is just a sample about what we can do using Ring in little hours. Rem Using Ring Notepad we can write and execute Ring programs quickly. Rem Author : Mahmoud Fayed <msfclipper@yahoo.com> echo off cls cd applications cd rnote start ../../bin/r...
Use link to create a single dll.
mkdir bin ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule csc /t:library /debug:pdbonly /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs csc /debug:pdbonly /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs
mkdir bin ilasm /dll src\PtrUtils.il /out:bin\System.Slice.Core.netmodule csc /t:module /debug:pdbonly /unsafe /o+ /addmodule:bin\System.Slice.Core.netmodule /out:bin\System.Slice.netmodule src\*.cs link /dll /out:bin\System.Slice.dll bin\System.Slice.Core.netmodule bin\System.Slice.netmodule csc /debug:pdbonly /...
Build script error propagation fix
@echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ...
@echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ...
Add trivial warnings to ignore list
@echo off if not exist mercury-x64 mkdir mercury-x64 pushd mercury-x64 set CommonCompilerFlags=-Od -I.. -I..\glfw-3.1.1\include -MTd -fp:fast -fp:except- -Gm- -GR- -EHa- -Oi -W4 set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib glfw3dll.lib opengl32.lib -libpath:..\glfw-x64\src\Release c...
@echo off if not exist mercury-x64 mkdir mercury-x64 pushd mercury-x64 set CommonCompilerFlags=-nologo -Od -I.. -I..\glfw-3.1.1\include -MTd -fp:fast -fp:except- -Gm- -GR- -EHa- -Oi -W4 -WX -wd4201 -wd4100 -wd4189 -wd4505 -wd4127 set CommonLinkerFlags= -incremental:no -opt:ref user32.lib gdi32.lib winmm.lib glfw3dll....
Rename Zafir packages to WebSharper
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Frame...
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Frame...
Remove build shared libs as it is not supported
dir 7za x lts\ldc2-1.9.0-windows-x64.7z -o%SRC_DIR%\lts mkdir build cd build cmake -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DBUILD_SHARED_LIBS=ON ^ -DD_COMPILER=%SRC_DIR%\lts\ldc2-1.9.0-windows-x64\bin\ldmd2...
dir 7za x lts\ldc2-1.9.0-windows-x64.7z -o%SRC_DIR%\lts mkdir build cd build cmake -G Ninja ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DD_COMPILER=%SRC_DIR%\lts\ldc2-1.9.0-windows-x64\bin\ldmd2.exe ^ .. ninja install l...
Debug output for the build
@ECHO OFF REM TeamCity chokes on the COMPONENTSVERSION processing here, it thinks REM COMPONENTSVERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM -------------------...
@ECHO OFF REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks REM COMPONENTS_VERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM -----------------...
Use new webui start command on Win and check status before opening the browser
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B python.ex...
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the WebUI using django start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui...
Replace forward slashes with back slashes
@echo off setlocal enabledelayedexpansion set directory=%~f1 if [%directory%] == [] set directory=%CD% if exist %directory%\NUL ( set directory=%directory% ) else ( set directory=%~dp1 ) pushd %directory% for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i git rev-parse --show-to...
@echo off setlocal enabledelayedexpansion set directory=%~f1 if [%directory%] == [] set directory=%CD% if exist %directory%\NUL ( set directory=%directory% ) else ( set directory=%~dp1 ) pushd %directory% for /f "delims=" %%i in ('git rev-parse --show-toplevel') do set directory=%%i git rev-parse --show-to...
Add script for deploying documentation
@ECHO OFF cd ..\picklesdoc.github.com rmdir Output /s /q echo D | xcopy ..\pickles\Output Output /e powershell -Command "(gc index_template.md) -replace 'VERSION_PLACEHOLDER', '%1' | Out-File -encoding ASCII index.md" cd ..\pickles
Add Wix to env GHA
cd build md output copy *.exe output copy "c:\vcpkg\installed\x64-windows\bin\sqlite3.dll" output cd output windeployqt codequery.exe dir/b/a/s candle.exe -ext WixUIExtension -ext WixUtilExtension "..\..\windows-install\win64\codequery64.wxs" light.exe -ext WixUIExtension -ext WixUtilExtension codequery64.wixob...
set PATH=%PATH%;"%WIX%\bin" cd build md output copy *.exe output copy "c:\vcpkg\installed\x64-windows\bin\sqlite3.dll" output cd output windeployqt codequery.exe dir/b/a/s candle.exe -ext WixUIExtension -ext WixUtilExtension "..\..\windows-install\win64\codequery64.wxs" light.exe -ext WixUIExtension -ext WixUt...
Update bx path for nuget refresh.
@ECHO OFF ECHO. ECHO Downloading Libbitcoin Explorer dependencies from NuGet CALL nuget.exe install ..\vs2013\bitcoin-explorer\packages.config CALL nuget.exe install ..\vs2013\libbitcoin-explorer\packages.config CALL nuget.exe install ..\vs2013\libbitcoin-explorer-test\packages.config ECHO. CALL buildbase.bat ..\vs2013...
@ECHO OFF ECHO. ECHO Downloading Libbitcoin Explorer dependencies from NuGet CALL nuget.exe install ..\vs2013\bx\packages.config CALL nuget.exe install ..\vs2013\libbitcoin-explorer\packages.config CALL nuget.exe install ..\vs2013\libbitcoin-explorer-test\packages.config ECHO. CALL buildbase.bat ..\vs2013\libbitcoin-ex...
Fix GUI not finding reprounzip on Windows
@echo off "%~dp0\python2.7\Scripts\reprounzip-qt.exe" %*
@echo off set PATH=%~dp0;%PATH% "%~dp0\python2.7\Scripts\reprounzip-qt.exe" %*
Remove VC2013 support from AppVeyor script
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2013 call "%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFil...
echo Current build setup MSVS="%MSVS%" PLATFORM="%PLATFORM%" TARGET="%TARGET%" if %MSVS% == 2015 call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM% if %MSVS% == 2017 call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %PLATFORM% if %MSVS%...
Create batch file for Windows
@echo off setlocal call :Main "%~f0" "%~dp0" "%~dp0.." goto :eof :Main set script_path=%~f1 set script_dir=%~f2 set repo_dir=%~f3 set build_dir=%repo_dir%\_build if exist "%build_dir%" ( rd /s /q "%build_dir%" ) mkdir "%build_dir%" cd /d "%build_dir%" cmake -G "Visual Studio 14 2015 Win64" ..
Add Windows Installer for Realms 1.9.
@echo off SET version=v1.0.1 SET for_minecraft=1.9 SET for_realms=1.8.3 :: Minecraft path SET minecraft=%appdata%\.minecraft echo Sphinx Client Patch Installer %version% echo For Minecraft %for_minecraft%. echo For Realms %for_realms%. echo. :: Check to see if Minecraft can run Sphinx. echo Checking system require...
Add Program Files\7-Zip to path
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* del /s w9xpopen.exe copy ..\README.txt . 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
PATH=C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* del /s w9xpopen.exe copy ..\README.txt . 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..