doc_id
stringlengths
36
36
metadata
dict
input
stringlengths
28
4.3k
output
stringlengths
11
5.45k
733b03f4-cf70-461b-a8c7-f904e0239963
{ "language": "Batchfile" }
```batchfile SET BIN=%CD%\bin SET PATH=%BIN%;%PATH% del /F /Q windows_app_lifecycle.tgz rmdir /S /Q packages nuget restore || exit /b 1 MSBuild WindowsCircus.sln /t:Rebuild /p:Configuration=Release || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Builder.Tests\bin\Release\BuilderTests.dll || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Launcher.Tests\bin\Release\LauncherTests.dll || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe WebAppServer.Tests\bin\Release\WebAppServer.Tests.dll || exit /b 1 bsdtar -czvf windows_app_lifecycle.tgz --exclude log -C Builder\bin . -C ..\..\Launcher\bin . -C ..\..\Healthcheck\bin . -C ..\..\WebAppServer\bin . || exit /b 1 ``` Add back installation of windows features to build script
```batchfile SET BIN=%CD%\bin SET PATH=%BIN%;%PATH% :: enable some features SET dism=%WINDIR%\SysNative\dism.exe %dism% /online /Enable-Feature /FeatureName:IIS-WebServer /All /NoRestart %dism% /online /Enable-Feature /FeatureName:IIS-WebSockets /All /NoRestart %dism% /online /Enable-Feature /FeatureName:Application-Server-WebServer-Support /FeatureName:AS-NET-Framework /All /NoRestart %dism% /online /Enable-Feature /FeatureName:IIS-HostableWebCore /All /NoRestart del /F /Q windows_app_lifecycle.tgz rmdir /S /Q packages nuget restore || exit /b 1 MSBuild WindowsCircus.sln /t:Rebuild /p:Configuration=Release || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Builder.Tests\bin\Release\BuilderTests.dll || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe Launcher.Tests\bin\Release\LauncherTests.dll || exit /b 1 packages\nspec.0.9.68\tools\NSpecRunner.exe WebAppServer.Tests\bin\Release\WebAppServer.Tests.dll || exit /b 1 bsdtar -czvf windows_app_lifecycle.tgz --exclude log -C Builder\bin . -C ..\..\Launcher\bin . -C ..\..\Healthcheck\bin . -C ..\..\WebAppServer\bin . || exit /b 1 ```
efbcdbc4-5901-47c8-9e2b-6df2655cbac5
{ "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/b3494d6fc023f34cc0dded832110b608635cca40 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 kuduscript for function changes
```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/b1c12f132cf357238672dd57cd7213b1f282123a 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 ```
38ff2da8-ac6c-46cb-82f1-12826191789f
{ "language": "Batchfile" }
```batchfile ``` Create bat as sh might not be available
```batchfile call conda create -n %1 python call activate %1 call conda install -c conda-forge gmpy2 call pip install -r requirements.txt call python setup.py %2 call python -m ipykernel install --user```
abeac9f0-92d6-4909-8e23-5b6e5c8c26e6
{ "language": "Batchfile" }
```batchfile # Assume zip install layout. and MYSQL_INSTALL_ROOT environment variable points to the root directory of the installation IF "%MYSQL_INSTALL_ROOT%"=="" set MYSQL_INSTALL_ROOT=C:\mysql\mariadb-5.5.28a-winx64\mariadb-5.5.28a-winx64\ set BINDIR=%MYSQL_INSTALL_ROOT%\bin set CERTDIR=%MYSQL_INSTALL_ROOT%\mysqltest\std_data start %BINDIR%\mysqld.exe --console --max_allowed_packet=1G --enable-named-pipe --socket=JDBC-test-socket --ssl-ca=%CERTDIR%\cacert.pem --ssl-cert=%CERTDIR%\server-cert.pem --ssl-key=%CERTDIR%\server-key.pem timeout 20 call mvn exec:exec package -Dpackage-source call %BINDIR%\mysqladmin -uroot shutdown``` Fix build/test script on Windows
```batchfile REM Assume zip install layout. and MYSQL_INSTALL_ROOT environment variable points to the root directory of the installation IF "%MYSQL_INSTALL_ROOT%"=="" set MYSQL_INSTALL_ROOT=C:\mysql\mariadb-5.5.28a-winx64\mariadb-5.5.28a-winx64\ set BINDIR=%MYSQL_INSTALL_ROOT%\bin set CERTDIR=%MYSQL_INSTALL_ROOT%\mysqltest\std_data start %BINDIR%\mysqld.exe --console --max_allowed_packet=1G --enable-named-pipe --socket=JDBC-test-socket --ssl-ca=%CERTDIR%\cacert.pem --ssl-cert=%CERTDIR%\server-cert.pem --ssl-key=%CERTDIR%\server-key.pem timeout 20 call mvn exec:exec package -Dpackage-source call %BINDIR%\mysqladmin -uroot shutdown```
b9dfa96a-a41d-435c-aac1-6eaddf533281
{ "language": "Batchfile" }
```batchfile ``` Create a non-portable bat file for compiling the shader files
```batchfile T:/Applications/VulkanSDK/1.0.61.1/Bin/glslangValidator.exe -V -o ../source/core/visualizer/shaders/fullscreen_triangle_vs.spv -S vert ../source/core/visualizer/shaders/fullscreen_triangle_vs.glsl T:/Applications/VulkanSDK/1.0.61.1/Bin/glslangValidator.exe -V -o ../source/core/visualizer/shaders/final_resolve_ps.spv -S frag ../source/core/visualizer/shaders/final_resolve_ps.glsl ```
a8c06eb5-056f-47e8-b816-d9d5c20c524e
{ "language": "Batchfile" }
```batchfile ``` Add VSCode python env switch batch file.
```batchfile @echo off set v_params=%* set v_params=%v_params:\=/% set v_params=%v_params:c:=/mnt/c% set v_params=%v_params:"=\"% bash.exe -c "python3 %v_params%"```
99b20df5-f8b0-41e8-9848-7dd6d2cd3732
{ "language": "Batchfile" }
```batchfile @ECHO OFF IF NOT EXIST virtualenv GOTO DIRNOTEXISTS :DIREXISTS CALL virtualenv\scripts\activate SET PYTHONPATH=%CD%\submodule\s3g;%CD%\src\main\python;%PYTHONPATH% REM EXIT /B 0 easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\mock-1.0.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\lockfile-0.9.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\python_daemon-1.6-py2.7.egg easy_install -q submodule\conveyor_bins\python\argparse-1.2.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\unittest2-0.5.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg GOTO DONE :DIRNOTEXISTS IF "%1" == "" GOTO DEFAULTPY set PYTHON=%1 GOTO VIRTUALENV :DEFAULTPY set PYTHON=python :VIRTUALENV %PYTHON% virtualenv.py --extra-search-dir=submodule/conveyor_bins/python --never-download virtualenv GOTO DIREXISTS :DONE ``` Put quotes around PYTHONPATH to handle the case where there's a space in the name
```batchfile @ECHO OFF IF NOT EXIST virtualenv GOTO DIRNOTEXISTS :DIREXISTS CALL virtualenv\scripts\activate SET PYTHONPATH=%CD%\submodule\s3g;%CD%\src\main\python;%PYTHONPATH% REM EXIT /B 0 easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\mock-1.0.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\lockfile-0.9.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\python_daemon-1.6-py2.7.egg easy_install -q submodule\conveyor_bins\python\argparse-1.2.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\unittest2-0.5.1-py2.7.egg easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg GOTO DONE :DIRNOTEXISTS IF "%1" == "" GOTO DEFAULTPY set PYTHON=%1 GOTO VIRTUALENV :DEFAULTPY set PYTHON=python :VIRTUALENV "%PYTHON%" virtualenv.py --extra-search-dir=submodule/conveyor_bins/python --never-download virtualenv GOTO DIREXISTS :DONE ```
887a86b1-c0c8-4aec-a95a-8fd1380d1213
{ "language": "Batchfile" }
```batchfile @ECHO OFF SETLOCAL SET EL=0 ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SET PLATFORM=x64 SET CONFIGURATION=Release ::SET LOCAL_DEV=1 FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH% ::SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.1.0-win32-x86\bin;%PATH% SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.4.0-win32-x86\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force IF %ERRORLEVEL% NEQ 0 GOTO ERROR CALL appveyor-build.bat IF %ERRORLEVEL% NEQ 0 GOTO ERROR GOTO DONE :ERROR ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ECHO ERRORLEVEL^: %ERRORLEVEL% SET EL=%ERRORLEVEL% :DONE ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EXIT /b %EL% ``` Remove commented out line in windows build script. History is what git is for.
```batchfile @ECHO OFF SETLOCAL SET EL=0 ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SET PLATFORM=x64 SET CONFIGURATION=Release ::SET LOCAL_DEV=1 FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH% SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.4.0-win32-x86\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force IF %ERRORLEVEL% NEQ 0 GOTO ERROR CALL appveyor-build.bat IF %ERRORLEVEL% NEQ 0 GOTO ERROR GOTO DONE :ERROR ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ECHO ERRORLEVEL^: %ERRORLEVEL% SET EL=%ERRORLEVEL% :DONE ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EXIT /b %EL% ```
0fba70b1-68fe-404d-aa91-90e93bf2206e
{ "language": "Batchfile" }
```batchfile ``` Add a batch file to automate compiling the Windows Help File (CHM)
```batchfile @echo off REM Setup for running on Neil Mitchell's machine REM To run on other machines, install the appropriate things and REM Change the environment variables at the top REM REQUIRES: REM Internet Connection REM sed REM -------------------------------------------------------------------------- REM Parameter section REM xsltproc location (http://www.zlatkovic.com/libxml.en.html) set XSLTPROC=xsltproc REM Docbook location (no \ slashes, all must be /) (http://docbook.sourceforge.net/) set DOCBOOK=d:/bin/docbook-xsl-1.60.1/htmlhelp/htmlhelp.xsl REM Html Help Workshop (http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en) set HTMLHELP="c:\Program Files\HTML Help Workshop\hhc.exe" REM -------------------------------------------------------------------------- mkdir users_guide_windows > nul pushd users_guide_windows REM First check the users guide is closed if not exist hugs98.chm goto done del hugs98.chm if not exist hugs98.chm goto done echo You have the .chm file still open, please close it first goto finished :done echo Generating HTML %XSLTPROC% %DOCBOOK% ../users_guide/users_guide.xml copy ..\users_guide\*.png *.png copy ..\users_guide\*.css *.css echo Patching HTML ren *.html *.h for %%i in (*.h) do sed "s/<title>/<link rel='stylesheet' type='text\/css' href='hugs-ug.css'><title>/" %%i > %%itml echo Generating CHM %HTMLHELP% htmlhelp.hhp ren htmlhelp.chm hugs98.chm :finished popd echo Finished ```
6916cd68-f25d-47de-867e-3d515b3bbd9d
{ "language": "Batchfile" }
```batchfile @echo off :: Dependencies set PYBLISH_BASE=%~dp0git\pyblish-base set PYBLISH_MAYA=%~dp0git\pyblish-maya set PYBLISH_NUKE=%~dp0git\pyblish-nuke set PYBLISH_QML=%~dp0git\pyblish-qml set PYBLISH_LITE=%~dp0git\pyblish-lite set MINDBENDER_CORE=%~dp0git\mindbender-core set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects set PATH=%~dp0bin\windows\syncthing;%PATH% set PATH=%~dp0bin\windows\python36;%PATH% set PATH=%~dp0bin\windows;%PATH% set PATH=%~dp0bin;%PATH% set PYTHONPATH=%MINDBENDER_LAUNCHER%;%PYTHONPATH% :: --------------------------------------------------------- :: :: Edit here :: :: --------------------------------------------------------- if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE% python -u -m launcher --root %MINDBENDER_PROJECTS%``` Set Default GUI to Pyblish QML
```batchfile @echo off :: Dependencies set PYBLISH_BASE=%~dp0git\pyblish-base set PYBLISH_MAYA=%~dp0git\pyblish-maya set PYBLISH_NUKE=%~dp0git\pyblish-nuke set PYBLISH_QML=%~dp0git\pyblish-qml set PYBLISH_LITE=%~dp0git\pyblish-lite set MINDBENDER_CORE=%~dp0git\mindbender-core set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects set PATH=%~dp0bin\windows\syncthing;%PATH% set PATH=%~dp0bin\windows\python36;%PATH% set PATH=%~dp0bin\windows;%PATH% set PATH=%~dp0bin;%PATH% set PYTHONPATH=%MINDBENDER_LAUNCHER%;%PYTHONPATH% if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE% :: --------------------------------------------------------- :: :: Edit here :: :: --------------------------------------------------------- set PYBLISHGUI=pyblish_qml python -u -m launcher --root %MINDBENDER_PROJECTS%```
55d1c3d0-8b36-4a1e-bc75-39f2f76db9d8
{ "language": "Batchfile" }
```batchfile rmdir %~dp0current-release\windows /s mkdir %~dp0current-release\windows cd %~dp0current-release\src\dbtk python setup.py py2exe move dist\dbtk.exe %~dp0current-release\windows rmdir build dist /s ``` Update Windows build script to remove __init__.pyc.
```batchfile rmdir %~dp0current-release\windows /s mkdir %~dp0current-release\windows cd %~dp0current-release\src\dbtk python setup.py py2exe move dist\dbtk.exe %~dp0current-release\windows rmdir build dist /s del __init__.pyc```
97c4cc91-3a58-4ea2-a582-a1bd465cb978
{ "language": "Batchfile" }
```batchfile @echo off setlocal cd "%~dp0" chcp 1252 > nul if exist tools\NUnit.Runners goto :test for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i if "%nuget%"=="" goto :nonuget md tools nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory tools || exit /b 1 move .\tools\NUnit.Runners.2.6.4 .\tools\NUnit.Runners if not %errorlevel%==0 exit /b %errorlevel% :test call build /v:m ^ && .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Debug\net40\MoreLinq.Test.dll ^ && .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Release\net40\MoreLinq.Test.dll ^ && .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Debug\net40-client\MoreLinq.Test.dll ^ && .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Release\net40-client\MoreLinq.Test.dll goto :EOF :nonuget echo NuGet executable not found in PATH echo For more on NuGet, see http://nuget.codeplex.com exit /b 2``` Test script review for redundancies
```batchfile @echo off pushd "%~dp0" call :main %* popd goto :EOF :main setlocal set NUNIT_CONSOLE_PATH=tools\NUnit.Runners\tools\nunit-console.exe if exist %NUNIT_CONSOLE_PATH% goto :test-all for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i if "%nuget%"=="" goto :nonuget nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory tools || exit /b 1 move tools\NUnit.Runners.2.6.4 tools\NUnit.Runners if not %errorlevel%==0 exit /b %errorlevel% :test-all call build /v:m ^ && call :test net40 ^ && call :test net40 ^ && call :test net40-client ^ && call :test net40-client goto :EOF :test setlocal %NUNIT_CONSOLE_PATH% MoreLinq.Test\bin\Release\%1\MoreLinq.Test.dll goto :EOF :nonuget echo NuGet executable not found in PATH echo For more on NuGet, see http://nuget.codeplex.com exit /b 2```
26864c89-222d-424e-ae37-7d5370f8ec2f
{ "language": "Batchfile" }
```batchfile ``` Add template for building msbuild projects
```batchfile :: Generic script template for building Visual Studio projects using MSBuild. @echo off setlocal set config=%1 if NOT defined config ( set config=Debug ) set sku=%2 if NOT defined sku ( set sku=pc ) :: Map sku to VS platform config set sku_platform=%sku% if %sku% == pc ( set sku_platform=Win32 ) else if %sku% == ps3 ( set sku_platform=PS3 ) else if %sku% == Xbox360 ( set sku_platform="Xbox 360" ) set project=%3 if NOT defined project ( :: TODO: Update this with your default project name. set project=game_name ) set work_dir=%4 if NOT defined work_dir ( :: TODO: Update this with your project path. set work_dir=c:\p4\%project% ) set vcproj=%5 if NOT defined vcproj ( :: TODO: Update this with your project naming scheme. set vcproj=%project%_%sku%.vcxproj ) set log_file=%TEMP%\build_%project%_%sku%.log call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 >NUL pushd %work_dir% :: /verbosity:quiet - squelch nonessential build output (so we don't see build step errors, etc). :: /property:GenerateFullPaths=true to make sure we get paths that vim can use. :: Use tee so we can see the build log while it's building if we want. msbuild /nologo /v:quiet /p:GenerateFullPaths=true /p:Configuration="%config%" /p:Platform="%sku_platform%" %vcproj% | tee %log_file% :: Output logfile so it's in vim quickfix for easy jumping. echo %log_file%(0): Build Completed: %DATE% %TIME% popd ```
79817d02-10e4-4ab3-824d-a83a9496508a
{ "language": "Batchfile" }
```batchfile @echo off REM Installs Cygwin with a minimal package requirement for Kickboxer REM Cy Rossignol <[email protected]> REM Exit codes: SET CYGWIN_INSTALLED=0 SET CYGWIN_NOT_INSTALLED=1 CD %CYGDIR% %CYGWIN_SETUP% --quiet-mode --no-admin --no-shortcuts ^ --site http://mirrors.kernel.org/sourceware/cygwin/ ^ --site rsync://mirrors.kernel.org/sourceware/cygwin/ ^ --root %CYGDIR% ^ --local-package-dir %CYGDIR%\packages ^ --categories Base ^ --packages openssh >nul IF %ERRORLEVEL% EQU 0 EXIT /B %CYGWIN_INSTALLED% EXIT /B %CYGWIN_NOT_INSTALLED% ``` Add git to default cygwin installation
```batchfile @echo off REM Installs Cygwin with a minimal package requirement for Kickboxer REM Cy Rossignol <[email protected]> REM Exit codes: SET CYGWIN_INSTALLED=0 SET CYGWIN_NOT_INSTALLED=1 CD %CYGDIR% %CYGWIN_SETUP% --quiet-mode --no-admin --no-shortcuts ^ --site http://mirrors.kernel.org/sourceware/cygwin/ ^ --site rsync://mirrors.kernel.org/sourceware/cygwin/ ^ --root %CYGDIR% ^ --local-package-dir %CYGDIR%\packages ^ --categories Base ^ --packages git openssh >nul IF %ERRORLEVEL% EQU 0 EXIT /B %CYGWIN_INSTALLED% EXIT /B %CYGWIN_NOT_INSTALLED% ```
8573cbc7-9f4d-4d02-928b-8fedd86007fb
{ "language": "Batchfile" }
```batchfile @echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.1 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive ``` Use ILRepack.MSBuild.Task 1.1.2 from sympa public myget feed
```batchfile @echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.2 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive ```
99980987-3923-473c-bff7-f128804087b8
{ "language": "Batchfile" }
```batchfile @echo off echo. echo --- StartNode---------------------------------------- if "%1" == "" goto usage goto doit :usage echo. echo Start a new Node echo - 1 : the url of the node to create echo. echo ex : startNode rmi://localhost/node1 echo ex : startNode jini://localhost/node2 echo. goto end :doit SETLOCAL call init.bat %JAVA_CMD% org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6 ENDLOCAL :end echo. echo --------------------------------------------------------- ``` Change the script to be able to launch it when clicking on it
```batchfile @echo off echo. echo --- StartNode---------------------------------------- if "%1" == "" goto usage goto doit :usage echo. echo Start a new Node echo - 1 : the url of the node to create echo. echo ex : startNode rmi://localhost/node1 echo ex : startNode jini://localhost/node2 echo. echo Node started with a random name echo. goto doit :doit SETLOCAL call init.bat %JAVA_CMD% org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6 ENDLOCAL :end echo. echo --------------------------------------------------------- ```
ec50bda0-e395-4404-939a-0c5a807b4cc8
{ "language": "Batchfile" }
```batchfile @echo off set current_dir=%~dp0\.. cd %current_dir% set _JAVACMD=java.exe if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe set HOST=0.0.0.0 set PORT=8080 set LOGGING_LEVEL=WARN rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n "%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar" org.springframework.boot.loader.JarLauncher``` Support for plugins in Windows
```batchfile @echo off set current_dir=%~dp0\.. cd %current_dir% set _JAVACMD=java.exe if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe set HOST=0.0.0.0 set PORT=8080 set LOGGING_LEVEL=WARN rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n "%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar;plugin\*" org.springframework.boot.loader.JarLauncher```
91b72bec-df33-4178-afa9-8055b5188b17
{ "language": "Batchfile" }
```batchfile ``` Add global variables to file
```batchfile @ECHO OFF :USAGE :START :INITIALIZE SETLOCAL ENABLEDELAYEDEXPANSION SET GLOBALS_FILE=%1 SET VAR_NAME=%2 SET VALUE=%3 :CODE IF NOT EXIST %GLOBALS_FILE% ( COPY /Y NUL %GLOBALS_FILE% > NUL 2>&1 ) ECHO %VAR_NAME% %VALUE% >> %GLOBALS_FILE% :RETURN ENDLOCAL :EOF @ECHO ON ```
11cfb218-b59d-4a17-803a-409dd3f68df6
{ "language": "Batchfile" }
```batchfile ``` Add script to remove Windows 10 old user account pictures
```batchfile @ECHO OFF SETLOCAL SETLOCAL EnableExtensions EnableDelayedExpansion SET /P name="Enter your Windows username: " ECHO You have entered [%name%] SET /P answer="Do you want to continue (Y/n)? " IF /I {!answer!}=={n} (GOTO :EOF) IF /I {!answer!}=={no} (GOTO :EOF) DEL "C:\Users\%name%\AppData\Roaming\Microsoft\Windows\AccountPictures\*.accountpicture-ms" ECHO All old user accounts pictures have been deleted ENDLOCAL```
ea96ac09-6327-49ae-a98f-41706e2c8b3f
{ "language": "Batchfile" }
```batchfile ``` Add automated Windows build script using msbuild
```batchfile @echo off REM Automated Windows build script for nomlib -- windev.local REM NOTE: This script is intended to be ran from the project's root REM directory, i.e.: %HOME%/Projects/nomlib.git REM virgo.local source repository unison nomlib IF NOT EXIST build mkdir build REM pushd build cd build if errorlevel 0 call ..\bin\msbuild_gen.bat Debug if errorlevel 0 call ..\bin\msbuild_build.bat Debug if errorlevel 0 call ..\bin\msbuild_install.bat Debug REM popd ```
86e5df7f-ca0f-4120-8cd2-583cc6c3e8e3
{ "language": "Batchfile" }
```batchfile @ECHO OFF TITLE Windows Driver Kit 7.1.0 REM set target=i386 set target=amd64 set DDK=C:\WinDDK\7600.16385.1 set MSVC=%DDK%\bin\x86\%target% set incl=/I"%DDK%\inc\crt" /I"%DDK%\inc\api" set libs=/LIBPATH:"%DDK%\lib\crt\%target%" set C_FLAGS=/c /Wall /O1 /Os /Ob1 /Oi /Oy /GS- /MD /TC /Fa set LINK_FLAGS=%libs% /DLL /NOENTRY /FILEALIGN:512 /MERGE:.rdata=.text %MSVC%\cl.exe %CD%\keyboard.c %incl% %C_FLAGS% /link %LINK_FLAGS% %MSVC%\link.exe %LINK_FLAGS% /SUBSYSTEM:CONSOLE,5.2 keyboard.obj pause ``` Make it easier to test 32-bit builds.
```batchfile @ECHO OFF TITLE Windows Driver Kit 7.1.0 set target=amd64 REM set target=i386 set DDK=C:\WinDDK\7600.16385.1 set MSVC=%DDK%\bin\x86\amd64 set incl=/I"%DDK%\inc\crt" /I"%DDK%\inc\api" set libs=/LIBPATH:"%DDK%\lib\crt\%target%" set C_FLAGS=/c /Wall /O1 /Os /Ob1 /Oi /Oy /GS- /MD /TC /Fa set LINK_FLAGS=%libs% /DLL /NOENTRY /FILEALIGN:512 /MERGE:.rdata=.text %MSVC%\cl.exe %CD%\keyboard.c %incl% %C_FLAGS% /link %LINK_FLAGS% %MSVC%\link.exe %LINK_FLAGS% /SUBSYSTEM:CONSOLE,5.2 keyboard.obj pause ```
dad3c9cf-8824-4aca-8997-03705683fc2d
{ "language": "Batchfile" }
```batchfile @echo off echo Update environment... echo Update Ruby... call gem update --system echo Update Ruby Sass... call gem update sass echo Update Bourbon... call gem update bourbon call gem update neat call gem update bitters echo Update Grunt... call npm update grunt-cli -g echo Install project... call npm install --save-dev pause``` Remove Ruby update from unstall
```batchfile @echo off echo Update Grunt... call npm update grunt-cli -g echo Install project... call npm install --save-dev pause```
5d3a10fd-ec44-4f43-8cf8-04ef6270e9f0
{ "language": "Batchfile" }
```batchfile @ECHO OFF REM $Id$ REM Bat script building libHDF5 dependency automatically REM Author: Peter Nordin [email protected] REM Date: 2015-07-06 set dirname=hdf5 REM Automatic code starts here echo. echo ====================== echo Building 64-bit version of FMILibrary echo ====================== set OLDPATH=%PATH% call setHopsanBuildPaths.bat REM We don want msys in the path so we have to set it manually set PATH=%mingw_path%;%cmake_path%;%OLDPATH% cd %dirname% mkdir build cd build cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DCMAKE_INSTALL_PREFIX="../install" ../ mingw32-make.exe -j4 mingw32-make.exe install echo. echo Done pause``` Enable hdf5 1_8_18 to build by turning of tests, examples and multi-core build
```batchfile @ECHO OFF REM $Id$ REM Bat script building libHDF5 dependency automatically REM Author: Peter Nordin [email protected] REM Date: 2015-07-06 set dirname=hdf5 REM Automatic code starts here echo. echo ====================== echo Building the HDF5 library and tools echo ====================== set OLDPATH=%PATH% call setHopsanBuildPaths.bat REM We don want msys in the path so we have to set it manually set PATH=%mingw_path%;%cmake_path%;%OLDPATH% cd %dirname% mkdir hopsanbuild cd hopsanbuild cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DBUILD_TESTING=OFF -DHDF5_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX="../install" ../ REM DO NOT enable multi-core build (make -j4), we must build sequentially mingw32-make.exe mingw32-make.exe install cd .. echo. echo Done pause```
ee281066-c2eb-4884-ab85-c4f6bfa23bd4
{ "language": "Batchfile" }
```batchfile mkdir build #mkdir 3rdparty\build Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T #Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T IF %ERRORLEVEL% LSS 8 goto build goto :eof :build exit 0 ``` Correct mistake in windows bat file
```batchfile mkdir build REM mkdir 3rdparty\build Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T REM Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T IF %ERRORLEVEL% LSS 8 goto build goto :eof :build exit 0 ```
e14976c4-5f35-469d-bb79-aca09975dee4
{ "language": "Batchfile" }
```batchfile @ECHO OFF msbuild /v:m /m /nologo dirs.proj /t:Rebuild FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO ( CALL :Pack "%%A" ) GOTO :EOF :Pack "NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~dp0..\bin\Debug\AnyCPU\%~n1"``` Fix issue where CBT.NuGet.dll wasn't included in package because BinDir contained .."
```batchfile @ECHO OFF msbuild /v:m /m /nologo dirs.proj /t:Rebuild FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO ( CALL :Pack "%%A" "%~dp0.." ) GOTO :EOF :Pack "NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~f2\bin\Debug\AnyCPU\%~n1"```
652d8ecd-d96c-4f09-9b4f-65e107c70983
{ "language": "Batchfile" }
```batchfile cd %RECIPE_DIR%\.. %PYTHON% make_version.py %PYTHON% setup.py install --single-version-externally-managed --record=record.txt ``` Remove make_version from windows' recipe
```batchfile cd %RECIPE_DIR%\.. %PYTHON% setup.py install --single-version-externally-managed --record=record.txt ```
316d6124-4098-4d61-a962-d6a4673b08e0
{ "language": "Batchfile" }
```batchfile ``` Add script to launch the test suite with VC++
```batchfile REM Execute the test suite for Microsoft Visual Studio REM REM Load Micosoft Visual Studio environement file. IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 ) IF EXIST "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ( call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 ) REM Remove previous results DEL *.log *.dat REM List the expected failure set "expectedFailure=test-msnapshot.c" REM Perform for each test for %%f in (test-*.c) do ( echo Testing %%f REM Copy the test file as a C++ file as CL.EXE only support C++ file copy %%f test.cpp if ERRORLEVEL 1 EXIT /B 1 REM Compile the test suite REM /experimental:preprocessor is mandatory to have a compliant preprocessor REM /Zc:__cplusplus is needed to report the real value of __cplusplus, so that M*LIB uses the C++ atomic, and not its emulation. cl.exe /I.. /O2 /std:c++14 /Zc:__cplusplus /experimental:preprocessor test.cpp > %%f.log 2>&1 if ERRORLEVEL 1 ( type %%f.log echo BUILD ERROR for %%f if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1 ) REM Execute it test.exe >> %%f.log 2>&1 if ERRORLEVEL 1 ( type %%f.log echo RUN ERROR for %%f if /i "%%f" NEQ "%expectedFailure%" EXIT /B 1 ) type %%f.log ) exit /B 0 ```
962e3e59-731d-45e4-bcec-e35f4e18f658
{ "language": "Batchfile" }
```batchfile @ECHO off IF NOT "x%1" == "x" GOTO :%1 GOTO :tiny :large ECHO "Building large" cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild GOTO :build :tiny ECHO "Building tiny" cmake -H. -Bbuild GOTO :build :build cmake --build build --config Release -- /maxcpucount COPY build\Release\luvi.exe . GOTO :end :test SET LUVI_APP=samples\test.app luvi.exe SET LUVI_TARGET=test.exe luvi.exe SET "LUVI_APP=" SET "LUVI_TARGET=" test.exe DEL /Q test.exe GOTO :end :clean IF EXIST build RMDIR /S /Q build IF EXIST luvi.exe DEL /F /Q luvi.exe GOTO :end :publish ECHO "Building all versions" git submodule update --init --recursive CALL make.bat clean CALL make.bat tiny CALL make.bat test COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe CALL make.bat clean CALL make.bat large CALL make.bat test COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe CD luvi-binaries git pull git add Windows git commit git push CD .. :end ``` Use 64-bit build for windows (assuming community or pro edition)
```batchfile @ECHO off IF NOT "x%1" == "x" GOTO :%1 GOTO :tiny :large ECHO "Building large" cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild -G"Visual Studio 12 2013 Win64" GOTO :build :tiny ECHO "Building tiny" cmake -H. -Bbuild -G"Visual Studio 12 2013 Win64" GOTO :build :build cmake --build build --config Release -- /maxcpucount COPY build\Release\luvi.exe . GOTO :end :test SET LUVI_APP=samples\test.app luvi.exe SET LUVI_TARGET=test.exe luvi.exe SET "LUVI_APP=" SET "LUVI_TARGET=" test.exe DEL /Q test.exe GOTO :end :clean IF EXIST build RMDIR /S /Q build IF EXIST luvi.exe DEL /F /Q luvi.exe GOTO :end :publish ECHO "Building all versions" git submodule update --init --recursive CALL make.bat clean CALL make.bat tiny CALL make.bat test COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe CALL make.bat clean CALL make.bat large CALL make.bat test COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe CD luvi-binaries git pull git add Windows git commit git push CD .. :end ```
34c9dc7e-efa4-413f-aaab-9089f53db7ed
{ "language": "Batchfile" }
```batchfile @echo Off set config=%1 if "%config%" == "" ( set config=Release ) set version=1.0 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=nuget ) %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\paymentwall.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false mkdir Build mkdir Build\lib mkdir Build\lib\net40 %nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%"``` Update bat file by new NuGet version
```batchfile @echo Off set config=%1 if "%config%" == "" ( set config=Release ) set version=1.0 if not "%PackageVersion%" == "" ( set version=%PackageVersion% ) set nuget= if "%nuget%" == "" ( set nuget=nuget ) %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\paymentwall.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false mkdir Build mkdir Build\lib mkdir Build\lib\net40 %nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -OutputDirectory Build -Version %version% -p Configuration="%config%" ```
f0cdf61b-c349-400a-8180-a6d0a0f83644
{ "language": "Batchfile" }
```batchfile md assets\Data xcopy ..\Bin\Data\*.* assets\Data /S /E /C /Y md assets\CoreData xcopy ..\Bin\CoreData\*.* assets\CoreData /S /E /C /Y ``` Delete HLSL directory when copying Android assets.
```batchfile md assets\Data xcopy ..\Bin\Data\*.* assets\Data /S /E /C /Y md assets\CoreData xcopy ..\Bin\CoreData\*.* assets\CoreData /S /E /C /Y rd /S /Q assets\CoreData\Shaders\HLSL ```
eda8df37-1a22-4bb2-98d9-81d72dfc8e61
{ "language": "Batchfile" }
```batchfile ``` Add windows build batch file
```batchfile :: Packs and installs the extension, nodejs extension rebuild is done automatically :: on jupyterlab startup, when the new extension is detected or was removed CALL "%PREFIX%\Scripts\jupyter-labextension" install . --no-build || EXIT /B 1 :: Shared file not to be included. del /Q "%PREFIX%\share\jupyter\lab\settings\build_config.json" || EXIT /B 1 IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL% ```
a3b72551-6470-454f-a276-16be2b4e1757
{ "language": "Batchfile" }
```batchfile @echo off @set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@" @endlocal & ( @set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH% @REM Run any activate scripts @if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" ( @pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" @for %%g in (*.bat) do @call "%%g" @popd ) ) %*``` Fix conda wrapper for Windows
```batchfile @echo off @REM This script was based on the original conda activate.bat @setlocal @set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@" @set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH% @REM Run any activate scripts @if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" ( @pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" @for %%g in (*.bat) do @call "%%g" @popd ) @REM Execute the given command %* @endlocal ```
e61f3c24-6ad9-4b6b-99fd-3dce2c53f934
{ "language": "Batchfile" }
```batchfile java -classpath "lib/antlr.jar;lib/concurrent.jar;lib/db3-3-11.jar;lib/icu4j.jar;lib/jakarta-oro-2.0.5.jar;lib/jena.jar;lib/junit.jar;lib/log4j-1.2.7.jar;lib/commons-logging-api.jar;lib/commons-logging.jar;lib/rdf-api-2001-01-19.jar;lib/xercesImpl.jar;lib/xml-apis.jar" junit.textui.TestRunner com.hp.hpl.jena.test.TestPackage ``` Remove inclusion db3-3-11.jar in the classpath
```batchfile java -classpath "lib/antlr.jar;lib/concurrent.jar;lib/icu4j.jar;lib/jakarta-oro-2.0.5.jar;lib/jena.jar;lib/junit.jar;lib/log4j-1.2.7.jar;lib/commons-logging-api.jar;lib/commons-logging.jar;lib/rdf-api-2001-01-19.jar;lib/xercesImpl.jar;lib/xml-apis.jar" junit.textui.TestRunner com.hp.hpl.jena.test.TestPackage ```
1e04f8dc-68e8-4935-92df-6858d0b60532
{ "language": "Batchfile" }
```batchfile c:\python25\python.exe setup.py bdist_wininst c:\python25\python.exe setup.py sdist --formats=gztar,zip copy dist\*.* \\ironpaw\pub\jasons\arcrest copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\ hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt ``` Copy tests to ironpaw too
```batchfile c:\python25\python.exe setup.py bdist_wininst c:\python25\python.exe setup.py sdist --formats=gztar,zip copy dist\*.* \\ironpaw\pub\jasons\arcrest copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\ copy tests.py \\ironpaw\pub\jasons\arcrest\tests.py hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt ```
1059428e-6d57-46c6-bf03-e9e40c412f42
{ "language": "Batchfile" }
```batchfile @echo off :Build cls if not exist tools\FAKE.Core\tools\Fake.exe ( "tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease" ) SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") SET BUILDMODE="Release" IF NOT [%2]==[] (set BUILDMODE="%2") "tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%" rem Bail if we're running a TeamCity build. if defined TEAMCITY_PROJECT_NAME goto Quit rem Bail if we're running a MyGet build. if /i "%BuildRunner%"=="MyGet" goto Quit rem Loop the build script. set CHOICE=nothing echo (Q)uit, (Enter) runs the build again set /P CHOICE= if /i "%CHOICE%"=="Q" goto :Quit GOTO Build :Quit exit /b %errorlevel% ``` Check if we are already on the minimal FAKE version - otherwise patch it.
```batchfile @echo off SET MinimalFAKEVersion=639 SET FAKEVersion=1 cls if exist tools\FAKE.Core\tools\PatchVersion.txt ( FOR /F "tokens=*" %%i in (tools\FAKE.Core\tools\PatchVersion.txt) DO (SET FAKEVersion=%%i) ) if %MinimalFAKEVersion% lss %FAKEVersion% goto Build if %MinimalFAKEVersion%==%FAKEVersion% goto Build "tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease" :Build cls SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") SET BUILDMODE="Release" IF NOT [%2]==[] (set BUILDMODE="%2") "tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%" rem Bail if we're running a TeamCity build. if defined TEAMCITY_PROJECT_NAME goto Quit rem Bail if we're running a MyGet build. if /i "%BuildRunner%"=="MyGet" goto Quit rem Loop the build script. set CHOICE=nothing echo (Q)uit, (Enter) runs the build again set /P CHOICE= if /i "%CHOICE%"=="Q" goto :Quit GOTO Build :Quit exit /b %errorlevel% ```
569a89fa-1999-4562-829e-daa158ca8106
{ "language": "Batchfile" }
```batchfile @echo off if "%OS%" == "Windows_NT" setlocal if not defined JAVA_HOME goto no_java_home if not defined VTPASS_HOME goto no_vtpass_home set JAVA=%JAVA_HOME%\bin\java set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar set CLASSPATH=%LIBDIR%\vt-dictionary-3.0-SNAPSHOT.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR% call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %* goto end :no_vtpass_home echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path. goto end :no_java_home echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path. :end ``` Update script for latest vt-dictionary.
```batchfile @echo off if "%OS%" == "Windows_NT" setlocal if not defined JAVA_HOME goto no_java_home if not defined VTPASS_HOME goto no_vtpass_home set JAVA=%JAVA_HOME%\bin\java set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar set LIBDIR=%VTPASS_HOME%\lib set CLASSPATH=%LIBDIR%\vt-dictionary-3.0.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR% call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %* goto end :no_vtpass_home echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path. goto end :no_java_home echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path. :end ```
fa8be705-d2fb-42f7-b4ad-e3f49cb3f992
{ "language": "Batchfile" }
```batchfile @ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" java -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON ``` Use JAVA_HOME for schema creation
```batchfile @ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON ```
9bd1f0bc-7de2-4ce8-8f29-2c074883b489
{ "language": "Batchfile" }
```batchfile @echo off setlocal set PATH=C:\Program Files (x86)\Git\bin\;%PATH% call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 REM call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86 set DXROOT=C:\Program Files\Sandcastle %~dp0\External\nant\bin\nant %*``` Switch to Visual Studio 2012 for build release
```batchfile @echo off setlocal set PATH=C:\Program Files (x86)\Git\bin\;%PATH% REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86 call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86 set DXROOT=C:\Program Files\Sandcastle %~dp0\External\nant\bin\nant %*```
e828af3a-edd0-46f5-b970-477768e7f0df
{ "language": "Batchfile" }
```batchfile git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench git commit -a -m "Update" && git push || git checkout master ``` Build more apps on deploy.
```batchfile git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/taxon mol/app/users git commit -a -m "Update" && git push || git checkout master ```
b0020d7a-b0df-4bb7-86cf-d50fa3ebe294
{ "language": "Batchfile" }
```batchfile ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file> ::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file> ::Set the path below as you need and then run this bat to copy the files and make them debuggeable SET KSPPATH=C:\work\builds\Kerbal Space Program ::Set another path in case you run two KSP instances otherwise leave empty SET KSPPATH2=C:\work\builds\Kerbal Space Program2``` Use the default directories for KSP in the master branch's batch files.
```batchfile ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file> ::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file> ::Set the path below as you need and then run this bat to copy the files and make them debuggeable ::SET KSPPATH=C:\work\builds\Kerbal Space Program ::Set another path in case you run two KSP instances otherwise leave empty ::SET KSPPATH2=C:\work\builds\Kerbal Space Program2```
b8c341ff-fb98-48e1-adac-005458b6aea6
{ "language": "Batchfile" }
```batchfile "C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^ --js=translate.js ^ --js=jquery/jquery-1.11.2.js ^ --js=jquery/jquery-ui.1.11.2.min.js ^ --js=jquery/jquery.qtip.js ^ --js=jquery/jquery.blockUI.js ^ --js=jquery/jquery.color.js ^ --js=jquery/jquery.autocomplete.js ^ --js=jquery/jquery.tablesorter.js ^ --js=jquery/jquery.flot.js ^ --js=jquery/jquery.ui.position.js ^ --js=jquery/jquery.contextMenu.js ^ --js=jquery/jquery.hotkeys.js ^ --js=jquery/jsBezier-0.6-min.js ^ --js=jquery/jquery.jsPlumb-1.7.5.js ^ --js=jquery/jquery.placeholder.js ^ --js=handlebars-v2.0.0.js ^ --js=dropdown.js ^ --source_map_format=V3 ^ --create_source_map thirdparty.compiled.js.map ^ --js_output_file=thirdparty.compiled.js echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js @pause``` Remove another jsBeizer reference as we weren't using it
```batchfile "C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^ --js=translate.js ^ --js=jquery/jquery-1.11.2.js ^ --js=jquery/jquery-ui.1.11.2.min.js ^ --js=jquery/jquery.qtip.js ^ --js=jquery/jquery.blockUI.js ^ --js=jquery/jquery.color.js ^ --js=jquery/jquery.autocomplete.js ^ --js=jquery/jquery.tablesorter.js ^ --js=jquery/jquery.flot.js ^ --js=jquery/jquery.ui.position.js ^ --js=jquery/jquery.contextMenu.js ^ --js=jquery/jquery.hotkeys.js ^ --js=jquery/jquery.jsPlumb-1.7.5.js ^ --js=jquery/jquery.placeholder.js ^ --js=handlebars-v2.0.0.js ^ --js=dropdown.js ^ --source_map_format=V3 ^ --create_source_map thirdparty.compiled.js.map ^ --js_output_file=thirdparty.compiled.js echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js @pause```
92de78cf-501b-49ed-bc1a-77a2b829ea2b
{ "language": "Batchfile" }
```batchfile REM This assumes that libutil.a has been previously build with cmake and is REM available in ..\build del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i REM set USE_PRMAN=1 REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build\ set USE_DELIGHT=1 set RUBY_VERSION=180 ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build\ nmake clean all ``` Build using utils library being build with CMake
```batchfile REM This assumes that libutil.a has been previously build with cmake and is REM available in ..\build del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i REM set USE_PRMAN=1 REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils set USE_DELIGHT=1 set RUBY_VERSION=180 ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils nmake all ```
f83520ea-15c3-4699-a2db-df61641e072b
{ "language": "Batchfile" }
```batchfile "C:\Program Files (x86)\Python 3.5\python.exe" setup.py build_ext --inplace "C:\Program Files\Python 3.5\python.exe" setup.py build_ext --inplace``` Make cython always rebuild modules on windows
```batchfile rmdir /s /q build del vapoursynth.*.pyd "C:\Program Files (x86)\Python 3.5\python.exe" setup.py build_ext --inplace "C:\Program Files\Python 3.5\python.exe" setup.py build_ext --inplace pause```
dffb02ca-0748-4200-a670-f96bcb06097a
{ "language": "Batchfile" }
```batchfile setlocal enableextensions if "%PY_VER%" == "3.4" ( set MSVC_VER="10.0" ) else ( if "%PY_VER%" == "3.5" ( set MSVC_VER="14.0" ) else ( set MSVC_VER="9.0" ) ) set EXTRA_ARGS="" if %ARCH% EQU 64 ( set EXTRA_ARGS="address-model=64" ) python -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt set /p PYTHON_INCLUDE_DIR=<temp.txt call bootstrap.bat bjam.exe --debug-configuration ^ --user-config="%RECIPE_DIR%/user-config-win.jam" ^ -sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^ -sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^ link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL exit 0 ``` Use conda Python rather than system
```batchfile setlocal enableextensions if "%PY_VER%" == "3.4" ( set MSVC_VER="10.0" ) else ( if "%PY_VER%" == "3.5" ( set MSVC_VER="14.0" ) else ( set MSVC_VER="9.0" ) ) set EXTRA_ARGS="" if %ARCH% EQU 64 ( set EXTRA_ARGS="address-model=64" ) %PYTHON% -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt set /p PYTHON_INCLUDE_DIR=<temp.txt call bootstrap.bat bjam.exe --debug-configuration ^ --user-config="%RECIPE_DIR%/user-config-win.jam" ^ -sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^ -sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^ link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL exit 0 ```
d8e18125-c359-4429-99ba-84d285dbbd33
{ "language": "Batchfile" }
```batchfile @echo off REM Reference: http://www.wilsonmar.com/1envvars.htm set home=%USERPROFILE% copy /Y .\dist\ctags_lang %home%\.ctags copy /Y .vimrc %home%\.vimrc copy /Y .vimrc.plugins %home%\.vimrc.plugins copy /Y .vimrc.local %home%\.vimrc.local copy /Y .vimrc.plugins.local %home%\.vimrc.plugins.local rmdir /S /Q %home%\.vim xcopy /Y /E vimfiles %home%\.vim\ @echo on ``` Add quotation mark to windows path
```batchfile @echo off REM Reference: http://www.wilsonmar.com/1envvars.htm set home=%USERPROFILE% copy /Y .\dist\ctags_lang "%home%\.ctags" copy /Y .vimrc "%home%\.vimrc" copy /Y .vimrc.plugins "%home%\.vimrc.plugins" copy /Y .vimrc.local "%home%\.vimrc.local" copy /Y .vimrc.plugins.local "%home%\.vimrc.plugins.local" rmdir /S /Q "%home%\.vim" xcopy /Y /E vimfiles "%home%\.vim\" @echo on ```
227e229b-dbf7-4def-9696-d67bc801fa3b
{ "language": "Batchfile" }
```batchfile :: Checks in which DB2 version the utility will be installed. :: DB2 v10.1 is the default version. if "%1" EQU "" goto v10.1 if /I "%1" EQU "-v10.1" goto v10.1 if /I "%1" EQU "-v9.7" goto v9.7 :: DB2 v10.1. :v10.1 db2 -tf Tables.sql db2 -tf Objects.sql db2 -td@ -f Tools.sql db2 -td@ -f AdminHeader.sql db2 -td@ -f AdminBody.sql db2 -td@ -f LOG.sql db2 -td@ -f GET_LOGGER.sql db2 -td@ -f Trigger.sql goto exit :: DB2 v9.7 :v9.7 echo Installing application for DB2 v9.7 db2 -tf Tables.sql db2 -tf Objects.sql db2 -td@ -f Tools.sql db2 -td@ -f AdminHeader.sql db2 -td@ -f AdminBody.sql db2 -td@ -f LOG.sql db2 -td@ -f GET_LOGGER_v9_7.sql db2 -td@ -f Trigger.sql goto exit :exit``` Install checks for a connection
```batchfile :: Checks if there is already a connection established db2 connect if %ERRORLEVEL% EQU 0 ( goto version ) else ( echo Please connect to a database before the execution of the installation. goto exit ) :version :: Checks in which DB2 version the utility will be installed. :: DB2 v10.1 is the default version. if "%1" EQU "" goto v10.1 if /I "%1" EQU "-v10.1" goto v10.1 if /I "%1" EQU "-v9.7" goto v9.7 :: DB2 v10.1. :v10.1 db2 -tf Tables.sql db2 -tf Objects.sql db2 -td@ -f Tools.sql db2 -td@ -f AdminHeader.sql db2 -td@ -f AdminBody.sql db2 -td@ -f LOG.sql db2 -td@ -f GET_LOGGER.sql db2 -td@ -f Trigger.sql goto exit :: DB2 v9.7 :v9.7 echo Installing application for DB2 v9.7 db2 -tf Tables.sql db2 -tf Objects.sql db2 -td@ -f Tools.sql db2 -td@ -f AdminHeader.sql db2 -td@ -f AdminBody.sql db2 -td@ -f LOG.sql db2 -td@ -f GET_LOGGER_v9_7.sql db2 -td@ -f Trigger.sql goto exit :exit```
473ba9d8-eb0a-4bb3-8ca4-266780569c33
{ "language": "Batchfile" }
```batchfile ``` Add batch file to autobuild spotify-json
```batchfile cd lib\spotify-json git submodule update --init rmdir build32 /S /Q mkdir build32 cd build32 cmake .. -DBoost_NO_BOOST_CMAKE=TRUE ^ -DBOOST_ROOT=..\..\..\packages\boost.1.62.0.0\lib\native cmake --build . --config Debug cmake --build . --config Release cd ..\..\..```
d8759b74-02b4-40d0-b0c6-3d83e8a7b434
{ "language": "Batchfile" }
```batchfile @echo off setlocal echo ==================== echo TWC -- Build Batch echo ==================== echo. set DEFINES= set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204 set LIBS= libcurl.lib IF NOT EXIST build mkdir build pushd build cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2 call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c IF NOT EXIST win64 mkdir win64 lib /nologo twitter.obj /out:win64/libtwc.lib :: IF NOT EXIST win32 mkdir win32 :: lib /nologo twitter.obj /out:win32/libtwc.lib cp ../code/twitter_api.h ../code/twitter.h ../code/types.h ../include cp win64/libtwc.lib ../lib/win64/libtwc.lib popd ``` Use xcopy instead of cp
```batchfile @echo off setlocal echo ==================== echo TWC -- Build Batch echo ==================== echo. set DEFINES= set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204 set LIBS= libcurl.lib IF NOT EXIST build mkdir build pushd build cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2 call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c IF NOT EXIST win64 mkdir win64 lib /nologo twitter.obj /out:win64/libtwc.lib :: IF NOT EXIST win32 mkdir win32 :: lib /nologo twitter.obj /out:win32/libtwc.lib xcopy ..\code\twitter_api.h ..\code\twitter.h ..\code\types.h ..\include xcopy win64\libtwc.lib ..\lib\win64\libtwc.lib popd ```
e2d1a82d-cafd-4771-88b3-18babcb2e1b9
{ "language": "Batchfile" }
```batchfile @mkdir .shake 2> nul @set ghcArgs=--make ^ -Wall ^ src/Main.hs ^ -isrc ^ -rtsopts ^ -with-rtsopts=-I0 ^ -outputdir=.shake ^ -j ^ -O ^ -o .shake/build @set shakeArgs=--lint ^ --directory ^ ".." ^ %* @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains @set GHC_PACKAGE_PATH= @ghc %ghcArgs% && .shake\build %shakeArgs% ``` Reset GHC_PACKAGE_PATH varialbe (5th try).
```batchfile @mkdir .shake 2> nul @set ghcArgs=--make ^ -Wall ^ src/Main.hs ^ -isrc ^ -rtsopts ^ -with-rtsopts=-I0 ^ -outputdir=.shake ^ -j ^ -O ^ -o .shake/build @set shakeArgs=--lint ^ --directory ^ ".." ^ %* @ghc %ghcArgs% @if %ERRORLEVEL% EQU 0 ( @rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains @set GHC_PACKAGE_PATH= @.shake\build %shakeArgs% ) ```
d3c59f1c-fee3-4d7e-95a1-17f517792f87
{ "language": "Batchfile" }
```batchfile ``` Add a DOS .bat script to run CI build
```batchfile set MSBUILD_EXE=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild cd 3rd-party\UnitTest++ %MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Debug /target:Clean %MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Release /target:Clean %MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Debug %MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Release cd ..\.. cmake CMakeLists.txt %MSBUILD_EXE% libamqp.sln /p:Configuration=Debug /target:Clean %MSBUILD_EXE% libamqp.sln /p:Configuration=Release /target:Clean %MSBUILD_EXE% libamqp.sln /p:Configuration=Debug ```
4320c2aa-b30b-4d9c-b5a8-9104b8e92c4c
{ "language": "Batchfile" }
```batchfile @echo off if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1 for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf =^> %%i) ``` Change arrow to match original.
```batchfile @echo off if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1 for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf -^> %%i) ```
18a4e15f-690a-4c94-8bde-d1313d1c1317
{ "language": "Batchfile" }
```batchfile @echo off setlocal Rem ----- set the current working dir as the PROJECT_HOME variable ---- call "%FORREST_HOME%\bin\setpwdvar.bat" set PROJECT_HOME="%PWD%" Rem ----- use the location of this script to infer $FORREST_HOME ------- set FORREST_HOME=%~dp0\.. Rem ----- set the ant file to use -------------------------------------- set ANTFILE="%FORREST_HOME%\forrest.build.xml" Rem ----- Save old ANT_HOME -------------------------------------------- set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME="%FORREST_HOME%\ant" echo "Apache Forrest. Run 'forrest -projecthelp' to list options" echo Rem ----- call ant.. --------------------------------------------------- call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9 Rem ---- Restore old ANT_HOME set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH% endlocal ``` Stop script breaking on XP. Thanks to Chanshin Lee
```batchfile @echo off setlocal Rem ----- set the current working dir as the PROJECT_HOME variable ---- call "%FORREST_HOME%\bin\setpwdvar.bat" set PROJECT_HOME="%PWD%" Rem ----- use the location of this script to infer $FORREST_HOME ------- set FORREST_HOME=%~dp0\.. Rem ----- set the ant file to use -------------------------------------- set ANTFILE="%FORREST_HOME%\forrest.build.xml" Rem ----- Save old ANT_HOME -------------------------------------------- set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME="%FORREST_HOME%\ant" echo "Apache Forrest. Run 'forrest -projecthelp' to list options" Rem ----- call ant.. --------------------------------------------------- call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9 Rem ---- Restore old ANT_HOME set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH% endlocal ```
4e2c9980-d19c-46f0-86f1-b038df08715d
{ "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\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd .. ``` Remove w9xopen.exe and add README.txt to Windows build
```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 .. ```
c5ee752c-5d58-4b4d-89f8-5cf1c98b9e2c
{ "language": "Batchfile" }
```batchfile ``` Add release tool for windows
```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\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd .. ```
04807969-a7b8-4373-a954-7abc110f58a0
{ "language": "Batchfile" }
```batchfile /* REXX script to get the svn revision and display it. */ Trace o fn = 'SVN.REV' Address System 'svnversion . | rxqueue > nul:' /* default version to 0, if svnversion doesn't exist or no .svn here */ ver = 0 If Queued() \= 0 Then Do /* Using PARSE PULL preserves case */ /* If it is a double value get the first value only */ Parse Pull sval ver ':' . If Strip( ver ) = '' Then ver = sval If ver = 'exported' Then ver = 0 If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 ) End Call Stream fn, 'C', 'OPEN' Call Lineout fn,'VERREV='ver Call Stream fn, 'C', 'CLOSE' Exit 0 ``` Address Sysem isn't working for me in the REXX script on OS/2. Also the line endings were not being interpretted by CMD.EXE.
```batchfile /* REXX script to get the svn revision and display it. */ Trace o fn = 'SVN.REV' 'svnversion . | rxqueue > nul:' /* default version to 0, if svnversion doesn't exist or no .svn here */ ver = 0 If Queued() \= 0 Then Do /* Using PARSE PULL preserves case */ /* If it is a double value get the first value only */ Parse Pull sval ver ':' . If Strip( ver ) = '' Then ver = sval If ver = 'exported' Then ver = 0 If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 ) End Call Stream fn, 'C', 'OPEN' Call Lineout fn,'VERREV='ver Call Stream fn, 'C', 'CLOSE' Exit 0 ```
b1d317b1-e35d-407e-916a-a2fe37c03485
{ "language": "Batchfile" }
```batchfile @echo off setlocal call before-branch.bat echo. echo. :: crate new feature branch locally echo Create new Feature branch locally SET /P feature_branch_name="Please enter the name of the feature branch: feature-" SET /P feature_version="Please enter the version of the feature:" git checkout -b feature-%feature_branch_name% develop echo. echo. :: increase version on feature branch echo Increasing version of feature branch call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true echo. echo. echo Commiting update POM Files :: commit the pom file with the updated version git commit -m "changing feature version to new version" *pom.xml echo ... done echo. echo. :: publish the feature branch to github, so that everybody sees it echo Pushing Feature branch to Github SET /P confirm="Should the feature branch be pushed to gitgub [y/n]" IF "%confirm%" == "y" git push origin feature-%feature_branch_name% endlocal :exit echo Feature Branch batch job ended ``` Update of script on dev branch
```batchfile @echo off setlocal call script\before-branch.bat echo. echo. :: crate new feature branch locally echo Create new Feature branch locally SET /P feature_branch_name="Please enter the name of the feature branch: feature-" SET /P feature_version="Please enter the version of the feature:" git checkout -b feature-%feature_branch_name% develop echo. echo. :: increase version on feature branch echo Increasing version of feature branch call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true echo. echo. echo Commiting update POM Files :: commit the pom file with the updated version git commit -m "changing feature version to new version" *pom.xml echo ... done echo. echo. :: publish the feature branch to github, so that everybody sees it echo Pushing Feature branch to Github SET /P confirm="Should the feature branch be pushed to gitgub [y/n]" IF "%confirm%" == "y" git push origin feature-%feature_branch_name% endlocal :exit echo Feature Branch batch job ended ```
34886a29-bbd4-40d0-8a93-e45976320c4b
{ "language": "Batchfile" }
```batchfile @echo off rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1 rem It has some key differences for use in Windows CI for TP5+ rem - Daemon is NOT debug rem - Daemon is renamed to dockernssm.exe to spot easily in task manager rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines rem - TEMP and TMP are redirected to d:\temp (SSD drive) if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" ( set TEMP=d:\temp set TMP=d:\temp mkdir d:\temp > nul 2>&1 if exist d:\nssmdaemon (goto :runproduction) mkdir d:\nssmdaemon :runproduction copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=d:\nssmdaemon --pidfile=d:\nssmdaemon\daemon.pid ) ELSE ( if exist c:\nssmdaemon (goto :runlocal) mkdir c:\nssmdaemon :runlocal copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=c:\nssmdaemon --pidfile=c:\nssmdaemon\daemon.pid ) ``` Move nssm to \control so only one docker load
```batchfile @echo off rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1 rem It has some key differences for use in Windows CI for TP5+ rem - Daemon is NOT debug rem - Daemon is renamed to dockernssm.exe to spot easily in task manager rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines rem - TEMP and TMP are redirected to d:\temp (SSD drive) if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" ( set TEMP=d:\temp set TMP=d:\temp mkdir d:\temp > nul 2>&1 if exist d:\control (goto :runproduction) mkdir d:\control :runproduction copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=d:\control --pidfile=d:\control\daemon.pid ) ELSE ( if exist c:\control (goto :runlocal) mkdir c:\control :runlocal copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=c:\control --pidfile=c:\control\daemon.pid ) ```
9b411769-840c-43c9-bdfc-4eb5dcaefa7c
{ "language": "Batchfile" }
```batchfile ``` Embed EXE files inside a Batch script
```batchfile @echo off :: :: The Batchography book by Elias Bachaalany :: setlocal enabledelayedexpansion set FN=%TEMP%\evil.tmp call :extract-embedded-bin "%FN%" start %FN% goto :eof :extract-embedded-bin <1=OutFileName> setlocal set MBEGIN=-1 for /f "useback tokens=1 delims=: " %%a in (`findstr /B /N /C:"-----BEGIN CERTIFICATE-----" "%~f0"`) DO ( set /a MBEGIN=%%a-1 ) if "%MBEGIN%"=="-1" ( endlocal exit /b -1 ) :: Delete previous output files if exist "%~1.tmp" del "%~1.tmp" if exist "%~1" del "%~1" for /f "useback skip=%MBEGIN% tokens=* delims=" %%a in ("%~f0") DO ( echo %%a >>"%~1.tmp" ) certutil -decode "%~1.tmp" "%~1" >nul 2>&1 del "%~1.tmp" endlocal exit /b 0 -----BEGIN CERTIFICATE----- TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAsAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5v dCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABdXG3BGT0Dkhk9A5IZPQOS lyIQkh49A5LlHRGSGD0DklJpY2gZPQOSAAAAAAAAAABQRQAATAEBALL6QFcAAAAA AAAAAOAADwELAQUMAAIAAAAAAAAAAAAAEBAAAAAQAAAAIAAAAABAAAAQAAAAAgAA BAAAAAAAAAAEAAAAAAAAAAAgAAAAAgAAAAAAAAIAAAAAABAAABAAAAAAEAAAEAAA AAAAABAAAAAAAAAAAAAAAGwQAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC50ZXh0AAAA 7gAAAAAQAAAAAgAAAAIAAAAAAAAAAAAAAAAAACAAAGAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADSEAAAAAAAALgQAAAAAAAA 6zJEcm9wcGVkIGV4ZWN1dGFibGUATGV0J3MgZG8gbW9yZSBldmlsIHN0dWZmLCBu b3QhAGoAaBIQQABoJRBAAGoA6AcAAABqAOgGAAAA/yUIEEAA/yUAEEAAzMywEAAA AAAAAAAAAADGEAAACBAAAKgQAAAAAAAAAAAAAOAQAAAAEAAAAAAAAAAAAAAAAAAA AAAAAAAAAADSEAAAAAAAALgQAAAAAAAAsQFNZXNzYWdlQm94QQB1c2VyMzIuZGxs AACbAEV4aXRQcm9jZXNzAGtlcm5lbDMyLmRsbAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAA== -----END CERTIFICATE-----```
54e89ba4-8eb8-469a-a25a-51164ac5c8fb
{ "language": "Batchfile" }
```batchfile @echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.62" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start ``` Patch for version 0.63 update
```batchfile @echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.63" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start ```
95b3be59-6018-449f-93d9-ee19d7561aba
{ "language": "Batchfile" }
```batchfile @echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.70" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start ``` Patch for version 0.71 update
```batchfile @echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.71" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start ```
0d45eb12-12a9-4331-aeff-7006a6121370
{ "language": "Batchfile" }
```batchfile @echo off REM Capture parameters set ScriptDir=%~dp0 set SolutionDir=%~1 set AssemblyName=%~2 set NuGetCommand=%ScriptDir%NuGet.exe set VersionInfoCommand=%ScriptDir%VersionInfo.vbs set output=%SolutionDir%Output set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec set nuget_folder=%SolutionDir%.nuget\%AssemblyName% if not exist %nuget_nuspec% ( echo The nuspec file could not be found at: %nuget_nuspec% EXIT /B 1 ) for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i mkdir "%nuget_folder%" > nul 2>&1 del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1 copy "%nuget_nuspec%" "%nuget_folder%" > nul REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output% %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output% rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1 ``` Change to pack with and without symbols
```batchfile @echo off REM Capture parameters set ScriptDir=%~dp0 set SolutionDir=%~1 set AssemblyName=%~2 set NuGetCommand=%ScriptDir%NuGet.exe set VersionInfoCommand=%ScriptDir%VersionInfo.vbs set output=%SolutionDir%Output set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec set nuget_folder=%SolutionDir%.nuget\%AssemblyName% if not exist %nuget_nuspec% ( echo The nuspec file could not be found at: %nuget_nuspec% EXIT /B 1 ) for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i mkdir "%nuget_folder%" > nul 2>&1 del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1 copy "%nuget_nuspec%" "%nuget_folder%" > nul %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output% REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output% rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1 ```
72e4dc56-c83e-44a6-b70f-6b65317b6679
{ "language": "Batchfile" }
```batchfile ``` Add new windows build script
```batchfile set PYTHON=C:\Python27\python set EASY_INSTALL=c:\python27\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH% cd %WORKSPACE% %PYTHON% check_packages.py cd %WORKSPACE% python setup.py build -cmingw32 cd %WORKSPACE% python setup.py docs cd %WORKSPACE% python setup.py bdist_egg --skip-build cd %WORKSPACE%\test %PYTHON% utest_sasview.py cd %WORKSPACE% mkdir sasview-install set PYTHONPATH=%WORKSPACE%\sasview-install;%PYTHONPATH% cd %WORKSPACE% cd dist %EASY_INSTALL% -d ..\sasview-install sasview-3.1.2-py2.7-win32.egg cd %WORKSPACE%\sasview python setup_exe.py py2exe python installer_generator.py "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer.iss cd Output xcopy setupSasView.exe %WORKSPACE%\dist cd %WORKSPACE% ```
0828e9cc-9dbf-4e5c-913f-dca6c82fa823
{ "language": "Batchfile" }
```batchfile git clone https://github.com/Vasar007/TIMLE.git cd SFML mkdir install mkdir build cd build cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE msbuild INSTALL.vcxproj cd ../../ git clone https://github.com/Vasar007/TIMLE.git cd TIMLE mkdir build mkdir build/TIMLE cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install``` Fix clone command for appveyor
```batchfile git clone https://github.com/SFML/SFML.git cd SFML mkdir install mkdir build cd build cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE msbuild INSTALL.vcxproj cd ../../ git clone https://github.com/Vasar007/TIMLE.git cd TIMLE mkdir build mkdir build/TIMLE cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install```
5e3d1c17-566f-48b1-b1ae-e3319943cb57
{ "language": "Batchfile" }
```batchfile ``` Use case 9 script for Windows.
```batchfile call activate cate cate ds make_local esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.1-0.r1 CLOUD_2007 2007 cate ds make_local esacci.OZONE.mon.L3.NP.multi-sensor.multi-platform.MERGED.fv0002.r1 OZONE_2007 2007 mkdir uc09 cd uc09 cate ws init cate res open cloud local.CLOUD_2007 cate res open ozone local.OZONE_2007 cate res set cloud_sub subset_spatial ds=cloud region=0,30,10,40 cate res set ozone_sub subset_spatial ds=ozone region=0,30,10,40 cate res set cloud_res coregister ds_master=ozone_sub ds_slave=cloud_sub cate ws save cate ws close cd .. ```
686ade4f-f7a2-4802-8db2-1c8026721614
{ "language": "Batchfile" }
```batchfile ``` Add Windows batch file to update stdlib.
```batchfile @echo off setlocal if [%1]==[] goto usage set _pyrepo=%1 if not exist "%_pyrepo%\Lib" ( echo "%_pyrepo% does not look like a CPython repo (no Lib directory)." goto :fail ) for /f %%I in ('hg -R "%_pyrepo%" id -i') do set _hgrev=%%I set _stdlibdir=%~dp0 pushd "%_stdlibdir%" git diff-index --quiet HEAD if "%ERRORLEVEL%" NEQ "0" ( echo "There are uncomitted changes. Commit or stash before proceeding." goto :fail ) for /f %%I in ('git rev-parse --abbrev-ref HEAD') do set _curbranch=%%I if "%_curbranch%" NEQ "python-stdlib" ( echo "This should only be run on the python-stdlib branch (on %_curbranch%)." goto :fail ) robocopy "%_pyrepo%\Lib" "%_stdlibdir%Lib" /MIR /R:1 /W:1 /XD plat-* git update-index --refresh -q > NUL git add -A "%_stdlibdir%/Lib" git diff-index --quiet HEAD if "%ERRORLEVEL%" EQU "0" ( echo "No changes found." ) else ( git commit -am "Import python stdlib @ %_hgrev%" ) goto :exit :usage echo %~n0 ^<path^\to^\cpython^> exit /B 1 :fail popd endlocal exit /B 1 :exit popd endlocal```
a85c3cb7-fba2-4bc5-886b-995a8f9b9d85
{ "language": "Batchfile" }
```batchfile @echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION echo.Building the TTR Mouse Click Simulator... echo. REM MSBuild is always installed in the 32-Bit program files folder if "!ProgramFiles(x86)!"=="" ( set "ProgramFiles32Bit=!ProgramFiles!" ) else ( set "ProgramFiles32Bit=!ProgramFiles(x86)!" ) set "BuildExe=!ProgramFiles32Bit!\MSBuild\14.0\Bin\MSBuild.exe" if not exist "!BuildExe!" ( echo.ERROR: MSBuild not found at "!BuildExe!"^^! pause exit /b 1 ) "!BuildExe!" /v:minimal /nologo /p:Configuration=Release "TTMouseclickSimulator\TTMouseclickSimulator.csproj" if not errorlevel 1 ( echo. echo.Build successful^^! ) pause``` Return the exit code from MSBuild.
```batchfile @echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION echo.Building the TTR Mouse Click Simulator... echo. REM MSBuild is always installed in the 32-Bit program files folder if "!ProgramFiles(x86)!"=="" ( set "ProgramFiles32Bit=!ProgramFiles!" ) else ( set "ProgramFiles32Bit=!ProgramFiles(x86)!" ) set "BuildExe=!ProgramFiles32Bit!\MSBuild\14.0\Bin\MSBuild.exe" if not exist "!BuildExe!" ( echo.ERROR: MSBuild not found at "!BuildExe!"^^! pause exit /b 1 ) "!BuildExe!" /v:minimal /nologo /p:Configuration=Release "TTMouseclickSimulator\TTMouseclickSimulator.csproj" if not errorlevel 1 ( echo. echo.Build successful^^! ) pause exit /b !ERRORLEVEL!```
bce01f51-c2d2-4cda-9f17-1e07f64b22ea
{ "language": "Batchfile" }
```batchfile @echo off cls .paket\paket.bootstrapper.exe 0.8.6 if errorlevel 1 ( exit /b %errorlevel% ) .paket\paket.exe install -v if errorlevel 1 ( exit /b %errorlevel% ) packages\FAKE\tools\FAKE.exe build.fsx %*``` Use the latest paket.exe but just restore
```batchfile @echo off cls .paket\paket.bootstrapper.exe if errorlevel 1 ( exit /b %errorlevel% ) .paket\paket.exe restore if errorlevel 1 ( exit /b %errorlevel% ) packages\FAKE\tools\FAKE.exe build.fsx %*```
11768a1e-1466-4727-8535-4bc48fd2dc5e
{ "language": "Batchfile" }
```batchfile ``` Move proto generation into cmake and remove from prepare_build
```batchfile REM Copyright 2022 The Chromium Authors. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. @echo off setlocal REM This script is meant to be run once to setup the example demo agent. REM Run it with one command line argument: the path to a directory where the REM demo agent will be built. This should be a directory outside the SDK REM directory tree. This directory must not already exist. REM REM Once the build is prepared, the demo binary is build using the command REM `cmake --build <build-dir>`, where <build-dir> is the same argument given REM to this script. set BUILD_DIR=%~f1 set DEMO_DIR=%~dp0 call :ABSPATH "%DEMO_DIR%.." ROOT_DIR call :ABSPATH "%ROOT_DIR%\proto" PROTO_DIR echo . echo Root dir: %ROOT_DIR% echo Build dir: %BUILD_DIR% echo Demo dir: %DEMO_DIR% echo Proto dir: %PROTO_DIR% echo . IF exist "%BUILD_DIR%" ( echo. echo ### Directory %1 must not exist. echo. EXIT /b ) mkdir "%BUILD_DIR%" cd /d "%BUILD_DIR%" REM Install vcpkg and use it to install Google Protocol Buffers. cmd/c git clone https://github.com/microsoft/vcpkg cmd/c .\vcpkg\bootstrap-vcpkg.bat -disableMetrics cmd/c .\vcpkg\vcpkg install protobuf:x64-windows REM Generate the build files. set CMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake cmake %DEMO_DIR% echo. echo. echo To build, type: cmake --build "%BUILD_DIR%" echo. exit /b REM Resolve relative path in %1 and set it into variable %2. :ABSPATH set %2=%~f1 exit /b ```
983dd445-ef43-48dc-a0b2-24bc7b9af816
{ "language": "Batchfile" }
```batchfile @echo off reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64 set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe" @IF NOT EXIST %NODE_PATH% ( set NODE_PATH="node.exe" ) %NODE_PATH% "%~dp0\..\lib\resin.js" %* ``` Comment source of Windows arch snippet
```batchfile @echo off :: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64 set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe" @IF NOT EXIST %NODE_PATH% ( set NODE_PATH="node.exe" ) %NODE_PATH% "%~dp0\..\lib\resin.js" %* ```
ca922f32-ea42-456e-8157-8da130f50c17
{ "language": "Batchfile" }
```batchfile @echo off set __VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017 if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd if not "%EnterpriseWDK%"=="" goto ewdk_ready if "%EWDK11_DIR%"=="" goto vs_vars call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd ::call :add_path "%VCToolsRedistDir%onecore\x86\Microsoft.VC142.OPENMP" goto :eof :vs_vars if not "%VSFLAVOR%"=="" goto :knownVS call :checkvs echo USING %VSFLAVOR% Visual Studio :knownVS echo %0: Setting NATIVE ENV for %1 (VS %VSFLAVOR%)... call "%__VS_PATH%\%VSFLAVOR%\VC\Auxiliary\Build\vcvarsall.bat" %1 goto :eof :checkvs set VSFLAVOR=Professional if exist "%__VS_PATH%\Community\VC\Auxiliary\Build\vcvarsall.bat" set VSFLAVOR=Community goto :eof :ewdk_ready echo We are already in EWDK version: %Version_Number% goto :eof :add_path echo %path% | findstr /i /c:"%~dp1" if not errorlevel 1 goto :eof echo Adding path %~dp1 set path=%path%;%~dp1 goto :eof ``` Revert "build: autoselect build env"
```batchfile @echo off if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd if not "%EnterpriseWDK%"=="" goto ready if "%EWDK11_DIR%"=="" set EWDK11_DIR=c:\ewdk11 :: call :add_path "%EWDK11_DIR%\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Redist\MSVC\14.28.29910\onecore\x86\Microsoft.VC142.OPENMP\vcomp140.dll" call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd goto :eof :add_path echo %path% | findstr /i /c:"%~dp1" if not errorlevel 1 goto :eof echo Adding path %~dp1 set path=%path%;%~dp1 goto :eof :ready echo We are already in EWDK version: %Version_Number% goto :eof ```
f54abd77-8b82-48f7-9005-145ff9f98269
{ "language": "Batchfile" }
```batchfile echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y /nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL SLEEP 6 EXIT /B 0 ``` Update to exit if pid has been cleaned and configd is no longer there.
```batchfile echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y /nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL set cntr=0 :LoopStart IF NOT EXIST %cd%\.pid%1 Goto EndClean SLEEP 1 IF %cntr%==5 Goto EndBad set /A cntr=%cntr%+1 Goto LoopStart :EndClean REM Give an extra second to clean up SLEEP 1 EXIT /B 0 :EndBad EXIT /B 1```
d9270dfd-10ff-44f5-8d46-0146c6e5e30f
{ "language": "Batchfile" }
```batchfile set PYTHON=C:\Python27\python.exe set BASE_DIR=[Your email-backup checkout] set OUTPUT_DIR=[Directory to output archive] set EMAIL=[Email address] set PASSWORD=[Password (application specific password for gmail accounts)] set IMAP=[IMAP server address] %python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR% %python% %BASE_DIR%\ebexporter.py -i %OUTPUT_DIR%\%EMAIL% -o %OUTPUT_DIR%\%EMAIL%\Archive.mbox``` Update the windows shell script.
```batchfile set PYTHON=C:\Python27\python.exe set BASE_DIR=[Your email-backup checkout] set OUTPUT_DIR=[Directory to output archive] set EMAIL=[Email address] set PASSWORD=[Password (application specific password for gmail accounts)] set IMAP=[IMAP server address] %python% %BASE_DIR%\ebackup.py -e %EMAIL% -p %PASSWORD% -i %IMAP% -o %OUTPUT_DIR%\Git %python% %BASE_DIR%\ebarchiver.py -i %OUTPUT_DIR%\Git\%EMAIL% -o %OUTPUT_DIR%\Archives\%EMAIL%.zip```
9a0f9f89-e99c-49d8-bae9-9c5d2bdb3030
{ "language": "Batchfile" }
```batchfile git submodule update --init SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit SET GOPATH=%CLIPATH% c:\Go\bin\go build -v -o cf-windows-386.exe main SET GOPATH=c:\Users\Administrator\go SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y SET PATH=%PATH%;%CATSPATH% call %environment.bat cd %CATSPATH% SET CONFIG=%CATSPATH%\config.json %GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack" ``` Add cURL to the path for windows32 CATS tests
```batchfile git submodule update --init SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit SET GOPATH=%CLIPATH% c:\Go\bin\go build -v -o cf-windows-386.exe main SET GOPATH=c:\Users\Administrator\go SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y SET PATH=%PATH%;%CATSPATH%;C:\Program Files\cURL\bin call %environment.bat cd %CATSPATH% SET CONFIG=%CATSPATH%\config.json %GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack" ```
2eb26581-dd46-4a2f-8268-8ebe81875b5f
{ "language": "Batchfile" }
```batchfile @ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln SET VS2015_BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" IF NOT EXIST %VS2015_BUILD_TOOLS_PATH% ( echo In order to build or run this tool you need either Visual Studio 2015 Preview or echo Microsoft Build Tools 2015 Preview tools installed. echo. echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs echo to download either. goto :eof ) IF EXIST %CACHED_NUGET% goto restore echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :restore IF EXIST "%~dp0src\packages" goto build %CACHED_NUGET% restore %SOLUTION_PATH% :build "%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %* ``` Rename variable to not include the VS version
```batchfile @ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" IF NOT EXIST %BUILD_TOOLS_PATH% ( echo In order to build or run this tool you need either Visual Studio 2015 Preview or echo Microsoft Build Tools 2015 Preview tools installed. echo. echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs echo to download either. goto :eof ) IF EXIST %CACHED_NUGET% goto restore echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :restore IF EXIST "%~dp0src\packages" goto build %CACHED_NUGET% restore %SOLUTION_PATH% :build "%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %* ```
7c2a80a9-0514-4b43-8fbe-99e94e353bc5
{ "language": "Batchfile" }
```batchfile @ECHO OFF REM Fetch the DolphinVM binaries from GitHub into the current directory. REM Specify a parameter to fetch a specific version or leave blank to REM get the recommended VM version for this release of the image. FOR /F "usebackq delims=" %%A in (`"git describe --abbrev=0"`) do SET tag=%%A powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*``` Use unannotated tags for fetchvm as github creates these for releases
```batchfile @ECHO OFF REM Fetch the DolphinVM binaries from GitHub into the current directory. REM Specify a parameter to fetch a specific version or leave blank to REM get the recommended VM version for this release of the image. FOR /F "usebackq delims=" %%A in (`"git describe --tags --abbrev=0"`) do SET tag=%%A powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*```
bc4a009d-56ac-4381-a851-0f2854156b64
{ "language": "Batchfile" }
```batchfile rmdir /s /q "configuration\org.eclipse.core.runtime" rmdir /s /q "configuration\org.eclipse.equinox.app" rmdir /s /q "configuration\org.eclipse.osgi" java -ea -Dosgi.classloader.singleThreadLoads=true -XX:+UseCompressedOops -XX:MaxPermSize=128M -XX:+UseParallelGC -Xmx1G -jar plugins\org.eclipse.equinox.launcher.jar -p openmole-plugins -g openmole-plugins-gui %* ``` Remove the compressed oops flag for now.
```batchfile rmdir /s /q "configuration\org.eclipse.core.runtime" rmdir /s /q "configuration\org.eclipse.equinox.app" rmdir /s /q "configuration\org.eclipse.osgi" java -ea -Dosgi.classloader.singleThreadLoads=true -XX:MaxPermSize=128M -XX:+UseParallelGC -Xmx1G -jar plugins\org.eclipse.equinox.launcher.jar -p openmole-plugins -g openmole-plugins-gui %* ```
d1fc0c5d-e42d-41a1-ba93-cbd8c09cdb83
{ "language": "Batchfile" }
```batchfile rem echo off SET mypath=%~dp0 set platformsFolder=platforms set platformName="Visual Studio 14" set folder=%mypath%\%platformsFolder%\%platformName% if not exist %folder% (mkdir %folder%) cd %platformsFolder% rem call cmake cmake.exe .. -G%platformName% cd %mypath% pause``` Use parameter as platform to create project
```batchfile echo off SET mypath=%~dp0 set platformsFolder=platforms set platformName=%1 set folder=%mypath%\%platformsFolder%\%platformName% if not exist %folder% (mkdir %folder%) cd %folder% rem call cmake cmake.exe %mypath% -G%platformName% cd %mypath% pause```
f1043a13-c5dc-4638-a6e7-2e8d69dea783
{ "language": "Batchfile" }
```batchfile mkdir build cd build set BUILD_CONFIG=Release REM Configure step if "%ARCH%"=="32" ( set CMAKE_GENERATOR=Visual Studio 12 2013 ) else ( set CMAKE_GENERATOR=Visual Studio 12 2013 Win64 ) set CMAKE_GENERATOR_TOOLSET=v120_xp REM Reduce build times and package size by removing unused stuff set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_INCLUDE_TESTS=OFF ^ -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF ^ -DLLVM_ENABLE_ASSERTIONS=ON cmake -G "%CMAKE_GENERATOR%" -T "%CMAKE_GENERATOR_TOOLSET%" ^ -DCMAKE_BUILD_TYPE="%BUILD_CONFIG%" -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% %CMAKE_CUSTOM% %SRC_DIR% if errorlevel 1 exit 1 REM Build step cmake --build . --config "%BUILD_CONFIG%" if errorlevel 1 exit 1 REM Install step cmake --build . --config "%BUILD_CONFIG%" --target install if errorlevel 1 exit 1 ``` Upgrade to VS 2015 for llvmdev
```batchfile mkdir build cd build set BUILD_CONFIG=Release REM Configure step if "%ARCH%"=="32" ( set CMAKE_GENERATOR=Visual Studio 14 2015 ) else ( set CMAKE_GENERATOR=Visual Studio 14 2015 Win64 ) set CMAKE_GENERATOR_TOOLSET=v120_xp REM Reduce build times and package size by removing unused stuff set CMAKE_CUSTOM=-DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_INCLUDE_TESTS=OFF ^ -DLLVM_INCLUDE_UTILS=OFF -DLLVM_INCLUDE_DOCS=OFF -DLLVM_INCLUDE_EXAMPLES=OFF ^ -DLLVM_ENABLE_ASSERTIONS=ON cmake -G "%CMAKE_GENERATOR%" -T "%CMAKE_GENERATOR_TOOLSET%" ^ -DCMAKE_BUILD_TYPE="%BUILD_CONFIG%" -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% %CMAKE_CUSTOM% %SRC_DIR% if errorlevel 1 exit 1 REM Build step cmake --build . --config "%BUILD_CONFIG%" if errorlevel 1 exit 1 REM Install step cmake --build . --config "%BUILD_CONFIG%" --target install if errorlevel 1 exit 1 ```
e6dd7e82-6a28-4449-bfc3-7fbb7d8d9670
{ "language": "Batchfile" }
```batchfile @echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error call :NugetRestore Sharpmake.sln win if %errorlevel% NEQ 0 goto error goto success :NugetRestore echo Restoring nuget packages for %~1 set DOTNET_RESTORE=dotnet restore "%~1" if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2 echo %DOTNET_RESTORE% %DOTNET_RESTORE% if %errorlevel% NEQ 0 ( echo ERROR: Failed to restore nuget package for %~1 exit /b 1 ) exit /b 0 @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^^! timeout /t 5 exit /b 0 @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE% ``` Remove extra hat in bootstrap batch file
```batchfile @echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error call :NugetRestore Sharpmake.sln win if %errorlevel% NEQ 0 goto error goto success :NugetRestore echo Restoring nuget packages for %~1 set DOTNET_RESTORE=dotnet restore "%~1" if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2 echo %DOTNET_RESTORE% %DOTNET_RESTORE% if %errorlevel% NEQ 0 ( echo ERROR: Failed to restore nuget package for %~1 exit /b 1 ) exit /b 0 @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^! timeout /t 5 exit /b 0 @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE% ```
33186eb3-a597-45f3-8998-7903a1998575
{ "language": "Batchfile" }
```batchfile set /p Build=<ver.txt echo Building version %Build% fart ..\Properties\AssemblyInfo.cs 1.0.0.0 1.0.%Build% "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV" ..\..\Budford.sln /Rebuild Release call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" set /a Build=%Build%+1 echo %Build% > ver.txt git commit -m "New release" ver.txt git status git push origin master git checkout ..\.. ``` Build script now creates zip
```batchfile set /p Build=<ver.txt echo Building version %Build% fart ..\Properties\AssemblyInfo.cs 1.0.0.0 1.0.%Build% "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV" ..\..\Budford.sln /Rebuild Release call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Users "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Budford.exe "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" CNUSLib.dll "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" discord-rpc.dll set /a Build=%Build%+1 echo %Build% > ver.txt git commit -m "New release" ver.txt git status git push origin master git checkout ..\.. ```
278fbab8-ab23-45eb-be96-38be24e16be6
{ "language": "Batchfile" }
```batchfile set name="%1" set src=%~2 set pub=%~2..\..\..\..\pub echo Copy from %src% echo Copy to %pub% if not exist "%pub%" mkdir "%pub%" :: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S xcopy "%src%*.exe" "%pub%" /D /Y /S xcopy "%src%*.dll" "%pub%" /D /Y /S xcopy "%src%*.config" "%pub%" /D /Y /S xcopy "%src%*.ids" "%pub%" /D /Y /S ``` Make zip archive from release
```batchfile set name="%1" set src=%~2 set pub=%~2..\..\..\..\pub\ set archiv=%pub%\com-kit_%APPVEYOR_BUILD_NUMBER%.zip echo Copy from %src% echo Copy to %pub% if not exist "%pub%" mkdir "%pub%" :: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S ::xcopy "%src%*.exe" "%pub%" /D /Y /S ::xcopy "%src%*.dll" "%pub%" /D /Y /S ::xcopy "%src%*.config" "%pub%" /D /Y /S ::xcopy "%src%*.ids" "%pub%" /D /Y /S pushd "%src%" 7z a "%archiv%" "*.exe" 7z a "%archiv%" "*.dll" 7z a "%archiv%" "*.config" 7z a "%archiv%" "*.ids" -r popd ```
428a5f73-fe71-4b3e-9e29-1aa3f2a8bb07
{ "language": "Batchfile" }
```batchfile @echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x create-config.sh %OUTDIR% %JSENG% ``` Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
```batchfile @echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files :: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. set CYGWIN=nontsec set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x create-config.sh %OUTDIR% %JSENG% ```
0cba186e-8d52-407f-8305-01661422dfa1
{ "language": "Batchfile" }
```batchfile if exist classes rmdir classes /s /q mkdir classes xcopy /E /y src classes\ "%JAVA_HOME%\bin\java" -cp ../../3rdpartypublic/classext/clojure.jar;../MMCoreJ_wrap/MMCoreJ.jar;../../3rdpartypublic/classext/ij.jar;../mmstudio/MMJ_.jar;../../3rdpartypublic/classext/bsh-2.0b4.jar;./src -Dclojure.compile.path=classes clojure.lang.Compile org.micromanager.acq-engine "%JAVA_HOME%\bin\jar" cf MMAcqEngine.jar -C classes\ . copy /Y MMAcqEngine.jar ..\bin_Win32\ copy /Y MMAcqEngine.jar ..\bin_x64\ copy /Y MMAcqEngine.jar ..\Install_Win32\micro-manager\plugins\Micro-Manager" copy /Y MMAcqEngine.jar ..\Install_x64\micro-manager\plugins\Micro-Manager" ``` Use mostly JIT compiling for acq eng.
```batchfile if exist classes rmdir classes /s /q mkdir classes xcopy /E /y src classes\ "%JAVA_HOME%\bin\java" -cp ../../3rdpartypublic/classext/clojure.jar;../MMCoreJ_wrap/MMCoreJ.jar;../../3rdpartypublic/classext/ij.jar;../mmstudio/MMJ_.jar;../../3rdpartypublic/classext/bsh-2.0b4.jar;./src -Dclojure.compile.path=classes clojure.lang.Compile org.micromanager.acq-engine xcopy /E /y src build\ copy classes\org\micromanager\AcquisitionEngine2010.class build\org\micromanager "%JAVA_HOME%\bin\jar" cf MMAcqEngine.jar -C build\ . copy /Y MMAcqEngine.jar ..\bin_Win32\ copy /Y MMAcqEngine.jar ..\bin_x64\ copy /Y MMAcqEngine.jar ..\Install_Win32\micro-manager\plugins\Micro-Manager" copy /Y MMAcqEngine.jar ..\Install_x64\micro-manager\plugins\Micro-Manager" ```
0c713606-bd19-4889-8e59-c14a80ce57b1
{ "language": "Batchfile" }
```batchfile cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla ``` Remove *.res from files zipped.
```batchfile cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla ```
89842544-6aa4-462b-a5fb-1155b01041a6
{ "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 PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET MAVEN_HOME=C:\opt\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;%DOTNET_HOME%;%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %* ``` Update path to Java 8
```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 DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET MAVEN_HOME=C:\opt\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;%DOTNET_HOME%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %* ```
1f3db62a-4f76-44ba-b938-98c3784ed56f
{ "language": "Batchfile" }
```batchfile @echo off cls "..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "-ExcludeVersion" "..\..\packages\FAKE\tools\Fake.exe" build.fsx pause``` Remove ExcludedVersion from nuget package generation command line in buld.bat
```batchfile @echo off cls "..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "..\..\packages\FAKE\tools\Fake.exe" build.fsx pause```
9a670aa0-9a4b-4d6b-b59a-9f79984fddd1
{ "language": "Batchfile" }
```batchfile @echo off set "INCLUDE=%LIBRARY_INC%;%INCLUDE%" set "LIB=%LIBRARY_LIB%;%LIB%" %PYTHON% setup.py build %PYTHON% setup.py install --single-version-externally-managed --record=record.txt``` Copy fftw library to correct file-name
```batchfile @echo off set "INCLUDE=%LIBRARY_INC%;%INCLUDE%" set "LIB=%LIBRARY_LIB%;%LIB%" xcopy %LIBRARY_LIB%\fftw3.lib %LIBRARY_LIB%\libfftw3-3.lib %PYTHON% setup.py build %PYTHON% setup.py install --single-version-externally-managed --record=record.txt```
3c9d0565-e539-4bd6-8845-8d01ec4260b9
{ "language": "Batchfile" }
```batchfile ``` Add setup batchfile for windows (currently quite naive)
```batchfile set vimdir="C:\Program Files - Portable\Vim" REM delete backup files del %vimdir%\_vimrc.bkup del %vimdir%\vimfiles\autoload\pathogen.vim.bkup REM backup existing files move %vimdir%\_vimrc %vimdir%\_vimrc.bkup move %vimdir%\vimfiles\autoload\pathogen.vim %vimdir%\vimfiles\autoload\pathogen.vim.bkup REM hard-link to new files MKLINK /H %vimdir%\_vimrc .vimrc MKLINK /H %vimdir%\vimfiles\autoload\pathogen.vim .vim\autoload\pathogen.vim ```
7474bb9a-247b-4733-9e01-57ad496116d5
{ "language": "Batchfile" }
```batchfile rmdir /S /Q "./build" dotnet restore ./src/Certes/project.json dotnet pack -c release -o ./build/nuget ./src/Certes/project.json dotnet restore ./src/Certes.Cli/project.json dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json @echo off echo dotnet ./bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat @echo on ``` Fix bin path in bat.
```batchfile rmdir /S /Q "./build" dotnet restore ./src/Certes/project.json dotnet pack -c release -o ./build/nuget ./src/Certes/project.json dotnet restore ./src/Certes.Cli/project.json dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json @echo off echo dotnet %%^~dp0/bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat @echo on ```
cf940bd8-bfab-41fa-911f-d10f47e6aa78
{ "language": "Batchfile" }
```batchfile @ECHO OFF REM ========================================================================= REM 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. REM REM ========================================================================= SET SERVICEMIX_BASE=${servicemix.base} SETLOCAL SET SERVICEMIX_HOME=${servicemix.home} %SERVICEMIX_HOME%\bin\servicemix.bat "$*"``` Fix batch file used when generating new instances
```batchfile @ECHO OFF REM ========================================================================= REM 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. REM REM ========================================================================= SET SERVICEMIX_BASE=${servicemix.base} SETLOCAL SET SERVICEMIX_HOME=${servicemix.home} %SERVICEMIX_HOME%\bin\servicemix.bat %*```
f9e1fa5b-f517-4a58-b1b9-2d3969b36e5f
{ "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. 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. @echo on %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib``` Make the web server auto-restart on crash
```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. 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 goto :RESTART ```
0bdbd3c8-b302-48cf-8fb1-f62ea518b1d5
{ "language": "Batchfile" }
```batchfile MSBuild.exe ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause ``` Use absolute path to MSBuild in release script
```batchfile "C:/Program Files (x86)/MSBuild/14.0/bin/amd64/MSBuild.exe" ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause ```
f347601a-57e1-4883-acd7-94885ac47960
{ "language": "Batchfile" }
```batchfile ``` Add Visual C++ installation script
```batchfile :: Windows Installer for Simple 2D :: This script will install includes, libraries, and DLLs for :: building Simple 2D apps. @echo off echo. echo Simple 2D and its dependencies will be installed to: echo %%LOCALAPPDATA%%\simple2d echo Resolving to %LOCALAPPDATA%\simple2d echo. set INPUT= set /p INPUT=Continue? (y/n) %=% if /i "%INPUT%"=="y" goto yes echo. echo Quitting... timeout 3 exit /b 0 :yes echo. & echo Copying... & echo. set S2D_DIR=%LOCALAPPDATA%\simple2d if not exist %S2D_DIR% mkdir %S2D_DIR% xcopy /e /y simple2d\* %S2D_DIR% echo. echo Simple 2D installed successfully! echo Remember to add %%LOCALAPPDATA%%\simple2d to your %%PATH%% echo. pause ```
68f7b78d-e1f1-48e6-bd7d-68d4ebc4fd1c
{ "language": "Batchfile" }
```batchfile mongoimport -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline``` Make a drop before import the data
```batchfile mongoimport --drop -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline```
ae0e2a65-25b9-4ee2-959f-1f6e113c6afa
{ "language": "Batchfile" }
```batchfile set CACHE=C:\cache set CYGWIN_MIRROR=http://cygwin.mirror.constant.com if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64 if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin if not exist %CACHE% mkdir %CACHE% echo Updating Cygwin and installing ninja and test prerequisites %CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^ gcc-objc++,^ gcc-objc,^ libboost-devel,^ libglib2.0-devel,^ ninja,^ python3-pip,^ zlib-devel echo Install done ``` Install gobject-introspection test prerequisites on Cygwin
```batchfile set CACHE=C:\cache set CYGWIN_MIRROR=http://cygwin.mirror.constant.com if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64 if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin if not exist %CACHE% mkdir %CACHE% echo Updating Cygwin and installing ninja and test prerequisites %CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^ gcc-objc++,^ gcc-objc,^ gobject-introspection,^ libboost-devel,^ libglib2.0-devel,^ libgtk3-devel,^ ninja,^ python3-pip,^ vala,^ zlib-devel echo Install done ```
c5bf3a57-5577-4ca8-9155-84f0ea18795c
{ "language": "Batchfile" }
```batchfile @echo off :: Copyright (c) 2011 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal set NACL_SDK_ROOT=%~dp0.. :: Set the PYTHONPATH so we can import SCons modules set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine :: We have to do this because scons overrides PYTHONPATH and does not preserve :: what is provided by the OS. The custom variable name won't be overwritten. set PYMOX=%NACL_SDK_ROOT%\third_party\pymox :: Run the included copy of scons. python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^ --file=build.scons ^ --site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %* ``` Make Visual Studio related warnings go away.
```batchfile @echo off :: Copyright (c) 2011 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal set NACL_SDK_ROOT=%~dp0.. :: Set the PYTHONPATH so we can import SCons modules set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine :: We have to do this because scons overrides PYTHONPATH and does not preserve :: what is provided by the OS. The custom variable name won't be overwritten. set PYMOX=%NACL_SDK_ROOT%\third_party\pymox :: Run the included copy of scons. python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^ --warn no-visual-c-missing ^ --file=build.scons ^ --site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %* ```
6f211089-55cb-4a82-a2ba-51eb97f51343
{ "language": "Batchfile" }
```batchfile @echo off net session >nul 2>&1 if %errorLevel% NEQ 0 ( echo Please run this script with Administrator privileges timeout 10 > NUL EXIT /B 1 ) SET cdpath=%~dp0 echo Setting the system environment variable DOCKER_HOST reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f echo Setting the system environment variable DOCKER_TLS reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f echo Configuring the Docker daemon for TLS if not exist c:\ProgramData\docker\certs.d\ then mkdir c:\ProgramData\docker\certs.d\ xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\ echo Configuring the Docker client to connect using TLS for the current user if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\ xcopy /O %cdpath%client\* c:\Users\%username%\.docker\ echo Restarting Docker net stop Docker net start Docker echo All done. Docker is now configured for TLS. echo Please complete the preparation on the control domain console. timeout 10 > NUL EXIT /b 0 ``` Fix invalid dos script syntax: no then
```batchfile @echo off net session >nul 2>&1 if %errorLevel% NEQ 0 ( echo Please run this script with Administrator privileges timeout 10 > NUL EXIT /B 1 ) SET cdpath=%~dp0 echo Setting the system environment variable DOCKER_HOST reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f echo Setting the system environment variable DOCKER_TLS reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f echo Configuring the Docker daemon for TLS if not exist c:\ProgramData\docker\certs.d\ mkdir c:\ProgramData\docker\certs.d\ xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\ echo Configuring the Docker client to connect using TLS for the current user if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\ xcopy /O %cdpath%client\* c:\Users\%username%\.docker\ echo Restarting Docker net stop Docker net start Docker echo All done. Docker is now configured for TLS. echo Please complete the preparation on the control domain console. timeout 10 > NUL EXIT /b 0 ```
62bed751-3961-44bc-9138-140697a88ab6
{ "language": "Batchfile" }
```batchfile mkdir %DEPLOYMENT% mkdir %DEPLOYMENT%\src\ mkdir src\WhiteLibrary\bin\ copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.Reporting.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.ScreenObjects.dll src\WhiteLibrary\bin\ rmdir docs /s /q python src/WhiteLibrary/version.py > temp.txt set /p CMDOUT=<temp.txt IF "%CMDOUT%" == "True" ( mkdir docs python -m robot.libdoc src\WhiteLibrary docs\keywords.html xcopy docs %DEPLOYMENT%\docs\ /s /a ) xcopy src %DEPLOYMENT%\src\ /s /a copy setup.py %DEPLOYMENT%\ copy build.info %DEPLOYMENT%\ ``` Remove unnecessary .dll files from installation
```batchfile mkdir %DEPLOYMENT% mkdir %DEPLOYMENT%\src\ mkdir src\WhiteLibrary\bin\ copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\ rmdir docs /s /q python src/WhiteLibrary/version.py > temp.txt set /p CMDOUT=<temp.txt IF "%CMDOUT%" == "True" ( mkdir docs python -m robot.libdoc src\WhiteLibrary docs\keywords.html xcopy docs %DEPLOYMENT%\docs\ /s /a ) xcopy src %DEPLOYMENT%\src\ /s /a copy setup.py %DEPLOYMENT%\ copy build.info %DEPLOYMENT%\ ```
b995470a-a004-49d9-b06e-cf04c4e780c2
{ "language": "Batchfile" }
```batchfile cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla ``` Remove *.res from files zipped.
```batchfile cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla ```
04dd8808-dcf7-4a03-82f4-f1e84d081807
{ "language": "Batchfile" }
```batchfile mkdir ..\..\..\workingdir mkdir ..\..\..\workingdir\components xcopy ..\..\..\das-collectionearnings-opa-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-collectionearnings-datalock ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerpayments-calculator ..\..\..\workingdir\components /E``` Add missing components to prepare script
```batchfile mkdir ..\..\..\workingdir mkdir ..\..\..\workingdir\components xcopy ..\..\..\das-collectionearnings-opa-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-collectionearnings-datalock ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerpayments-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-payment-reference-commitments ..\..\..\workingdir\components /E xcopy ..\..\..\das-payment-reference-accounts ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerevents-components ..\..\..\workingdir\components /E```