doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
57e13b47-bc93-41a0-8d11-e6bcd8a37abd
{ "language": "Batchfile" }
```batchfile mkdir "Equipment/Simple Frontend/Settings" create DOUBLE "Equipment/Simple Frontend/Settings/mean" set "Equipment/Simple Frontend/Settings/mean" 0.0 create DOUBLE "Equipment/Simple Frontend/Settings/sigma" set "Equipment/Simple Frontend/Settings/sigma" 1.0``` Use min/max instead of mean/sigma.
```batchfile mkdir "Equipment/Simple Frontend/Settings" create DOUBLE "Equipment/Simple Frontend/Settings/min" set "Equipment/Simple Frontend/Settings/min" 0.0 create DOUBLE "Equipment/Simple Frontend/Settings/max" set "Equipment/Simple Frontend/Settings/max" 1.0```
20760828-628a-4f0e-b53e-8427e9636b14
{ "language": "Batchfile" }
```batchfile @echo on @SET /A exitcode=0 @SET /A TESTFAILURE_ERROR=1 @SET /A PUSHARTIFACT_ERROR=2 @SET /A READREPORT_ERROR=4 nunit3-console.exe Tests\CSF.Screenplay.WebApis.Tests\bin\Debug\CSF.Screenplay.WebApis.Tests.dll @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%TESTFAILURE_ERROR% appveyor PushArtifact SpecFlow.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%PUSHARTIFACT_ERROR% appveyor PushArtifact JsonApis.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%PUSHARTIFACT_ERROR% @echo ****************** @echo Screenplay reports @echo ****************** @type SpecFlow.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%READREPORT_ERROR% @type JsonApis.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%READREPORT_ERROR% @echo off @EXIT /B %exitcode% ``` Update AppVeyor script now that output files are changed
```batchfile @echo on @SET /A exitcode=0 @SET /A TESTFAILURE_ERROR=1 @SET /A PUSHARTIFACT_ERROR=2 @SET /A READREPORT_ERROR=4 nunit3-console.exe Tests\CSF.Screenplay.WebApis.Tests\bin\Debug\CSF.Screenplay.WebApis.Tests.dll @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%TESTFAILURE_ERROR% appveyor PushArtifact SpecFlow.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%PUSHARTIFACT_ERROR% appveyor PushArtifact JsonApis.report.txt @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%PUSHARTIFACT_ERROR% @echo ****************** @echo Screenplay reports @echo ****************** @type SpecFlow.report.json @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%READREPORT_ERROR% @type JsonApis.report.json @IF %ERRORLEVEL% NEQ 0 SET /A exitcode^|=%READREPORT_ERROR% @echo off @EXIT /B %exitcode% ```
9a85a51e-05a5-4022-aee9-385c5947169b
{ "language": "Batchfile" }
```batchfile 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 .. ``` Add Program Files\7-Zip to path
```batchfile 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 .. ```
fefd1e66-fb68-44d9-8d2d-f9f5898c9aa7
{ "language": "Batchfile" }
```batchfile @echo off REM First build up the command line to pass on in %s% set s= :begin if "%1" == "" goto done set s=%s% "%1" shift goto begin :done REM Now figure out what to do if not "%VS71COMNTOOLS%" == "" call "%VS71COMNTOOLS%vsvars32.bat" > nul cl %s% ``` Update the batch file to work with certain quoting mechanisms employed by Cabal
```batchfile @echo off REM First build up the command line to pass on in %s% set s= :begin if '%1' == '' goto done set s=%s% %1 shift goto begin :done REM Now figure out what to do if not "%VS71COMNTOOLS%" == "" call "%VS71COMNTOOLS%vsvars32.bat" > nul cl %s% ```
9d9163cd-b079-4b74-ab34-06db113e08e4
{ "language": "Batchfile" }
```batchfile ``` Add batch script for normal windows startup
```batchfile ::Windows Normal Gateway Startup Script @echo off echo "Installing Dependencies" call bundle install echo "Starting Delayed Job" call "cmd /c start /min bundle exec ruby script/delayed_job run" echo "Starting Normal Gateway" bundle exec rails server -p 3001 ```
7dc4639c-276c-47ab-82a1-ca2e963e35b2
{ "language": "Batchfile" }
```batchfile @echo off setlocal REM Copyright (c) Microsoft. All rights reserved. REM Licensed under the MIT license. See LICENSE file in the project root for full license information. if "%~3"=="" goto help if NOT "%~4"=="" goto help goto Run :Help echo syntax: ValidateDesignerFile.cmd ^<path_to_designer_file^> ^<path_to_candidate_file^> ^<intermediate_directory^> echo. echo ValidateDesignerFile.cmd will determine if the designer file and the candidate echo file are the same (excluding full line c-style comments and whitespace). echo If they are different the designer file will be updated. echo. exit /b -1 :Run if not exist "%2" echo ERROR: %2 does not exist & exit /b -1 if not exist "%1" goto :UpdateFile findstr /v /r /c:"^ *//" %1 > "%~3\%~nx1-nocomments" findstr /v /r /c:"^ *//" %2 > "%~3\%~nx2-nocomments" fc /W "%~3\%~nx1-nocomments" "%~3\%~nx2-nocomments" if not "%ERRORLEVEL%"=="0" goto UpdateFile echo %1 is already up to date. exit /b 0 :UpdateFile echo Updating %1 copy /y %2 %1 if NOT %ERRORLEVEL%==0 echo ERROR: Unable to update %1. >&2 & exit /b -1 exit /b 0``` Fix designer files getting updated just for version number changes
```batchfile @echo off setlocal REM Copyright (c) Microsoft. All rights reserved. REM Licensed under the MIT license. See LICENSE file in the project root for full license information. if "%~3"=="" goto help if NOT "%~4"=="" goto help goto Run :Help echo syntax: ValidateDesignerFile.cmd ^<path_to_designer_file^> ^<path_to_candidate_file^> ^<intermediate_directory^> echo. echo ValidateDesignerFile.cmd will determine if the designer file and the candidate echo file are the same (excluding full line c-style comments and whitespace). echo If they are different the designer file will be updated. echo. exit /b -1 :Run if not exist "%2" echo ERROR: %2 does not exist & exit /b -1 if not exist "%1" goto :UpdateFile findstr /v /r /c:"^ *//" %1 | findstr /v /c:"[System.CodeDom.Compiler.GeneratedCodeAttribute(" > "%~3\%~nx1-nocomments" findstr /v /r /c:"^ *//" %2 | findstr /v /c:"[System.CodeDom.Compiler.GeneratedCodeAttribute(" > "%~3\%~nx2-nocomments" fc /W "%~3\%~nx1-nocomments" "%~3\%~nx2-nocomments" if not "%ERRORLEVEL%"=="0" goto UpdateFile echo %1 is already up to date. exit /b 0 :UpdateFile echo Updating %1 copy /y %2 %1 if NOT %ERRORLEVEL%==0 echo ERROR: Unable to update %1. >&2 & exit /b -1 exit /b 0```
67e0c237-9f6d-4a67-ab47-816c7390dd7b
{ "language": "Batchfile" }
```batchfile @ECHO OFF CD winrun4j COPY WinRun4J64.exe DNGearSim.exe RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini RCEDIT64.exe /S DNGearSim.exe splash.bmp RCEDIT64.exe /I DNGearSim.exe icon.ico COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe" CD ../.. CD Bootstrap/target COPY "bootstrap.jar" "../../runtime/bootstrap.jar" PAUSE``` Remove unnecessary pause, CD back to top
```batchfile @ECHO OFF CD winrun4j COPY WinRun4J64.exe DNGearSim.exe RCEDIT64.exe /N DNGearSim.exe DNGearSim.ini RCEDIT64.exe /S DNGearSim.exe splash.bmp RCEDIT64.exe /I DNGearSim.exe icon.ico COPY "DNGearSim.exe" "../../runtime/DNGearSim.exe" CD ../.. CD Bootstrap/target COPY "bootstrap.jar" "../../runtime/bootstrap.jar" CD ../.. ```
384fa59a-3d82-4739-9181-0eec72e61a90
{ "language": "Batchfile" }
```batchfile schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn EnablePS-Remoting /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )``` Fix the name of the scheduled task.
```batchfile schtasks /CREATE /TN "cloudbaseinit-installer" /SC ONCE /SD 01/01/2020 /ST 00:00:00 /RL HIGHEST /RU CiAdmin /RP Passw0rd /TR "powershell C:\\installcbinit.ps1 -serviceType %1 -installer %2" /F schtasks /RUN /TN "cloudbaseinit-installer" timeout /t 5 :loop for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn cloudbaseinit-installer /fo list ^| find "Status:"' ) do ( if "%%f"=="Running" ( timeout /T 1 /NOBREAK > nul goto loop ) )```
e33253ca-4f08-42bd-b0a1-ab159c706975
{ "language": "Batchfile" }
```batchfile echo on set PATH=C:\Windows\system32;C:\Windows;%PYTHON3_PATH%;%PYTHON3_PATH%\Scripts;%CMAKE_PATH%; if not "%VCVARSALL_DIR%" == "" CALL "%VCVARSALL_DIR%\vcvarsall.bat" amd64 if not "%MINGW_PATH%" == "" SET PATH=%PATH%%MINGW_PATH%; setx PATH "%PATH%" mkdir C:\Fruit\build-%CONFIGURATION% cd C:\Fruit\build-%CONFIGURATION% cmake.exe -G "%CMAKE_GENERATOR%" .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TESTS_IN_RELEASE_MODE=True %ADDITIONAL_CMAKE_ARGS% || exit /b 1 IF "%CMAKE_GENERATOR%"=="MinGW Makefiles" ( mingw32-make -j12 || exit /b 1 ) ELSE ( msbuild ALL_BUILD.vcxproj || exit /b 1 ) pip3 install pytest pip3 install pytest-xdist ctest.exe -j 1 --output-on-failure -C %CONFIGURATION% || exit /b 1 ``` Print the contents of CMakeError.log after running CMake for CI tests on Windows. This helps investigate why a CHECK_CXX_SOURCE_COMPILES check failed.
```batchfile echo on set PATH=C:\Windows\system32;C:\Windows;%PYTHON3_PATH%;%PYTHON3_PATH%\Scripts;%CMAKE_PATH%; if not "%VCVARSALL_DIR%" == "" CALL "%VCVARSALL_DIR%\vcvarsall.bat" amd64 if not "%MINGW_PATH%" == "" SET PATH=%PATH%%MINGW_PATH%; setx PATH "%PATH%" mkdir C:\Fruit\build-%CONFIGURATION% cd C:\Fruit\build-%CONFIGURATION% cmake.exe -G "%CMAKE_GENERATOR%" .. -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DBUILD_TESTS_IN_RELEASE_MODE=True %ADDITIONAL_CMAKE_ARGS% || exit /b 1 echo "Content of CMakeFiles\CMakeError.log:" if exist "CMakeFiles\CMakeError.log" type "CMakeFiles\CMakeError.log" fi IF "%CMAKE_GENERATOR%"=="MinGW Makefiles" ( mingw32-make -j12 || exit /b 1 ) ELSE ( msbuild ALL_BUILD.vcxproj || exit /b 1 ) pip3 install pytest pip3 install pytest-xdist ctest.exe -j 1 --output-on-failure -C %CONFIGURATION% || exit /b 1 ```
c567a744-0e15-45ca-8d8e-79e1b03a2d77
{ "language": "Batchfile" }
```batchfile @echo off set REPO_URL=https://raw.githubusercontent.com/PixxxeL/regular-gulpfile/master/ echo =========================================================================== echo 1. Create bower.json, package.json echo 2. Download gulpfile.js and skeleton echo 3. Make directories echo. pause && npm init && bower init && ^ npm install gulp gulp-sass gulp-jade gulp-shell gulp-coffee && ^ curl -O %REPO_URL%gulpfile.js && ^ mkdir jade html coffee js sass css img && ^ cd coffee && ^ curl -O %REPO_URL%coffee/main.coffee && ^ cd ..\jade && ^ curl -O %REPO_URL%jade/base.jade && ^ curl -O %REPO_URL%jade/index.jade && ^ cd ..\sass && ^ curl -O %REPO_URL%sass/_definitions.sass && ^ curl -O %REPO_URL%sass/main.sass && ^ cd .. && ^ echo. && echo Job finish! exit 0 ``` Add bower install and copy installed to
```batchfile @echo off set REPO_URL=https://raw.githubusercontent.com/PixxxeL/regular-gulpfile/master/ echo =========================================================================== echo 1. Create bower.json, package.json echo 2. Download gulpfile.js and skeleton echo 3. Make directories echo. pause && npm init && bower init && ^ npm install gulp gulp-sass gulp-jade gulp-shell gulp-coffee && ^ curl -O %REPO_URL%gulpfile.js && ^ mkdir jade html coffee js sass css img && ^ bower install jquery html5-boilerplate && ^ cp bower_components/jquery/dist/jquery.min.js js/jquery.min.js && ^ cp bower_components/html5-boilerplate/dist/css/normalize.css css/normalize.css && ^ cd coffee && ^ curl -O %REPO_URL%coffee/main.coffee && ^ cd ..\jade && ^ curl -O %REPO_URL%jade/base.jade && ^ curl -O %REPO_URL%jade/index.jade && ^ cd ..\sass && ^ curl -O %REPO_URL%sass/_definitions.sass && ^ curl -O %REPO_URL%sass/main.sass && ^ cd .. && ^ echo. && echo Job finish! exit 0 ```
c988cfcb-2234-475b-aa16-3b6fb7bfe4d2
{ "language": "Batchfile" }
```batchfile @echo off echo Generating C-style Win32 APIs and tests call dart %~dp0win32\win32api.dart call dart %~dp0win32\generate_ffi_jsonproto.dart call dart %~dp0metadata\win32.dart %~dp0..\lib\src\generated call dart %~dp0win32\generate_tests.dart echo. echo Generating COM classes from Windows metadata call dart %~dp0metadata\com.dart %~dp0..\lib\src\generated echo. echo Generating Windows Runtime classes from Windows metadata call dart %~dp0metadata\winrt.dart %~dp0..\lib\src\generated echo. echo Formatting generated source code call dart format %~dp0..\lib\src call dart format %~dp0..\test\api_test.dart call dart format %~dp0..\test\struct_test.dart call dart format %~dp0..\test\com echo. if "%1"=="--notest" goto end echo Running tests call dart test :end``` Use flutter test for faster testing
```batchfile @echo off echo Generating C-style Win32 APIs and tests call dart %~dp0win32\win32api.dart call dart %~dp0win32\generate_ffi_jsonproto.dart call dart %~dp0metadata\win32.dart %~dp0..\lib\src\generated call dart %~dp0win32\generate_tests.dart echo. echo Generating COM classes from Windows metadata call dart %~dp0metadata\com.dart %~dp0..\lib\src\generated echo. echo Generating Windows Runtime classes from Windows metadata call dart %~dp0metadata\winrt.dart %~dp0..\lib\src\generated echo. echo Formatting generated source code call dart format %~dp0..\lib\src call dart format %~dp0..\test\api_test.dart call dart format %~dp0..\test\struct_test.dart call dart format %~dp0..\test\com echo. echo Running tests if "%1"=="--use-dart-test" goto dart_test call flutter test goto end :dart_test call dart test :end```
6eb4d292-1be6-4817-865b-411a0e169769
{ "language": "Batchfile" }
```batchfile @echo off rem Generate the header file from the Store info about in which git branch, rem what SHA1 and at what date/time we executed make. for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 1}"') do set GIT_BRANCH=%%a for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 2 | select -Last 1}"') do set GIT_COMMIT=%%a echo '#ifndef ROOT_RGITCOMMIT_H' > $1 echo '#define ROOT_RGITCOMMIT_H' >> $1 echo '#define ROOT_GIT_BRANCH "%GIT_BRANCH%"' >> $1 echo '#define ROOT_GIT_COMMIT "%GIT_COMMIT%"' >> $1 echo '#endif' >> $1 ``` Use proper batch script syntax
```batchfile @echo off rem Generate the header file from the Store info about in which git branch, rem what SHA1 and at what date/time we executed make. for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 1}"') do set GIT_BRANCH=%%a for /f "delims=" %%a in ('powershell.exe -command "& {Get-Content .\etc\gitinfo.txt | select -First 2 | select -Last 1}"') do set GIT_COMMIT=%%a echo #ifndef ROOT_RGITCOMMIT_H > %1 echo #define ROOT_RGITCOMMIT_H >> %1 echo #define ROOT_GIT_BRANCH "%GIT_BRANCH%" >> %1 echo #define ROOT_GIT_COMMIT "%GIT_COMMIT%" >> %1 echo #endif >> %1 ```
4070f301-a882-4756-9483-5395c1aa4bfe
{ "language": "Batchfile" }
```batchfile ### application.bat - 201x - votre nom ### echo "Build : 10:00" echo "version 1"``` Add file header with right data
```batchfile ### application.bat - 2015 - Thibault ROGER ### echo "Build : 10:00" echo "version 1"```
735cbcbb-9701-46f3-b2c0-9099a55e54fa
{ "language": "Batchfile" }
```batchfile @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 ) ) ``` Fix windows bundle install staying in bundle dir after install
```batchfile @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 ) ) ```
ada80faa-6466-4ddf-8564-c95ba009bca1
{ "language": "Batchfile" }
```batchfile ``` Add script to enable consent in MS Edge as non admin
```batchfile @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 install sudo # Add Enable Consent to Windows Registry $registryPath = "HKLM:\Software\Microsoft\MicrosoftEdge" $registryPathItem = "$($registryPath)\MediaCapture" $name = "EnableConsentPrompt" $value = "0" echo "Adding enable consent to Windows registry..." sudo New-Item -Path $registryPath -Force | Out-Null sudo New-Item -Path $registryPathItem -Force | Out-Null sudo New-ItemProperty -Path $registryPathItem -Name $name -Value $value -PropertyType DWORD -Force | Out-Null echo "Success!" ```
88050f7a-5a77-4e7e-98c0-a9ccc659670d
{ "language": "Batchfile" }
```batchfile 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 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4 ``` Use MSVC import lib for MSVC DLL for Fluidsynth in MSVC build.
```batchfile 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 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4 ```
a9369eee-ea4c-41b0-9ec9-568c68cd22b0
{ "language": "Batchfile" }
```batchfile ``` Add Python install batch file.
```batchfile @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 ------------------------------------------------------------------ echo, if not exist %PYTHON_EXE% ( if not exist %PYTHON_MSI% ( curl -L -O http://python.org/ftp/python/%PYTHON_VERSION%/%PYTHON_MSI% ) ) echo, echo ------------------------------------------------------------------ echo Install Python echo ------------------------------------------------------------------ echo, if not exist %PYTHON_EXE% ( if exist %PYTHON_MSI% ( msiexec.exe /i %PYTHON_MSI% ALLUSERS=1 ADDDEFAULT=ALL ) ) echo, echo ------------------------------------------------------------------ echo Add Python to PATH echo ------------------------------------------------------------------ echo, rem reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "%PYTHON_PATH%" rem reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v PATH /t REG_EXPAND_SZ /d "%PATH%;c:\Python27;c:\Python27\Scripts" reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PATH /t REG_EXPAND_SZ /d "%PATH%;%PYTHON_PATH%" ```
1fe03c48-d618-425e-b3db-5541faef34b2
{ "language": "Batchfile" }
```batchfile @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:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "%SOLUTION_DIRECTORY%\Tabster.sln" /p:Configuration=Portable ::compress ECHO. ECHO Compressing... 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.exe" 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.dll"``` Delete archive if it already exists.
```batchfile @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\ ::build ECHO. ECHO Building Solution... C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "%SOLUTION_DIRECTORY%\Tabster.sln" /p:Configuration=Portable ::compress ECHO. ECHO Compressing... 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.exe" 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.dll"```
3a098ea9-7082-48b0-b216-4aebb57e876e
{ "language": "Batchfile" }
```batchfile @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 popd ) :main "%~dp0\..\node.exe" "%~dp0\..\cli" %* goto end :end``` Fix a bug where brackets in PATH would break the batch script.
```batchfile @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 popd ) :main "%~dp0\..\node.exe" "%~dp0\..\cli" %* goto end :end```
e7fde9a1-cc24-47fd-bc15-93bd444d6871
{ "language": "Batchfile" }
```batchfile @echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files (x86)\Microsoft VS Code" GOTO NOVSCODE doskey edit="C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd" $* GOTO NOSUBLIME :NOVSCODE IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on ``` Use environment variables and add atom support
```batchfile @echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text" $* ) if exist ""%LOCALAPPDATA%\atom\app-1.4.0"" ( doskey edit=atom $* ) if exist ""%PROGRAMFILES(X86)%\Microsoft VS Code"" ( doskey edit="%PROGRAMFILES(X86)%\Microsoft VS Code\bin\code.cmd" $* ) rem Open functionality doskey open=start $* @echo on ```
748e45eb-4a7d-4bbf-af6e-5f58e40c28b4
{ "language": "Batchfile" }
```batchfile 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 ``` Increase memory for PC startup file
```batchfile 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 ```
f7ae4fb2-4e0a-4b64-9dd4-9ad9c88fc724
{ "language": "Batchfile" }
```batchfile @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 src\*.nuspec src\*\project.json (see the SetVersionNumber task in xunit.performance.msbuild) These files will, therefore, show up as modified after the build. Be careful NOT to check them in that way! If you publish these packages to Nuget, then please remember to bump the build number on BuildSemanticVersion below. ====================================================================== :main setlocal set BuildAssemblyVersion=1.0.0.0 set BuildSemanticVersion=1.0.0-alpha-build0007 echo Building version %BuildSemanticVersion% NuGet packages. echo WARNING: Some source files will be modified during this build. echo WARNING: Please be careful not to check in those modifications. msbuild.exe /m /nologo /t:CI /v:m /fl xunit.performance.msbuild goto :eof``` Use automatic versioning for assembly version build number
```batchfile @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 src\*.nuspec src\*\project.json (see the SetVersionNumber task in xunit.performance.msbuild) These files will, therefore, show up as modified after the build. Be careful NOT to check them in that way! If you publish these packages to Nuget, then please remember to bump the build number on BuildSemanticVersion below. ====================================================================== :main setlocal set BuildAssemblyVersion=1.0.0.* set BuildSemanticVersion=1.0.0-alpha-build0007 echo Building version %BuildSemanticVersion% NuGet packages. echo WARNING: Some source files will be modified during this build. echo WARNING: Please be careful not to check in those modifications. msbuild.exe /m /nologo /t:CI /v:m /fl xunit.performance.msbuild goto :eof```
1f97d6e9-cc6f-4f05-8cb0-090af313ad29
{ "language": "Batchfile" }
```batchfile @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 20160818 GOTO END :END``` Allow no suffix for creating nuget packages
```batchfile @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 dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" GOTO END :END```
de9fb11c-7261-4296-a1d3-a7e528e76bac
{ "language": "Batchfile" }
```batchfile ### application.bat - 2015 - gandubert ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"``` Update header for new member
```batchfile ### application.bat - 2015 - gandubert MAIGNAN ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"```
7acb429e-06d7-4c67-9e19-fd3339527cc8
{ "language": "Batchfile" }
```batchfile if not exist C:\dev\swig goto noswig set PATH=C:\dev\swig;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH% @echo off rem NOTE: If building under MobaSSH, the C:\Windows\System32\bsh\temp path is an issue rem You'll see something like this after the swig step: rem c1xx : fatal error C1083: Cannot open compiler intermediate file: rem 'C:\Windows\system32\bsh\tmp\_CL_96a80b23ex': No such file or directory echo.%TMP% | findstr /I /C:"system32\bsh">nul && ( echo "Detected MobaSSH session. Changing TMP path to C:\temp." mkdir C:\temp set TMP=C:\temp ) || ( echo "Running under regular command line" ) @echo on "%PYTHON%" setup.py build "%PYTHON%" setup.py install if errorlevel 1 exit 1 exit 0 :noswig echo "Expected SWIG to be in the path C:\dev\swig" echo "Please install swig >= 3.0.7 there from:" echo "http://sourceforge.net/projects/swig/files/swigwin/swigwin-3.0.7/swigwin-3.0.7.zip/download" exit 1 ``` Add note about version tag being busted on conda-build-1.18.2 on windows
```batchfile if not exist C:\dev\swig goto noswig echo on set PATH=C:\dev\swig;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC;%PATH% rem NOTE: git version tag broken on conda-build-1.18.2 (revert to 1.18.1 or use rem the version after when it's released) @echo off rem NOTE: If building under MobaSSH, the C:\Windows\System32\bsh\temp path is an issue rem You'll see something like this after the swig step: rem c1xx : fatal error C1083: Cannot open compiler intermediate file: rem 'C:\Windows\system32\bsh\tmp\_CL_96a80b23ex': No such file or directory echo.%TMP% | findstr /I /C:"system32\bsh">nul && ( echo "Detected MobaSSH session. Changing TMP path to C:\temp." mkdir C:\temp set TMP=C:\temp ) || ( echo "Running under regular command line" ) @echo on "%PYTHON%" setup.py build "%PYTHON%" setup.py install if errorlevel 1 exit 1 exit 0 :noswig echo "Expected SWIG to be in the path C:\dev\swig" echo "Please install swig >= 3.0.7 there from:" echo "http://sourceforge.net/projects/swig/files/swigwin/swigwin-3.0.7/swigwin-3.0.7.zip/download" exit 1 ```
4e71ecf3-b581-4805-882f-48d883f39258
{ "language": "Batchfile" }
```batchfile 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 may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. @echo off set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=..\..\tools\ant set OLD_CLASSPATH=%CLASSPATH% set CLASSPATH= for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i echo Using classpath: "%CLASSPATH%" call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH% ``` Move the @echo line above license header so it is not echoed to command line. Thanks to Vincent Siveton FOR-1021
```batchfile @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"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=..\..\tools\ant set OLD_CLASSPATH=%CLASSPATH% set CLASSPATH= for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i echo Using classpath: "%CLASSPATH%" call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH% ```
1174444a-f1d8-422b-8adb-63b3cfbeb8f9
{ "language": "Batchfile" }
```batchfile @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 -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win32-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" .. @if %errorlevel% neq 0 exit /b %errorlevel% @echo Configuration complete. To build, run `nmake` ``` Use second parameter to define bitness
```batchfile @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_bitness=%2 @echo Configuring for build type %build_type% for %build_bitness% bits cmake -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win%build_bitness%-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" .. @if %errorlevel% neq 0 exit /b %errorlevel% @echo Configuration complete. To build, run `nmake` ```
02ebae5a-27fd-4666-a7d5-1684a49b9c54
{ "language": "Batchfile" }
```batchfile REM other targets are: REM 'build' REM 'test' REM 'test-integration' tools\nant\bin\nant.exe -f:Common.Logging.build build``` Revert "setting ci build script to only compile as CI box will scan and run tests independently"
```batchfile REM other targets are: REM 'build' REM 'test' REM 'test-integration' tools\nant\bin\nant.exe -f:Common.Logging.build test-integration```
17a589ef-2f01-41a9-b898-fe9329a5cfc9
{ "language": "Batchfile" }
```batchfile ``` Add batch script used for creating binary egg packages for Python.
```batchfile :: 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 ```
82ee8324-895d-47b1-ad59-ebf9843d44ce
{ "language": "Batchfile" }
```batchfile ``` Add a debug, highly crude script to start a Mesa3D Meson build
```batchfile @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 buildcmd=%mesa%\Py3\python.exe %mesa%\Py3\Scripts\meson.py . .\build\windows-x86_64 @RD /S /Q %mesa%\mesa\build\windows-x86_64 @cmd ```
637c55af-e3e6-4d15-9144-7234377dfc2c
{ "language": "Batchfile" }
```batchfile ``` Add Windows build script to root folder
```batchfile @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%versionline:~15,5%*" /im "java.exe" @echo( @echo Starting Gradle build. This will take a while... @echo( @call gradlew clean shadowJar --no-daemon @for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo( @echo Starting HubTurbo V%versionline:~15,5%. You can close this cmd window once HubTurbo begins launching. @start "" javaw -jar build/libs/HubTurbo-%versionline:~15,5%-all.jar @exit```
d6666932-1dbd-4089-993b-7497e5ca3751
{ "language": "Batchfile" }
```batchfile @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-server build/server :build_viewer npm install GochoMugo/docvy-viewer#develop mv node_modules/docvy-viewer build/viewer :src call :src_viewer call :src_server :src_viewer mklink src\viewer ..\..\docvy-viewer\dist :src_server mklink /d src\server ..\..\docvy-server ``` Add note about updates to the Windows build script
```batchfile 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 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-server build/server :build_viewer npm install GochoMugo/docvy-viewer#develop mv node_modules/docvy-viewer build/viewer :src call :src_viewer call :src_server :src_viewer mklink src\viewer ..\..\docvy-viewer\dist :src_server mklink /d src\server ..\..\docvy-server ```
e9d9cc96-e5bd-4390-bb3b-b32918225c78
{ "language": "Batchfile" }
```batchfile @echo off set PYTHONPATH=%CD% C:\Python27\python.exe feed_archive\feed_archive.py %* ``` Replace absolute path of python
```batchfile @echo off set PYTHONPATH=%CD% python feed_archive\feed_archive.py %* ```
860573a1-52b1-40b4-a1d7-5c9707736700
{ "language": "Batchfile" }
```batchfile @PATH=%PATH%;%XIA2_ROOT%\binaries\win32 @PATH=%PATH%;%XIA2_ROOT%\Applications ``` Put win32 binaries at front of path, to pick up scala &c.
```batchfile @PATH=%XIA2_ROOT%\binaries\win32;%PATH% @PATH=%PATH%;%XIA2_ROOT%\Applications ```
777d57da-4ba9-4eff-a4c2-3047b2581196
{ "language": "Batchfile" }
```batchfile SET "JAVA_HOME=C:\opt\jdk1.8.0_161" cd git-repo ./mvnw clean install -X``` Fix location of java home for windows build
```batchfile SET "JAVA_HOME=C:\opt\jdk-8" cd git-repo ./mvnw clean install -X```
8706bd3a-ac7d-47eb-88b3-bcb06cd62377
{ "language": "Batchfile" }
```batchfile ``` Add script to enable ps remoting
```batchfile 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```
3691f2d9-b690-4a65-9621-c3897f087b0f
{ "language": "Batchfile" }
```batchfile 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.com/aspnet/Home/dev/dnvminstall.ps1'))}" rem install .NET execution environment (DNX) for coreclr dnvm upgrade -r coreclr pause``` Fix missing newline at EOF.
```batchfile 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.com/aspnet/Home/dev/dnvminstall.ps1'))}" rem install .NET execution environment (DNX) for coreclr dnvm upgrade -r coreclr pause ```
9dcf2731-3809-4d07-a5df-9ae98d192804
{ "language": "Batchfile" }
```batchfile :: 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 Studio 10.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :found_vcvars call %vcvars% :: Add the normal CMake install path. set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH% echo Final PATH: echo %PATH% %* ``` Fix drmemory build environment wrapper for VS 2008
```batchfile :: 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 Studio 10.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :: VS 2008 vcvars isn't standalone, it needs this env var. set VS90COMNTOOLS=%PROGRAMFILES%\Microsoft Visual Studio 9.0\Common7\Tools\ set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :found_vcvars call %vcvars% :: Add the normal CMake install path. set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH% echo Final PATH: echo %PATH% %* ```
077350cf-b32a-4daa-992e-775bbc866adb
{ "language": "Batchfile" }
```batchfile :: 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 > NUL @reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\shims\ruby.cmd\" \"%%1\" %%*" /f > NUL @ echo(Ruby files are now associated with rbenv-cmd. @ exit /b 0 ``` Change register to use rbenv exec instead of Ruby shim
```batchfile :: 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 > NUL @reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\libexec\rbenv_exec.cmd\" \"%%1\" %%*" /f > NUL @ echo(Ruby files are now associated with rbenv-cmd. @ exit /b 0 ```
a4247199-2852-409c-a908-e16fc78541af
{ "language": "Batchfile" }
```batchfile @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\Upload-TestResult.ps1 -fileName %%i.xml IF %ERRORLEVEL% NEQ 0 ( set /A failures=%failures%+1 ) ) del __tmp_gtest.txt EXIT /B %failures% ``` Solve problem of non-failing native tests
```batchfile @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=%failures%+1 ) powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml ) del __tmp_gtest.txt EXIT /B %failures% ```
d58e4f7b-9e45-4ac5-a4e3-22891475de5a
{ "language": "Batchfile" }
```batchfile @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:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" CollectorBootStartUp endlocal ``` Fix issue that collector start failed in the Windows environment
```batchfile @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:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" org.apache.skywalking.apm.collector.boot.CollectorBootStartUp endlocal ```
a50e1d35-b3e0-4f48-99da-322ddb1202a9
{ "language": "Batchfile" }
```batchfile @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/packages tools\packages\FSharp.Compiler.Tools\tools\fsi.exe --exec build.fsx %* ``` Revert using fsi from FSharp.Compiler.Tools
```batchfile @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\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %*```
69b77622-a221-46fa-a907-5a0ca9bb64a0
{ "language": "Batchfile" }
```batchfile 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``` Build tests w/ debugging symbols
```batchfile 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 ```
569ea645-d668-44e7-b7a9-2a1e6aa098ff
{ "language": "Batchfile" }
```batchfile 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 .. ``` Add Program Files\7-Zip to path
```batchfile 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 .. ```
16512d23-0559-473c-a32e-909ed8fb2882
{ "language": "Batchfile" }
```batchfile 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 ``` Build for 1.7 even with 1.8 javac
```batchfile 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 ```
b0988935-69c1-4783-9ec5-4c55fb7e9c4f
{ "language": "Batchfile" }
```batchfile ``` Add a batch file to support windows until panda gets its own automatic .bat facility generation at installation time
```batchfile @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_failed_so_exit_with_non_zero_val 2>nul goto endofperl @rem '; __END__ :endofperl ```
ec82930d-2cdd-4860-8c0a-2086c3f27955
{ "language": "Batchfile" }
```batchfile ``` Create a script to allow building 32-bit and 64-bit Windows.
```batchfile 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 .\determine_vs_version.py > vsversion.tmp set /p VS_VERSION=< vsversion.tmp echo Detected Visual Studio Version as %VS_VERSION% REM Cleanup the file we used to collect the VS version output since it's no longer needed. del /Q /F vsversion.tmp rmdir /Q /S build rmdir /Q /S build32 REM ******************************************* REM 64-bit LoaderAndTools build REM ******************************************* mkdir build pushd build echo Generating 64-bit spirv-tools CMake files for Visual Studio %VS_VERSION% cmake -G "Visual Studio %VS_VERSION% Win64" .. echo Building 64-bit Debug LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Debug\vulkan-1.dll ( echo. echo LoaderAndTools 64-bit Debug build failed! set errorCode=1 ) echo Building 64-bit Release LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Release\vulkan-1.dll ( echo. echo LoaderAndTools 64-bit Release build failed! set errorCode=1 ) popd REM ******************************************* REM 32-bit LoaderAndTools build REM ******************************************* mkdir build32 pushd build32 echo Generating 32-bit LoaderAndTools CMake files for Visual Studio %VS_VERSION% cmake -G "Visual Studio %VS_VERSION%" .. echo Building 32-bit Debug LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Debug\vulkan-1.dll ( echo. echo LoaderAndTools 32-bit Debug build failed! set errorCode=1 ) echo Building 32-bit Release LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Release\vulkan-1.dll ( echo. echo LoaderAndTools 32-bit Release build failed! set errorCode=1 ) popd ```
101d504d-7aad-4b09-8160-462cfbf2da9b
{ "language": "Batchfile" }
```batchfile @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 verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F ) ``` Add PFX certificate password option when signing msi
```batchfile @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 %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F ) ```
182f53f2-a6b5-4d96-ad8a-8fbf42129ca9
{ "language": "Batchfile" }
```batchfile 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\user\Downloads F:\Backup\Downloads /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt pause``` Add quotation around dir path.
```batchfile 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\user\Downloads" "F:\Backup\Downloads" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt pause```
385c6323-bcc7-48ea-9918-9a29e161ce3f
{ "language": "Batchfile" }
```batchfile @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.py will overwrite the PATH and PYTHONPATH environment variables. python %~dp0\run_slave.py --no_save -y buildbot.tac %* ``` Write twistd.log files on Windows
```batchfile @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.py will overwrite the PATH and PYTHONPATH environment variables. python %~dp0\run_slave.py --no_save -y buildbot.tac --logfile=twistd.log %*```
87ae7dc6-8f8d-456d-bf23-cecdbdc7cfc0
{ "language": "Batchfile" }
```batchfile ``` 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.
```batchfile # # 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_TOOLS_PATH%\Bin\Win32 set OUTPUT_DIR=%BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_DIR%\FV\DUETEFIMAINFV.Fv %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\IA32\DxeMain.efi %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\IA32\DxeIpl.efi %BASETOOLS_DIR%\EfiLdrImage.exe -o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\IA32\EfiLoader.efi %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\FV\DUETEFIMAINFV.z copy /b %OUTPUT_DIR%\Start.com+%OUTPUT_DIR%\Efi32.com2+%BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\FV\Efildr ```
dd998f0f-bbe1-4a65-82aa-b36a94fc5ffb
{ "language": "Batchfile" }
```batchfile "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.sigtable.js ^ --js=siggy.globalnotes.js ^ --js=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause ``` Use java instead of full path
```batchfile 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=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause ```
e9d519cb-40fa-4cdc-aff2-b2f999669e80
{ "language": "Batchfile" }
```batchfile @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 output to the expected output FC actual.txt expected.txt``` Update test script to clean up at start
```batchfile @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 and redirect the output to the actual.txt java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt REM compare the output to the expected output FC actual.txt expected.txt```
802045f0-c46d-4674-be0e-89687fc9ba0f
{ "language": "Batchfile" }
```batchfile 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" ``` Test run via bat file.
```batchfile 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```
7b5cfb11-cd47-4064-ada1-824aaab12b6c
{ "language": "Batchfile" }
```batchfile @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 %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0 ``` Update to use KuduScript 1.0.4
```batchfile @echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/93edfcb6e9c75d395e805825f5051e707bd50bb8 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0 ```
7f66dcc5-1130-488e-ba88-f4542c044b8b
{ "language": "Batchfile" }
```batchfile 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 REM from the docfx folder. If we ever want to change the custom domain settings REM we need to alter the docfx\CNAME file and not use the github settings page. copy docfx\CNAME docs /Y xcopy docfx\_site docs /E /Y ``` Use choco upgrade iso update
```batchfile 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 it REM from the docfx folder. If we ever want to change the custom domain settings REM we need to alter the docfx\CNAME file and not use the github settings page. copy docfx\CNAME docs /Y xcopy docfx\_site docs /E /Y ```
0fdbe251-33bb-4d85-bcfb-f327460b55b5
{ "language": "Batchfile" }
```batchfile ``` Add batch to compile release binary.
```batchfile @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.cfg > nul dcc32 Drago move Drago.cfg.bak Drago.cfg > nul :return```
521888b6-b30b-449d-8b70-f450a0639678
{ "language": "Batchfile" }
```batchfile ``` Add gradle wrapper for Windows
```batchfile @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%"=="Windows_NT" setlocal @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS= set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto init echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto init echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :init @rem Get command-line arguments, handling Windowz variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= set _SKIP=2 :win9xME_args_slurp if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* goto execute :4NT_args @rem Get arguments from the 4NT Shell from JP Software set CMD_LINE_ARGS=%$ :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega ```
e95af1ce-c8b6-41d5-bf91-a526e5e3dabe
{ "language": "Batchfile" }
```batchfile @echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.1.nupkg pause``` Update publish bat for new release.
```batchfile @echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.2.nupkg pause```
49c9702e-fe50-4b13-ab0e-5c6ec08613b4
{ "language": "Batchfile" }
```batchfile @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 = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% SET PATH=%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %* ``` Update paths to Python and Maven
```batchfile @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.io >> %USERINI% ECHO cf_org = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% SET PATH=%PYTHON_HOME%\Scripts;%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %* ```
a43ec3d5-bcf3-44ac-9b43-2bd31ca012d2
{ "language": "Batchfile" }
```batchfile @echo off setlocal enableextensions set base=%~dp0 for %%i in (node.bat node.exe) do if not "%%~$PATH:i"=="" set node=%%~$PATH:i if "%node%"=="" echo error: node.js is not on the system path && exit /b 1 "%node%" "%base%bolt.js" %* ``` Convert windows batch script to use windows line endings.
```batchfile @echo off setlocal enableextensions set base=%~dp0 for %%i in (node.bat node.exe) do if not "%%~$PATH:i"=="" set node=%%~$PATH:i if "%node%"=="" echo error: node.js is not on the system path && exit /b 1 "%node%" "%base%bolt.js" %* ```
1ba64ce4-600b-4a98-bd66-936760b58bb2
{ "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 echo Installing _gvimrc if exist %USERPROFILE%\_gvimrc goto END echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc :END popd ``` Move gvimrc log message so it doesn't print unnecessarily.
```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 echo Installing _gvimrc echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc :END popd ```
db152941-50d2-4d8b-8c03-a6b6823e3c84
{ "language": "Batchfile" }
```batchfile 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 ``` Test npm version, just rebuild with 693
```batchfile 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 ```
8750168b-58cd-46b4-bffd-95c29468d576
{ "language": "Batchfile" }
```batchfile @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 ``` Make temp directory in HOME
```batchfile @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 ```
f3e05d33-eef6-4d89-aca7-3faf9148d3c2
{ "language": "Batchfile" }
```batchfile "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.sigtable.js ^ --js=siggy.globalnotes.js ^ --js=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause ``` Use java instead of full path
```batchfile 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=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause ```
37ed568b-d07f-4f32-9e82-03fea6c2cd54
{ "language": "Batchfile" }
```batchfile @rem Makes a build directory of the Tundra, so that you can run the NSIS install script @echo off cd ..\..\..\.. rmdir build /S /Q md build copy README.md build copy LICENSE build\LICENSE.txt copy WhatsNew.txt build copy tools\Windows\Installer\VS2008\vcredist_x86.exe build\vcredist.exe copy tools\Windows\Installer\oalinst.exe build copy tools\Windows\Installer\dxwebsetup.exe build xcopy bin\*.* build /S /C /Y :: NOTE! This script only copies content to the build\ folder. If you want to make a full development build with all the content :: in your bin\ directory, run NSIS after running this bat. :: If you want to create an end-user client build, run MakeClean.bat after this, and then run NSIS. ``` Copy correct version of VS redistributable.
```batchfile @rem Makes a build directory of the Tundra, so that you can run the NSIS install script @echo off cd ..\..\..\.. rmdir build /S /Q md build copy README.md build copy LICENSE build\LICENSE.txt copy WhatsNew.txt build copy tools\Windows\Installer\VS2008\vcredist_x64.exe build\vcredist.exe copy tools\Windows\Installer\oalinst.exe build copy tools\Windows\Installer\dxwebsetup.exe build xcopy bin\*.* build /S /C /Y :: NOTE! This script only copies content to the build\ folder. If you want to make a full development build with all the content :: in your bin\ directory, run NSIS after running this bat. :: If you want to create an end-user client build, run MakeClean.bat after this, and then run NSIS. ```
0f87ba0b-ca48-4fe8-806d-b0ac1ab2f9c1
{ "language": "Batchfile" }
```batchfile @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 --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( IF EXIST "%APPDATA%\npm\tsc.cmd" ( CALL %APPDATA%\npm\tsc -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( echo TypeScript compiler not installed. ) ) mkdir out COPY main.html out\main.html XCOPY sdk out\sdk\ /r /f /e /c /h /y ECHO. :end``` Remove unnecessary npm tsc check.
```batchfile @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 out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( echo TypeScript compiler not installed. ) ) mkdir out COPY main.html out\main.html XCOPY sdk out\sdk\ /r /f /e /c /h /y ECHO. :end ```
6ce9b201-9f67-48f9-9f52-160bf0a6a052
{ "language": "Batchfile" }
```batchfile @echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ) set EnableNuGetPackageRestore=true for %%s in (src\*.sln) do for %%c in (debug release) do "%MSBUILDEXE%" %%s /p:Configuration=%%c /v:m %* ``` Build script error propagation fix
```batchfile @echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ) set EnableNuGetPackageRestore=true call :build Debug && call :build Release goto :EOF :build "%MSBUILDEXE%" src\NCrontab.sln /p:Configuration=%1 /v:m %2 %3 %4 %5 %6 %7 %8 %9 goto :EOF ```
e970a911-a992-4fd8-8f5f-79ff83221abc
{ "language": "Batchfile" }
```batchfile @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 "%%a"=="--foreground" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-w" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--wait" SET EXPECT_OUTPUT=YES ) IF "%EXPECT_OUTPUT%"=="YES" ( "%~dp0\..\atom.exe" %* ) ELSE ( "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %* ) ``` Add -t and --test to expected output args
```batchfile @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 "%%a"=="--test" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-v" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--version" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-w" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--wait" SET EXPECT_OUTPUT=YES ) IF "%EXPECT_OUTPUT%"=="YES" ( "%~dp0\..\atom.exe" %* ) ELSE ( "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %* ) ```
ab0709ad-6797-4a8d-ac71-9a4a852ae602
{ "language": "Batchfile" }
```batchfile ``` Add Java line count script for windows
```batchfile @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 ```
717e45da-4634-4c7d-bf41-b601cf030a94
{ "language": "Batchfile" }
```batchfile @echo off call ..\..\SetNugetApiKey.bat del *.nupkg nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release nuget setApiKey %NUGET_API_KEY% nuget push *.nupkg pause``` Update nuget publish script for updated nuget.exe path
```batchfile @echo off call ..\..\SetNugetApiKey.bat del *.nupkg ..\..\nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release ..\..\nuget setApiKey %NUGET_API_KEY% ..\..\nuget push *.nupkg pause```
8050d1fc-bb40-4924-84b5-1eebb9bb8335
{ "language": "Batchfile" }
```batchfile 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 ``` Remove the restriction to haskell-src-exts-1.3.0 in the .bat file
```batchfile ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports ```
a003cec9-9a78-4a62-9ab2-1c05117f3bd9
{ "language": "Batchfile" }
```batchfile @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\python.exe -m openquake.server.dbserver REM Make sure that the dbserver is up and running echo Please wait ... if exist C:\Windows\System32\timeout.exe ( timeout /t 10 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n 1 -w 10000 > nul ) REM Start the WebUI using django %common%\Python\2.7\python.exe -m openquake.server.manage runserver %* endlocal ``` Use same case for NUL
```batchfile @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\python.exe -m openquake.server.dbserver REM Make sure that the dbserver is up and running echo Please wait ... if exist C:\Windows\System32\timeout.exe ( timeout /t 10 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n 1 -w 10000 > NUL ) REM Start the WebUI using django %common%\Python\2.7\python.exe -m openquake.server.manage runserver %* endlocal ```
9fafa096-40f0-47d4-9ac4-f182723084f9
{ "language": "Batchfile" }
```batchfile mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake ../pythonfmu/pythonfmu-export -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release if errorlevel 1 exit 1 cmake --build . --config Release if errorlevel 1 exit 1 cd .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1 ``` Use Ninja as generator on Windows
```batchfile mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake ../pythonfmu/pythonfmu-export -G "Ninja" -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release if errorlevel 1 exit 1 cmake --build . --config Release if errorlevel 1 exit 1 cd .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1 ```
91ee52b4-a62e-4fa8-8898-aa54fcb591bf
{ "language": "Batchfile" }
```batchfile :: 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 --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv``` Revert to Visual Studio 16 2019
```batchfile :: 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 --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv```
87163f1f-c692-4449-80cb-b6ef7d71d1d8
{ "language": "Batchfile" }
```batchfile @echo off set lighttpd_dir=%~dp0..\third_party\lighttpd\win REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be REM killed by taskkill. REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not REM a directory using the echo hack. echo f | xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. xcopy /D %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% REM Start the server, using the conf file in the slave directory. :RESTART echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib -D goto :RESTART ``` Add /Y to xcopy of cygwin1.dll in lighttpd dir
```batchfile @echo off set lighttpd_dir=%~dp0..\third_party\lighttpd\win REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be REM killed by taskkill. REM Since xcopy is stupid, tell it that lighttpd_server.exe is a file and not REM a directory using the echo hack. echo f | xcopy /D /Y %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. xcopy /D /Y %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% REM Start the server, using the conf file in the slave directory. :RESTART echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib -D goto :RESTART ```
25a9ef10-a6af-4279-9182-e6fd4eeb962e
{ "language": "Batchfile" }
```batchfile @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 .. ``` Build .Net 4.0 and .Net 4.5 projects
```batchfile @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 @md Net40 @md Net45 @cd .. @copy SLOTaxGuiTest40\bin\Release\*.exe FinalOutput\Net40 @copy SLOTaxGuiTest40\bin\Release\*.dll FinalOutput\Net40 @copy SLOTaxGuiTest40\bin\Release\*.config FinalOutput\Net40 @del FinalOutput\Net40\*vshost* @copy SLOTaxGuiTest\bin\Release\*.exe FinalOutput\Net45 @copy SLOTaxGuiTest\bin\Release\*.dll FinalOutput\Net45 @copy SLOTaxGuiTest\bin\Release\*.config FinalOutput\Net45 @del FinalOutput\Net45\*vshost* ```
dfc595e3-f3f5-42bf-8338-de48ecb10ce8
{ "language": "Batchfile" }
```batchfile @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\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %*``` Rename Zafir packages to WebSharper
```batchfile @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\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %* ```
767d7584-37de-4b4a-aa66-76cce6dab66d
{ "language": "Batchfile" }
```batchfile ``` Use GDAL to convert ESRI ASCII Grid files in RD to WGS84. Requires a working GDAL installation, e..g. you can use the one that is installed with QGIS, or install it yourself.
```batchfile rem First, convert the input data to vrt, reprojecting from RD to wgs84, and replacing the nodata value at the same time. rem As gdalwarp does not support AAIGrid as output, we first convert it to VRT, and use gdal_translate to translate it to an ESRI ASCII GRID file. for %%f in (*.asc) do ( echo Processing %%f "c:/Program Files/QGIS Pisa/bin/gdalwarp.exe" --config GDAL_DATA "c:/OSGeo4W64/share/gdal" -srcnodata -9999 -dstnodata -1 -t_srs EPSG:4296 -s_srs EPSG:28992 -of VRT -r average %%f %%f_intermediate.vrt "c:/Program Files/QGIS Pisa/bin/gdal_translate.exe" -of AAIGrid %%f_intermediate.vrt %%f.out del %%f_intermediate.vrt )```
31c39815-ee98-48bd-99fc-eeb8f8d8691f
{ "language": "Batchfile" }
```batchfile @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 flipyvs.h Blit.vs fxc /E passthroughps /T ps_2_0 /Fh passthroughps.h Blit.ps fxc /E luminanceps /T ps_2_0 /Fh luminanceps.h Blit.ps fxc /E componentmaskps /T ps_2_0 /Fh componentmaskps.h Blit.ps fxc /E VS_Passthrough /T vs_4_0 /Fh passthrough11vs.h Passthrough11.hlsl fxc /E PS_Passthrough /T ps_4_0 /Fh passthrough11ps.h Passthrough11.hlsl``` Fix mixed line endings in generateshader.bat
```batchfile @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 flipyvs.h Blit.vs fxc /E passthroughps /T ps_2_0 /Fh passthroughps.h Blit.ps fxc /E luminanceps /T ps_2_0 /Fh luminanceps.h Blit.ps fxc /E componentmaskps /T ps_2_0 /Fh componentmaskps.h Blit.ps fxc /E VS_Passthrough /T vs_4_0 /Fh passthrough11vs.h Passthrough11.hlsl fxc /E PS_Passthrough /T ps_4_0 /Fh passthrough11ps.h Passthrough11.hlsl```
fed31836-c079-4019-8d69-b9142082a5ed
{ "language": "Batchfile" }
```batchfile 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 P4PASSWD= SET DIR= SET FILEPATH=%DIR%\last_updated p4 login -s p4 info p4 sync -q -f REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful p4 add %FILEPATH% p4 edit %FILEPATH% ECHO %DATE%-%TIME% > %FILEPATH% p4 submit -d "Update" %FILEPATH% p4 logout ``` Add experience enhancers to perf_update
```batchfile @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 [Script executed at %DATE%-%TIME%] SET P4PORT= SET P4CLIENT= SET P4USER= SET P4PASSWD= SET DIR= SET FILEPATH=%DIR%\last_updated p4 login -s p4 info p4 sync -q -f REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful p4 add %FILEPATH% p4 edit %FILEPATH% ECHO %DATE%-%TIME% > %FILEPATH% p4 submit -d "Update" %FILEPATH% p4 logout EXIT /B 0 ```
a47c4235-32ce-4919-964d-d1f207e7b337
{ "language": "Batchfile" }
```batchfile @@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 -or $args.Length -gt 2) { Write-Host "Specify an assembly path and an optional output directory."; Exit 1; } $assemblyPath = $args[0]; $outputDirectory = "."; if ($args.Length -eq 2) { $outputDirectory = $args[1]; } $eventSourceType = [System.Diagnostics.Tracing.EventSource]; $assembly = [System.Reflection.Assembly]::LoadFrom($args[0]); $types = $assembly.GetTypes(); foreach ($type in $types) { if ($type.IsSubclassOf($eventSourceType)) { Write-Host "Found type '$type'."; $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, $null); $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man"; Write-Host "Writing manifest to '$fileName'..."; $text | Out-File $fileName; } } Write-Host "Done.";``` Add dummy resource file values for manifest
```batchfile @@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 -or $args.Length -gt 2) { Write-Host "Specify an assembly path and an optional output directory."; Exit 1; } $assemblyPath = $args[0]; $outputDirectory = "."; if ($args.Length -eq 2) { $outputDirectory = $args[1]; } $eventSourceType = [System.Diagnostics.Tracing.EventSource]; $assembly = [System.Reflection.Assembly]::LoadFrom($args[0]); $types = $assembly.GetTypes(); foreach ($type in $types) { if ($type.IsSubclassOf($eventSourceType)) { Write-Host "Found type '$type'."; $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, "NOT-USED"); $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man"; Write-Host "Writing manifest to '$fileName'..."; $text | Out-File $fileName; } } Write-Host "Done."; ```
214b2eab-3f98-4af7-aecd-852ccf651809
{ "language": "Batchfile" }
```batchfile 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 .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1 ``` Switch back to Ninja as generator on win
```batchfile 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 Release --verbose ninja install if errorlevel 1 exit 1 cd .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1 ```
ff4763e8-d79a-45de-ae0a-969cb63a7add
{ "language": "Batchfile" }
```batchfile ``` Add android sdk upload script.
```batchfile 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 ```
c601b9d9-5b28-4821-9088-087b2287eb9d
{ "language": "Batchfile" }
```batchfile 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``` Add newline to end of file
```batchfile 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 ```
92bc07c2-451c-4436-9ed0-3ba690355673
{ "language": "Batchfile" }
```batchfile @echo off @rem Run from the root of master to deploy the currently built contents @rem of the out\ directory to PPE or PROD. PPE or PROD must be the @rem first parameter. setlocal set _env=%~1 if "%_env%"=="PPE" goto :StartDeployment if "%_env%"=="PROD" goto :StartDeployment echo ERROR: You must specify a deployment environment PPE or PROD exit /b 1 :StartDeployment @echo ================================================================= @echo %_env% Deployment @echo Checking out Deploy%_env% branch which is configured in @echo Azure App Service to automatically deploy to the %_env% @echo ZombAttack site. @echo ================================================================= call git checkout Deploy%_env% if ERRORLEVEL 1 echo ERROR: Git checkout failed && exit /b 1 @echo ================================================================= @echo Copying build in the out\ directory to the %_env% deployment @echo directory. @echo ================================================================= robocopy.exe out\. Deployed\. /s /mir if ERRORLEVEL 8 echo ERROR: Robocopy failed with errorlevel %ERRORLEVEL%. && exit /b 1 @echo ================================================================= @echo Committing and pushing copied deployment. @echo ================================================================= call git add Deployed/* call git commit -am "Deploy %_env%" call git push --set-upstream origin Deploy%_env% exit /b 0 ``` Make deployment script more resilient
```batchfile @echo off @rem Run from the root of master to deploy the currently built contents @rem of the out\ directory to PPE or PROD. PPE or PROD must be the @rem first parameter. setlocal set _env=%~1 if "%_env%"=="PPE" goto :StartDeployment if "%_env%"=="PROD" goto :StartDeployment echo ERROR: You must specify a deployment environment PPE or PROD exit /b 1 :StartDeployment @echo ================================================================= @echo %_env% Deployment @echo Checking out Deploy%_env% branch which is configured in @echo Azure App Service to automatically deploy to the %_env% @echo ZombAttack site. @echo ================================================================= call git checkout Deploy%_env% if ERRORLEVEL 1 echo ERROR: Git checkout failed && exit /b 1 call git pull if ERRORLEVEL 1 echo ERROR: Git pull failed && exit /b 1 call git reset --hard origin/Deploy%_env% if ERRORLEVEL 1 echo ERROR: Git reset failed && exit /b 1 @echo ================================================================= @echo Copying build in the out\ directory to the %_env% deployment @echo directory. @echo ================================================================= robocopy.exe out\. Deployed\. /s /mir if ERRORLEVEL 8 echo ERROR: Robocopy failed with errorlevel %ERRORLEVEL%. && exit /b 1 @echo ================================================================= @echo Committing and pushing copied deployment. @echo ================================================================= call git add Deployed/* call git commit -am "Deploy %_env%" call git push --set-upstream origin Deploy%_env% exit /b 0 ```
316f9c2e-bd34-45be-afc2-06ee9499afcb
{ "language": "Batchfile" }
```batchfile ``` Add batch file to build optimized version on win32
```batchfile cargo build mkdir opt rustc -O --out-dir opt -L target\deps src\rboy.rs rustc -O --out-dir opt -L target\deps -L opt src\bin\rboy.rs ```
af0617c7-2980-48d3-b58d-3faa6ed57dc7
{ "language": "Batchfile" }
```batchfile nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory C:\Users\egger\Workspace\NuGet -Version 0.0.1-alpha ``` Use relative path for local nuspec build script
```batchfile nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory ..\..\NuGet -Version 0.0.1-alpha```
5fb4c69b-24e2-4237-b658-102ed3dfbb01
{ "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 DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli-ci\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json pushd %CD%\cf-cli-binaries 7z x cf-cli-binaries.tgz 7z x cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application ``` Revert "switching to 7z as well, sourceforge still broke"
```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 /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli-ci\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json pushd %CD%\cf-cli-binaries gzip -d cf-cli-binaries.tgz tar -xvf cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application ```
85ab0a82-92cf-4ad1-81fa-947ceb0b4c09
{ "language": "Batchfile" }
```batchfile @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 ``` Fix npm install intermittent failures.
```batchfile @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 ```
a323bba8-db9e-45a0-8cb5-89d931c5c030
{ "language": "Batchfile" }
```batchfile 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_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!components -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln ``` Fix missing files in release ZIP
```batchfile 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_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln "build_tools\7za.exe" d -tzip -r "%releasePath%\shareical_%version%.zip" components ```
d6f59998-567e-46d8-a229-479c6f14a6c1
{ "language": "Batchfile" }
```batchfile 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 ``` Fix build by installing grunt
```batchfile 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 ```
b97ad665-c483-4e67-903e-0f82c4794335
{ "language": "Batchfile" }
```batchfile set CATALINA_HOME=C:\Java\apache-tomcat-7.0.47 set BREEZEJS_TEST=C:\git\Breeze\breeze.js\test\ ``` Set environment variables to Jay's values
```batchfile 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\ ```
e3809e74-58ce-486f-b8b8-56ab06482133
{ "language": "Batchfile" }
```batchfile cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla ``` Store OS X files in zips.
```batchfile 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 ```
5b47032f-a29b-4a7e-8997-c288e6751eed
{ "language": "Batchfile" }
```batchfile ``` Add buildtest batch file for Windows
```batchfile @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 -------------------------------------------------------------------------- call :Main %%A %%B %%C echo -------------------------------------------------------------------------- ))) goto :eof :Main set PYVERSION=%1 set MPICONF=%2 set COMPILER=%3 echo Py: %PYVERSION% - MPI: %MPICONF% - CC: %COMPILER% set PYTHONDIR=C:\Python%PYVERSION% set PYTHON="%PYTHONDIR%\python.exe" set MPIDIR= if %MPICONF%==deinompi set MPIDIR=%ProgramFiles%\DeinoMPI if %MPICONF%==mpich2_win set MPIDIR=%ProgramFiles%\MPICH2 if %MPICONF%==msmpi set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK set MPIEXEC="%MPIDIR%\bin\mpiexec.exe" %PYTHON% setup.py -q clean --all %PYTHON% setup.py -q build --mpi=%MPICONF% --compiler=%COMPILER% %PYTHON% setup.py -q install --home=%TEMP% %PYTHON% setup.py -q clean --all %MPIEXEC% -n 2 %PYTHON% test\runalltest.py -q --path=%TEMP%\lib\python del /S /Q %TEMP%\lib\python > NUL rmdir /S /Q %TEMP%\lib\python\mpi4py goto :eof ```
a92c5701-d497-45a7-b3ec-6e00dece381d
{ "language": "Batchfile" }
```batchfile @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 ``` Move mare build directory to Build/Debug
```batchfile @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 ```
497a630b-1c5a-4f23-b576-8604633be2db
{ "language": "Batchfile" }
```batchfile @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 %GEOS_HEADERS%\platform.h.vc %GEOS_HEADERS%\platform.h COPY capi\geos_c.h.in capi\geos_c.h ``` Add step generating geos_svn_revision.h template with revision 0
```batchfile @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 %GEOS_HEADERS%\platform.h.vc %GEOS_HEADERS%\platform.h COPY capi\geos_c.h.in capi\geos_c.h @ECHO #define GEOS_SVN_REVISION 0 > geos_svn_revision.h```
211bbc21-c5a7-433c-8d85-080cbe24c563
{ "language": "Batchfile" }
```batchfile ``` Add a CI build script
```batchfile 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```
d98e87c5-9a30-4d47-8734-6e9bb1c0f336
{ "language": "Batchfile" }
```batchfile 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 killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed ``` Change environment variables in stop.bat file.
```batchfile 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 KDBAPPCONFIG=%TORQHOME%\appconfig 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 killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed ```
da43d3f3-3650-48b2-a431-9d4b9a7f188d
{ "language": "Batchfile" }
```batchfile 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-console.exe -targetargs:".\NUnit.Tests1\bin\Release\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user .\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml ``` Change nunit argument to Debug
```batchfile 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-console.exe -targetargs:".\NUnit.Tests1\bin\Debug\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user .\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml ```