doc_id stringlengths 36 36 | metadata dict | input stringlengths 28 4.3k | output stringlengths 11 5.45k |
|---|---|---|---|
39309729-16e2-43db-ad30-a7e015e8fe11 | {
"language": "Batchfile"
} | ```batchfile
@echo off
rem This script installs OpenSC
rem Parameters:
rem user - Install for this user only.
setlocal
set MODE=%1
set KEY=HKEY_LOCAL_MACHINE
if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER
cd %0\..\..
if not exist bin\opensc-tool.exe goto error
for /f %%f in (".") do set OPE... | ```batchfile
@echo off
rem This script installs OpenSC
rem Parameters:
rem user - Install for this user only.
setlocal
set MODE=%1
set KEY=HKEY_LOCAL_MACHINE
if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER
cd %0\..\..
if not exist bin\opensc-tool.exe goto error
for /f %%f in (".") do set OPE... |
34b5740a-52cf-4f29-bba8-e0a9b43ed716 | {
"language": "Batchfile"
} | ```batchfile
```
Add missing windows configuration script | ```batchfile
:: To build extensions for 64 bit Python 3, we need to configure environment
:: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of:
:: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1)
::
:: To build extensions for 64 bit Python 2, we need to configure environment
:: variabl... |
75bf2971-ffc0-4ebd-b05e-e97932f7ec86 | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal EnableDelayedExpansion
set registryRoot=HKCU\Software\Classes
set key=OfficeScan NT
reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f
reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f
```
Disable officescan context menu on directories | ```batchfile
@echo off
setlocal EnableDelayedExpansion
set registryRoot=HKCU\Software\Classes
set key=OfficeScan NT
reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f
reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f
reg add "%registryRoot%\Directory\shellex\ContextMe... |
9819fe2b-b832-4d3c-99a7-99cda04bed3f | {
"language": "Batchfile"
} | ```batchfile
if %VS_MAJOR% == 9 (
set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%"
)
%PYTHON% -m pip install . -vv
```
Add more hacks for Appveyor | ```batchfile
:: Nasty hack to force the newer MSBuild from .NET is still used for the older
:: Visual Studio build. Without this an older MSBuild will be picked up by accident on
:: AppVeyor after running `vcvars32.bat`, which fails to process our solution files.
::
:: ref: https://github.com/conda-forge/staged-recipes... |
35723aa4-86be-4d93-870d-16c99ea51827 | {
"language": "Batchfile"
} | ```batchfile
"%PREFIX%\Scripts\npm.cmd" install -g npm@latest --no-spin && "%PREFIX%\Scripts\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\Scripts\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
```
Use most canonical location for npm | ```batchfile
"%PREFIX%\node_modules\npm\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\node_modules\npm\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
``` |
e363e54e-23b6-4891-89e3-ff0ba1391963 | {
"language": "Batchfile"
} | ```batchfile
@echo off
@setlocal
set NuGetExe="%~dp0NuGet.exe"
set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200
REM If someone passed in a different Roslyn solution, use that.
REM We make use of this when Roslyn is an sub-module for some
REM internal re... | ```batchfile
@echo off
@setlocal
set NuGetExe="%~dp0NuGet.exe"
set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200
REM If someone passed in a different Roslyn solution, use that.
REM We make use of this when Roslyn is an sub-module for some
REM internal re... |
09c56d25-ce74-46de-8650-0daf33827059 | {
"language": "Batchfile"
} | ```batchfile
call %LIBRARY_BIN%\run_autotools_clang_conda_build.bat
if errorlevel 1 exit 1
del %LIBRARY_LIB%\libzimg.a
```
Use exact command from autotools_clang_conda | ```batchfile
call %BUILD_PREFIX%\Library\bin\run_autotools_clang_conda_build.bat
if errorlevel 1 exit 1
del %LIBRARY_LIB%\libzimg.a
if errorlevel 1 exit 1
``` |
ad308af4-283f-4581-b3c7-d95a7e238f73 | {
"language": "Batchfile"
} | ```batchfile
ECHO off
ECHO MOVE C:\mongo* C:\mongodb
setx MYPATH "%PATH%;C:\mongodb\bin"
```
Revert "Removed for loop and used MOVE command with wildcards" | ```batchfile
ECHO on
FOR /f %%i IN ('dir /ad /b "C:\" ^|findstr /I "mongo"') DO set dest=%%i
ECHO MOVE C:\%dest% C:\mongodb\
setx MYPATH "%PATH%;C:\mongodb\bin"
``` |
81ab689d-2028-46eb-93a1-014b3d2a5391 | {
"language": "Batchfile"
} | ```batchfile
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above
cd %~dp0
@if not exist version.txt (
echo.
echo !-- Error: version.txt is missing :/
echo.
pause
goto :eof
)
rem This will sync this repo with the folder %windir%\..\buildsd
robocopy . %windi... | ```batchfile
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above
cd %~dp0
@if not exist version.txt (
echo.
echo !-- Error: version.txt is missing :/
echo.
pause
goto :eof
)
rem This will sync this repo with the folder %SystemDrive%\buildsd
robocopy . %Sys... |
2626cfbe-5fb1-418d-8541-7304a908e5bc | {
"language": "Batchfile"
} | ```batchfile
cd ..\..\..\
rm -R build
rm -R dist
"%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^
--onefile ^
--windowed ^
--icon etc\bin\win\icon.ico ^
--paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5 ^
etc\bin\unix\alignak-app.py
pause
```
Update path of PyQt5 on Windows | ```batchfile
cd ..\..\..\
rm -R build
rm -R dist
"%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^
--onefile ^
--windowed ^
--icon etc\bin\win\icon.ico ^
--paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5\Qt\bin ^
etc\bin\unix\alignak-app.py
pause
``` |
c36f6d10-ee1b-4f72-bd6b-b51452d86132 | {
"language": "Batchfile"
} | ```batchfile
#!/bin/bash
load test_helper
@test "ip returns an ip" {
ip=$(lstack ip)
[ -n "$ip" ]
}
```
Use a regexp to test the IP | ```batchfile
#!/bin/bash
load test_helper
@test "ip returns an ip" {
ip=$(lstack ip)
[[ "$ip" =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]
}
``` |
71df40d0-d34d-4b4f-903e-434fb42672b9 | {
"language": "Batchfile"
} | ```batchfile
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html"
pip install lytest simphony sax jax sklearn klayout
pip install "jax[cpu]===0.3.7" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
pip install gdsfactory==5.38.0
gf tool install
if exist... | ```batchfile
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html"
pip install lytest simphony sax jax sklearn klayout
pip install "jaxlib[cuda111]" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
pip install gdsfactory==5.38.0
gf tool install
if exist ... |
3d919805-ec4a-462f-8318-fd844f9a5470 | {
"language": "Batchfile"
} | ```batchfile
@pushd %~dp0
ECHO Remember to build the solution first!
REM pause
Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools"
"nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots
Cd "%~dp0\TestHarness\packages\SpecRun.Runn... | ```batchfile
@pushd %~dp0
goto begin
ECHO Remember to build the solution first!
REM pause
Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools"
"nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots
Cd "%~dp0\TestHarness\packages\... |
a021f39c-78ec-4dff-8d23-70a73d12cf85 | {
"language": "Batchfile"
} | ```batchfile
cd /d %~dp0
mkdir OSVR-Unity-Dist
mkdir OSVR-Unity-Dist\OSVR-Unity
xcopy Managed-OSVR OSVR-Unity-Dist\ /Y /S
```
Adjust build to include more source | ```batchfile
cd /d %~dp0
mkdir OSVR-Unity-Dist
mkdir OSVR-Unity-Dist\src
mkdir OSVR-Unity-Dist\src\OSVR-Unity
mkdir OSVR-Unity-Dist\src\Managed-OSVR
xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S
xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S
``` |
36a9292b-c9a9-42b4-bfe6-49ad2437497a | {
"language": "Batchfile"
} | ```batchfile
@if "%_echo%" neq "on" echo off
setlocal
if defined VisualStudioVersion goto :Run
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\To... | ```batchfile
@if "%_echo%" neq "on" echo off
setlocal
if defined VisualStudioVersion goto :Run
set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
if exist %_VSWHERE% (
for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%... |
98fffafc-efd1-4672-aede-90d0d30b5938 | {
"language": "Batchfile"
} | ```batchfile
@echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.0 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -Exclude... | ```batchfile
@echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.1 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -Exclude... |
1e1faf89-8519-43c6-83fe-3b5c23f5c427 | {
"language": "Batchfile"
} | ```batchfile
```
Add build script for Windows environments. | ```batchfile
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: aartifact
:: http://www.aartifact.org/src/
:: Copyright (C) 2008-2010
:: A. Lapets
::
:: This software is made available under the GNU GPLv3.
::
:: Make.bat
:: Batch script for compiling with GHC under Windows
:: environments.
::::... |
86f26cc0-5ac6-4141-a032-1146f8753756 | {
"language": "Batchfile"
} | ```batchfile
```
Add bat file for generating installer for windows | ```batchfile
REM create windows installer package(runtime included) for LLPAD
REM In order to execute this batch file, java 8 or later needs to be installed
REM In case creating exe installer, Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH.
REM In case creating msi installer, Do... |
2a47cd0d-bff4-40df-95c1-cfab1ddd14bf | {
"language": "Batchfile"
} | ```batchfile
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Cake is a Windows batch script for invoking CakePHP shell commands
::
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
::
:: Li... | ```batchfile
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::
:: Cake is a Windows batch script for invoking CakePHP shell commands
::
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
::
:: Li... |
53546625-8a0f-4a33-8b0b-13ed4e6b8fd7 | {
"language": "Batchfile"
} | ```batchfile
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\gcf.exe
bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
go get -u github.com/pivotal-cf-experimenta... | ```batchfile
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe
go get -u github.com/pivotal-cf-experimental... |
ac471613-a054-4faa-966d-6ec9e7163bc2 | {
"language": "Batchfile"
} | ```batchfile
@echo off
@setlocal
rem ------------------------------------------------------
rem Check environment variables
if not "%JAVA_HOME%" == "" goto java_home_ok
echo Environment variable JAVA_HOME must be set.
set ERROR=true
:java_home_ok
if not "%DEBUG_ENABLED%" == "" goto debug_enabled_ok
set DEBUG_ENABLED... | ```batchfile
@echo off
setlocal
@rem There is some funkiness wrt set command in a for statement in an if
@rem block when setlocal is true. Consequently set set bld_root up here
@rem rather than in an if block.
set this_fqn=%~f0
for %%i in ( %this_fqn% ) do set bld_root=%%~dp%i
if defined JAVA_HOME (
if not define... |
9baa9536-49c7-4d9f-b37e-2c1ff472353b | {
"language": "Batchfile"
} | ```batchfile
@echo off
SETLOCAL EnableDelayedExpansion
set failed=0
cd bin
for /r "." %%a in (tst_*.exe) do (
"%%~fa"
if not ERRORLEVEL 0 (
echo Test FAILED: "%%~fa"
set failed=1
)
)
cd ..
if %failed% EQU 1 (
echo ERROR: At least one unit test failed!
if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" (
... | ```batchfile
@echo off
SETLOCAL EnableDelayedExpansion
set failed=0
cd bin
for /r "." %%a in (tst_*.exe) do (
"%%~fa"
if !errorlevel! neq 0 (
echo Test FAILED: "%%~fa"
set failed=1
)
)
cd ..
if !failed! equ 1 (
echo ERROR: At least one unit test failed!
if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" (
... |
eee89194-8937-41c8-abb0-5c65a67fc1de | {
"language": "Batchfile"
} | ```batchfile
rem Copy runtime DLLs
FOR /F %%I IN ('stack exec -- where libstdc++-6.dll') DO copy /Y "%%I" .\
FOR /F %%I IN ('stack exec -- where libgcc_s_seh-1.dll') DO copy /Y "%%I" .\
FOR /F %%I IN ('stack exec -- where libwinpthread-1.dll') DO copy /Y "%%I" .\
```
Revert "For loop without external file" | ```batchfile
rem Copy runtime DLLs
echo "" | stack exec -- where libstdc++-6.dll > lib.txt
echo "" | stack exec -- where libgcc_s_seh-1.dll >> lib.txt
echo "" | stack exec -- where libwinpthread-1.dll >> lib.txt
FOR /F %%I IN (lib.txt) DO copy /Y "%%I" .\
del /q lib.txt``` |
90204999-5e53-4e26-b327-c469ad432445 | {
"language": "Batchfile"
} | ```batchfile
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem
cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem
cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-stdlib
cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-regis... | ```batchfile
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem
cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem
cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-windows
cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-dism... |
1fbdedf9-930a-4966-b020-515fe0ff851f | {
"language": "Batchfile"
} | ```batchfile
::
:: Microsoft Azure SDK for Net - Generate library code
:: Copyright (C) Microsoft Corporation. All Rights Reserved.
::
set autoRestVersion=0.16.0-Nightly20160329
set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-scheduler/2016-03-01/swagger/scheduler.json"
set source... | ```batchfile
::
:: Microsoft Azure SDK for Net - Generate library code
:: Copyright (C) Microsoft Corporation. All Rights Reserved.
::
set autoRestVersion=0.16.0-Nightly20160329
set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c582747a6ea5d55ea976a9a3cb7c7959e7f9ce2f/arm-scheduler/2016-03-01/... |
fd057027-5900-4899-8414-f46c7280e0b3 | {
"language": "Batchfile"
} | ```batchfile
:: %~dp0 gives the dirname of the script
cmd /c %~dp0common.bat
cmd /c %~dp0vagrant-ssh.bat
```
Remove a level of indirection | ```batchfile
:: %~dp0 gives the dirname of the script
cmd /c %~dp0firewall-disable.bat
cmd /c %~dp0vagrant-ssh.bat
``` |
611ce224-5d13-43b3-9208-660450a17915 | {
"language": "Batchfile"
} | ```batchfile
@setlocal ENABLEDELAYEDEXPANSION
@echo Building llvm-config tool...
@ninja -j %throttle% install-llvm-config
@echo.
@rem Build LLVM libraries
@set llvmlibstotal=0
@FOR /F "skip=2 tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`)... | ```batchfile
@setlocal ENABLEDELAYEDEXPANSION
@echo Building llvm-config tool...
@ninja -j %throttle% install-llvm-config
@echo.
@rem Build LLVM libraries
@set llvmlibstotal=0
@FOR /F "tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @se... |
20e543e2-9d16-4d80-88a6-d7cb74ee5007 | {
"language": "Batchfile"
} | ```batchfile
```
Add a script to release binaries packages | ```batchfile
:: This script create zip packages (need 7zip installed and path added to system environment variable)
@echo off
set PATH_TO_PHYSX=C:\library\PhysX-3.2.3_PC_SDK_Core\Bin
:: dx9_x86
7z a -tzip -mx=9 Wz4CE_dx9_x86.zip werkkzeug4_dx9_x32.exe
7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3C... |
701341df-e449-4b37-9eaa-1517c8d7ded6 | {
"language": "Batchfile"
} | ```batchfile
mkdir %LIBRARY_INC%\cspice
cd %SRC_DIR%\src\cspice
call makeDynamicSpice.bat
copy "cspice.dll" %LIBRARY_LIB%
if errorlevel 1 exit 1
cd %SRC_DIR%
copy "include\\*.h" %LIBRARY_INC%\cspice
if errorlevel 1 exit 1
```
Copy commands file to source directory | ```batchfile
mkdir %LIBRARY_INC%\cspice
copy "makeDynamicSpice.bat" %SRC_DIR%\src\cspice
cd %SRC_DIR%\src\cspice
call makeDynamicSpice.bat
copy "cspice.dll" %LIBRARY_LIB%
if errorlevel 1 exit 1
cd %SRC_DIR%
copy "include\\*.h" %LIBRARY_INC%\cspice
if errorlevel 1 exit 1
``` |
f737c6bf-3570-40bd-a3f8-5b2c92ae612b | {
"language": "Batchfile"
} | ```batchfile
@echo off
SET GENERATOR="Visual Studio 15 2017"
SET GENERATOR64="Visual Studio 15 2017 Win64"
cd ../foreign/
cd SPIRV-Tools
mkdir build
cd build
cmake -G%GENERATOR% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..
mkdir build64
cd build64
cma... | ```batchfile
@echo off
SET GENERATOR="Visual Studio 16 2019"
cd ../foreign/
cd SPIRV-Tools
mkdir build
cd build
cmake -G%GENERATOR% -A Win32 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers ..
cmake --build .
cmake --build . --config Release
cd ..
mkdir build64
cd build64
cmake -G%GENERATOR% -A x64 -DSPIRV-Heade... |
7be43c99-0dae-4ca9-9465-4e10cb89003a | {
"language": "Batchfile"
} | ```batchfile
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output```
Set Windows resource version info | ```batchfile
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output --version-string.ProductName=Squiffy --version-string.FileDescription=Squiffy --version-string.LegalCopyright="Copyright (c) 2015 Al... |
20802ace-f118-4046-a382-ac49b497ebba | {
"language": "Batchfile"
} | ```batchfile
@echo off
@REM This script was based on the original conda activate.bat
@setlocal
@set "CONDA_PREFIX=__CONDA_PREFIX__"
@set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__"
@set "CONDA_ENV_PATH=%CONDA_PREFIX%"
@set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_... | ```batchfile
@echo off
@REM This script was based on the original conda activate.bat
@setlocal
@set "CONDA_PREFIX=__CONDA_PREFIX__"
@set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__"
@set "CONDA_ENV_PATH=%CONDA_PREFIX%"
@set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_... |
6323bc0b-1f8d-4d29-b113-a5d47d6d641f | {
"language": "Batchfile"
} | ```batchfile
@echo off
echo Press any key to publish
pause
"..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg
pause```
Update publish nuget cmd to specify source | ```batchfile
@echo off
echo Press any key to publish
pause
"..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg -Source https://www.nuget.org/api/v2/package
pause``` |
16497829-c4fa-4db0-8373-13b3b6532e91 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2... | ```batchfile
@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBM... |
57c63efc-3b43-43b8-944f-425d5bae0fb8 | {
"language": "Batchfile"
} | ```batchfile
rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
rmdir /q /s dist\*.*
del /s /q dist\*.*
rem ****** Compile our executable and core zipfile
python ... | ```batchfile
rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
del /s /f /q dist
rem ****** Compile our executable and core zipfile
python setup.py py2exe
rem ... |
fa604d34-b4c8-411a-b6d4-85858a03443b | {
"language": "Batchfile"
} | ```batchfile
@echo off
cls
chcp 65001>nul
rem old prompt: [%USERNAME%@%COMPUTERNAME% $p]
prompt $$$s
rem Fake a UNIX environment
doskey clear=cls
doskey ls=dir /b $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
doskey pwd=echo %CD%
rem Easier navigation
doskey cd=cd /D $*
doskey cd..=... | ```batchfile
@echo off
cls
chcp 65001>nul
rem old prompt: [%USERNAME%@%COMPUTERNAME% $p]
prompt $$$s
rem Fake a UNIX environment
doskey clear=cls
doskey ls=dir /b $*
doskey cp=copy $*
doskey mv=move $*
doskey rm=del $*
doskey cat=type $*
rem Easier navigation
doskey cd=cd /D $*
doskey cd..=cd ..
doskey ..=cd ..... |
ef0abf81-2322-46d5-9380-4e0cc5914474 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBM... | ```batchfile
@ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\..\\..\\mssql" org.jboss.aerogear.unifi... |
58fbb204-2863-41d5-ab37-1b62faedc5aa | {
"language": "Batchfile"
} | ```batchfile
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\RELEASE-NOTES.md /Directory=..
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release```
Update Xamarin Forms build script | ```batchfile
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\CHANGELOG.md /Directory=..
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release
``` |
bde9238f-497e-4395-a1ea-72ee92af8fcc | {
"language": "Batchfile"
} | ```batchfile
mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DWITH_TESTS:BOOL=OFF ^
%SRC_DIR%
if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1
nmake install
if errorlevel 1 exit 1
```
Add tests to Wind... | ```batchfile
mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
-DWITH_TESTS:BOOL=OFF ^
%SRC_DIR%
if errorlevel 1 exit 1
nmake
if errorlevel 1 exit 1
nmake install
if errorlevel 1 exit 1
nmake test
if errorle... |
b355bb23-33ab-44bf-8615-64abd2921c13 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
for %%i in ("%~dp0..") do set "folder=%%~fi"
ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist`
ECHO To stop node server, press CTRL+C
pause
node "%folder%\src\server\node\server.js"
```
Update windows batch script for handle supervisor for the live reload | ```batchfile
@ECHO OFF
for %%i in ("%~dp0..") do set "folder=%%~fi"
ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist-dev`
ECHO To stop node server, press CTRL+C
where /q supervisor
IF ERRORLEVEL 1 (
ECHO supervisor not installed, the server will not be live reloaded
node "... |
851f6f5a-79b8-450d-be27-aa764ec50522 | {
"language": "Batchfile"
} | ```batchfile
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
@call "C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw-w64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;%PA... | ```batchfile
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%
cp "%... |
23c752e9-fe79-4527-a211-c30ab98d40c1 | {
"language": "Batchfile"
} | ```batchfile
@echo off
if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18
set LIBDIR=C:\Magick.NET.libs
if exist %LIBDIR% goto done
echo Downloading .lib files
appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1
echo Extracting .li... | ```batchfile
@echo off
if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18
set LIBDIR=C:\Magick.NET.libs
if exist %LIBDIR% goto done
echo Downloading .lib files
appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1
echo Extracting .li... |
fe80dc8e-1f55-41e6-a03a-4094d6d4996b | {
"language": "Batchfile"
} | ```batchfile
@echo off
set drive=%~dp0
set drivep=%drive%
set PERLVER=5.24.0.1
set PERLDIR=%drivep%\%ARCH%\perl
REM latest version can be queried via 99-shell:
REM perl tools\query-version.pl CSS::Sass
set RELVERSION=3.4.10
if #%drive:~-1%# == #\# set drivep=%drive:~0,-1%
set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%... | ```batchfile
@echo off
set drive=%~dp0
set drivep=%drive%
set PERLVER=5.24.0.1
set PERLDIR=%drivep%\%ARCH%\perl
REM latest version can be queried via 99-shell:
REM perl tools\query-version.pl CSS::Sass
set RELVERSION=3.4.11
if #%drive:~-1%# == #\# set drivep=%drive:~0,-1%
set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%... |
93b2c6b2-4df2-4733-b4dc-03bdc0b930d2 | {
"language": "Batchfile"
} | ```batchfile
@echo off
:: hook `nodist use <version>`
if "%1"=="use" (
call %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" (
:: rescue our hacked np... | ```batchfile
@echo off
:: hook `nodist use <version>`
if "%1"=="use" (
call %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" (
:: rescue our hacked np... |
93e14175-fdab-4dc4-a700-9613ef5352d6 | {
"language": "Batchfile"
} | ```batchfile
:: Asset API
::
:: This file is called whenever a user enters an asset, such as Cat or Shot01.
::
:: Arguments:
:: %1: Name of asset, e.g. Bruce
:: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets
::
:: Example:
:: $ call _mkasset Bruce %~dp0
@echo off
set ASSET=%1... | ```batchfile
:: Asset API
::
:: This file is called whenever a user enters an asset, such as Cat or Shot01.
::
:: Arguments:
:: %1: Name of asset, e.g. Bruce
:: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets
::
:: Example:
:: $ call _mkasset Bruce %~dp0
@echo off
set ASSET=%1... |
62e54cbc-eb6f-4131-b141-9f4a9c42270c | {
"language": "Batchfile"
} | ```batchfile
:: Copyright (c) 2011, Jon Maken
:: License: 3-clause BSD (see project LICENSE file)
:: Revision: 01/29/2011 10:20:16 AM
@echo off
setlocal
:: echo initial:
:: echo %%0 = %0
:: echo %%* = %*
:: fix ruby.exe invocation when explicitly disabling RubyGems
if "x%1" == "x--disable-gems" (
set NOGEM=%1
... | ```batchfile
:: Copyright (c) 2011, Jon Maken
:: License: 3-clause BSD (see project LICENSE file)
:: Revision: 01/29/2011 10:20:16 AM
@echo off
setlocal
:: echo initial:
:: echo %%0 = %0
:: echo %%* = %*
:: fix ruby.exe invocation when explicitly disabling RubyGems
if "x%1" == "x--disable-gems" (
set NOGEM=%1
... |
721f1db8-b704-4474-9127-26a99ee80cb0 | {
"language": "Batchfile"
} | ```batchfile
CD git/re2 || EXIT /B 1
cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1
cmake --build . --config Debug --clean-first || EXIT /B 1
ctest -C Debug --output-on-failure -E dfa^|exhaustive^|ra... | ```batchfile
CD git/re2 || EXIT /B 1
cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1
cmake --build . --config Debug --clean-first || EXIT /B 1
ctest -C Debug --output-on-failure --extra-verbose -E dfa... |
845396df-cfb3-4c84-95c9-ae22784f6a53 | {
"language": "Batchfile"
} | ```batchfile
@if "%VS140COMNTOOLS%"=="" goto error_vc14
@call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat"
@if "%HIPACC_PATH%"=="" goto error_hipacc
@if "%1" == "cpu" goto cpu
@if "%1" == "cuda" goto cuda
@if "%1" == "clean" goto clean
@if "%1" == "distclean" goto distclean
:cpu
nmake.exe /f sample.mak cpu
@goto end
... | ```batchfile
@if "%VS140COMNTOOLS%"=="" goto error_vc14
@call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64
@if "%HIPACC_PATH%"=="" goto error_hipacc
@if "%1" == "cpu" goto cpu
@if "%1" == "cuda" goto cuda
@if "%1" == "clean" goto clean
@if "%1" == "distclean" goto distclean
:cpu
nmake.exe /f sample.mak cpu
@goto e... |
b9fc13f0-da9a-4add-b5ac-44d02d1ab4fd | {
"language": "Batchfile"
} | ```batchfile
SET GOPATH=%CD%\cf-release-repo
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%CD%\cf-release-repo\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;... | ```batchfile
SET GOPATH=%CD%\cf-release-repo
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%CD%\cf-release-repo\bin;%PATH%
SET PATH=C:\Program Files\GnuWin32\bin;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PAT... |
4ddb91e1-348a-4f5c-b799-43a04d4cf43b | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal
if "%1" == "" (
echo usage: %0 EXAMPLE [options]
echo.
echo Where EXAMPLE is one of:
call :printExampleList
exit /B 1
)
if not exist examples\%1 (
echo Cannot find an example by the name '%1'. Use one of:
call :printExampleList
exit /B 1
)... | ```batchfile
@echo off
setlocal
if "%1" == "" (
echo usage: %0 EXAMPLE [options]
echo.
echo Where EXAMPLE is one of:
call :printExampleList
exit /B 1
)
if not exist examples\%1 (
echo Cannot find an example by the name '%1'. Use one of:
call :printExampleList
exit /B 1
)... |
b8ec5e24-ba22-432b-b3c8-c2d5a0cda444 | {
"language": "Batchfile"
} | ```batchfile
@echo off
cls
echo.
echo BEGIN OF DEMO 3: Bach.java
pause > nul
if exist demo rmdir /q/s demo
mkdir demo
cd demo
mkdir src\demo
echo ______
echo Step 1: Declare demo module: src\demo\module-info.java
pause > nul
(
echo module demo {}
)>"src\demo\module-info.java"
echo.
type src\demo\module-info.java
paus... | ```batchfile
@echo off
cls
echo.
echo BEGIN OF DEMO 3: Bach.java
pause > nul
if exist demo rmdir /q/s demo
mkdir demo
cd demo
mkdir src\demo
echo ______
echo Step 1: Declare demo module: src\demo\module-info.java
pause > nul
(
echo module demo {}
)>"src\demo\module-info.java"
echo.
type src\demo\module-info.java
paus... |
0b62fe12-deb0-483a-9e57-999cee24eee8 | {
"language": "Batchfile"
} | ```batchfile
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
```
Fix setuptools with conda build on windows. | ```batchfile
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q
"%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt
if errorlevel 1 exit 1
``` |
4c0a970e-5c08-4227-a3a6-8ab0ebaf78fe | {
"language": "Batchfile"
} | ```batchfile
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set BASE_DIR=%HOME%\.spf13-vim-3
call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR%
call mkdir %BASE_DIR%\.vim\bundle
call mklink /J %HOME%\.vim %BASE_DIR%\.vim
call... | ```batchfile
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%
@set BASE_DIR=%HOME%\.spf13-vim-3
call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR%
call mkdir %BASE_DIR%\.vim\bundle
call mklink /J %HOME%\.vim %BASE_DIR%\.vim
call mklink... |
b94f7286-491b-4e2e-8b6d-5fc67062439c | {
"language": "Batchfile"
} | ```batchfile
```
Add a redirect for FAKE | ```batchfile
@echo off
:Build
cls
SET TARGET="Default"
IF NOT [%1]==[] (set TARGET="%1")
"tools\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%"
exit /b %errorlevel%``` |
5c129217-e46c-4ee4-a362-29da5b151b4a | {
"language": "Batchfile"
} | ```batchfile
java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup```
Allow for remote debugging in spark. | ```batchfile
:run
if "%1" == "-debug" goto debug
java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup
goto end
:debug
start "Spark" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -Xnoagent -Xrunjdwp:transport=dt_socket,serve... |
64c98a26-842f-4923-aef0-ff1aee34db50 | {
"language": "Batchfile"
} | ```batchfile
@echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.76" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
```
Patch for version 0.77 update | ```batchfile
@echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.77" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
``` |
7f5635d0-da5c-4f3b-b356-916e08983578 | {
"language": "Batchfile"
} | ```batchfile
dotnet pack src/GladNet.Common/ -c Release
dotnet pack src/GladNet.Encryption/ -c Release
dotnet pack src/GladNet.Engine.Common/ -c Release
dotnet pack src/GladNet.Engine.Server/ -c Release
dotnet pack src/GladNet.Message/ -c Release
dotnet pack src/GladNet.Message.Handlers/ -c Release
dotnet pack src/Glad... | ```batchfile
msbuild ./src/GladNet.Common/GladNet.Common.csproj /p:Configuration=Release
msbuild ./src/GladNet.Encryption/GladNet.Encryption.csproj /p:Configuration=Release
msbuild ./src/GladNet.Engine.Common/GladNet.Engine.Common.csproj /p:Configuration=Release
msbuild ./src/GladNet.Engine.Server/GladNet.Engine.Server... |
7884d12a-1af3-4ed6-a365-3d3b33836e5b | {
"language": "Batchfile"
} | ```batchfile
"%sdkverpath%" -q -version:"%sdkver%"
call setenv /x64
rem install python packages
pip install numpy
rem builds currently fail
rem pip install numexpr
rem pip install tables >= 3.1.1
pip install enum34>=1.0.4
pip install stevedore>=1.2.0
pip install click>=3.3
pip install pyyaml>=3.11
pip install sphinx>1... | ```batchfile
"%sdkverpath%" -q -version:"%sdkver%"
call setenv /x64
rem install python packages
pip install numpy
rem builds currently fail
rem pip install numexpr
rem pip install tables >= 3.1.1
pip install enum34>=1.0.4
pip install stevedore>=1.2.0
pip install click>=3.3
pip install pyyaml>=3.11
pip install sphinx>=... |
c4e71c12-2200-4c69-bf3d-eaf7cc20e29d | {
"language": "Batchfile"
} | ```batchfile
set plugin_file=%CD%/UnrealCV.uplugin
set package_folder=%CD%/Plugins/UnrealCV
set UE4=C:\Program Files\Epic Games\UE_4.14
REM TODO: Check the existence of UE4 folder and give a useful hint for user
REM Modify the UE4 variable to point to your UE4 installation path
"%UE4%/Engine/Build/BatchFiles/RunUAT.bat... | ```batchfile
set plugin_file=%CD%/UnrealCV.uplugin
set package_folder=%CD%/Plugins/UnrealCV
set UE4=C:\Program Files\Epic Games\UE_4.14
REM TODO: Check the existence of UE4 folder and give a useful hint for user
REM Modify the UE4 variable to point to your UE4 installation path
"%UE4%/Engine/Build/BatchFiles/RunUAT.bat... |
58d07693-7459-42fc-8be2-46df51d4ea35 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
:: script for Windows to supply fork() to rakudo
:: based on IO-Socket-INET.sh
SET TEST=%1
SET PORT=%2
:: clear the status message flag but don't whinge about the file not being there
DEL t\spec\S32-io\server-ready-flag 2> NUL
:: Use START to fork the server and set the window title so... | ```batchfile
@ECHO OFF
:: script for Windows to supply fork() to rakudo
:: based on IO-Socket-INET.sh
SET TEST=%1
SET PORT=%2
:: clear the status message flag but don't whinge about the file not being there
DEL t\spec\S32-io\server-ready-flag 2> NUL
:: Use START to fork the server and set the window title so... |
fbb7d377-bc08-433b-80bd-8fdd8b11ee22 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12]
SET solution=%1
SET version=%2
SET log=build_%version%.log
SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat
SET environment="%programfiles(x86)%\%tools%"
IF NOT EXIST %environment% SET environment="%programfiles%\%tools%"
IF NO... | ```batchfile
@ECHO OFF
REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12]
SET solution=%1
SET version=%2
SET log=build_%version%.log
SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat
SET environment="%programfiles(x86)%\%tools%"
IF NOT EXIST %environment% SET environment="%programfiles%\%tools%"
IF NO... |
e17ca955-c38f-4a80-b8f8-c8f01f28e1a0 | {
"language": "Batchfile"
} | ```batchfile
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
```
Remove option to produce NMake make files - lets see what the default does | ```batchfile
:: Configure.
cmake -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
``` |
903d0a89-a749-4206-8756-2b655178ae25 | {
"language": "Batchfile"
} | ```batchfile
@echo off
REM This file is part of the Zephir.
REM
REM (c) Zephir Team <team@zephir-lang.com>
REM
REM For the full copyright and license information, please view the LICENSE
REM file that was distributed with this source code.
cls
if "%PHP_PEAR_PHP_BIN%" neq "" (
set PHPBIN=%PHP_PEAR_PHP_BIN%
) else set ... | ```batchfile
@echo off
rem This file is part of the Zephir.
rem
rem (c) Zephir Team <team@zephir-lang.com>
rem
rem For the full copyright and license information, please view the LICENSE
rem file that was distributed with this source code.
cls
if "%PHP_PEAR_PHP_BIN%" neq "" (
set PHPBIN=%PHP_PEAR_PHP_BIN%
) else set ... |
b6a0f8c5-009d-46b2-8ca1-1210151c456d | {
"language": "Batchfile"
} | ```batchfile
vcvarsall.bat x86
CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
```
Use full path to vcvarsall | ```batchfile
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86
CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
``` |
3ed7722d-f8a3-4986-b020-b8b379f415a5 | {
"language": "Batchfile"
} | ```batchfile
@echo off
del /F TestApp.exe
call gradlew clean -POS=windows
call gradlew build -POS=windows
echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe
call TestApp.exe > output.log
rem call TestApp.exe --useJSONFormat > outputJSON.log
rem call TestApp.exe --nosha256 > outputnoSha.log```
Add No Ope... | ```batchfile
@echo off
del /F TestApp.exe
call gradlew clean -POS=windows
call gradlew build -POS=windows
echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe
rem call TestApp.exe > output.log
call TestApp.exe --noOpenCL > outputnoCL.log
rem call TestApp.exe --useJSONFormat > outputJSON.log
rem call TestA... |
04b3fd98-9df5-448c-9fdf-05aa7182b7de | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\resharper-reformatutils\bin\Release\* ReformatUtils
```
Fix helper script (update path) | ```batchfile
@echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\ReformatUtils\bin\Release\* ReformatUtils
``` |
2f7f4ada-a920-47eb-ad7c-54a531a1fd4f | {
"language": "Batchfile"
} | ```batchfile
CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
powershell Compress-Arc... | ```batchfile
CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
set PYTHONOPTIMIZE=1 && pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
... |
dcffb6c4-5aea-4ef5-991e-6ae9943eaef6 | {
"language": "Batchfile"
} | ```batchfile
```
Make a Microsoft import library for the x64 csound64.dll. | ```batchfile
@echo CREATING MICROSOFT IMPORT LIBRARY FOR CSOUND64.DLL FOR X64
dumpbin /exports csound-mingw64/csound64.dll > exports.txt
@echo LIBRARY CSOUND64 >> csound64.def
@echo EXPORTS >> csound64.def
FOR /F "skip=19 tokens=4" %%l in (exports.txt) do @echo %%l >> csound64.def
lib /def:csound64.def /out:csound64.li... |
21ed51e9-4af9-4a57-adcb-749196909187 | {
"language": "Batchfile"
} | ```batchfile
:: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
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
```
Disable examples ... | ```batchfile
:: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DJKQtPlotter_BUILD_EXAMPLES=OFF -DJKQtPlotter_BUILD_STATIC_LIBS=OFF ..
if errorlevel 1 exit 1
cmake --build . --config R... |
9a71f9cf-4fe9-435b-b244-ef81dea47ea2 | {
"language": "Batchfile"
} | ```batchfile
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 20000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
```
Increase waiting time before screenshot taking. | ```batchfile
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 60000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
``` |
d9b37a3a-f1dc-467b-a6a5-84e590520d9e | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
REM Test default configuration against full suite on windows.
REM WORKSPACE is always set inside our testing environment. If this is run
REM outside that environment, the caller is responsible for setting it.
IF "%WORKSPACE%"=="" GOTO ErrExit
REM NOTE: This is pretty messy, but it is the only w... | ```batchfile
@ECHO OFF
REM Test default configuration against full suite on windows.
REM WORKSPACE is always set inside our testing environment. If this is run
REM outside that environment, the caller is responsible for setting it.
IF "%WORKSPACE%"=="" GOTO ErrExit
REM NOTE: This is pretty messy, but it is the only w... |
bae852e3-7121-4313-b44b-ccb497f8691b | {
"language": "Batchfile"
} | ```batchfile
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
```
Update Windows scripts for unicode support | ```batchfile
@echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
chcp 65001 2>nul >nul
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0\apktool.jar" %*
``` |
2ad474b1-6aac-4c50-97e9-bda474407094 | {
"language": "Batchfile"
} | ```batchfile
SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites .
```
Revert "the integration packag... | ```batchfile
SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites -skipPackage integration .
``` |
e16c870b-7d95-434d-b455-e3fa65f4ac95 | {
"language": "Batchfile"
} | ```batchfile
@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 (
devenv ..\db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
)
@rem b... | ```batchfile
@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 buil... |
93832d89-946f-4d16-8cd9-8cb6a674ecec | {
"language": "Batchfile"
} | ```batchfile
cd %RECIPE_DIR%
cd ..
:: Remove the build directory since incremental builds aren't currently supported.
rd /s /q build
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
```
Remove code that deletes build directory every time in conda recipe... | ```batchfile
cd %RECIPE_DIR%
cd ..
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
``` |
0d09f2a6-e3cb-4c64-8a09-fbb241c05946 | {
"language": "Batchfile"
} | ```batchfile
::set PSDK_INC_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Include
::set PSDK_LIB_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Lib
@echo off
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
go... | ```batchfile
@echo off
call :set_sdk_path
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
call :clean_sdk_path
goto :eof
:setshortpath
set %1=%~s2
goto :eof
:set_sdk_path
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
if NOT "%SDK_PATH%"=="... |
38981cc5-4262-4544-bbe8-a5dc32bd2ad7 | {
"language": "Batchfile"
} | ```batchfile
"%PYTHON%" setup.py install
"%PYTHON%" setup.py test
if errorlevel 1 exit 1
```
Replace "setup.py test" to "-m pip install -vv ." | ```batchfile
"%PYTHON%" setup.py install
"%PYTHON%" -m pip install -vv .
if errorlevel 1 exit 1
``` |
62710426-a864-4498-b13d-469eff91d0bd | {
"language": "Batchfile"
} | ```batchfile
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 DOMAI... | ```batchfile
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 /... |
a98dde86-5188-48a0-b028-0880daaf894a | {
"language": "Batchfile"
} | ```batchfile
@echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -A x64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy... | ```batchfile
@echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -Ax64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy_... |
a83c112b-7318-4aa6-9891-940d6830cf21 | {
"language": "Batchfile"
} | ```batchfile
git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
git submodule add --depth 1 -- https://github.com/onqtam/doctest.git
c... | ```batchfile
git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
rmdir fmt
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
rmdir spdlog
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
rmdir doctest
git submodule add --depth 1 -- ht... |
e03deefb-1c1a-4e18-ae76-8c93b8822007 | {
"language": "Batchfile"
} | ```batchfile
@echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set B... | ```batchfile
@echo off
set BIN_NAME=sqlitebiter
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%.exe
set ARCHIVE_PATH=%D... |
391db2af-d9ee-47c8-a33e-3a4fb513a4f0 | {
"language": "Batchfile"
} | ```batchfile
@echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "Get-Content '%packages_path%\repositories.config' | Sel... | ```batchfile
@echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "[xml](Get-Content '%packages_path%\repositories.config'... |
06668552-e1f1-4cd3-b365-2ce49bc49f35 | {
"language": "Batchfile"
} | ```batchfile
@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
ech... | ```batchfile
@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
ech... |
151c89b7-5dd8-41f7-b441-3483121483f6 | {
"language": "Batchfile"
} | ```batchfile
rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
se... | ```batchfile
rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
se... |
5aaf5677-37a0-48e6-b515-117719606322 | {
"language": "Batchfile"
} | ```batchfile
@ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
```
Add "mock" to the installed packa... | ```batchfile
@ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile mock pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
``` |
c44862a6-cf75-454e-9bf3-c1d20e92c9ac | {
"language": "Batchfile"
} | ```batchfile
```
Add a small script for debugging on windows | ```batchfile
@echo off
if "%OS%" == "Windows_NT" setlocal
if NOT DEFINED JAVA_HOME goto :err
REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH=
REM For each jar in the lib directory call append to build the CLASSPATH variable.
for %%i in ("..\output\jardist\*.jar") do call :... |
88a9c903-7480-4bc7-8a0d-8f8c4e475361 | {
"language": "Batchfile"
} | ```batchfile
xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe %OXYPLOT_FTP_SERVER% %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PASSWORD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1```
Correct environment variable in build script | ```batchfile
xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe ftp.oxyplot.org %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PWD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1``` |
9a1b1de2-88d1-4f7d-8a0c-db6a40927c52 | {
"language": "Batchfile"
} | ```batchfile
mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% \
.
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
```
Update Windows build to deal with newline issue | ```batchfile
mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
``` |
bbb1bed2-3718-4b8a-b6d7-009fb501f76d | {
"language": "Batchfile"
} | ```batchfile
set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qv... | ```batchfile
set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qv... |
a359605d-f5fe-460e-baf3-6e2bbf7f6c70 | {
"language": "Batchfile"
} | ```batchfile
call "%VS%\VC\vcvarsall.bat" x86
@echo on
cov-build --dir cov_dir msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
cov-analyze --dir cov_dir -j auto --aggressiveness-level high --security --concurrency --preview --all --... | ```batchfile
call "%VS%\VC\vcvarsall.bat" x86
@echo on
msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
exit 0
:error
exit 1
``` |
d0e46276-389f-427e-8395-7a065ac79e9e | {
"language": "Batchfile"
} | ```batchfile
@echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Test
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem Release ... | ```batchfile
@echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Development
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem R... |
e1ebf317-1a74-47ab-9584-9a2d2e368cdb | {
"language": "Batchfile"
} | ```batchfile
@echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set B... | ```batchfile
@echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set B... |
5ae2dedc-cb08-47a2-8653-bc0ef93e3791 | {
"language": "Batchfile"
} | ```batchfile
@echo off
set release_name=OpenEMap-1.2.0-rc.1
echo ..\release\%release_name%
cd ..\release
rd /s /q %release_name%
del %release_name%.zip
md %release_name%
cd %release_name%
md config
md resources
cd..
sencha.exe compile --classpath=..\src\main\javascript,\libs\ext-4.2.1\src,\libs\geoext-2.0.1\src exclud... | ```batchfile
@echo off
set release_name=OpenEMap-1.2.0-rc.1
echo ..\release\%release_name%
cd ..\release
rd /s /q %release_name%
del %release_name%.zip
del ..\%release_name%-all.js
del ..\%release_name%-all-debug.js
md %release_name%
cd %release_name%
md config
md resources
cd..
sencha.exe compile --classpath=..\src\m... |
c0f8f755-5236-4008-94db-8f7c9832b625 | {
"language": "Batchfile"
} | ```batchfile
```
Add a batch file to build for Unity (release 2.0, with alternate output directories) | ```batchfile
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
``` |
9f3ee039-4837-44ee-bd8b-27e822e86cef | {
"language": "Batchfile"
} | ```batchfile
```
Add windows ssh wrapper batch file | ```batchfile
@echo off
set opts="-oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no"
if "%GIT_IDENTITY%" == "" goto NOIDENT
set opts="%opts% -i %GIT_IDENTITY%"
:NOIDENT
%GIT_SSH% %opts% %*
``` |
0bc8cac0-3273-426e-a888-d87ee1e64677 | {
"language": "Batchfile"
} | ```batchfile
@echo off
for %%i in ("%~0") do set THIS_BAT_PATH=%%~dpi
set SAVE_CD=%CD%
cd %THIS_BAT_PATH%\deps\firebreath\
call prep2013.cmd "..\..\src" "..\..\build_win_vc2013" -Wno-dev
cd %SAVE_CD%
pause
```
Use dynamic CRT by default | ```batchfile
@echo off
for %%i in ("%~0") do set THIS_BAT_PATH=%%~dpi
set SAVE_CD=%CD%
cd %THIS_BAT_PATH%\deps\firebreath\
call prep2013.cmd "..\..\src" "..\..\build_win_vc2013" -Wno-dev "-DWITH_DYNAMIC_MSVC_RUNTIME=1"
cd %SAVE_CD%
pause
``` |
faadc95f-2102-458e-95b1-246ab758b2bf | {
"language": "Batchfile"
} | ```batchfile
pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
```
Add pause to golang bat for testing | ```batchfile
pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
pause``` |
11cbfada-83e1-4522-85d1-c2df36426658 | {
"language": "Batchfile"
} | ```batchfile
@echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%
```
Revert "Fix error propagation in T4 batch script" | ```batchfile
@echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
``` |
abb34ace-c4b4-4efe-856e-3611f5ffe2d8 | {
"language": "Batchfile"
} | ```batchfile
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
pause```
Remov... | ```batchfile
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
REM pause``` |
045e2125-1ce7-44da-9360-ba7c788f6ed1 | {
"language": "Batchfile"
} | ```batchfile
setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X6... | ```batchfile
setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
copy rhel\qemupciserial.* .\Install\rhel
inf2cat /driver:Install\rhel /uselocal... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.