Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix path update to not include trailing backslash
if not exist "C:\Windows\Temp\build-tools.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Win...
if not exist "C:\Windows\Temp\build-tools.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://download.microsoft.com/download/5/f/7/5f7acaeb-8363-451f-9425-68a90f98b238/visualcppbuildtools_full.exe', 'C:\Win...
Add unit testing script for Windows.
:: Run all unit tests @echo off setlocal EnableDelayedExpansion dir /b unit-tests > tempFile1 findstr /e /c:".py" tempFile1 > tempFile2 findstr /B /R /C:"[^__]" tempFile2 > tempFile3 del tempFile1 del tempFile2 set /A testIndex=1 for /F "tokens=*" %%A in (tempFile3) do ( echo|set /p=Test !testIndex!: echo %%~nA e...
Upgrade build script to include en-EN, fr-FR cultures
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Development rem ======================================================= rem Release variables rem ==========================================...
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Development rem ======================================================= rem Release variables rem ==========================================...
Build help file before copying it!
@echo "mkDistribution v1.3" if exist current ( rmdir /s /q current ) mkdir current mkdir current\netcf-10 nant -t:netcf-1.0 -D:build.output.dir=current\netcf-10 -buildfile:sharpZLib.build build mkdir current\netcf-20 nant -t:netcf-2.0 -D:build.output.dir=current\netcf-20 -buildfile:sharpZLib.build build mkdir cur...
@echo "mkDistribution v1.4" if exist current ( rmdir /s /q current ) mkdir current mkdir current\netcf-10 nant -t:netcf-1.0 -D:build.output.dir=current\netcf-10 -buildfile:sharpZLib.build build mkdir current\netcf-20 nant -t:netcf-2.0 -D:build.output.dir=current\netcf-20 -buildfile:sharpZLib.build build mkdir cur...
Add missing perl dependency for packer
@echo off cd /D %~dp0 call settings.cmd call ..\unxutils.cmd cd dist\%ARCH% call pp -B -o psass.exe ^ -I ../../../blib/lib ^ -M Encode::Byte ^ -M List::MoreUtils::XS ^ -M List::MoreUtils::PP ^ -M Win32::ChangeNotify ^ -M Filesys::Notify::Simple ^ CSS-Sass-%RELVERSION%/bin/psass cd ..\.. REM tested...
@echo off cd /D %~dp0 call settings.cmd call ..\unxutils.cmd cd dist\%ARCH% call pp -B -o psass.exe ^ -I ../../../blib/lib ^ -M Encode::Byte ^ -M PerlIO::encoding ^ -M List::MoreUtils::XS ^ -M List::MoreUtils::PP ^ -M Win32::ChangeNotify ^ -M Filesys::Notify::Simple ^ CSS-Sass-%RELVERSION%/bin/psass ...
Disable updates on Windows 2008 R2 and Windows 7
<!-- : @echo off echo ==^> Enabling updates for other products from Microsoft Update net stop wuauserv reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v EnableFeaturedSoftware /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\W...
<!-- : @echo off echo ==^> Enabling updates for other products from Microsoft Update net stop wuauserv reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update" /v EnableFeaturedSoftware /t REG_DWORD /d 1 /f reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\W...
Test the code without a C extension.
call \ned\bin\switchpy 23 python setup.py develop nosetests call \ned\bin\switchpy 24 python setup.py develop nosetests call \ned\bin\switchpy 25 python setup.py develop nosetests call \ned\bin\switchpy 26 python setup.py develop nosetests
call \ned\bin\switchpy 23 python setup.py develop nosetests del coverage\tracer.pyd nosetests call \ned\bin\switchpy 24 python setup.py develop nosetests del coverage\tracer.pyd nosetests call \ned\bin\switchpy 25 python setup.py develop nosetests del coverage\tracer.pyd nosetests call \ned\bin\switchpy ...
Add bat to help sign unsigned dependencies
@echo off set ildasmFolder=%~1 set ilasmFolder=%~2 set inputFolder=%~3 set inputFilename=%~4 set debug=%~5 mkdir tempSigning "%ildasmFolder%\sn.exe" -k tempSigning\keyPair.snk echo Key Written "%ildasmFolder%\ildasm.exe" "%inputFolder%\%inputFilename%" /out:"tempSigning\%inputFilename%.il" echo Disassembled "%ilasmFol...
Put back the @echo off..
rem @echo off set VIBE_BIN=%~dps0 set LIBDIR=%VIBE_BIN%..\lib\win-i386 set BINDIR=%VIBE_BIN%..\lib\bin set LIBS="%LIBDIR%\event2.lib" "%LIBDIR%\eay.lib" "%LIBDIR%\ssl.lib" ws2_32.lib set EXEDIR=%TEMP%\.rdmd\source set START_SCRIPT=%EXEDIR%\vibe.cmd if NOT EXIST %EXEDIR% ( mkdir %EXEDIR% ) copy "%VIBE_BIN%*.dll" %EXED...
@echo off set VIBE_BIN=%~dps0 set LIBDIR=%VIBE_BIN%..\lib\win-i386 set BINDIR=%VIBE_BIN%..\lib\bin set LIBS="%LIBDIR%\event2.lib" "%LIBDIR%\eay.lib" "%LIBDIR%\ssl.lib" ws2_32.lib set EXEDIR=%TEMP%\.rdmd\source set START_SCRIPT=%EXEDIR%\vibe.cmd if NOT EXIST %EXEDIR% ( mkdir %EXEDIR% ) copy "%VIBE_BIN%*.dll" %EXEDIR% ...
Add utility to force dynamic compilation
@echo off REM Delete all compiled module binaries to force dynamic compilation (.csproj) to kick in set SRC=src\Orchard.Web\Modules for /f %%i in ('dir %SRC% /b /ad') do del /q %SRC%\%%i\bin\%%i.dll
Update new windows build script
set PYTHON=C:\Python27\python set EASY_INSTALL=c:\python27\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH% cd %WORKSPACE% %PYTHON% check_packages.py cd %WORKSPACE% python setup.py build -cmingw32 cd %WORKSPACE% python...
set PYTHON=C:\Python27\python set EASY_INSTALL=c:\python27\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH% set PYLINT=c:\python27\scripts\pylint cd %WORKSPACE% %PYTHON% check_packages.py cd %WORKSPACE% python setup.py bu...
Add maven path 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...
Add batch script to test 64bit and 32bit MSVC from the terminal
@SET SUBDIR=%~dp0 @cd %SUBDIR% @ctest -V -S test.cmake @SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;%PATH% @ctest -V -S test.cmake
Remove errorlevel 1 after compile to be able to print the errors.
copy mpi.f.single mpi.f copy mpif.h.single mpif.h if errorlevel 1 exit 1 flang -g -w -O -Wall -o genesis2 main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f input.f output.f mpi....
copy mpi.f.single mpi.f copy mpif.h.single mpif.h if errorlevel 1 exit 1 flang -g -w -O -Wall -o genesis2 main.f check.f diagno.f esource.f field.f incoherent.f math.f partsim.f pushp.f loadbeam.f loadrad.f magfield.f tdepend.f track.f string.f rpos.f scan.f source.f stepz.f timerec.f initrun.f input.f output.f mpi....
Use quotation marks for path parameters.
@echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION REM Change the working directory to the script's director...
@echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION REM Change the working directory to the script's director...
Replace a tab with 4 spaces
@echo off mkdir public\compiled set ts_apps=common chess ceval game tree for %%t in (%ts_apps%) do @( call echo Building TypeScript: %%t call cd ui\%%t call yarn install --non-interactive call yarn run compile --non-interactive call cd ..\.. ) set apps=site chat challenge notify learn insight edito...
@echo off mkdir public\compiled set ts_apps=common chess ceval game tree for %%t in (%ts_apps%) do @( call echo Building TypeScript: %%t call cd ui\%%t call yarn install --non-interactive call yarn run compile --non-interactive call cd ..\.. ) set apps=site chat challenge notify learn insight ed...
Set install prefix in windows
set CMAKE_CONFIG=Release mkdir build_%CMAKE_CONFIG% pushd build_%CMAKE_CONFIG% cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG% ^ -DBLA_VENDOR:STRING=OpenBLAS ^ -DENABLE_PYTHON:BOOL=ON ^ -DBUILD_DOCUM...
set CMAKE_CONFIG=Release mkdir build_%CMAKE_CONFIG% pushd build_%CMAKE_CONFIG% cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE:STRING=%CMAKE_CONFIG% ^ -DBLA_VENDOR:STRING=OpenBLAS ^ -DENABLE_PYTHON:BOOL=ON ^ -DCMAKE_INSTA...
Set Powershell ExecutionPolicy for build.
SETLOCAL SET Version=2.5.0 SET Prerelease=auto @SET Config=%1% @IF [%1] == [] SET Config=Debug IF NOT DEFINED VisualStudioVersion CALL "%VS140COMNTOOLS%VsDevCmd.bat" || ECHO ERROR: Cannot find Visual Studio 2015, missing VS140COMNTOOLS variable. && GOTO Error0 @ECHO ON REM Updating the version of all proje...
SETLOCAL SET Version=2.5.0 SET Prerelease=auto @SET Config=%1% @IF [%1] == [] SET Config=Debug IF NOT DEFINED VisualStudioVersion CALL "%VS140COMNTOOLS%VsDevCmd.bat" || ECHO ERROR: Cannot find Visual Studio 2015, missing VS140COMNTOOLS variable. && GOTO Error0 @ECHO ON REM Updating the version of all proje...
Deploy script changed from copy to xcopy
mkdir mage composer install rem Actions after deploy (database creation, files copy, etc) copy ..\src\app\etc\nmmlm mage\app\etc
mkdir mage composer install rem Actions after deploy (database creation, files copy, etc) xcopy ..\src\app\etc\nmmlm mage\app\etc\nmmlm /E /Y /I
Build commant updated to target MSBuild\14.0
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) set version=1.0.0 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=nuget ) %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild Bot.Messenger.sln /p:Configuration="%conf...
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) set version=1.0.0 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=nuget ) %programfiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe Bot.Messenger.sln /p:Configuration="%config%" /m /v:M /fl /f...
Replace individual parameters with wildcard
@ECHO OFF :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successully delete the task :: assembly. "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo ...
@ECHO OFF :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successfully delete the task :: assembly. "%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" /nologo...
Add bat script that is added into choosenim zip release.
@echo off .\choosenim\choosenim.exe stable --firstInstall for /f "delims=" %%a in ('.\choosenim\choosenim.exe --getNimbleBin') do @set NIMBLEBIN=%%a copy .\choosenim\choosenim.exe "%NIMBLEBIN%\choosenim.exe" echo Work finished. echo Now you must ensure that the Nimble bin dir is in your PATH: ...
Build Parameters (less logging in console)
@ECHO OFF ECHO. ECHO =============================================================== ECHO. ECHO Building: %1 ECHO. ECHO =============================================================== ECHO. Call "C:\Program Files (x86)\MSBuild\12.0\Bin\MsBuild.exe" %1 /p:Configuration=Release /p:PostBuildEvent=
@ECHO OFF ECHO. ECHO =============================================================== ECHO. ECHO Building: %1 ECHO. ECHO =============================================================== ECHO. Call "C:\Program Files (x86)\MSBuild\12.0\Bin\MsBuild.exe" %1 /p:Configuration=Release /consoleloggerparameters:Summary;ErrorsOnl...
Use RETAIL mode for Python Library Issues
call "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" nmake dir WIN2000_DEBUG\*.exe copy WIN2000_DEBUG\*.exe ..\Bin\ pause
call "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" nmake nodebug=1 dir WIN2000_DEBUG\*.exe copy WIN2000_DEBUG\*.exe ..\Bin\ pause
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x ...
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files :: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. set CYGWIN=nontsec set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\s...
Add script to start all services at once.
start nodemon SimulationManager/server.js start nodemon FloodSim/server.js start nodemon CriticalObjectSim/server.js start nodemon ElectricalNetworkSim/server.js start nodemon HazardousObjectSim/server.js start nodemon RoadSim/server.js start nodemon CommunicationSim/server.js
Append to JRUBY_OPTS instead of overriding it
@ECHO OFF set GO_ROOT=%~dp0\..\..\.. set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME% set PATH=%JRUBY_BASE%\bin;%PATH% set JRUBY_...
@ECHO OFF set GO_ROOT=%~dp0\..\..\.. set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME% set PATH=%JRUBY_BASE%\bin;%PATH% set JRUBY_...
Put back echo and python
setlocal set MYDIRBLOCK=%~dp0 call %MYDIRBLOCK%..\..\..\config_env_base.bat %HIDEWINDOW% h set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1 set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255 set PYTHONUNBUFFERED=TRUE %PYTHON% %MYDIRBLOCK%ArchiverAccess\archiver_access.py
@echo off setlocal set MYDIRBLOCK=%~dp0 call %MYDIRBLOCK%..\..\..\config_env_base.bat %HIDEWINDOW% h set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1 set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255 set PYTHONUNBUFFERED=TRUE %PYTHONW% %MYDIRBLOCK%ArchiverAccess\archiver_access.py
Fix echo commands in a virtualenv Windows batch file
@ECHO OFF :: Performs necessary setup steps to allow the use of :: virtualenv commands such as "mkvirtualenv [ENV_NAME]" :: for creating and using Python virtual environments. python -m pip install --upgrade virtualenv python -m pip install --upgrade virtualenvwrapper-win echo "" echo "" echo "*** You may now use virt...
@ECHO OFF :: Performs necessary setup steps to allow the use of :: virtualenv commands such as "mkvirtualenv [ENV_NAME]" :: for creating and using Python virtual environments. python -m pip install --upgrade virtualenv python -m pip install --upgrade virtualenvwrapper-win echo: echo: echo: *** You may now use virtuale...
Add missing license to wrapper batch.
@echo off python "%~dp0\ktransw.py" %*
@echo off REM REM Copyright (c) 2016, G.A. vd. Hoorn REM REM Licensed under the Apache License, Version 2.0 (the "License"); REM you may not use this file except in compliance with the License. REM You may obtain a copy of the License at REM REM http://www.apache.org/licenses/LICENSE-2.0 REM REM Unless required by ...
Remove composer optimization as this doesnt work at the moment.
@echo off cd "%~dp0" IF EXIST ..\composer.json IF NOT EXIST ..\vendor\.composer ( ECHO Composer installing vendors... >> ..\startup-tasks-log.txt 'D:\Program Files (x86)\PHP\v5.3\php.exe' ..\bin\composer.phar install ECHO Vendors installed >> ..\startup-tasks-log.txt ) ECHO Starting Symfony Set...
@echo off cd "%~dp0" ECHO Starting Symfony Setup... >> ..\startup-tasks-log.txt 'D:\Program Files (x86)\PHP\v5.3\php.exe' ..\app\console --env=prod cache:clear ECHO Symfony Cache warmed up >> ..\startup-tasks-log.txt
Delete old zip files before zip process
@echo off if "%1" == "build" goto build if "%1" == "tar" goto zip if "%1" == "zip" goto zip goto eof :build electron-packager . %npm_package_name% --platform=all --arch=x64 --version=%npm_package_electronVersion% --out=build --ignore="(build|node_modules)" --app-version="%npm_package_version%" --version-string.File...
@echo off if "%1" == "build" goto build if "%1" == "tar" goto zip if "%1" == "zip" goto zip goto eof :build electron-packager . %npm_package_name% --platform=all --arch=x64 --version=%npm_package_electronVersion% --out=build --ignore="(build|node_modules)" --app-version="%npm_package_version%" --version-string.File...
Revert "overcome the global.json constraint with a hack"
@rem enter repo root cd /d %~dp0\..\..\..\.. cd csharp @rem see what dotnet version is available dotnet --version @rem TODO(jtattermusch): Kokoro workers currently only have dotnet SDK 2.1.3 @rem so we just overwrite the SDK requirement in global.json as the results @rem should be fully compatible. echo { "sdk": { "...
@rem enter repo root cd /d %~dp0\..\..\..\.. cd csharp call build_packages.bat
Configure winrm service to autostart
@setlocal EnableDelayedExpansion EnableExtensions @for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i" @if defined PACKER_DEBUG (@echo on) else (@echo off) if not defined PACKER_SERVICES set PACKER_SERVICES=opensshd sshd BvSshServer winrm title Starting services: %PACKER_SERVICES%. Please wait... :: Intentionally...
@setlocal EnableDelayedExpansion EnableExtensions @for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i" @if defined PACKER_DEBUG (@echo on) else (@echo off) if not defined PACKER_SERVICES set PACKER_SERVICES=opensshd sshd BvSshServer winrm title Starting services: %PACKER_SERVICES%. Please wait... :: Intentionally...
Undo unintentional change to storage project
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: :: https://github.com/Azure/azure-rest-api-specs/commits/master @echo off set autoRestVersion=0.16.0-Nightly20160406 if "%1" == "" ( set specFile="https://raw.githubusercontent.com/Azure/azur...
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: @echo off set autoRestVersion=0.16.0-Nightly20160406 if "%1" == "" ( set specFile="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-storage/2015-06-15/swagger/storage.js...
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% o...
Add batch file for Windows support
@echo off rem %~dp0 returns the absolute path where the current script is. We just append 'iban-check' to it, and forward all the arguments with %* ruby "%~dp0iban-check" %*
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x ...
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files :: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. set CYGWIN=nontsec set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\s...
Update name of PIP package
:: This script assumes the standard setup on tensorflow Jenkins windows machines. :: It is NOT guaranteed to work on any other machine. Use at your own risk! :: :: REQUIREMENTS: :: * All installed in standard locations: :: - JDK8, and JAVA_HOME set. :: - Microsoft Visual Studio 2015 Community Edition :: - Msys2 :...
:: This script assumes the standard setup on tensorflow Jenkins windows machines. :: It is NOT guaranteed to work on any other machine. Use at your own risk! :: :: REQUIREMENTS: :: * All installed in standard locations: :: - JDK8, and JAVA_HOME set. :: - Microsoft Visual Studio 2015 Community Edition :: - Msys2 :...
Build header and footer for the pdf file
Set DecorateName=DecorateName Set Book=mencius Set FontType=Traditional Set BookFont=%Book%_%FontType% Set CSSExt=.css Set CSS_=--css=..\css\ Set NameStyle=%CSS_%%DecorateName%%CSSExt% Set Output=%BookFont% If "%1" == "name" ( Set Output=%Output%_%DecorateName% Set Style=%NameStyle% ) If Not "%2" == "...
Set DecorateName=DecorateName Set Book=mencius Set FontType=Traditional Set BookFont=%Book%_%FontType% Set CSSExt=.css Set CSS_=--css=..\css\ Set NameStyle=%CSS_%%DecorateName%%CSSExt% Set Output=%BookFont% If "%1" == "name" ( Set Output=%Output%_%DecorateName% Set Style=%NameStyle% ) If Not "%2" == "...
Deploy - Remove XPI checkout to gh-pages
::I use PortableGit\bin in PATH git init ::Ensure we have these for the next step git checkout master && git commit -a -m "Deployment" && git push ::Switch to gh-pages, pull from master, commit, then switch back to master. git checkout gh-pages && git checkout master psdle*.js && git checkout master psdle.xpi && git co...
::I use PortableGit\bin in PATH git init ::Ensure we have these for the next step git checkout master && git commit -a -m "Deployment" && git push ::Switch to gh-pages, pull from master, commit, then switch back to master. git checkout gh-pages && git checkout master psdle*.js && git commit -a -m "Sync with master." &&...
Add publish.bat to push packages to vnext nuget server
@echo off dotnet pack src/AspectCore.Lite.Abstractions --configuration Release --output packages dotnet pack src/AspectCore.Lite.Abstractions.Generator --configuration Release --output ../packages dotnet pack src/AspectCore.Lite.Abstractions.Resolution --configuration Release --output packages dotnet pack src/AspectCor...
Make sure codecov can understand ExcludeFromCodeCoverage.
@echo off cd build nuget restore packages.config -PackagesDirectory . cd .. build\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test tests\LineBot.Tests\LineBot.Tests.csproj --no-build -c release /p:codecov=true" -register:user -threshold:10 -oldStyle -safemode:off -output:.\LineBo...
@echo off cd build nuget restore packages.config -PackagesDirectory . cd .. build\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:"dotnet.exe" -targetargs:"test tests\LineBot.Tests\LineBot.Tests.csproj --no-build -c release /p:codecov=true" -register:user -threshold:10 -oldStyle -safemode:off -output:.\LineBo...
Fix syntax of for loops in batch files
echo off call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -test cd dist/msvc-compatible cl *.c /I ../kremlin/include /I . /I ../kremlin/kremlib/di...
echo off call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=amd64 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat" -test cd dist/msvc-compatible cl *.c /I ../kremlin/include /I . /I ../kremlin/kremlib/di...
Correct @SODIUM_LIBRARY_VERSION_MINOR@ substitution for Visual Studio
cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.12/ < src\libsodium\include\sodium\version.h.in > tmp cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/9/ < tmp > tmp2 cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/9/ < tmp2 > tmp3 cscript msvc-scripts/rep.vbs //Nologo...
cscript msvc-scripts/rep.vbs //Nologo s/@VERSION@/1.0.12/ < src\libsodium\include\sodium\version.h.in > tmp cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MAJOR@/9/ < tmp > tmp2 cscript msvc-scripts/rep.vbs //Nologo s/@SODIUM_LIBRARY_VERSION_MINOR@/4/ < tmp2 > tmp3 cscript msvc-scripts/rep.vbs //Nologo...
Exclude PermissionSTS from NuGet package generation
@Echo Off REM set your api key once: nuget setApiKey Your-API-Key SET "nuget_basedir=" "%ProgramFiles(x86)%/Microsoft Visual Studio 14.0/Common7/IDE/devenv" /build release ../proj/SecurityServer/proj/SecurityServer.sln IF %ERRORLEVEL% NEQ 0 ( echo. && echo. && echo Build failed. exit /B 1 ) %nuget_basedir%nuget...
@Echo Off REM set your api key once: nuget setApiKey Your-API-Key SET "nuget_basedir=" "%ProgramFiles(x86)%/Microsoft Visual Studio 14.0/Common7/IDE/devenv" /build release ../proj/SecurityServer/proj/SecurityServer.sln IF %ERRORLEVEL% NEQ 0 ( echo. && echo. && echo Build failed. exit /B 1 ) %nuget_basedir%nuget...
Define that NVM_PATH is for nvm
@echo off set /P NVM_PATH="Enter the absolute path where the zip file is extracted/copied to: " set NVM_HOME=%NVM_PATH% set NVM_SYMLINK=C:\Program Files\nodejs setx /M NVM_HOME "%NVM_HOME%" setx /M NVM_SYMLINK "%NVM_SYMLINK%" for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\System\CurrentControlSet\Control\Session ...
@echo off set /P NVM_PATH="Enter the absolute path where the nvm-windows zip file is extracted/copied to: " set NVM_HOME=%NVM_PATH% set NVM_SYMLINK=C:\Program Files\nodejs setx /M NVM_HOME "%NVM_HOME%" setx /M NVM_SYMLINK "%NVM_SYMLINK%" for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\System\CurrentControlSet\Cont...
Update build.cmd to use platform agnostic rakefile
@echo off cd %~dp0.. rake -f Build\build-win.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]"
Exit the build script if Hadrian cannot be built
@rem Change the current directory to the one containing this script @cd %~dp0 @rem Build Hadrian and dependencies @stack build @rem Run Hadrian in GHC top directory forwarding additional user arguments @stack exec hadrian -- --lint --directory ".." %*
@rem Change the current directory to the one containing this script @cd %~dp0 @rem Build Hadrian and dependencies and exit the script if the build failed @stack build @if %errorlevel% neq 0 exit /B %errorlevel% @rem Run Hadrian in GHC top directory forwarding additional user arguments @stack exec hadrian -- --lint --...
Add Windows bat file for flashing arduino firmware
@echo off if "%1"=="" goto :usage if "%2"=="" ( echo Error! No hex file provided. goto :usage ) if not exist "%2" ( echo %2 does not exist goto :eof ) if not exist avrdude.exe ( echo Error! This script must be executed within the "avr" directory goto :eof ) avrdude.exe -c stk500v2 -b 115200 -p atmega2560 -...
Fix current directory for batch file
echo Running Windows build and test call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('$(pwd)/matlab/CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);" if not "%ERRORLEVEL%" == "0" ( echo Exit Code = ...
echo Running Windows build and test call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('%cd%/matlab/CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);" if not "%ERRORLEVEL%" == "0" ( echo Exit Code = %E...
Remove examples from Codeplex Release package. Include NET40/NET45/SL5/NetCore45 libraries, remove OpenXml and Pdf packages (use NuGet if you need these).
call clean ..\Output\NET40\Examples call clean ..\Output\NET45\Examples REM "C:\Program Files\7-Zip\7z.exe" a ..\Output\OxyPlot-NET40-%1.zip ..\Output\NET40\*.* > ZipRelease.log REM "C:\Program Files\7-Zip\7z.exe" a ..\Output\OxyPlot-NET45-%1.zip ..\Output\NET45\*.* >> ZipRelease.log REM "C:\Program Files\7-Zip\7...
mkdir ..\Output\Release mkdir ..\Output\Release\NET40 mkdir ..\Output\Release\NET45 mkdir ..\Output\Release\NetCore45 mkdir ..\Output\Release\NetCore45\Themes mkdir ..\Output\Release\SL5 copy ..\Output\NET45\OxyPlot.??? ..\Output\Release copy ..\Output\NET40\OxyPlot.WindowsForms.??? ..\Output\Release\NET40 ...
Add batch file for windows
@echo off @rem Check for mvn in path, use it if found, otherwise use maven wrapper @set MAVEN_CMD=mvn @WHERE /Q mvn @IF %ERRORLEVEL% NEQ 0 set MAVEN_CMD=.\mvnw.bat @if "%1" == "" call:help @if "%1" == "copy" call:copy @if "%1" == "clean" call:clean %2 %3 %4 @if "%1" == "package" call:package %2 %3 %4 @if "%1" == "boo...
Fix failing VersionResourceTests caused by removal of EXE/DLLs from image repo.
ECHO Clone Dolphin image environment git clone -q --branch=master https://github.com/dolphinsmalltalk/Dolphin.git Dolphin ECHO Copy executables copy ..\..\Dolphin7.exe Dolphin copy ..\..\DolphinVM7.dll Dolphin copy ..\..\DolphinCR7.dll Dolphin copy ..\..\DolphinDR7.dll Dolphin copy ..\..\DolphinSureCrypto.dll Dolphin ...
ECHO Clone Dolphin image environment git clone -q --branch=master https://github.com/dolphinsmalltalk/Dolphin.git Dolphin ECHO Copy executables copy ..\..\*.exe Dolphin copy ..\..\*.dll Dolphin ECHO Boot and test image cd Dolphin CALL BootDPRO CALL TestDPRO
Remove *.pyc files from distribution files
REM Clean Up rmdir /Q /S Src rmdir /Q /S Bin del /Q DarunGrim3.zip mkdir Src\bin copy ..\DarunGrim2\* Src\bin\ copy ..\..\Publish\Docs\*.pdf Src\bin call CopySrc.bat REM Generate binaries pushd Src c:\python26\python SetupDist.py py2exe popd REM Prepare binary directory REM Copy necessary files co...
REM Clean Up rmdir /Q /S Src rmdir /Q /S Bin del /Q DarunGrim3.zip mkdir Src\bin copy ..\DarunGrim2\* Src\bin\ copy ..\..\Publish\Docs\*.pdf Src\bin call CopySrc.bat del Src\*.pyc REM Generate binaries pushd Src c:\python26\python SetupDist.py py2exe popd REM Prepare binary directory REM Copy nece...
Fix build by restoring a missing space.
setlocal pushd %~dp0 set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319 call %msBuildDir%\msbuild.exe ClientKit\ClientKit.csproj /p:Configuration=Release20 /p:OutputPath=..\Managed-OSVR-Unity /p:NativeOutputSuffix32=x86 /p:NativeOutputSuffix64=x86_64%* endlocal
setlocal pushd %~dp0 set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319 call %msBuildDir%\msbuild.exe ClientKit\ClientKit.csproj /p:Configuration=Release20 /p:OutputPath=..\Managed-OSVR-Unity /p:NativeOutputSuffix32=x86 /p:NativeOutputSuffix64=x86_64 %* endlocal
Include perl benchmark module for psass utility
@echo off SETLOCAL cd /D %~dp0 call settings.cmd call ..\unxutils.cmd cd dist\%ARCH% call pp -B -o psass.exe ^ -I ../../../blib/lib ^ -M Encode::Byte ^ -M PerlIO::encoding ^ -M List::MoreUtils::XS ^ -M List::MoreUtils::PP ^ -M Win32::ChangeNotify ^ -M Filesys::Notify::Simple ^ -l "%PERLDIR%/perl/site/lib/libsass.dll"...
@echo off SETLOCAL cd /D %~dp0 call settings.cmd call ..\unxutils.cmd cd dist\%ARCH% call pp -B -o psass.exe ^ -I ../../../blib/lib ^ -M Benchmark ^ -M Encode::Byte ^ -M PerlIO::encoding ^ -M List::MoreUtils::XS ^ -M List::MoreUtils::PP ^ -M Win32::ChangeNotify ^ -M Filesys::Notify::Simple ^ -l "%PERLDIR%/perl/site/l...
Update automated release build scripts on Windows
@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 %Build...
@echo off set cwd=%cd% cd /D %~dp0 set DevCmd="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" set MSBuildOptions=/v:m /p:Configuration=Release set BuildDir64="build-exe-64" call %DevCmd% echo Building 64-bit tev... mkdir %BuildDir64% cd %BuildDir64% cmake -DTEV_DEPLOY...
Add script to disable offiescan context menu
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=OfficeScan NT reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f
Add script to generate gold CSVs
:: Copyright 2020 Intel Corporation :: :: Permission is hereby granted, free of charge, to any person obtaining a copy :: of this software and associated documentation files (the "Software"), to :: deal in the Software without restriction, including without limitation the :: rights to use, copy, modify, merge, pu...
Add windows start batch script
@echo off @title AvaIre Windows Launcher setlocal enabledelayedexpansion set Looping=False cls :START echo. echo Welcome to AvaIre's window launcher echo Please select an option to begin: echo. echo 1. Start the bot normally echo 2. Start the bot with automatic restarts echo 3. Update the bot using the nigh...
Use symlink for windows too
@echo off npm i&& for /D %%i in (zeronet-*) do (cd "%%i"&& npm i&& cd ..) goto :eof
@echo off npm i&& for /D %%i in (zeronet-*) do (cd "%%i"&& mklink /D node_modules ..\node_modules&& cd ..) goto :eof
Tweak the CI script for CMake on Windows.
CD git/re2 || EXIT /B 1 cmake . || EXIT /B 1 cmake --build . --clean-first || EXIT /B 1 ctest -E dfa^|exhaustive^|random || EXIT /B 1 cmake -DCMAKE_BUILD_TYPE=Release . || EXIT /B 1 cmake --build . --clean-first || EXIT /B 1 ...
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest --build-config Debug -E dfa^|exhaustive^|random || EXIT ...
Fix Windows runner to load jline JAR.
@java -Xbootclasspath/a:.;nqp-runtime.jar;3rdparty/asm/asm-4.1.jar nqp %*
@java -Xbootclasspath/a:.;nqp-runtime.jar;3rdparty/asm/asm-4.1.jar;3rdparty/jline/jline-1.0.jar nqp %*
Build with VS 15 dev tools
@echo off setlocal enabledelayedexpansion where /q msbuild if "%ERRORLEVEL%" == "0" ( goto :SkipDeveloperSetup ) set DeveloperCommandPrompt=%VS140COMNTOOLS%\VsDevCmd.bat if not exist "%DeveloperCommandPrompt%" ( echo In order to build this repository, you either need 'msbuild' on the path or Visual Studio 2015...
@echo off setlocal enabledelayedexpansion where /q msbuild if "%ERRORLEVEL%" == "0" ( goto :SkipDeveloperSetup ) set DeveloperCommandPrompt=%VS150COMNTOOLS%\VsDevCmd.bat if not exist "%DeveloperCommandPrompt%" ( echo In order to build this repository, you either need 'msbuild' on the path or Visual Studio 2015...
Fix build script comments to match new name
@ECHO OFF REM Sample usages: REM REM Building and running tests REM - build.libgit2sharp.cmd REM REM Building and identifying potential leaks while running tests REM - build.libgit2sharp.cmd "LEAKS_IDENTIFYING" SETLOCAL SET EXTRADEFINE=%~1 where dotnet 1>nul 2>nul IF ERRORLEVEL 1 ( ECHO Cannot find dotnet.e...
@ECHO OFF REM Sample usages: REM REM Building and running tests REM - buildandtest.cmd REM REM Building and identifying potential leaks while running tests REM - buildandtest.cmd "LEAKS_IDENTIFYING" SETLOCAL SET EXTRADEFINE=%~1 where dotnet 1>nul 2>nul IF ERRORLEVEL 1 ( ECHO Cannot find dotnet.exe. Run from...
Use pytest and flake8 commands.
@echo off set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% python -m pytest python -m flake8
set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% pytest flake8
Use studio64.exe instead of studio.exe
set projectPath=%~dp0 set androidStudioBin=A:\AndroidStudio\bin rem Android Studio needs the project path without a trailing backslash if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% start "" /D "%androidStudioBin%" "studio.exe" "%projectPath%"
set projectPath=%~dp0 set androidStudioBin=A:\AndroidStudio\bin rem Android Studio needs the project path without a trailing backslash if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% start "" /D "%androidStudioBin%" "studio64.exe" "%projectPath%"
Add gimp, paint.net and inconsolata
@echo off :: install chocolatey @powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin choco feature enable -n allowGlobalConfirmation :: general apps choco ...
@echo off :: install chocolatey @powershell -NoProfile -ExecutionPolicy unrestricted -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin choco feature enable -n allowGlobalConfirmation :: general apps choco ...
Remove quotes around file from Windows batch
@echo off Rem Run UnRAVL's main entry point. Rem Command line arguments are UnRAVL script files to execute: Rem unravl.bat script1.json script2.json script3.json set UNRAVL_DIR=%~dp0..\..\.. set UNRAVL_JAR_DIR=%UNRAVL_DIR%\build\libs set UNRAVL_LIB_DIR=%UNRAVL_DIR%\build\output\lib java -Dapp.name=UnRAVL ^ -...
@echo off Rem Run UnRAVL's main entry point. Rem Command line arguments are UnRAVL script files to execute: Rem unravl.bat script1.json script2.json script3.json set UNRAVL_DIR=%~dp0..\..\.. set UNRAVL_JAR_DIR=%UNRAVL_DIR%\build\libs set UNRAVL_LIB_DIR=%UNRAVL_DIR%\build\output\lib java -Dapp.name=UnRAVL ^ -...
Add sample commands for using Glacier
C:\Python27\Scripts\aws glacier initiate-job --account-id - ^ --vault-name demschooltools-backups ^ --job-parameters "{\"Type\": \"inventory-retrieval\"}" rem request an archive rem C:\Python27\Scripts\aws glacier initiate-job --account-id - ^ rem --vault-name demschooltools-backups ^ rem --job-parame...
Use unique test out for each sample
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN...
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN...
Add script to bump all prerelease corefx package build numbers
@echo off if "%1" == "" goto :usage if "%2" == "" goto :usage goto :main :usage echo Usage: %~n0 [directory] [build] echo. echo Recursively replaces all occurrences of 4.0.XX-beta-YYYYY in echo [directory]\*.config;*.csproj;*.nuspec with 4.0.XX-beta-[build] goto :eof :main pushd %1 && git clean -f packages && cal...
Delete syso file before building with race detector
@ECHO OFF Setlocal EnableDelayedExpansion CALL __Global.cmd ECHO *** Go Build *** ECHO Build compiles packages and dependencies with race condition detector ECHO. FOR /F "tokens=*" %%A IN (Packages.txt) DO ( SET PACKAGE=%%A ECHO Building: !PACKAGE! cd "%GOPATH%\src\!PACKAGE!" go build -v -race %LDFLAGS% !PACKAGE! E...
@ECHO OFF Setlocal EnableDelayedExpansion CALL __Global.cmd ECHO *** Go Build *** ECHO Build compiles packages and dependencies with race condition detector ECHO. FOR /F "tokens=*" %%A IN (Packages.txt) DO ( SET PACKAGE=%%A ECHO Building: !PACKAGE! cd "%GOPATH%\src\!PACKAGE!" DEL /Q /F *.syso go build -v -race %LDF...
Add script to build a Windows package on Windows
@echo off :: This script will create a packaged version of the app in firmware_flasher in your home folder. :: After executing this script, use NSIS to create an installer from the firmware_flasher.win32.nsi file located there. :: You may need to run npm install electron-packager --global once before this will work co...
Add local.py to windows install
@echo off cd src pip install -r requirements.txt pause
@echo off cd src pip install -r requirements.txt copy src\settings\local.py.example src\settings\local.py pause
Fix conda build on 32-bit Windows
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64 set DISTUTILS_USE_SDK=1 set MSSdk=1 "%PYTHON%" setup.py install if errorlevel 1 exit 1
if "%ARCH%" == "32" (set PLATFORM=x86) else (set PLATFORM=x64) call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM% set DISTUTILS_USE_SDK=1 set MSSdk=1 "%PYTHON%" setup.py install if errorlevel 1 exit 1
Remove the building of Berkeley DB step; _bsddb44.vcproj takes care of this for us now.
@rem Used by the buildbot "buildmsi" step. cmd /c Tools\buildbot\external.bat @rem build release versions of things call "%VS90COMNTOOLS%vsvars32.bat" if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib ( vcbuild db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static ) @rem build Python cmd ...
@rem Used by the buildbot "buildmsi" step. cmd /c Tools\buildbot\external.bat @rem build release versions of things call "%VS90COMNTOOLS%vsvars32.bat" @rem build Python cmd /q/c Tools\buildbot\kill_python.bat vcbuild /useenv PCbuild\pcbuild.sln "Release|Win32" @rem build the documentation bash.exe -c 'cd Doc;make PY...
Use VsDevCmd.Bat rather than VsMSBuildCmd.bat
@echo off echo Building Module. echo Dependencies: GIT, PREMAKE5, VISUAL STUDIO 2015/2013. echo. :: Hacky way to ensure we've got a git repository & submodules at our disposal git init git submodule update --init --recursive echo. :: Fire up a Visual Studio command-line environment and generate our solution IF DEFIN...
@echo off echo Building Module. echo Dependencies: GIT, PREMAKE5, VISUAL STUDIO 2015/2013. echo. :: Hacky way to ensure we've got a git repository & submodules at our disposal git init git submodule update --init --recursive echo. :: Fire up a Visual Studio command-line environment and generate our solution IF DEFIN...
Exit on first error (Windows)
@if "%DEBUG%" == "" @echo off setlocal set SOURCE_DIR=%CD% set BUILD_DIR=%CD%\cppbuild\Release if EXIST %BUILD_DIR% rd /S /Q %BUILD_DIR% md %BUILD_DIR% pushd %BUILD_DIR% cmake -G "Visual Studio 16 2019" -DBUILD_AERON_DRIVER=ON %SOURCE_DIR% cmake --build . --clean-first --config Release ctest -C Release
@if "%DEBUG%" == "" @echo off setlocal set SOURCE_DIR=%CD% set BUILD_DIR=%CD%\cppbuild\Release if EXIST %BUILD_DIR% rd /S /Q %BUILD_DIR% md %BUILD_DIR% pushd %BUILD_DIR% cmake -G "Visual Studio 16 2019" -DBUILD_AERON_DRIVER=ON %SOURCE_DIR% if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL% cmake --build . --clean-first --...
Use gsl vs. gslgen for batch model builds.
@ECHO OFF REM Run all code generation scripts REM Requires iMatix GSL4, from http:\\www.nuget.org\packages\gslgen REM Use this when: REM - you add a socket option (sockopts.xml) REM - add a new project class (project.xml) REM - modify one of the referenced gsl templates (*.gsl) mkdir ..\builds\...
@ECHO OFF REM Run all code generation scripts REM Requires iMatix GSL4, from http:\\www.nuget.org\packages\gsl REM Use this when: REM - you add a socket option (sockopts.xml) REM - add a new project class (project.xml) REM - modify one of the referenced gsl templates (*.gsl) mkdir ..\builds\min...
Update CI for math library.
@echo off rem math/big tests set PATH_TO_ODIN==..\..\..\..\odin set TEST_ARGS=-fast-tests set TEST_ARGS=-no-random set TEST_ARGS= set OUT_NAME=math_big_test_library set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style echo --- echo Running core:math/big tes...
@echo off rem math/big tests set PATH_TO_ODIN==..\..\..\..\odin set TEST_ARGS=-fast-tests set TEST_ARGS=-no-random set TEST_ARGS= set OUT_NAME=math_big_test_library.dll set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style echo --- echo Running core:math/big...
Add arguments parsing to batch script
@echo off pushd %~dp0 dotnet ArchiSteamFarm.dll %ASF_ARGS%
@echo off pushd %~dp0 :loop IF NOT "%1" == "" ( SET ASF_ARGS=%ASF_ARGS% %1 SHIFT GOTO :loop ) dotnet ArchiSteamFarm.dll %ASF_ARGS%
Add script to reduce distributable size from 358 MB to 162 MB
:: Script to trim size of unpacked build output. :: Removes extraneous contents not required to run Zephyr. :: Expected to be run from `.scripts` directory. @ECHO off set WORKING_DIRECTORY=..\dist\win-unpacked\resources\app.asar.unpacked\node_modules\node-openvr :: Check that working directory exists IF NOT EXIST %WO...
Complete implementation of module io running as a task.
@echo off cls java -Dj3d.rend=d3d -Djava.util.logging.config.file=conf/logging.properties -Xms512m -Xmx1384m -cp MZmine.jar net.sf.mzmine.main.MZmineClient
@echo off cls java -Dj3d.rend=d3d -Djava.library.path=lib -Djava.util.logging.config.file=conf/logging.properties -Xms512m -Xmx1384m -cp MZmine.jar net.sf.mzmine.main.MZmineClient
Split Tcl make targets into separate ones.
@rem Fetches (and builds if necessary) external dependencies @rem Assume we start inside the Python source directory call "Tools\buildbot\external-common.bat" call "%VS90COMNTOOLS%\vsvars32.bat" if not exist tcltk\bin\tcl85g.dll ( cd tcl-8.5.2.1\win nmake -f makefile.vc COMPILERFLAGS=-DWINVER=0x0500 D...
@rem Fetches (and builds if necessary) external dependencies @rem Assume we start inside the Python source directory call "Tools\buildbot\external-common.bat" call "%VS90COMNTOOLS%\vsvars32.bat" if not exist tcltk\bin\tcl85.dll ( @rem all and install need to be separate invocations, otherwise nmakehlp is n...
Add package action remind notice.
nuget pack Pelasoft.AspNet.Mvc.Slack.csproj -Verbosity detailed -Build -IncludeReferencedProjects -Properties Configuration=Release
@echo off echo. echo ###### Nuget Creation Checklist ###### echo ## ## echo ## * Update assembly version number ## echo ## * Update nuspec revision notes ## echo ## * Create tag after final commit ## echo ## ## echo #######################...
Fix comment lines refering to other lib
@REM Configure the build of phreeqc4rkt cmake -S . -B build ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DBUILD_SHARED_LIBS=ON ^ -DYAML_BUILD_SHARED_LIBS=ON ^ -DYAML_CPP_BUILD_TESTS=OFF @REM Build and install phreeqc4rkt in %L...
@REM Configure the build of yaml-cpp4rkt cmake -S . -B build ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DBUILD_SHARED_LIBS=ON ^ -DYAML_BUILD_SHARED_LIBS=ON ^ -DYAML_CPP_BUILD_TESTS=OFF @REM Build and install yaml-cpp4rkt in ...
Use min/max instead of mean/sigma.
mkdir "Equipment/Simple Frontend/Settings" create DOUBLE "Equipment/Simple Frontend/Settings/mean" set "Equipment/Simple Frontend/Settings/mean" 0.0 create DOUBLE "Equipment/Simple Frontend/Settings/sigma" set "Equipment/Simple Frontend/Settings/sigma" 1.0
mkdir "Equipment/Simple Frontend/Settings" create DOUBLE "Equipment/Simple Frontend/Settings/min" set "Equipment/Simple Frontend/Settings/min" 0.0 create DOUBLE "Equipment/Simple Frontend/Settings/max" set "Equipment/Simple Frontend/Settings/max" 1.0
Update AppVeyor script now that output files are changed
@echo on @SET /A exitcode=0 @SET /A TESTFAILURE_ERROR=1 @SET /A PUSHARTIFACT_ERROR=2 @SET /A READREPORT_ERROR=4 nunit3-console.exe Tests\CSF.Screenplay.WebApis.Tests\bin\Debug\CSF.Screenplay.WebApis.Tests.dll @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%TESTFAILURE_ERROR% appveyor PushArtifact SpecFlow.report.txt @IF ...
@echo on @SET /A exitcode=0 @SET /A TESTFAILURE_ERROR=1 @SET /A PUSHARTIFACT_ERROR=2 @SET /A READREPORT_ERROR=4 nunit3-console.exe Tests\CSF.Screenplay.WebApis.Tests\bin\Debug\CSF.Screenplay.WebApis.Tests.dll @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%TESTFAILURE_ERROR% appveyor PushArtifact SpecFlow.report.txt @IF ...
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 ..
Add batch script for normal windows startup
::Windows Normal Gateway Startup Script @echo off echo "Installing Dependencies" call bundle install echo "Starting Delayed Job" call "cmd /c start /min bundle exec ruby script/delayed_job run" echo "Starting Normal Gateway" bundle exec rails server -p 3001
Fix designer files getting updated just for version number changes
@echo off setlocal REM Copyright (c) Microsoft. All rights reserved. REM Licensed under the MIT license. See LICENSE file in the project root for full license information. if "%~3"=="" goto help if NOT "%~4"=="" goto help goto Run :Help echo syntax: ValidateDesignerFile.cmd ^<path_to_designer_file^> ^<path_to_candida...
@echo off setlocal REM Copyright (c) Microsoft. All rights reserved. REM Licensed under the MIT license. See LICENSE file in the project root for full license information. if "%~3"=="" goto help if NOT "%~4"=="" goto help goto Run :Help echo syntax: ValidateDesignerFile.cmd ^<path_to_designer_file^> ^<path_to_candida...
Remove unnecessary pause, CD back to top
@ECHO OFF CD winrun4j COPY WinRun4J64.exe DNGearSim.exe RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini RCEDIT64.exe /S DNGearSim.exe splash.bmp RCEDIT64.exe /I DNGearSim.exe icon.ico COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe" CD ../.. CD Bootstrap/target COPY "bootstrap.jar" "../../runtime/bootstrap.jar" PAUSE
@ECHO OFF CD winrun4j COPY WinRun4J64.exe DNGearSim.exe RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini RCEDIT64.exe /S DNGearSim.exe splash.bmp RCEDIT64.exe /I DNGearSim.exe icon.ico COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe" CD ../.. CD Bootstrap/target COPY "bootstrap.jar" "../../runtime/bootstrap.jar" CD ../....
Fix the name of the scheduled task.
schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query ...
schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query ...
Print the contents of CMakeError.log after running CMake for CI tests on Windows. This helps investigate why a CHECK_CXX_SOURCE_COMPILES check failed.
echo on set PATH=C:\Windows\system32;C:\Windows;%PYTHON3_PATH%;%PYTHON3_PATH%\Scripts;%CMAKE_PATH%; if not "%VCVARSALL_DIR%" == "" CALL "%VCVARSALL_DIR%\vcvarsall.bat" amd64 if not "%MINGW_PATH%" == "" SET PATH=%PATH%%MINGW_PATH%; setx PATH "%PATH%" mkdir C:\Fruit\build-%CONFIGURATION% cd C:\Fruit\build-%CONFIGUR...
echo on set PATH=C:\Windows\system32;C:\Windows;%PYTHON3_PATH%;%PYTHON3_PATH%\Scripts;%CMAKE_PATH%; if not "%VCVARSALL_DIR%" == "" CALL "%VCVARSALL_DIR%\vcvarsall.bat" amd64 if not "%MINGW_PATH%" == "" SET PATH=%PATH%%MINGW_PATH%; setx PATH "%PATH%" mkdir C:\Fruit\build-%CONFIGURATION% cd C:\Fruit\build-%CONFIGUR...
Add bower install and copy installed to
@echo off set REPO_URL=https://raw.githubusercontent.com/PixxxeL/regular-gulpfile/master/ echo =========================================================================== echo 1. Create bower.json, package.json echo 2. Download gulpfile.js and skeleton echo 3. Make directories echo. pause && npm init &&...
@echo off set REPO_URL=https://raw.githubusercontent.com/PixxxeL/regular-gulpfile/master/ echo =========================================================================== echo 1. Create bower.json, package.json echo 2. Download gulpfile.js and skeleton echo 3. Make directories echo. pause && npm init &&...
Use flutter test for faster testing
@echo off echo Generating C-style Win32 APIs and tests call dart %~dp0win32\win32api.dart call dart %~dp0win32\generate_ffi_jsonproto.dart call dart %~dp0metadata\win32.dart %~dp0..\lib\src\generated call dart %~dp0win32\generate_tests.dart echo. echo Generating COM classes from Windows metadata call dart %~dp0meta...
@echo off echo Generating C-style Win32 APIs and tests call dart %~dp0win32\win32api.dart call dart %~dp0win32\generate_ffi_jsonproto.dart call dart %~dp0metadata\win32.dart %~dp0..\lib\src\generated call dart %~dp0win32\generate_tests.dart echo. echo Generating COM classes from Windows metadata call dart %~dp0meta...
Use proper batch script syntax
@echo off rem Generate the header file from the Store info about in which git branch, rem what SHA1 and at what date/time we executed make. for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 1}"') do set GIT_BRANCH=%%a for /f "delims=" %%a in ('powershell.exe -command ...
@echo off rem Generate the header file from the Store info about in which git branch, rem what SHA1 and at what date/time we executed make. for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 1}"') do set GIT_BRANCH=%%a for /f "delims=" %%a in ('powershell.exe -command ...
Add file header with right data
### application.bat - 201x - votre nom ### echo "Build : 10:00" echo "version 1"
### application.bat - 2015 - Thibault ROGER ### echo "Build : 10:00" echo "version 1"