Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Move nssm to \control so only one docker load
@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, ...
@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, ...
Embed EXE files inside a Batch script
@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 /...
Patch for version 0.63 update
@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
@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
Patch for version 0.71 update
@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
@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
Change to pack with and without symbols
@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% ...
@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% ...
Add new windows build script
set PYTHON=C:\Python27\python set EASY_INSTALL=c:\python27\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH% cd %WORKSPACE% %PYTHON% check_packages.py cd %WORKSPACE% python setup.py build -cmingw32 cd %WORKSPACE% python...
Fix clone command for appveyor
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://g...
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...
Use case 9 script for Windows.
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.OZO...
Add Windows batch file to update stdlib.
@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 "%E...
Return the exit code from MSBuild.
@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 ...
@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 ...
Use the latest paket.exe but just restore
@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 %*
@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 %*
Move proto generation into cmake and remove from prepare_build
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 ...
Comment source of Windows arch snippet
@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" %*
@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.ex...
Revert "build: autoselect build env"
@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 ...
@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\...
Update to exit if pid has been cleaned and configd is no longer there.
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
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 ...
Add cURL to the path for windows32 CATS tests
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 /...
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 /...
Rename variable to not include the VS version
@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 ...
@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 Micr...
Use unannotated tags for fetchvm as github creates these for releases
@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 -Execut...
@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 ...
Remove extra hat in bootstrap batch file
@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....
@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....
Build script now creates zip
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" "...
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" "...
Make zip archive from release
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" "%pu...
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...
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x ...
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files :: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. set CYGWIN=nontsec set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\s...
Remove *.res from files zipped.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla
Update path to Java 8
@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 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 E...
Remove ExcludedVersion from nuget package generation command line in buld.bat
@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
@echo off cls "..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "..\..\packages\FAKE\tools\Fake.exe" build.fsx pause
Copy fftw library to correct file-name
@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
@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
Add setup batchfile for windows (currently quite naive)
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 ha...
Fix bin path in bat.
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 %%^* > ...
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 %...
Fix batch file used when generating new instances
@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 AS...
@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 AS...
Make the web server auto-restart on crash
@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. xcop...
@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 wor...
Use absolute path to MSBuild in release script
MSBuild.exe ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause
"C:/Program Files (x86)/MSBuild/14.0/bin/amd64/MSBuild.exe" ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause
Add Visual C++ installation script
:: 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=Continu...
Make a drop before import the data
mongoimport -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline
mongoimport --drop -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline
Install gobject-introspection test prerequisites on Cygwin
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 prerequ...
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 prerequ...
Make Visual Studio related warnings go away.
@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%\th...
@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%\th...
Fix invalid dos script syntax: no then
@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 ...
@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 ...
Remove unnecessary .dll files from installation
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.Repo...
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=<...
Remove *.res from files zipped.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla
Add missing components to prepare script
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
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 PATH comment for Windows users
@echo off rem This script installs OpenSC rem Parameters: rem user - Install for this user only. setlocal set MODE=%1 set KEY=HKEY_LOCAL_MACHINE if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER cd %0\..\.. if not exist bin\opensc-tool.exe goto error for /f %%f in (".") do set OPENSC_HOME=%%~f...
@echo off rem This script installs OpenSC rem Parameters: rem user - Install for this user only. setlocal set MODE=%1 set KEY=HKEY_LOCAL_MACHINE if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER cd %0\..\.. if not exist bin\opensc-tool.exe goto error for /f %%f in (".") do set OPENSC_HOME=%%~f...
Add missing windows configuration script
:: To build extensions for 64 bit Python 3, we need to configure environment :: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: :: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1) :: :: To build extensions for 64 bit Python 2, we need to configure environment :: variables to use the...
Disable officescan context menu on directories
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=OfficeScan NT reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=OfficeScan NT reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMenuHandlers\%k...
Add more hacks for Appveyor
if %VS_MAJOR% == 9 ( set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%" ) %PYTHON% -m pip install . -vv
:: Nasty hack to force the newer MSBuild from .NET is still used for the older :: Visual Studio build. Without this an older MSBuild will be picked up by accident on :: AppVeyor after running `vcvars32.bat`, which fails to process our solution files. :: :: ref: https://github.com/conda-forge/staged-recipes/pull/194#iss...
Use most canonical location for npm
"%PREFIX%\Scripts\npm.cmd" install -g npm@latest --no-spin && "%PREFIX%\Scripts\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\Scripts\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
"%PREFIX%\node_modules\npm\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\node_modules\npm\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
Delete project.lock.json files before restoring packages
@echo off @setlocal set NuGetExe="%~dp0NuGet.exe" set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200 REM If someone passed in a different Roslyn solution, use that. REM We make use of this when Roslyn is an sub-module for some REM internal repositories. s...
@echo off @setlocal set NuGetExe="%~dp0NuGet.exe" set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200 REM If someone passed in a different Roslyn solution, use that. REM We make use of this when Roslyn is an sub-module for some REM internal repositories. s...
Revert "Removed for loop and used MOVE command with wildcards"
ECHO off ECHO MOVE C:\mongo* C:\mongodb setx MYPATH "%PATH%;C:\mongodb\bin"
ECHO on FOR /f %%i IN ('dir /ad /b "C:\" ^|findstr /I "mongo"') DO set dest=%%i ECHO MOVE C:\%dest% C:\mongodb\ setx MYPATH "%PATH%;C:\mongodb\bin"
Use `%SystemDrive%\` instead of `%windir%\..\`
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above cd %~dp0 @if not exist version.txt ( echo. echo !-- Error: version.txt is missing :/ echo. pause goto :eof ) rem This will sync this repo with the folder %windir%\..\buildsd robocopy . %windir%\..\buildsd...
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above cd %~dp0 @if not exist version.txt ( echo. echo !-- Error: version.txt is missing :/ echo. pause goto :eof ) rem This will sync this repo with the folder %SystemDrive%\buildsd robocopy . %SystemDrive%\bui...
Update path of PyQt5 on Windows
cd ..\..\..\ rm -R build rm -R dist "%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^ --onefile ^ --windowed ^ --icon etc\bin\win\icon.ico ^ --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5 ^ etc\bin\unix\alignak-app.py pause
cd ..\..\..\ rm -R build rm -R dist "%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^ --onefile ^ --windowed ^ --icon etc\bin\win\icon.ico ^ --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5\Qt\bin ^ etc\bin\unix\alignak-app.py pause
Set to gpu version by default and remove version number
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html" pip install lytest simphony sax jax sklearn klayout pip install "jax[cpu]===0.3.7" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver pip install gdsfactory==5.38.0 gf tool install if exist "%USERPROFIL...
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html" pip install lytest simphony sax jax sklearn klayout pip install "jaxlib[cuda111]" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver pip install gdsfactory==5.38.0 gf tool install if exist "%USERPROFILE...
Add ability to create xunit test results
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools" ...
@pushd %~dp0 goto begin ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runne...
Add prerelease check to vswhere to support dogfood VS builds.
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not ...
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Too...
Use ILRepack.MSBuild.Task 1.1.1 from sympa public myget feed
@echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.0 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonI...
@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 -NonI...
Add build script for Windows environments.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: aartifact :: http://www.aartifact.org/src/ :: Copyright (C) 2008-2010 :: A. Lapets :: :: This software is made available under the GNU GPLv3. :: :: Make.bat :: Batch script for compiling with GHC under Windows :: environments. :::::::::::::::::...
Add bat file for generating installer for windows
REM create windows installer package(runtime included) for LLPAD REM In order to execute this batch file, java 8 or later needs to be installed REM In case creating exe installer, Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH. REM In case creating msi installer, Download WiX 3....
Remove outdated and wrong comment.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: Cake is a Windows batch script for invoking CakePHP shell commands :: :: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) :: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: :: Licensed under ...
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: Cake is a Windows batch script for invoking CakePHP shell commands :: :: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) :: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: :: Licensed under ...
Delete old cf executable properly when running GATS on Windows
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\gcf.exe bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe go get -u github.com/pivotal-cf-experimental/GATS/... S...
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe go get -u github.com/pivotal-cf-experimental/GATS/... SE...
Bring this bat into the current millenium.
@echo off @setlocal rem ------------------------------------------------------ rem Check environment variables if not "%JAVA_HOME%" == "" goto java_home_ok echo Environment variable JAVA_HOME must be set. set ERROR=true :java_home_ok if not "%DEBUG_ENABLED%" == "" goto debug_enabled_ok set DEBUG_ENABLED=false :debug...
@echo off setlocal @rem There is some funkiness wrt set command in a for statement in an if @rem block when setlocal is true. Consequently set set bld_root up here @rem rather than in an if block. set this_fqn=%~f0 for %%i in ( %this_fqn% ) do set bld_root=%%~dp%i if defined JAVA_HOME ( if not defined DEBUG_ENABL...
Fix windows test runner not detecting failure
@echo off SETLOCAL EnableDelayedExpansion set failed=0 cd bin for /r "." %%a in (tst_*.exe) do ( "%%~fa" if not ERRORLEVEL 0 ( echo Test FAILED: "%%~fa" set failed=1 ) ) cd .. if %failed% EQU 1 ( echo ERROR: At least one unit test failed! if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause ) e...
@echo off SETLOCAL EnableDelayedExpansion set failed=0 cd bin for /r "." %%a in (tst_*.exe) do ( "%%~fa" if !errorlevel! neq 0 ( echo Test FAILED: "%%~fa" set failed=1 ) ) cd .. if !failed! equ 1 ( echo ERROR: At least one unit test failed! if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause ) ...
Revert "For loop without external file"
rem Copy runtime DLLs FOR /F %%I IN ('stack exec -- where libstdc++-6.dll') DO copy /Y "%%I" .\ FOR /F %%I IN ('stack exec -- where libgcc_s_seh-1.dll') DO copy /Y "%%I" .\ FOR /F %%I IN ('stack exec -- where libwinpthread-1.dll') DO copy /Y "%%I" .\
rem Copy runtime DLLs echo "" | stack exec -- where libstdc++-6.dll > lib.txt echo "" | stack exec -- where libgcc_s_seh-1.dll >> lib.txt echo "" | stack exec -- where libwinpthread-1.dll >> lib.txt FOR /F %%I IN (lib.txt) DO copy /Y "%%I" .\ del /q lib.txt
Use the new puppetlabs-windows module
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-stdlib cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-registry cmd /c "C...
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-windows cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-dism cmd /c "C:\P...
Change specUrl as recommended by the SDK team.
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: set autoRestVersion=0.16.0-Nightly20160329 set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-scheduler/2016-03-01/swagger/scheduler.json" set source=-Source http...
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: set autoRestVersion=0.16.0-Nightly20160329 set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c582747a6ea5d55ea976a9a3cb7c7959e7f9ce2f/arm-scheduler/2016-03-01/swagger/sched...
Remove a level of indirection
:: %~dp0 gives the dirname of the script cmd /c %~dp0common.bat cmd /c %~dp0vagrant-ssh.bat
:: %~dp0 gives the dirname of the script cmd /c %~dp0firewall-disable.bat cmd /c %~dp0vagrant-ssh.bat
Fix LLVM build truncation by 2 libraries. Regression from 527a5d5
@setlocal ENABLEDELAYEDEXPANSION @echo Building llvm-config tool... @ninja -j %throttle% install-llvm-config @echo. @rem Build LLVM libraries @set llvmlibstotal=0 @FOR /F "skip=2 tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a l...
@setlocal ENABLEDELAYEDEXPANSION @echo Building llvm-config tool... @ninja -j %throttle% install-llvm-config @echo. @rem Build LLVM libraries @set llvmlibstotal=0 @FOR /F "tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a llvmlibs...
Add a script to release binaries packages
:: This script create zip packages (need 7zip installed and path added to system environment variable) @echo off set PATH_TO_PHYSX=C:\library\PhysX-3.2.3_PC_SDK_Core\Bin :: dx9_x86 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip werkkzeug4_dx9_x32.exe 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3CHECKED_x86.dl...
Copy commands file to source directory
mkdir %LIBRARY_INC%\cspice cd %SRC_DIR%\src\cspice call makeDynamicSpice.bat copy "cspice.dll" %LIBRARY_LIB% if errorlevel 1 exit 1 cd %SRC_DIR% copy "include\\*.h" %LIBRARY_INC%\cspice if errorlevel 1 exit 1
mkdir %LIBRARY_INC%\cspice copy "makeDynamicSpice.bat" %SRC_DIR%\src\cspice cd %SRC_DIR%\src\cspice call makeDynamicSpice.bat copy "cspice.dll" %LIBRARY_LIB% if errorlevel 1 exit 1 cd %SRC_DIR% copy "include\\*.h" %LIBRARY_INC%\cspice if errorlevel 1 exit 1
Update windows build bat for new CMake / Visual Studio
@echo off SET GENERATOR="Visual Studio 15 2017" SET GENERATOR64="Visual Studio 15 2017 Win64" cd ../foreign/ cd SPIRV-Tools mkdir build cd build cmake -G%GENERATOR% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERAT...
@echo off SET GENERATOR="Visual Studio 16 2019" cd ../foreign/ cd SPIRV-Tools mkdir build cd build cmake -G%GENERATOR% -A Win32 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERATOR% -A x64 -DSPIRV-Headers_SOURCE_DIR...
Set Windows resource version info
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output --version-string.ProductName=Squiffy --version-string.FileDescription=Squiffy --version-string.LegalCopyright="Copyright (c) 2015 Alex Warren" --...
Add %CONDA_PREFIX%/bin to PATH on Windows
@echo off @REM This script was based on the original conda activate.bat @setlocal @set "CONDA_PREFIX=__CONDA_PREFIX__" @set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__" @set "CONDA_ENV_PATH=%CONDA_PREFIX%" @set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Libra...
@echo off @REM This script was based on the original conda activate.bat @setlocal @set "CONDA_PREFIX=__CONDA_PREFIX__" @set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__" @set "CONDA_ENV_PATH=%CONDA_PREFIX%" @set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Libra...
Update publish nuget cmd to specify source
@echo off echo Press any key to publish pause "..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg pause
@echo off echo Press any key to publish pause "..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg -Source https://www.nuget.org/api/v2/package pause
Use windows login for database init
@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 End...
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBMaintenance > ...
Remove wildcard from del statement
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk rmdir /q /s dist\*.* del /s /q dist\*.* rem ****** Compile our executable and core zipfile python setup.py py2e...
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk del /s /f /q dist rem ****** Compile our executable and core zipfile python setup.py py2exe rem ****** Remove...
Remove pwd doskey since parameter is expanded at parse time
@echo off cls chcp 65001>nul rem old prompt: [%USERNAME%@%COMPUTERNAME% $p] prompt $$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ...
@echo off cls chcp 65001>nul rem old prompt: [%USERNAME%@%COMPUTERNAME% $p] prompt $$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=c...
Add mssql jdbc driver to path
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBMaintenance > ...
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\..\\..\\mssql" org.jboss.aerogear.unifiedpush.DBMain...
Update Xamarin Forms build script
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\RELEASE-NOTES.md /Directory=.. "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\CHANGELOG.md /Directory=.. "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release
Add tests to Windows build too
mkdir build cd build cmake -G "NMake Makefiles" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_BUILD_TYPE:STRING=Release ^ -DWITH_TESTS:BOOL=OFF ^ %SRC_DIR% if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1
mkdir build cd build cmake -G "NMake Makefiles" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_BUILD_TYPE:STRING=Release ^ -DWITH_TESTS:BOOL=OFF ^ %SRC_DIR% if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 nmake test if errorlevel 1 exit 1
Update windows batch script for handle supervisor for the live reload
@ECHO OFF for %%i in ("%~dp0..") do set "folder=%%~fi" ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist` ECHO To stop node server, press CTRL+C pause node "%folder%\src\server\node\server.js"
@ECHO OFF for %%i in ("%~dp0..") do set "folder=%%~fi" ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist-dev` ECHO To stop node server, press CTRL+C where /q supervisor IF ERRORLEVEL 1 ( ECHO supervisor not installed, the server will not be live reloaded node "%folder%\src\...
Fix appveyor stuck on terminal
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" @call "C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw-w64.bat" SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;%PATH% cp "%MYS...
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH% cp "%MYSQL_CONNECT...
Test if resetting the build cache will fix the build.
@echo off if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18 set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x ...
@echo off if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18 set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x ...
Adjust for latest perl-libsass 3.4.11
@echo off set drive=%~dp0 set drivep=%drive% set PERLVER=5.24.0.1 set PERLDIR=%drivep%\%ARCH%\perl REM latest version can be queried via 99-shell: REM perl tools\query-version.pl CSS::Sass set RELVERSION=3.4.10 if #%drive:~-1%# == #\# set drivep=%drive:~0,-1% set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%\perl\bin\;%P...
@echo off set drive=%~dp0 set drivep=%drive% set PERLVER=5.24.0.1 set PERLDIR=%drivep%\%ARCH%\perl REM latest version can be queried via 99-shell: REM perl tools\query-version.pl CSS::Sass set RELVERSION=3.4.11 if #%drive:~-1%# == #\# set drivep=%drive:~0,-1% set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%\perl\bin\;%P...
Put `npm update` into it's own shell
@echo off :: hook `nodist use <version>` if "%1"=="use" ( call %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( :: rescue our hacked npm.cmd from `n...
@echo off :: hook `nodist use <version>` if "%1"=="use" ( call %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( :: rescue our hacked npm.cmd from `n...
Modify listing of tasks to resemble listing of assets.
:: Asset API :: :: This file is called whenever a user enters an asset, such as Cat or Shot01. :: :: Arguments: :: %1: Name of asset, e.g. Bruce :: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets :: :: Example: :: $ call _mkasset Bruce %~dp0 @echo off set ASSET=%1 set ASSETDIR...
:: Asset API :: :: This file is called whenever a user enters an asset, such as Cat or Shot01. :: :: Arguments: :: %1: Name of asset, e.g. Bruce :: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets :: :: Example: :: $ call _mkasset Bruce %~dp0 @echo off set ASSET=%1 set ASSETDIR...
Update 'for' batch code to use block style.
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "token...
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "token...
Make CTest extra verbose temporarily.
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random ...
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure --extra-verbose -E dfa^|exhaustive^...
Load x64 toolchain for NMAKE
@if "%VS140COMNTOOLS%"=="" goto error_vc14 @call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" @if "%HIPACC_PATH%"=="" goto error_hipacc @if "%1" == "cpu" goto cpu @if "%1" == "cuda" goto cuda @if "%1" == "clean" goto clean @if "%1" == "distclean" goto distclean :cpu nmake.exe /f sample.mak cpu @goto end :cuda @if "%C...
@if "%VS140COMNTOOLS%"=="" goto error_vc14 @call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64 @if "%HIPACC_PATH%"=="" goto error_hipacc @if "%1" == "cpu" goto cpu @if "%1" == "cuda" goto cuda @if "%1" == "clean" goto clean @if "%1" == "distclean" goto distclean :cpu nmake.exe /f sample.mak cpu @goto end :cuda @if...
Revert "swap GnuWin32 with 7zip, cuz sourceforge is broke"
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /...
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH%...
Hide dot-folders when printing example folders
@echo off setlocal if "%1" == "" ( echo usage: %0 EXAMPLE [options] echo. echo Where EXAMPLE is one of: call :printExampleList exit /B 1 ) if not exist examples\%1 ( echo Cannot find an example by the name '%1'. Use one of: call :printExampleList exit /B 1 ) rem Enabl...
@echo off setlocal if "%1" == "" ( echo usage: %0 EXAMPLE [options] echo. echo Where EXAMPLE is one of: call :printExampleList exit /B 1 ) if not exist examples\%1 ( echo Cannot find an example by the name '%1'. Use one of: call :printExampleList exit /B 1 ) rem Enabl...
Fix path to "main" modules
@echo off cls echo. echo BEGIN OF DEMO 3: Bach.java pause > nul if exist demo rmdir /q/s demo mkdir demo cd demo mkdir src\demo echo ______ echo Step 1: Declare demo module: src\demo\module-info.java pause > nul ( echo module demo {} )>"src\demo\module-info.java" echo. type src\demo\module-info.java pause > nul echo...
@echo off cls echo. echo BEGIN OF DEMO 3: Bach.java pause > nul if exist demo rmdir /q/s demo mkdir demo cd demo mkdir src\demo echo ______ echo Step 1: Declare demo module: src\demo\module-info.java pause > nul ( echo module demo {} )>"src\demo\module-info.java" echo. type src\demo\module-info.java pause > nul echo...
Fix setuptools with conda build on windows.
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q "%PYTHON%" setup.py install if errorlevel 1 exit 1
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q "%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt if errorlevel 1 exit 1
Add missing mklink to .vimrc.bundles in windows installer script.
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR% call mkdir %BASE_DIR%\.vim\bundle call mklink /J %HOME%\.vim %BASE_DIR%\.vim call mklink %HOME...
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR% call mkdir %BASE_DIR%\.vim\bundle call mklink /J %HOME%\.vim %BASE_DIR%\.vim call mklink %HOME%\.vimr...
Add a redirect for FAKE
@echo off :Build cls SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") "tools\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%" exit /b %errorlevel%
Allow for remote debugging in spark.
java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup
:run if "%1" == "-debug" goto debug java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup goto end :debug start "Spark" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n...
Patch for version 0.77 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.76" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.77" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Revert "Try dotnet pack instead"
dotnet pack src/GladNet.Common/ -c Release dotnet pack src/GladNet.Encryption/ -c Release dotnet pack src/GladNet.Engine.Common/ -c Release dotnet pack src/GladNet.Engine.Server/ -c Release dotnet pack src/GladNet.Message/ -c Release dotnet pack src/GladNet.Message.Handlers/ -c Release dotnet pack src/GladNet.Payload/ ...
msbuild ./src/GladNet.Common/GladNet.Common.csproj /p:Configuration=Release msbuild ./src/GladNet.Encryption/GladNet.Encryption.csproj /p:Configuration=Release msbuild ./src/GladNet.Engine.Common/GladNet.Engine.Common.csproj /p:Configuration=Release msbuild ./src/GladNet.Engine.Server/GladNet.Engine.Server.csproj /p:Co...
Fix mistake in setting sphinx's required version number
"%sdkverpath%" -q -version:"%sdkver%" call setenv /x64 rem install python packages pip install numpy rem builds currently fail rem pip install numexpr rem pip install tables >= 3.1.1 pip install enum34>=1.0.4 pip install stevedore>=1.2.0 pip install click>=3.3 pip install pyyaml>=3.11 pip install sphinx>1.3 pip instal...
"%sdkverpath%" -q -version:"%sdkver%" call setenv /x64 rem install python packages pip install numpy rem builds currently fail rem pip install numexpr rem pip install tables >= 3.1.1 pip install enum34>=1.0.4 pip install stevedore>=1.2.0 pip install click>=3.3 pip install pyyaml>=3.11 pip install sphinx>=1.3 pip insta...
Copy compiled binaries to C:\qiuwch\workspace\unrealcv\unrealcv.
set plugin_file=%CD%/UnrealCV.uplugin set package_folder=%CD%/Plugins/UnrealCV set UE4=C:\Program Files\Epic Games\UE_4.14 REM TODO: Check the existence of UE4 folder and give a useful hint for user REM Modify the UE4 variable to point to your UE4 installation path "%UE4%/Engine/Build/BatchFiles/RunUAT.bat" BuildPlugin...
set plugin_file=%CD%/UnrealCV.uplugin set package_folder=%CD%/Plugins/UnrealCV set UE4=C:\Program Files\Epic Games\UE_4.14 REM TODO: Check the existence of UE4 folder and give a useful hint for user REM Modify the UE4 variable to point to your UE4 installation path "%UE4%/Engine/Build/BatchFiles/RunUAT.bat" BuildPlugin...
Make socket tests run less annoyingly on Win32.
@ECHO OFF :: script for Windows to supply fork() to rakudo :: based on IO-Socket-INET.sh SET TEST=%1 SET PORT=%2 :: clear the status message flag but don't whinge about the file not being there DEL t\spec\S32-io\server-ready-flag 2> NUL :: Use START to fork the server and set the window title so we can kill ...
@ECHO OFF :: script for Windows to supply fork() to rakudo :: based on IO-Socket-INET.sh SET TEST=%1 SET PORT=%2 :: clear the status message flag but don't whinge about the file not being there DEL t\spec\S32-io\server-ready-flag 2> NUL :: Use START to fork the server and set the window title so we can kill ...
Change VS build script to x64 only.
@ECHO OFF REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12] SET solution=%1 SET version=%2 SET log=build_%version%.log SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat SET environment="%programfiles(x86)%\%tools%" IF NOT EXIST %environment% SET environment="%programfiles%\%tools%" IF NOT EXIST %envi...
@ECHO OFF REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12] SET solution=%1 SET version=%2 SET log=build_%version%.log SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat SET environment="%programfiles(x86)%\%tools%" IF NOT EXIST %environment% SET environment="%programfiles%\%tools%" IF NOT EXIST %envi...
Correct code style for batch file
@echo off REM This file is part of the Zephir. REM REM (c) Zephir Team <team@zephir-lang.com> REM REM For the full copyright and license information, please view the LICENSE REM file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php S...
@echo off rem This file is part of the Zephir. rem rem (c) Zephir Team <team@zephir-lang.com> rem rem For the full copyright and license information, please view the LICENSE rem file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php S...
Use full path to vcvarsall
vcvarsall.bat x86 CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86 CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
Add No OpenCL Run Configuration
@echo off del /F TestApp.exe call gradlew clean -POS=windows call gradlew build -POS=windows echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe call TestApp.exe > output.log rem call TestApp.exe --useJSONFormat > outputJSON.log rem call TestApp.exe --nosha256 > outputnoSha.log
@echo off del /F TestApp.exe call gradlew clean -POS=windows call gradlew build -POS=windows echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe rem call TestApp.exe > output.log call TestApp.exe --noOpenCL > outputnoCL.log rem call TestApp.exe --useJSONFormat > outputJSON.log rem call TestApp.exe --nosh...