Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix windows bundle install staying in bundle dir after install
@echo off for /D %%i in (bundles/*) do ( if exist "%cd%\bundles\%%i\package.json" ( cd "%cd%\bundles\%%i" echo Updating %%i call npm install >nul 2>&1 ) )
@echo off for /D %%i in (bundles/*) do ( if exist "%cd%\bundles\%%i\package.json" ( pushd "%cd%\bundles\%%i" echo Updating %%i call npm install >nul 2>&1 popd ) )
Add script to enable consent in MS Edge as non admin
@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...
Use MSVC import lib for MSVC DLL for Fluidsynth in MSVC build.
scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=1 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=1 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buil...
scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=0 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=0 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buil...
Add Python install batch file.
@echo off set PYTHON_VERSION=2.7.6 set PYTHON_MSI=python-%PYTHON_VERSION%.msi set PYTHON_EXE=c:\\Python2.7\\python.exe set PYTHON_PATH="C:\Python27;c:\Python27\Scripts" echo, echo ------------------------------------------------------------------ echo Download Python echo -----------------------------------...
Delete archive if it already exists.
@ECHO OFF SET /p APPLICATION_VERSION=Tabster Version: SET BUILD_DIRECTORY=%CD% SET ZIP_ARCHIVE="%BUILD_DIRECTORY%\Tabster %APPLICATION_VERSION%.zip" pushd.. SET SOLUTION_DIRECTORY=%CD% SET VS_BUILD_DIRECTORY=%SOLUTION_DIRECTORY%\Tabster\bin\Portable\ ::build ECHO. ECHO Building Solution... C:\w...
@ECHO OFF SET /p APPLICATION_VERSION=Tabster Version: SET BUILD_DIRECTORY=%CD% SET ZIP_ARCHIVE="%BUILD_DIRECTORY%\Tabster %APPLICATION_VERSION%.zip" IF EXIST %ZIP_ARCHIVE% del /F %ZIP_ARCHIVE% pushd.. SET SOLUTION_DIRECTORY=%CD% SET VS_BUILD_DIRECTORY=%SOLUTION_DIRECTORY%\Tabster\bin\Portable\ ...
Fix a bug where brackets in PATH would break the batch script.
@echo off :: hook `nodist use <version>` if "%1"=="use" ( %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set Path=%%A;%Path% ) goto end ) :: hook `nodist update` if "%1"=="update" ( pushd . cd /D "%~dp0\.." npm update p...
@echo off :: hook `nodist use <version>` if "%1"=="use" ( %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( pushd . cd /D "%~dp0\.." npm update ...
Use environment variables and add atom support
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. ...
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. ...
Increase memory for PC startup file
SET "memParams=-Xms2g -Xmx4g" rem SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" SET debugParams= java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar -u D:\ -v G:\incoming\SnomedCT_RF2Release_INT_20160131.zip
SET "memParams=-Xms4g -Xmx8g" rem SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" SET debugParams= java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar -u D:\ -v G:\incoming\SnomedCT_RF2Release_INT_20160131.zip
Use automatic versioning for assembly version build number
@echo off goto :main ====================================================================== Performs a clean build and create NuGet packages for this solution Note that this also modifies the following files, replacing placeholder version numbers with actual version numbers: src\common\GlobalAssemblyInfo.cs sr...
@echo off goto :main ====================================================================== Performs a clean build and create NuGet packages for this solution Note that this also modifies the following files, replacing placeholder version numbers with actual version numbers: src\common\GlobalAssemblyInfo.cs sr...
Allow no suffix for creating nuget packages
@ECHO OFF SET SUFFIX=%1 IF '%SUFFIX%' == '' GOTO NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" --version-suffix %SUFFIX% GOTO END :NOSUFFIX ECHO Please provide verison suffix. ECHO.For example: ECHO.createNugetPackages ...
@ECHO OFF SET SUFFIX=%1 IF '%SUFFIX%' == '' GOTO NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" --version-suffix %SUFFIX% GOTO END :NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do ...
Update header for new member
### application.bat - 2015 - gandubert ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"
### application.bat - 2015 - gandubert MAIGNAN ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"
Move the @echo line above license header so it is not echoed to command line. Thanks to Vincent Siveton FOR-1021
rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you ma...
@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...
Use second parameter to define bitness
@rem Run CMake, pointing to sibling directories containing dependencies. @rem Note that zmq and cppzmq are relative to the source dir, while @rem protobuf is relative to the build dir. Not sure why. @set build_type=Release @if not "%1"=="" set build_type=%1 @echo Configuring for build type %build_type% cmake -D...
@rem Run CMake, pointing to sibling directories containing dependencies. @rem Note that zmq and cppzmq are relative to the source dir, while @rem protobuf is relative to the build dir. Not sure why. @set build_type=Release @if not "%1"=="" set build_type=%1 @set build_bitness=32 @if not "%2"=="" set build_b...
Add batch script used for creating binary egg packages for Python.
:: batch script to build a binary egg package for the currently active Python cd .. del /q /s build-formast\ mkdir build-formast cd build-formast cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_JAVA=OFF ..\formast nmake cpack -G ZIP cd swig\python\package python setup.py bdist_egg
Add a debug, highly crude script to start a Mesa3D Meson build
@set mesa=C:\Software\Development\projects\mesa @SET PATH=C:\Software\Development\Git\cmd\;%mesa%\Python\;%mesa%\Py3\;%mesa%\Py3\Scripts\;%mesa%\flexbison\;%mesa%\ninja\;%mesa%\pkgconfig\;%PATH% @call "%ProgramFiles% (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 @cd %mesa%\mesa @set...
Add Windows build script to root folder
@for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~15,5%*. @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe" @taskkill /fi "Windowtitle eq HubTurbo V%version...
Add note about updates to the Windows build script
@ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build grunt :pre_build mkdir build :build cp -R src/* build call :build_server call :build_viewer cd build npm install cd .. :build_server npm install GochoMugo/docvy-server#develop mv node_modules/docvy...
REM This batch script is an effort at porting the Unix Makefile for REM Windows. Therefore, it may not be updated as frequent as the Unix REM Makefile. (Please consider helping us keeping it up to date) @ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build...
Replace absolute path of python
@echo off set PYTHONPATH=%CD% C:\Python27\python.exe feed_archive\feed_archive.py %*
@echo off set PYTHONPATH=%CD% python feed_archive\feed_archive.py %*
Put win32 binaries at front of path, to pick up scala &c.
@PATH=%PATH%;%XIA2_ROOT%\binaries\win32 @PATH=%PATH%;%XIA2_ROOT%\Applications
@PATH=%XIA2_ROOT%\binaries\win32;%PATH% @PATH=%PATH%;%XIA2_ROOT%\Applications
Fix location of java home for windows build
SET "JAVA_HOME=C:\opt\jdk1.8.0_161" cd git-repo ./mvnw clean install -X
SET "JAVA_HOME=C:\opt\jdk-8" cd git-repo ./mvnw clean install -X
Add script to enable ps remoting
rem This needs to be run as an administrator! winrm quickconfig -q winrm set winrm/config/winrs @{MaxMemoryPerShellMB="512"} winrm set winrm/config @{MaxTimeoutms="1800000"} winrm set winrm/config/service @{AllowUnencrypted="true"} winrm set winrm/config/service/auth @{Basic="true"} sc config WinRM start= auto
Fix missing newline at EOF.
rem from https://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-5-from-the-command-line rem install .NET version manager (DNVM) @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent...
rem from https://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-5-from-the-command-line rem install .NET version manager (DNVM) @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent...
Fix drmemory build environment wrapper for VS 2008
:: 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...
Change register to use rbenv exec instead of Ruby shim
:: Add a new Ruby version to rbenv @ setlocal EnableDelayedExpansion @ call "%~dp0common_vars.cmd" @reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL @reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL @reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f >...
:: Add a new Ruby version to rbenv @ setlocal EnableDelayedExpansion @ call "%~dp0common_vars.cmd" @reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL @reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL @reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f >...
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...
Fix issue that collector start failed in the Windows environment
@echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:...
@echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:...
Revert using fsi from FSharp.Compiler.Tools
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages nuget install FSharp.Compiler.Tools -nocache -version 4.0.1.21 -excludeVersion -o tools/packa...
@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#\4.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\...
Build tests w/ debugging symbols
mkdir bin ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs csc /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.netmodule csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs csc /debug /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs
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 ..
Build for 1.7 even with 1.8 javac
cd %~dp0java_executor del /s /q objs rmdir objs md objs cd src javac -d ..\objs ca\dmoj\java\*.java cd ..\objs del ..\..\executors\java_executor.jar jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class
cd %~dp0java_executor del /s /q objs rmdir objs md objs cd src javac -source 1.7 -target 1.7 -d ..\objs ca\dmoj\java\*.java cd ..\objs del ..\..\executors\java_executor.jar jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class
Add a batch file to support windows until panda gets its own automatic .bat facility generation at installation time
@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...
Create a script to allow building 32-bit and 64-bit Windows.
echo off REM REM This batch file builds both 32-bit and 64-bit versions of the loader. REM It is assumed that the developer has run the update_external_sources.bat REM file prior to running this. REM REM Determine the appropriate CMake strings for the current version of Visual Studio echo Determining VS version python...
Add PFX certificate password option when signing msi
@echo off set DIST_DIR=dist set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx" set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verif...
@echo off set DIST_DIR=dist set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx" set PFX_PASSWORD="" set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /p %PFX_PASSWORD% /d %MSI_PROGRAM_NAME% /t %TIMEST...
Add quotation around dir path.
robocopy C:\Users\user\Documents F:\Backup\Documents /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt robocopy C:\Users\user\Pictures F:\Backup\Pictures /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy C:\Users\user\Music F:\Backup\Music /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy C:\Users\...
robocopy "C:\Users\user\Documents" "F:\Backup\Documents" /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt robocopy "C:\Users\user\Pictures" "F:\Backup\Pictures" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy "C:\Users\user\Music" "F:\Backup\Music" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt roboco...
Write twistd.log files on Windows
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% cd /d %~dp0 :: Running it once will make sure svn and python were downloaded. call gclient.bat > nul :: run_slave....
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% cd /d %~dp0 :: Running it once will make sure svn and python were downloaded. call gclient.bat > nul :: run_slave....
Move post building command from make file to bat file. Until build system support post build, these command will be for Duet platform's post building commands.
# # Currently, Build system does not provide post build mechanism for module # and platform building, so just use a bat file to do post build commands. # Originally, following post building command is for EfiLoader module. # set BUILD_DIR=%WORKSPACE%\Build\DuetPkg\DEBUG_MYTOOLS set BASETOOLS_DIR=%WORKSPACE_TOO...
Use java instead of full path
"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -jar compiler.jar ^ --js=misc.js ^ --js=siggy.js ^ --js=siggy.helpers.js ^ --js=siggy.static.js ^ --js=siggy.intel.dscan.js ^ --js=siggy.intel.poses.js ^ --js=siggy.charactersettings.js ^ --js=siggy.notifications.js ^ --js=siggy.timer.js ^ --js=siggy.sigt...
java.exe -jar compiler.jar ^ --js=misc.js ^ --js=siggy.js ^ --js=siggy.helpers.js ^ --js=siggy.static.js ^ --js=siggy.intel.dscan.js ^ --js=siggy.intel.poses.js ^ --js=siggy.charactersettings.js ^ --js=siggy.notifications.js ^ --js=siggy.timer.js ^ --js=siggy.sigtable.js ^ --js=siggy.globalnotes.js ^ --js=s...
Update test script to clean up at start
@ECHO OFF REM compile the code into the bin folder javac javac -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java REM run the program, feed commands from input.txt file and redirect the output to the actual.txt java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt REM compare the o...
@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...
Test run via bat file.
setlocal cd %~dp0 set path=%path;%C:\Users\marco\OneDrive\Documents\PROJECTS\ThirdParties\vtk_installRelease\bin "C:\Users\marco\OneDrive\Documents\PROJECTS\polytriagnulation\out\Unittests\Release\unittests.exe"
setlocal cd %~dp0 set path=%path;%C:\Users\marco\OneDrive\Documents\PROJECTS\ThirdParties\vtk_installRelease\bin call "C:\Users\marco\OneDrive\Documents\PROJECTS\polytriagnulation\out\Unittests\Release\unittests.exe" pause
Update to use KuduScript 1.0.4
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/f1f26085d54438c5a3eb951baba56fc0db8f90eb IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %coun...
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/93edfcb6e9c75d395e805825f5051e707bd50bb8 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %coun...
Use choco upgrade iso update
choco install docfx -y choco update docfx -y docfx docfx\docfx.json del docs /s /q REM the CNAME file is generated in the doc folder when added through the github REM settings page. Apparently github uses this file to determine the custom REM domain. The line above deletes the whole docs folder so we need to copy it...
choco install docfx -y choco upgrade docfx -y docfx docfx\docfx.json del docs /s /q REM the CNAME file is generated in the doc folder when added through the github REM settings page. Apparently github uses this file to determine the custom REM domain. The line above deletes the whole docs folder so we need to copy i...
Add batch to compile release binary.
@echo off rem > Build-Release [cfg file] rem Note: compiling twice the same sources gives different binaries. rem clean output directory del ..\dcu\*.dcu if '%1' NEQ '' goto use_cfg_argument :use_default_cfg dcc32 Drago goto return :use_cfg_argument set cfg=%1 copy Drago.cfg Drago.cfg.bak > nul copy %cfg% Drago.c...
Add gradle wrapper for Windows
@if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Window...
Update publish bat for new release.
@echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.1.nupkg pause
@echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.2.nupkg pause
Update paths to Python and 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 MAVEN_HOME=C:\opt\apache\apache-maven-3.5.3 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI% ECHO cf_org =...
@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 MAVEN_HOME=C:\opt\apache\apache-maven-3.3.9 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta....
Move gvimrc log message so it doesn't print unnecessarily.
@echo off pushd %cd% %~d0 cd %~dp0 echo Temporarily changing directory to %~dp0 if exist %USERPROFILE%\_vimrc goto GVIMRC echo Installing _vimrc echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc :GVIMRC echo Installing _gvimrc if exist %USERPROFILE%\_gvimrc g...
@echo off pushd %cd% %~d0 cd %~dp0 echo Temporarily changing directory to %~dp0 if exist %USERPROFILE%\_vimrc goto GVIMRC echo Installing _vimrc echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc :GVIMRC if exist %USERPROFILE%\_gvimrc goto END echo Installing ...
Test npm version, just rebuild with 693
call :test 4.7.2 call :test 6.9.4 call :test 7.4.0 goto :eof :test setlocal docker run node:%1 node --version docker run node:%1-nano node --version
call :test 4.7.2 call :test 6.9.4 call :test 7.4.0 goto :eof :test setlocal docker run node:%1 node --version docker run node:%1 npm --version docker run node:%1-nano node --version docker run node:%1-nano npm --version
Make temp directory in HOME
@echo off if not defined HOME ( echo ‹ϐ HOME `Ă܂ echo ‹ϐ HOME _vimrc zu邽߂̃fBNgpXݒ肵Ă exit /b ) set MY_DIR=%~dp0 @echo on echo source %MY_DIR%vimrc >> %HOME%\_vimrc echo source %MY_DIR%gvimrc >> %HOME%\_gvimrc
@echo off if not defined HOME ( echo ‹ϐ HOME `Ă܂ echo ‹ϐ HOME _vimrc zu邽߂̃fBNgpXݒ肵Ă exit /b ) set MY_DIR=%~dp0 @echo on echo source %MY_DIR%vimrc >> %HOME%\_vimrc echo source %MY_DIR%gvimrc >> %HOME%\_gvimrc mkdir %HOME%\temp\vim_backup
Remove unnecessary npm tsc check.
@echo off IF NOT EXIST %APPDATA%\npm\tsc.cmd ( ECHO You must have the TypeScript compiler installed. If npm is installed, run ECHO npm install -g typescript GOTO end ) IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" ( CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --ou...
@echo off IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" ( CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( IF EXIST "%APPDATA%\npm\tsc.cmd" ( CALL %APPDATA%\npm\tsc -m amd --outDir ou...
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. ...
@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. ...
Add -t and --test to expected output args
@echo off SET EXPECT_OUTPUT= FOR %%a IN (%*) DO ( IF /I "%%a"=="-h" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--help" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-v" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--version" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-f" SET EXPECT_OUTPUT=YES IF /I ...
@echo off SET EXPECT_OUTPUT= FOR %%a IN (%*) DO ( IF /I "%%a"=="-f" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--foreground" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-h" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--help" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-t" SET EXPECT_OUTPUT=YES IF /I ...
Add Java line count script for windows
@echo off :CountLines setlocal cd .. set /a totalNumLines = 0 for /r %1 %%F in (*.java *.html *.hpp *.cs *.c) do ( echo "%%F" for /f %%N in ('find /v /c "" ^<"%%F"') do set /a totalNumLines+=%%N ) echo Total LOC (Java) = %totalNumLines% timeout 15 > NUL
Update nuget publish script for updated nuget.exe path
@echo off call ..\..\SetNugetApiKey.bat del *.nupkg nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release nuget setApiKey %NUGET_API_KEY% nuget push *.nupkg pause
@echo off call ..\..\SetNugetApiKey.bat del *.nupkg ..\..\nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release ..\..\nuget setApiKey %NUGET_API_KEY% ..\..\nuget push *.nupkg pause
Remove the restriction to haskell-src-exts-1.3.0 in the .bat file
ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports -package haskell-src-exts-1.3.0
ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports
Use same case for NUL
@echo off setlocal set mypath=%~dp0 set PYTHONPATH=pkgs if "%PROCESSOR_ARCHITECTURE%"=="x86" ( set common="%COMMONPROGRAMFILES%" ) else ( set common="%COMMONPROGRAMFILES(x86)%" ) REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B %common%\Python\2.7\pytho...
@echo off setlocal set mypath=%~dp0 set PYTHONPATH=pkgs if "%PROCESSOR_ARCHITECTURE%"=="x86" ( set common="%COMMONPROGRAMFILES%" ) else ( set common="%COMMONPROGRAMFILES(x86)%" ) REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B %common%\Python\2.7\pytho...
Revert to Visual Studio 16 2019
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "Visual Studio 15 2017" -A x64 .. if errorlevel 1 exit 1 cmake --bu...
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "Visual Studio 16 2019" -A x64 .. if errorlevel 1 exit 1 cmake --bu...
Build .Net 4.0 and .Net 4.5 projects
@setlocal @cd SLOTaxService @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @cd SLOTaxGuiTest @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd ..
@setlocal @cd SLOTaxGuiTest40 @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @cd SLOTaxGuiTest @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @rd FinalOutput /s /q @md FinalOutput @cd FinalOutput @...
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...
Fix mixed line endings in generateshader.bat
@ECHO OFF REM REM Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM PATH %PATH%;%DXSDK_DIR%\Utilities\bin\x86 fxc /E standardvs /T vs_2_0 /Fh standardvs.h Blit.vs fxc /E flipyvs /T ...
@ECHO OFF REM REM Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM PATH %PATH%;%DXSDK_DIR%\Utilities\bin\x86 fxc /E standardvs /T vs_2_0 /Fh standardvs.h Blit.vs fxc /E flipyvs /T vs_2_0 /Fh...
Add experience enhancers to perf_update
REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp. REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates. SET P4PORT= SET P4CLIENT= SET P4USER= SET...
@ECHO OFF SETLOCAL ENABLEEXTENSIONS REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp. REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates. ECHO...
Add dummy resource file values for manifest
@@setlocal @@set POWERSHELL_BAT_ARGS=%* @@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"% @@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF if ($args.Length -lt 1 -o...
@@setlocal @@set POWERSHELL_BAT_ARGS=%* @@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"% @@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF if ($args.Length -lt 1 -o...
Switch back to Ninja as generator on win
mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake ..\pythonfmu\pythonfmu-export --debug-output -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release more .\CMakeFiles\CMakeOutput.log if errorlevel 1 exit 1 cmake --build . --config Release --verbose if errorlevel 1 exit 1 cd ...
mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake --debug-output -G "Ninja" ^ -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DCMAKE_BUILD_TYPE=Release ^ ..\pythonfmu\pythonfmu-export more .\CMakeFiles\CMakeOutput.log if errorlevel 1 exit 1 REM cmake --build . --config R...
Add android sdk upload script.
echo 'y' | "%ANDROID_HOME%/tools/android.bat" update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
Add newline to end of file
java -jar Collate-TUI.jar collate from src/main to collated/main include java, fxml, css java -jar Collate-TUI.jar collate from src/test to collated/test include java java -jar Collate-TUI.jar collate from unused to collated/unused include java, fxml, css
java -jar Collate-TUI.jar collate from src/main to collated/main include java, fxml, css java -jar Collate-TUI.jar collate from src/test to collated/test include java java -jar Collate-TUI.jar collate from unused to collated/unused include java, fxml, css
Use relative path for local nuspec build script
nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory C:\Users\egger\Workspace\NuGet -Version 0.0.1-alpha
nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory ..\..\NuGet -Version 0.0.1-alpha
Revert "switching to 7z as well, sourceforge still broke"
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-...
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD...
Fix npm install intermittent failures.
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( call npm update azure-cli ) else ( call npm install azure-cli ) if exist %1\node_modules\kudusync\bin\kudusync ( call npm update kudusync ) else ( call npm install kudusync ) popd
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update azure-cli ) else ( cmd /c npm install azure-cli ) IF %ERRORLEVEL% NEQ 0 goto error if exist %1\node_modules\kudusync\bin\kudusync ( cmd /c npm update kudusync ) else ( cmd /c npm install kudusync ) popd
Fix missing files in release ZIP
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...
Fix build by installing grunt
call "c:\Program Files (x86)\nodejs\nodevars.bat" call npm.cmd install grunt-contrib-compress call npm.cmd install grunt-contrib-clean call npm.cmd install -g grunt-cli call grunt.cmd
call "c:\Program Files (x86)\nodejs\nodevars.bat" call npm.cmd install grunt call npm.cmd install grunt-contrib-compress call npm.cmd install grunt-contrib-clean call npm.cmd install -g grunt-cli call grunt.cmd
Set environment variables to Jay's values
set CATALINA_HOME=C:\Java\apache-tomcat-7.0.47 set BREEZEJS_TEST=C:\git\Breeze\breeze.js\test\
set CATALINA_HOME=C:\Java\apache-tomcat-7.0.59-windows-x64\apache-tomcat-7.0.59 set BREEZEJS_TEST=C:\GitHub\breeze.js\test\
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
Add buildtest batch file for Windows
@echo off setlocal ENABLEEXTENSIONS set PATH=C:\MinGW\bin;%PATH% set TEST_PY=26,30,31 set TEST_MPI=deinompi,mpich2_win,msmpi set TEST_CC=msvc,mingw32 for %%A in (%TEST_PY%) do ( for %%B in (%TEST_MPI%) do ( for %%C in (%TEST_CC%) do ( echo ---------------------------------------------------------------...
Move mare build directory to Build/Debug
@echo off if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/mare --outputDir=Build/mare --sourceDir=Ext/mare/src if not "%1"=="" (Build\mare\mare.exe %*) else Build\mare\mare.exe --vcxproj=2013
@echo off if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/Debug/mare --outputDir=Build/Debug/mare --sourceDir=Ext/mare/src if not "%1"=="" (Build\Debug\mare\mare.exe %*) else Build\Debug\mare\mare.exe --vcxproj=2013
Add step generating geos_svn_revision.h template with revision 0
@ECHO OFF REM REM This script generates headers for use with Visual C++ only REM REM Usage: REM .\autogen.bat REM nmake -f makefile.vc REM REM NOTE: DO NOT include this script in GEOS sources distribution REM set GEOS_HEADERS=include\geos COPY %GEOS_HEADERS%\version.h.vc %GEOS_HEADERS%\version.h COPY %...
@ECHO OFF REM REM This script generates headers for use with Visual C++ only REM REM Usage: REM .\autogen.bat REM nmake -f makefile.vc REM REM NOTE: DO NOT include this script in GEOS sources distribution REM set GEOS_HEADERS=include\geos COPY %GEOS_HEADERS%\version.h.vc %GEOS_HEADERS%\version.h COPY %...
Add a CI build script
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true REM Kill any instances of VBCSCompiler.exe to release locked files; REM otherwise future CI runs may fail while trying to delete those files. taskkill /F /IM vbcscompiler.exe
Change environment variables in stop.bat file.
REM see README.txt REM SET UP ENVIRONMENT VARIABLES set KDBCODE=%cd%\code set KDBCONFIG=%cd%\config set KDBLOG=%cd%\logs set KDBHTML=%cd%\html set KDBLIB=%cd%\lib set KDBBASEPORT=6000 set PATH=%PATH%;%KDBLIB%\w32 REM to kill it, run this: start "kill" q torq.q -load code/processes/kill.q -proctype kill -procname ki...
REM see README.txt REM SET UP ENVIRONMENT VARIABLES set TORQHOME=%cd% set KDBCODE=%TORQHOME%\code set KDBCONFIG=%TORQHOME%\config set KDBLOG=%TORQHOME%\logs set KDBHTML=%TORQHOME%\html set KDBLIB=%TORQHOME%\lib set KDBBASEPORT=6000 set KDBHDB=%TORQHOME%/hdb/database REM App specific configuration directory set KDBAPP...
Change nunit argument to Debug
nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools nuget install OpenCover -Version 4.6.519 -OutputDirectory tools nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools .\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-conso...
nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools nuget install OpenCover -Version 4.6.519 -OutputDirectory tools nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools .\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-conso...
Update path to CloundFoundry CLI
@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...
Update RingQt - Update from Qt 5.12.2 to Qt 5.12.3
call ..\..\src\locatevc.bat "C:\Qt\Qt5.12.2\5.12.2\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler" rem "C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_2_MSVC2017_32bit-Release/Makefile qmake_all "C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe" copy relea...
call ..\..\src\locatevc.bat "C:\Qt\Qt5.12.3\5.12.3\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler" rem "C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_3_MSVC2017_32bit-Release/Makefile qmake_all "C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe" copy relea...
Add init db windows script file
@ECHO OFF IF %1.==. GOTO No1 REM Remove trailing / set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" @powershell -Command "java -cp "..\lib\*" org.jboss.aerogear.unifiedpush.DBMaintenance $%DEBUG_OPTS% -Daerobase.config.dir=%CONFIG%" GOT...
Modify .Net framework version to 4.0
::******************************************************************************************************* :: BuildBeta.bat - Gbtc :: :: Tennessee Valley Authority, 2009 :: No copyright is claimed pursuant to 17 USC 105. All Other Rights Reserved. :: :: This software is made freely available under the TVA Op...
::******************************************************************************************************* :: BuildBeta.bat - Gbtc :: :: Tennessee Valley Authority, 2009 :: No copyright is claimed pursuant to 17 USC 105. All Other Rights Reserved. :: :: This software is made freely available under the TVA Op...
Remove long directory from azure-cli
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-...
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-too...
Make prebuild batch file more adaptable by trying to find Git.exe
ECHO Get revision number from git echo // Pre build automatically generated header file> GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed) git rev-list HEAD | find /v /c "" ...
ECHO Get revision number from git echo // Automatically generated header file created by Prebuild.bat > GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed) IF NOT E...
Allow Windows batch file to work when there are spaces in the path.
python setup.py install rmdir %~dp0windows /s /q mkdir %~dp0windows python setup.py py2exe move dist\retriever.exe %~dp0windows rmdir build dist /s /q
python setup.py install rmdir %~dp0windows /s /q mkdir %~dp0windows python setup.py py2exe move dist\retriever.exe windows\ rmdir build dist /s /q
Remove manual versioning from self-contained targets
@ECHO OFF REM --------------------------------------------------------------------------- REM Builds the file utility nuget packages. REM --------------------------------------------------------------------------- SETLOCAL SET BUILD_NUMBER=%1 IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555 ECHO BUILD_NUMBER=%BUILD_NU...
@ECHO OFF REM --------------------------------------------------------------------------- REM Builds the file utility nuget packages. REM --------------------------------------------------------------------------- SETLOCAL SET BUILD_NUMBER=%1 IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555 ECHO BUILD_NUMBER=%BUILD_NU...
Make sure errorlevel is not empty
:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3 :: https://github.com/matplotlib/matplotlib/issues/9176 for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a python -c "import sys;...
:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3 :: https://github.com/matplotlib/matplotlib/issues/9176 for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a python -c "import sys;...
Use -W on the Windows 64 buildbots
@rem Used by the buildbot "test" step. cd PCbuild call rt.bat -q -d -x64 -uall -rw
@rem Used by the buildbot "test" step. cd PCbuild call rt.bat -d -q -x64 -uall -rwW -n
Make sure all taskkills fire.
REM Run from anywhere, project root or bin folder. E.g. (from root): REM bin\kill-drivers tasklist | find /i "driver" && taskkill /f /im "chromedriver.exe" && taskkill /f /im "IEDriverServer.exe"
@echo off REM Run from anywhere, project root or bin folder. E.g. (from root): REM bin\kill-drivers tasklist | findstr /i "driver phantomjs" taskkill /f /im "chromedriver.exe" taskkill /f /im "IEDriverServer.exe" taskkill /f /im "phantomjs.exe"
Fix copy and paste typo
@echo off if "%1" == "" ( echo Usage: buildrelease version-number goto end ) IF EXIST tmpdocs rmdir /s /q tmpdocs xcopy /q /s /i www\unstable\userguide tmpdocs xcopy /q /s /i www\_layouts tmpdocs\_layouts xcopy /q /s /i www\_plugins tmpdocs\_plugins xcopy /q /s /i www\css tmpdocs\css xcopy /q /s /i ww...
@echo off if "%1" == "" ( echo Usage: buildofflineguide version-number goto end ) IF EXIST tmpdocs rmdir /s /q tmpdocs xcopy /q /s /i www\unstable\userguide tmpdocs xcopy /q /s /i www\_layouts tmpdocs\_layouts xcopy /q /s /i www\_plugins tmpdocs\_plugins xcopy /q /s /i www\css tmpdocs\css xcopy /q /s ...
Add script for automated local running
docker run --rm --volume="%cd%:/srv/jekyll" -p 35729:35729 -p 4000:4000 --name jekyll -it jekyll/jekyll jekyll serve
Update Baseclass.Contrib.Nuget.Output version to 1.0.7
.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.6 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1....
.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.7 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1....
Add a separate install phase
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% .. if errorlevel 1 exit 1 cmake --build . --config Release --target install if errorlevel 1 exit 1
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% .. if errorlevel 1 exit 1 cmake --build . --config Release if errorlevel 1 exit 1 echo "Build finished" cmake --config Release --target install if errorlevel 1 exit 1
Fix test script for appveyor
@ECHO OFF :: Run unit tests cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test if not "%errorlevel%"=="0" goto failure dotnet test cd ..\.. echo Unit Tests Pass goto success :failure echo ...
@ECHO OFF :: Run unit tests cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. echo Unit Tests Pass goto success :failure echo ...
Make Tests in Appveyor Exit when Test is finished
SET EXE=%2 start %1%EXE% timeout /t %3 FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1 exit /b %errorlevel%
SET EXE=%2 SET FINISHED=0 start %1%EXE% && %FINISHED%=1 FOR /L %%I in (1,1,%3) DO (timeout /t 1 && IF %%I EQU %3 goto :timeout && IF FINISHED EQU 1 goto :taskFinished) :taskFinished exit /b %errorlevel% :timeout FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b ...
Remove windows explicitly stated compiler directives.
:: Paths assume java-jdk installed by conda set JCC_JDK=%JAVA_HOME% set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH% set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib set JDK_HOME=%JCC_JDK% set ::cd jcc "%PYTHON%" setup.py in...
:: Paths assume openjdk installed by conda set JCC_JDK=%JAVA_HOME% set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH% :: set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include :: set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib :: set JDK_HOME=%JCC_JDK% :: set "%PYTHON%" setup.py ...
Increase memory limit for standard installation
cd /d %~dp0 java -jar pathvisio.jar -p visplugins.jar %*
cd /d %~dp0 java -Xmx1024m -jar pathvisio.jar -p visplugins.jar %*
Build : Added pause at the end of the bat file
@echo off cls ".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "packages\FAKE\tools\Fake.exe" build.fsx
@echo off cls ".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "packages\FAKE\tools\Fake.exe" build.fsx pause
Change install prefix to LIBRARY_PREFIX
set PATH=%PATH:C:\Program Files\Git\usr\bin;=% :: Configure. cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% . if errorlevel 1 exit 1 :: Build. mingw32-make if errorlevel 1 exit 1 :: Install. mingw32-make install if errorlevel 1 exit 1 sixs < Example_In_1.txt
set PATH=%PATH:C:\Program Files\Git\usr\bin;=% :: Configure. cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% . if errorlevel 1 exit 1 :: Build. mingw32-make if errorlevel 1 exit 1 :: Install. mingw32-make install if errorlevel 1 exit 1 sixs < Example_In_1.txt
Patch for version 0.602 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.60" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.602" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Fix build script for systems without VS2012
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release /maxcpucount powershell.exe %~dp0PackageNuget.ps1
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release;VisualStudioVersion=12.0 /maxcpucount powershell.exe %~dp0PackageNuget.ps1