Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Simplify the script. It now allows normal ant targets and flags to be passed straight through. For example
@REM @REM Copyright (c) 2006, Intel Corporation @REM All rights reserved. This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http://opensource...
@REM @REM Copyright (c) 2006, Intel Corporation @REM All rights reserved. This program and the accompanying materials @REM are licensed and made available under the terms and conditions of the BSD License @REM which accompanies this distribution. The full text of the license may be found at @REM http://opensource...
Use correct build string in metadata files
conda list -p "%PREFIX%" --canonical if errorlevel 1 exit 1 for /f "delims=" %%i in ('conda list -p "%PREFIX%" --canonical') do set condalist=%%i if errorlevel 1 exit 1 echo "%condalist%" if not "%condalist%"=="conda-build-test-build-string-1.0-1" exit 1 cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-1.json...
conda list -p "%PREFIX%" --canonical if errorlevel 1 exit 1 for /f "delims=" %%i in ('conda list -p "%PREFIX%" --canonical') do set condalist=%%i if errorlevel 1 exit 1 echo "%condalist%" if not "%condalist%"=="conda-build-test-build-string-1.0-abc" exit 1 cat "%PREFIX%\conda-meta\conda-build-test-build-string-1.0-abc....
Patch for version 0.79 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.78" -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.79" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Add WinSxS path to vcomp90
for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^ -DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^ -DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^ -DCMAKE_INSTALL_SY...
if "%ARCH%" == "32" (set "ARCH_DIR=x86") if "%ARCH%" == "64" (set "ARCH_DIR=amd64") dir /a:d /o:-n /s /b C:\Windows\WinSxS\%ARCH_DIR%_microsoft.vc90.openmp* > vcomp90_locs.txt type vcomp90_locs.txt set /p VCOMP_DIR=<vcomp90_locs.txt echo "%VCOMP_DIR%" for %%F in ("." "bin") do ( cmake -G "%CMAKE_GENERATOR%" ^ ...
Update the version to 5.12.6.
ECHO OFF SET "ARCH=x64" SET "VC_ARCH=amd64" SET "QT_KIT=C:\Qt\5.12.0\msvc2017_64" SET "DIR=%~dp0" SET "BUILD_TYPE=release" SET "BUILD_DIR=%DIR%..\build-OAuthRedirectExample-Desktop_Qt_5_12_0_MSVC2017_64bit-Release\%BUILD_TYPE%" SET "ARCGIS_SDK_DIR=C:\Program Files (x86)\ArcGIS SDKs\Qt100.7\sdk\windows\%ARCH%\bin\%BUIL...
ECHO OFF SET "ARCH=x64" SET "VC_ARCH=amd64" SET "QT_KIT=C:\Qt\5.12.6\msvc2017_64" SET "DIR=%~dp0" SET "BUILD_TYPE=release" SET "BUILD_DIR=%DIR%..\build-OAuthRedirectExample-Desktop_Qt_5_12_6_MSVC2017_64bit-Release\%BUILD_TYPE%" SET "ARCGIS_SDK_DIR=C:\Program Files (x86)\ArcGIS SDKs\Qt100.7\sdk\windows\%ARCH%\bin\%BUIL...
Update comport and avrdude path.
@echo #----------------------------------------------------------------------------# @echo # Generating main.lss @echo #----------------------------------------------------------------------------# avr-objdump -h -S bin\main.elf > bin\main.lss @echo #--------------------------------------------------------------------...
@echo #----------------------------------------------------------------------------# @echo # Generating main.lss @echo #----------------------------------------------------------------------------# avr-objdump -h -S bin\main.elf > bin\main.lss @echo #--------------------------------------------------------------------...
Fix node Windows absolute path
@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...
@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\node\node-win32-%ARCH%.exe" @IF NOT EXIST %NODE_PATH% ( set NODE_PATH="node.exe" )...
Add more logging for debugging formatting failures on windows
SET "JAVA_HOME=C:\opt\jdk1.8.0_161" cd git-repo ./mvnw clean install
SET "JAVA_HOME=C:\opt\jdk1.8.0_161" cd git-repo ./mvnw clean install -X
Kill background processes to allow parent to exit
if not exist "C:\Windows\Temp\msys2.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe'...
if not exist "C:\Windows\Temp\msys2.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe'...
Update script to check properly for missing variables, and get the quotations right (I hope)...
@echo off rem check that JAVA_HOME and LCF_HOME are set rem save existing path here set OLDDIR=%CD% cd %LCF_HOME%\processes set CLASSPATH=. for %%f in (jar/*) do call script\setclasspath.bat %%f set JAVADEFINES= for %%g in (define/*) do call script\setdefine.bat %%g rem restore old path here cd %OLDDIR% "%JAVA_HOME%\bi...
@echo off rem check that JAVA_HOME and LCF_HOME are set if not exist "%JAVA_HOME%\bin\java.exe" goto nojavahome if not exist "%LCF_HOME%\properties.ini" goto nolcfhome rem save existing path here set OLDDIR=%CD% cd "%LCF_HOME%\processes" set CLASSPATH=. for %%f in (jar/*) do call script\setclasspath.bat %%f set JAVADEF...
Make sure only the used lib files end up in the Magick.NET.libs folder.
@echo off call "%vs140comntools%vsvars32.bat" set LIBDIR=C:\Magick.NET.libs set TARGET=C:\Magick.NET\ImageMagick if "%2"=="AnyCPU" goto anycpu xcopy %LIBDIR%\lib\Release\%2 %TARGET%\lib\Release\%2 /Y /S /I xcopy %LIBDIR%\%1\lib\Release\%2 %TARGET%\$1\lib\Release\%2 /Y /S /I goto build :anycpu xcopy %LIBDIR%\lib\Re...
@echo off call "%vs140comntools%vsvars32.bat" set LIBDIR=C:\Magick.NET.libs set TARGET=C:\Magick.NET\ImageMagick if "%2"=="AnyCPU" goto anycpu xcopy %LIBDIR%\lib\Release\%2 %TARGET%\lib\Release\%2 /Y /S /I xcopy %LIBDIR%\%1\lib\Release\%2 %TARGET%\%1\lib\Release\%2 /Y /S /I goto build :anycpu xcopy %LIBDIR%\lib\Re...
Add command line for hector
build\install\hector\bin\hector.bat com.marklogic.hector.JobConfig job input_file_path=./src/test/resources/Most_Popular_Baby_Names_NYC.csv delimited_root_name=baby-name document_type=xml output_collections=baby-name chunk_size=100 thread_count=4
Add Windows batch file for batch conversion.
@for %%a in (*.mid) do @midisplit "%%a" "%%~na-split.mid" rem @set midisplit_dir=%~dp0 rem rem :dispatch_loop rem @if "%1"=="" @goto dispatch_done rem @echo %midisplit_dir%midisplit "%1" "%~dpn1.mid" rem @shift rem @goto dispatch_loop rem :dispatch_done
Fix command history in Windows
@echo off setlocal enabledelayedexpansion set PLAY_VERSION="2.2-SNAPSHOT" if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%" set p=%~dp0 set p=%p:\=/% set fp=file:///!p: =%%20! java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M...
@echo off setlocal enabledelayedexpansion set PLAY_VERSION="2.2-SNAPSHOT" if defined JPDA_PORT set DEBUG_PARAM="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=%JPDA_PORT%" set p=%~dp0 set p=%p:\=/% set fp=file:///!p: =%%20! java -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M...
Allow Bridge environment variables to configure Bridge use
echo off setlocal REM elevated window does not set current directory correctly. REM Workaround it by passing the current directory as 1st parameter pushd %1 certutil -addstore -f root RootCATest.cer certutil -f -p test -importpfx "WcfTestServer.pfx" netsh http add sslcert ipport=0.0.0.0:44285 certhash=1d85a3f6cd2c02...
echo off setlocal REM elevated window does not set current directory correctly. REM Workaround it by passing the current directory as 1st parameter pushd %1 certutil -addstore -f root RootCATest.cer certutil -f -p test -importpfx "WcfTestServer.pfx" netsh http add sslcert ipport=0.0.0.0:44285 certhash=1d85a3f6cd2c02...
Fix depot_tools\git.bat when depot_tools in not in PATH.
@echo off setlocal if not defined EDITOR set EDITOR=notepad set PATH=%~dp0GIT_BIN_DIR\cmd;%PATH% "%~dp0GIT_BIN_DIR\GIT_PROGRAM" %*
@echo off setlocal if not defined EDITOR set EDITOR=notepad set PATH=%~dp0GIT_BIN_DIR\cmd;%~dp0;%PATH% "%~dp0GIT_BIN_DIR\GIT_PROGRAM" %*
Update Windows CI build script.
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 %MSBUI...
@echo off set DEVENV=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild set DEVENV=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe if exist "%DEVENV%" goto devenv_found set DEVENV=C:\Program Files(x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe if exist "%DEVENV%" goto devenv_found echo "Ple...
Handle spaces in args for batch file
@echo off rem ======================================================================== rem rem Copyright 2015-2016 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
@echo off rem ======================================================================== rem rem Copyright 2015-2016 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
Add batch file that creates the directory structure required by the XMC4500 GCC port.
REM This file should be executed from the command line prior to the first REM build. It will be necessary to refresh the Eclipse project once the REM .bat file has been executed (normally just press F5 to refresh). REM Copies all the required files from their location within the standard REM FreeRTOS directory s...
Enable .netmf in the gated build.
@REM Copyright (c) Microsoft. All rights reserved. @REM Licensed under the MIT license. See LICENSE file in the project root for full license information. setlocal set build-root=%~dp0.. rem // resolve to fully qualified path for %%i in ("%build-root%") do set build-root=%%~fi REM -- C# -- cd %build-root%\csharp\dev...
Fix bug: directory contains space character
@ECHO OFF @REM ----- INIT SCREEN ----- TITLE Using command line to create new job !!! COLOR 0f CLS @REM ----- SET DEFAULT DIRECTORY ----- SET DIRNAME=%~dp0 IF "%DIRNAME%" == "" SET DIRNAME=.\ @REM ----- GET INFORMATION FOR JOB FROM CONSOLE ----- ECHO --------------- CREATE JOB: %2 --------------- ECHO. SET inputResu...
@ECHO OFF setlocal @REM ----- INIT SCREEN ----- TITLE Using command line to create new job !!! COLOR 0f CLS @REM ----- SET WIPERDOG HOME DIRECTORY ----- set WIPERDOGHOME=%~dp0.. for %%i in ("%WIPERDOGHOME%") do set WIPERDOGHOME=%%~fsi cd "%WIPERDOGHOME%\bin" @REM ----- GET INFORMATION FOR JOB FROM CONSOLE ----- ECHO ...
Add bat file for vim initialization on windows.
mkdir C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload call git clone git://github.com/tpope/vim-surround C:\Users\Nathan Mador-House\Documents\gVimPortable\Data\settings\vimfiles\autoload\ call git clone git://github.com/tpope/vim-commentary.git C:\Users\Nathan Mador-House\Documents\...
Add a batch script for the first commit.
@echo off :: 启动命令处理器扩展名 启动延缓环境变量扩展名 setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION :: 双脱字符的功用 echo Hi there^^! :: 如果是从图形界面(相对于命令行)启动的,则暂停 echo %cmdcmdline% | find "%~0" > nul if %errorlevel% EQU 0 pause :: echo %cmdcmdline% | findstr /c:"%~n0" > nul if %errorlevel% EQU 0 pause
Stop error by adding space at end of line
java -Xrunhprof:cpu=samples -DWNDBVERSION=1.7 -DWNHOME=C:\nlp\opennlp\opennlp\dictionary\src\ -DWNSEARCHDIR=C:\nlp\WordNet\dict\ -jar output\dictionary-0.1.0.jar %1 -g -h -o -a -s -Oop.txt -over -synsa -antsa -perta -famla -synsn -simsn -antsn -coorn -hypen -hypon -treen -holon -sprtn -smemn -ssubn -hholn -meron -subs...
java -Xrunhprof:cpu=samples -DWNDBVERSION=1.7 -DWNHOME=C:\nlp\opennlp\opennlp\dictionary\src\ -DWNSEARCHDIR=C:\nlp\WordNet\dict\ -jar output\dictionary-0.1.0.jar %1 -g -h -o -a -s -Oop.txt -over -synsa -antsa -perta -famla -synsn -simsn -antsn -coorn -hypen -hypon -treen -holon -sprtn -smemn -ssubn -hholn -meron -subs...
Update bat file for Python 3 build
REM Set variables for Microsoft Visual Studio for Python 2.7 REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64 REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.pyt...
REM Set variables for Microsoft Visual Studio for Python 2.7 REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64 REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.pyt...
Add missing gradle wrapper file
@if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=...
Move NuGet.exe restore location back to the root
@echo off REM This is a script that will set environment information about where to find REM NuGet.exe, it's version and ensure that it's present on the enlistment. set NuGetExeVersion=3.5.0-beta2 set NuGetExeFolder=%~dp0..\..\Binaries\Download\%NuGetExeVersion% set NuGetExe=%NuGetExeFolder%\NuGet.exe REM Download Nu...
@echo off REM This is a script that will set environment information about where to find REM NuGet.exe, it's version and ensure that it's present on the enlistment. set NuGetExeVersion=3.5.0-beta2 set NuGetExeFolder=%~dp0..\.. set NuGetExe=%NuGetExeFolder%\NuGet.exe REM Download NuGet.exe if we haven't already if not...
Fix unit test run error on UWP by not running them
@REM Copyright (c) Microsoft. All rights reserved. @REM Licensed under the MIT license. See LICENSE file in the project root for full license information. setlocal set build-root=%~dp0.. rem // resolve to fully qualified path for %%i in ("%build-root%") do set build-root=%%~fi REM -- C -- cd %build-root%\tools call...
@REM Copyright (c) Microsoft. All rights reserved. @REM Licensed under the MIT license. See LICENSE file in the project root for full license information. setlocal set build-root=%~dp0.. rem // resolve to fully qualified path for %%i in ("%build-root%") do set build-root=%%~fi REM -- C -- cd %build-root%\tools call...
Update test to check for existence of app-local msbuild instead of version number
@echo off REM This is a script that will set environment information about where to find REM NuGet.exe, it's version and ensure that it's present on the enlistment. set NuGetExeVersion=3.6.0-beta1 set NuGetExeFolder=%~dp0..\.. set NuGetExe=%NuGetExeFolder%\NuGet.exe if "%VisualStudioVersion%" == "15.0" ( set NuGe...
@echo off REM This is a script that will set environment information about where to find REM NuGet.exe, it's version and ensure that it's present on the enlistment. set NuGetExeVersion=3.6.0-beta1 set NuGetExeFolder=%~dp0..\.. set NuGetExe=%NuGetExeFolder%\NuGet.exe REM If we have an applocal copy of MSBuild, pass it...
Use REM for comments to avoid error messages on the DOS prompt for Windows users
# This is for windows users only. # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
REM # This is for windows users only. REM # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
Make working in Command Prompt slightly more bearable
@ECHO OFF REM Uncomment to enable verbose mode REM SET VERBOSE=YES REM Because I'm tired of forgetting this DOSKEY ls=dir DOSKEY man=help DOSKEY which=where REM Add alias for Sublime Text SET SUBLREGPATH=HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Sublime Text 2_is1 SET SUBLBINNAME=sublime_text.exe REG ...
Add push package script :cow:
..\.nuget\NuGet.exe push ..\Topshelf.Autofac\bin\Release\Topshelf.Autofac.*.nupkg -Source https://www.nuget.org/api/v2/package
Add ability to generate nunit test results
@pushd %~dp0 ECHO Remember to build the solution first! REM pause "%~dp0\TestHarness\packages\NUnit.Runners.2.6.3\tools\nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result=results-example-nunit.xml /nologo /nodots pause @popd
Add a check for 32-bit vs 64-bit OS and then use the appropriate python
@echo off REM REM Verify that we can find the 'makepanda' python script REM and the python interpreter. If we can find both, then REM run 'makepanda'. REM set thirdparty=thirdparty if defined MAKEPANDA_THIRDPARTY set thirdparty=%MAKEPANDA_THIRDPARTY% if not exist makepanda\makepanda.py goto :missing1 if not exist %...
@echo off REM REM Check the Windows architecture and determine with Python REM to use; 64-bit or 32-bit. Verify that we can find the REM 'makepanda' python script and the python interpreter. REM If we can find both, then run 'makepanda'. REM if %PROCESSOR_ARCHITECTURE% == AMD64 ( set pythondir=win-python-x64 ) els...
Add release script for windows
@echo off if "%~1" == "" ( echo Usage: release_win.bat path-to-bin-folder goto end ) setlocal set destdir="%cd%\%~1" mkdir build cd build del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destdir% -G "Visual Studio 12 2013 Win64" .. ICProjConvert150 embree.sln /IC /s /f cmak...
Deploy feet version to own folder
@echo off set BASENAME=Geocache_Height set BASEPATH=%HOMEPATH%\Documents\Dev\GitHub\userscripts\GeocacheHeight set DEPLOYPATH=%APPDATA%\Mozilla\Firefox\Profiles\6rhioilk.default\gm_scripts\%BASENAME% cd "%BASEPATH%" copy "src\%BASENAME%.meta.js" . copy /b "src\%BASENAME%.meta.js" + src\header.js + "src\formatHeight.js...
@echo off set BASENAME=Geocache_Height set BASEPATH=%HOMEPATH%\Documents\Dev\GitHub\userscripts\GeocacheHeight set DEPLOYPATH=%APPDATA%\Mozilla\Firefox\Profiles\6rhioilk.default\gm_scripts\%BASENAME% cd "%BASEPATH%" copy "src\%BASENAME%.meta.js" . copy /b "src\%BASENAME%.meta.js" + src\header.js + "src\formatHeight.js...
Update to work with common
setlocal set BUILDER_START_DIR= set BUILDER_TOP_DIR= set BUILDROOT_DIR= set __CMD_INIT_RUN__= %PYTHON% wb_git_main.py %* endlocal
setlocal set PYTHONPATH=%BUILDER_TOP_DIR%\Source;%BUILDER_TOP_DIR%\Source\Common set BUILDER_START_DIR= set BUILDER_TOP_DIR= set BUILDROOT_DIR= set __CMD_INIT_RUN__= echo PYTHONPATH %PYTHONPATH% %PYTHON% wb_git_main.py %* endlocal
Fix labels in the cmd script
@echo off setlocal set "output=nul" set "times=1" :help :parseArgs if "%~1" == "" goto main if /i "%~1" == "-?" goto help if /i "%~1" == "-h" goto help if /i "%~1" == "--help" goto help if /i "%~1" == "-t" ( set "times=%~2" shift ) if /i "%~1" == "--times" ( set "times=%~2" shift ) if /i "%~1" =...
@echo off setlocal set "output=nul" set "times=1" :help goto :eof :parseArgs if "%~1" == "" goto main if /i "%~1" == "-?" goto help if /i "%~1" == "-h" goto help if /i "%~1" == "--help" goto help if /i "%~1" == "-t" ( set "times=%~2" shift ) if /i "%~1" == "--times" ( set "times=%~2" shift ) if...
Change baseline path for Win to avoid problematic drive letter
@echo off rem ======================================================================== rem rem Copyright 2015-2017 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
@echo off rem ======================================================================== rem rem Copyright 2015-2017 Intel Corporation rem rem rem rem Licensed under the Apache License, Version 2.0 (the "License");...
Fix quoting of ES_JAVA_OPTS in plugin script
@echo off setlocal enabledelayedexpansion setlocal enableextensions set ES_JAVA_OPTS="--add-opens java.base/sun.security.provider=ALL-UNNAMED %ES_JAVA_OPTS%" set ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli call "%~dp0elasticsearch-cli.bat" ^ %%* ^ ...
@echo off setlocal enabledelayedexpansion setlocal enableextensions set ES_JAVA_OPTS=--add-opens java.base/sun.security.provider=ALL-UNNAMED %ES_JAVA_OPTS% set ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli call "%~dp0elasticsearch-cli.bat" ^ %%* ^ |...
Call msbuild from build script
@echo off "%PROGRAMFILES%\7-Zip\7z" a -tzip "AITD-tools.zip" ^ ".\CacheViewer\CacheViewer\bin\Release\*.exe" ^ ".\LifeDISA\LifeDISA\bin\Release\*.exe" ^ ".\LifeDISA\LifeDISA\bin\Release\UnPAK.dll" ^ ".\MemoryViewer\MemoryViewer\bin\Release\*.exe" ^ ".\MemoryViewer\MemoryViewer\bin\Release\SDL.dll" ^ ".\MemoryView...
@echo off %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\CacheViewer\CacheViewer.sln" if %ERRORLEVEL% NEQ 0 pause %WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe /p:Configuration=Release ".\LifeDISA\LifeDISA.sln" if %ERRORLEVEL% NEQ 0 pause %WINDIR%\Microsoft.NET\Framework\...
Add script to build dev version
REM First Run the prepare tasks for each task: REM triggerbuildtask\perpareTriggerBuildTask.bat REM waitforbuildtask\perpareWaitForBuildTask.bat REM Don't forget to increase the version! tfx extension create --manifest-globs .\vss-extension_dev.json
Add gradle --configure-on-demand flag to bintray upload script
@echo off setlocal EnableDelayedExpansion REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued SET username=%1 SET apikey=%2 SET modules="MediaPlayer" "MediaPlayer-DASH" FOR %%m in (%modules%) DO ( gradlew %%~m:clean %%~m:build %%~m...
@echo off setlocal EnableDelayedExpansion REM Uploading all modules at once (with one gradle command) does not work any more, so a separate command for each module must be issued SET username=%1 SET apikey=%2 SET modules="MediaPlayer" "MediaPlayer-DASH" FOR %%m in (%modules%) DO ( gradlew %%~m:clean %%~m:build %%~m...
Remove copyall in order to copy to network share
### this file is a sample taken from mongo-c-driver-legacy-build. must be adapted to new driver #### robocopy ..\bin\Win32\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE robocopy ..\bin\Win32\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /COPYALL /TEE robocopy ..\bin\x64\Debug\ %1\user\mong...
### this file is a sample taken from mongo-c-driver-legacy-build. must be adapted to new driver #### robocopy ..\bin\Win32\Debug\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE robocopy ..\bin\Win32\Release\ %1\user\mongoc-dll\ mongo-client*.dll /ZB /X /TEE robocopy ..\bin\x64\Debug\ %1\user\mongoc-dll\ mongo-clie...
Add installing NuGet packages to build bat file
pushd NCDK call :BuildProject NCDK popd pushd NCDKDisplay call :BuildProject NCDK.Display popd goto END :BuildProject set ProjectName=%1 if "%ProjectName%" == "" exit 1 MSBuild "%ProjectName%.csproj" /t:Build /p:Configuration=Release nuget pack "%ProjectName%.nuspec" -Prop Configuration=Release -IncludeReferencedPr...
pushd NCDK dotnet add package MathNet.Numerics.Signed dotnet add package dotNetRDF call :BuildProject NCDK popd pushd NCDKDisplay call :BuildProject NCDK.Display popd goto END :BuildProject set ProjectName=%1 if "%ProjectName%" == "" exit 1 MSBuild "%ProjectName%.csproj" /t:Build /p:Configuration=Release nuget pack...
Fix error propagation for windows x64 build script
set path=%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1\vc11;%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1;%path% copy packages\oracledart\oracledart_extension.dll packages\oracledart\oracledart_extension_ia32.dll copy packages\oracled...
set path=%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1\vc11;%userprofile%\Downloads\instantclient-basic-windows.x64-12.1.0.1.0\instantclient_12_1;%path% copy packages\oracledart\oracledart_extension.dll packages\oracledart\oracledart_extension_ia32.dll copy packages\oracled...
Build header and footer properly
Set DecorateName=DecorateName Set Book=mencius Set FontType=Traditional Set BookFont=%Book%_%FontType% Set CSSExt=.css Set CSS_=--css=..\css\ Set NameStyle=%CSS_%%DecorateName%%CSSExt% Set Output=%BookFont% If "%1" == "name" ( Set Output=%Output%_%DecorateName% Set Style=%NameStyle% ) If Not "%2" == "...
Set DecorateName=DecorateName Set Book=mencius Set FontType=Traditional Set BookFont=%Book%_%FontType% Set CSSExt=.css Set CSS_=--css=..\css\ Set NameStyle=%CSS_%%DecorateName%%CSSExt% Set Output=%BookFont% If "%1" == "name" ( Set Output=%Output%_%DecorateName% Set Style=%NameStyle% ) If Not "%2" == "...
Use REM for comments to avoid error messages on the DOS prompt for Windows users
# This is for windows users only. # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
REM # This is for windows users only. REM # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
Correct output path for nuget pack command
copy ..\README.md ..\Output copy ..\LICENSE ..\Output copy ..\AUTHORS ..\Output copy ..\CONTRIBUTORS ..\Output mkdir ..\Output\lib mkdir ..\Output\lib\MonoTouch mkdir ..\Output\lib\MonoAndroid mkdir ..\Output\lib\Xamarin.iOS10 copy ..\Output\XamarinIOS\OxyPlot.XamarinIOS.??? ..\Output\lib\MonoTouch copy ..\Output\Xam...
copy ..\README.md ..\Output copy ..\LICENSE ..\Output copy ..\AUTHORS ..\Output copy ..\CONTRIBUTORS ..\Output mkdir ..\Output\lib mkdir ..\Output\lib\MonoTouch mkdir ..\Output\lib\MonoAndroid mkdir ..\Output\lib\Xamarin.iOS10 copy ..\Output\XamarinIOS\OxyPlot.XamarinIOS.??? ..\Output\lib\MonoTouch copy ..\Output\Xam...
Call the testing batch files, don't just go there permanently.
cd /d "%~dp0" cd .. rmdir /s /q install rmdir /s /q build mkdir build cd build cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %* cmake --build . --config Debug cmake --build . --config RelWithDebInfo "%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C Debug "%WORKSPACE%\vend...
cd /d "%~dp0" cd .. rmdir /s /q install rmdir /s /q build mkdir build cd build cmake .. -G "Visual Studio 12" "-DCMAKE_INSTALL_PREFIX=%WORKSPACE%\install" %* cmake --build . --config Debug cmake --build . --config RelWithDebInfo call "%WORKSPACE%\vendor\jenkins-ctest-plugin\run-test-and-save.bat" -C Debug call "%WORKS...
Set NOSE_PROCESS_RESTARTWORKER for appveyor tests
set result=0 :top if "%1" == "" goto :end echo RUNNING TESTS FOR %1 cd %1 || exit /b 1 if exist tests ( nosetests -v --nologcapture tests || set result=1 && goto :continue ) else if exist test.py ( nosetests -v --nologcapture test.py || set result=1 && goto :continue ) else ( echo Unknown test confi...
set result=0 :top if "%1" == "" goto :end echo RUNNING TESTS FOR %1 cd %1 || exit /b 1 env set NOSE_PROCESS_RESTARTWORKER=1 if exist tests ( nosetests -v --nologcapture tests || set result=1 && goto :continue ) else if exist test.py ( nosetests -v --nologcapture test.py || set result=1 && goto :conti...
Move output of teamcity plugin to root directory for easier urls in AppVeyor
RMDIR "%~dp0..\Drops" /S /Q MKDIR "%~dp0..\Drops" MKDIR "%~dp0..\Drops\Temp" MKDIR "%~dp0..\Drops\Temp\agent" MKDIR "%~dp0..\Drops\Temp\agent\bin" XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp" XCOPY /E /Y "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin" DEL "%~dp0..\Drops\T...
RMDIR "%~dp0..\Drops" /S /Q MKDIR "%~dp0..\Drops" MKDIR "%~dp0..\Drops\Temp" MKDIR "%~dp0..\Drops\Temp\agent" MKDIR "%~dp0..\Drops\Temp\agent\bin" XCOPY /E /Y "%~dp0..\Solutions\*.*" "%~dp0..\Drops\Temp" XCOPY /E /Y "%~dp0..\..\src\OctopusPuppet.Cmd\bin\Release\*.*" "%~dp0..\Drops\Temp\agent\bin" DEL "%~dp0..\Drops\T...
Upgrade Erai to use CMake 3.0.2
@echo off if exist "C:\Work\D\Vvmn\*" goto deleteDir echo No existing build directory goto updateScripts :deleteDir echo Delete directory pushd "C:\Work\D\Vvmn" for /d %%d in (*.*) do rmdir /s /q "%%d" del /q *.* popd :updateScripts cd C:\Work\VesselView\Dashboards\VesselView "C:\Program Files (x86)\Git\bin\git" fet...
@echo off if exist "C:\Work\D\Vvmn\*" goto deleteDir echo No existing build directory goto updateScripts :deleteDir echo Delete directory pushd "C:\Work\D\Vvmn" for /d %%d in (*.*) do rmdir /s /q "%%d" del /q *.* popd :updateScripts cd C:\Work\VesselView\Dashboards\VesselView "C:\Program Files (x86)\Git\bin\git" fet...
Update lit version to fix windows build
@ECHO off @SET LIT_VERSION=1.1.4 IF NOT "x%1" == "x" GOTO :%1 :luvit IF NOT EXIST lit.exe CALL make.bat lit ECHO "Building luvit" lit.exe make GOTO :end :lit ECHO "Building lit" PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/...
@ECHO off @SET LIT_VERSION=1.1.8 IF NOT "x%1" == "x" GOTO :%1 :luvit IF NOT EXIST lit.exe CALL make.bat lit ECHO "Building luvit" lit.exe make GOTO :end :lit ECHO "Building lit" PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/...
Include a jade wrapper that emits an ".htm" file instead of ".html"
@echo off REM Usage: BloomJade mytemplate.jade --someargument someargument REM the %~2 %~3 here are just places for optional arguments to get REM passed through to JADE. If they're missing, no problem. REM The %~1 is the jade file name. call jade --pretty %~2 %~3 %~1 >&2 if errorlevel 1 goto :eof call del %~n1.htm re...
Use paket install instead of paket restore
@echo off set fake_args=%* cd "._fake" call "paket.bat" "restore" cd ".." "._fake\packages\FAKE\tools\FAKE.exe" "build.fsx" %fake_args%
@echo off set fake_args=%* cd "._fake" call "paket.bat" "install" cd ".." "._fake\packages\FAKE\tools\FAKE.exe" "build.fsx" %fake_args%
Improve startup script for windows
set SPECWARE4=C:\Progra~1\Specware4 rem SWPATH needs /s rather than \s so URI parsing works set SWPATH=/Progra~1/Specware4;/ set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6 rem Set allegro to the version you have set ALLEGRO=C:\Progra~1\acl62 rem set ALLEGRO=C:\Progra~1\acl61 set SPECWARE_BIN=%SPECWARE4%\Applicati...
set SPECWARE4=C:\Progra~1\Specware4 rem SWPATH needs /s rather than \s so URI parsing works set SWPATH=C:/Progra~1/Specware4;C:/ set XEMACS=C:\Progra~1\XEmacs\XEmacs-21.4.6 rem Set allegro to the version you have set ALLEGRO=C:\Progra~1\acl62 rem set ALLEGRO=C:\Progra~1\acl61 set SPECWARE_BIN=%SPECWARE4%\Appli...
Add support for creating zip distributions to the install script
@ECHO OFF TITLE 3RVX Installer Builder ECHO " _____ ______ ____ _______ " ECHO " |___ /| _ \ \ / /\ \/ /___ / " ECHO " |_ \| |_) \ \ / / \ / |_ \ " ECHO " ___) | _ < \ V / / \ ___) | " ECHO " |____/|_| \_\ \_/ /_/\_\____/ " ECHO " " ECHO This script...
@ECHO OFF TITLE 3RVX Installer Builder ECHO " _____ ______ ____ _______ " ECHO " |___ /| _ \ \ / /\ \/ /___ / " ECHO " |_ \| |_) \ \ / / \ / |_ \ " ECHO " ___) | _ < \ V / / \ ___) | " ECHO " |____/|_| \_\ \_/ /_/\_\____/ " ECHO " " ECHO This script...
Copy style and images to output in edit documentation script
..\Tools\Lynx\WikiPad.exe Index.wikiproj
copy style.css ..\Output\Documentation copy Images ..\Output\Documentation\Images ..\Tools\Lynx\WikiPad.exe Index.wikiproj
Build the GitHub.VisualStudio project and VSIX file
@if "%config%" == "" set config=Debug call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" msbuild GitHubVS.sln /p:Configuration=%Config%
@if "%config%" == "" set config=Debug call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" @rem Build the GitHub.VisualStudio project / VSIX file msbuild GitHubVS.sln /p:Configuration=%Config% /t:GitHub_VisualStudio
Make prebuild more flexible by trying to find where git is installed
ECHO Get revision number from git echo // Pre build automatically generated header file> GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed) git rev-list HEAD | find /v /c "" ...
ECHO Get revision number from git echo // Automatically generated header file created by Prebuild.bat > GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed somewhere...
Add Bach's DOS launch batch script
@ECHO OFF :BEGIN IF [%1]==[boot] GOTO :BOOT IF [%1]==[clean] GOTO :CLEAN IF [%1]==[describe] GOTO :DESCRIBE IF [%1]==[/?] GOTO :HELP IF [%1]==[help] GOTO :HELP IF [%1]==[version] GOTO :VERSION java --module-path .bach\cache --module com.github.sormuras.bach %* GOTO :END :BOOT jshell https://github.com/sormuras/bach/...
Fix paths in CI script
echo Running Windows build and testscript %cd%/matlab/CIBuildAndTest.m call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('%cd%/matlab/CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);" if not "%ERRORLEVE...
echo Running Windows build and testscript %cd%/matlab/CIBuildAndTest.m call "C:\Program Files\MATLAB\R2015b\bin\matlab.exe" -wait -nodisplay -nosplash -nodesktop -r "try, run('%cd%\matlab\CIBuildAndTest.m'), catch ex, disp(['Exception during CIBuildAndTest.m: ' ex.message]), exit(1), end, exit(0);" if not "%ERRORLEVE...
Delete model files from AS3 SDK for a cleaner build.
pushd .. rem === BUILDING ActionScriptSDK === node generate.js ..\API_Specs actionscript=..\sdks\ActionScriptSDK\PfApiTest popd
rem === Cleaning existing files from ActionScriptSDK === pushd ../../sdks/ActionScriptSDK/PfApiTest/com/playfab pushd AdminModels del *.as >nul 2>&1 popd pushd ClientModels del *.as >nul 2>&1 popd pushd MatchmakerModels del *.as >nul 2>&1 popd pushd ServerModels del *.as >nul 2>&1 popd popd pushd .. r...
Use the latest experimental build settings.
REM Configure Jemalloc build with options CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1 -Ddisable-stats=1 -Ddisable-cache-oblivious=1 ..
REM Configure Jemalloc build with options CMake -G "Visual Studio 12 Win64" -Ddisable-fill=1 -Dwith-malloc-conf=purge:decay .. REM Debug build settings REM CMake -G "Visual Studio 12 Win64" -Denable-debug=1 -Dwith-malloc-conf=junk:true ..
Revert "Remove unnecessary uses of "%~1""
@echo off setlocal set "output=nul" set "times=1" goto :parsePackage :help :: TODO: put something here. goto :eof :usage call :help 1>&2 exit /b 1 :parsePackage if "%~1" == "" goto usage set "package=%~1" shift :parseArgs if "%~1" == "" goto main if /i %1 == "-?" goto help if /i %1 == "-h" goto help if /i %...
@echo off setlocal set "output=nul" set "times=1" goto :parsePackage :help :: TODO: put something here. goto :eof :usage call :help 1>&2 exit /b 1 :parsePackage if "%~1" == "" goto usage set "package=%~1" shift :parseArgs if "%~1" == "" goto main if /i "%~1" == "-?" goto help if /i "%~1" == "-h" goto help i...
Switch build script to use visual studio msbuild instead 4.0 msbuild
@echo off :: Arguments check ::if [%~1]==[] ( :: echo. :: echo ERROR: Not enough Arguments :: echo USAGE: build.bat [C:\path\to\project] :: exit /b 1 ::) ::set projectPath=%~f1 :: Set .NET 4.6 framework path set msbuildPath="%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\" :: Run build command cd.. %msbui...
@echo off cd "%~dp0" :: Arguments check ::if [%~1]==[] ( :: echo. :: echo ERROR: Not enough Arguments :: echo USAGE: build.bat [C:\path\to\project] :: exit /b 1 ::) ::set projectPath=%~f1 :: Set .NET 4.6 framework path set windows_msbuild_path="%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\" set vs_msbu...
Include the cmd script for notebook execution
echo "Running the notebooks..." jupyter nbconvert --to notebook --execute "Pulse Building Tutorial.ipynb" jupyter nbconvert --to notebook --execute "Filter compensation.ipynb" jupyter nbconvert --to notebook --execute "Subsequences.ipynb" echo "Cleaning up the generated output..." rm *nbconvert.ipynb
Set correct default project name during the Windows-based Datastore emulator start.
gcloud beta emulators datastore start --project=spine --host-port=localhost:8080 --consistency 1.0 --no-store-on-disk
gcloud beta emulators datastore start --project=spine-dev --host-port=localhost:8080 --consistency 1.0 --no-store-on-disk
Fix db creation in windows now it'd done by the dbserver and it's under oqdata
@echo off setlocal set mypath=%~dp0 set PATH=%PATH%;%mypath%\python2.7 set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath% REM Create the DB or update it python.exe -m openquake.server.db.upgrade_manager "%HOMEPATH%\db.sqlite3" echo Please wait ... REM Start the DbServer in background but within the ...
@echo off setlocal set mypath=%~dp0 set PATH=%PATH%;%mypath%\python2.7 set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath% echo Please wait ... REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B python.exe -m openquake.server.dbserver REM Make sure that th...
Tweak to update version -- which will now work regardless of your checkout directory structure.
svn info c:\dev\sipXtapi | sed -n -e /Revision:/p | cut -c 11-
svn info . | sed -n -e /Revision:/p | cut -c 11-
Fix for windows failure in example package
mkdir %SCRIPTS% echo "hello world" > %SCRIPTS%\example.txt set >> %SCRIPTS%\example.txt
mkdir %SCRIPTS% echo "hello world" > %SCRIPTS%\example.txt set >> %SCRIPTS%\example.txt echo "Finished" >> %SCRIPTS%\example.txt
Add NuGet restore to batch file
@echo off "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" mkdir Releases copy GitMind\bin\Debug\GitMind.exe Releases\GitMindSetup.exe /Y pause
@echo off nuget restore "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" mkdir Releases copy GitMind\bin\Debug\GitMind.exe Releases\GitMindSetup.exe /Y pause
Return exit code from batch script if build fails [full ci]
REM Using the artifacts plugin v1.3 on Windows seems to break the whole step buildkite-agent artifact download "Bugsnag.unitypackage" . cd features\scripts C:\Progra~1\Git\bin\bash.exe build_maze_runner.sh windows cd ..\fixtures\maze_runner\build 7z a -r Windows-%UNITY_VERSION%.zip Windows
REM Using the artifacts plugin v1.3 on Windows seems to break the whole step buildkite-agent artifact download "Bugsnag.unitypackage" . cd features\scripts C:\Progra~1\Git\bin\bash.exe build_maze_runner.sh windows IF NOT [%ERRORLEVEL%] EQU [0] EXIT /B %ERRORLEVEL% cd ..\fixtures\maze_runner\build 7z a -r Windows-%UNIT...
Add port number to server output
@echo off title PostgreSQL Portable cls :: set default code page chcp 1252 > nul :: initialise a new database on first use if not exist "%PGDATA%" ( echo. echo Initialising database for first use, please wait... "%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul ) :: startup postgres ...
@echo off title PostgreSQL Portable cls :: set default code page chcp 1252 > nul :: initialise a new database on first use if not exist "%PGDATA%" ( echo. echo Initialising database for first use, please wait... "%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul ) :: startup postgres ...
Make sure to update nuget
@echo off cd %~dp0 SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe IF EXIST %CACHED_NUGET% goto copynuget echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyCon...
@echo off cd %~dp0 SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe IF EXIST %CACHED_NUGET% goto copynuget echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyCon...
Make HOME environment var permanent on Windows
:: Symbolically link to all of the dot files in this directory from the :: home directory. @echo off net file >nul 2> nul && goto :Elevated echo error: Administrator rights are required to make symbolic links on Windows. exit /b 1 :Elevated if not defined HOME ( set HOME=%USERPROFILE% ) for %%f in (%~dp0.\.*) ...
:: Symbolically link to all of the dot files in this directory from the :: home directory. @echo off net file >nul 2> nul && goto :Elevated echo error: Administrator rights are required to make symbolic links on Windows. exit /b 1 :Elevated if not defined HOME ( set HOME=%USERPROFILE% ) setx HOME %HOME% for %%...
Reduce installer and package size a little bit by excluding some unneeded wxWidgets files.
set app_title=WhackEd4 set app_description=A Windows Dehacked editor. set app_name=WhackEd4 set app_name_lower=whacked4 set app_version=1.2.1 set app_version_value=1.2.1 set app_version_title=1.2.1 set build_path=".\build\exe.win32-2.7" set python_interpreter="c:\python27\python.exe" set setup_compiler="C:\Program ...
set app_title=WhackEd4 set app_description=A Windows Dehacked editor. set app_name=WhackEd4 set app_name_lower=whacked4 set app_version=1.2.1 set app_version_value=1.2.1 set app_version_title=1.2.1 set build_path=".\build\exe.win32-2.7" set python_interpreter="c:\python27\python.exe" set setup_compiler="C:\Program ...
Fix dll path in Unity build script
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" ..\Yoga\Yoga.vcxproj /p:configuration=Release /property:Platform=x64 xcopy "..\Yoga\x64\Release\yoga.dll" %~dp0 /s /d /y
"C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" ..\Yoga\Yoga.vcxproj /p:configuration=Release /property:Platform=x64 xcopy "..\Yoga\bin\x64\Release\yoga.dll" %~dp0 /s /d /y
Use sysroot var in py.exe invoke
@ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET Va...
@ECHO off CHCP 65001 > NUL CD /d "%~dp0" SETLOCAL ENABLEEXTENSIONS SET KEY_NAME="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" SET VALUE_NAME=HideFileExt FOR /F "usebackq tokens=1-3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO ( SET ValueName=%%A SET ValueType=%%B SET Va...
Set HOME to USERPROFILE by default
:: hard link to all of the dot files in this directory from the :: home directory. @echo off setx HOME %HOME% for %%f in (%~dp0.\.*) do ( if exist %HOME%\%%~nxf ( del /P %HOME%\%%~nxf ) mklink /h %HOME%\%%~nxf %%f )
:: hard link to all of the dot files in this directory from the :: home directory. @echo off if not defined HOME ( set HOME=%USERPROFILE% ) setx HOME %HOME% for %%f in (%~dp0.\.*) do ( if exist %HOME%\%%~nxf ( del /P %HOME%\%%~nxf ) mklink /h %HOME%\%%~nxf %%f )
Add cmd file to regenerate all bindings.
set ORIGINAL_DIR=%CD% cd JavaScript\CoreBindings call RegenerateCoreBindings.cmd cd %ORIGINAL_DIR% cd JavaScript\JavaScriptBindings call RegenerateJavaScriptBindings.cmd cd %ORIGINAL_DIR% cd BulletPhysics\BulletPhysicsBindings call RegenerateBulletPhysicsBindings.cmd cd %ORIGINAL_DIR% cd UrhoRenderer\UrhoRendererBi...
Support case where settings are not stored in the Registry but on disk
REG DELETE "HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Favorites\Files" /va /f
@echo off CLS ECHO. ECHO ============================= ECHO Running Admin shell ECHO ============================= :init setlocal DisableDelayedExpansion set cmdInvoke=1 set winSysFolder=System32 set "batchPath=%~0" for %%k in (%0) do set batchName=%%~nk set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.v...
Use IEX_WITH_WERL environment variable to enable --werl by default.
@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %ELIXIR_IEX_FLAGS% %*
@if defined ELIXIR_CLI_ECHO (@echo on) else (@echo off) @if defined IEX_WITH_WERL (@set __ELIXIR_IEX_FLAGS=--werl) else (set __ELIXIR_IEX_FLAGS=) call "%~dp0\elixir.bat" +iex --erl "-user Elixir.IEx.CLI" --no-halt %__ELIXIR_IEX_FLAGS% %* @set __ELIXIR_IEX_FLAGS=
Copy fftw library to correct file-name
@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
@echo off set "INCLUDE=%LIBRARY_INC%;%INCLUDE%" set "LIB=%LIBRARY_LIB%;%LIB%" xcopy /i %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 missing `sonar:sonar` for windows script
mvn clean jacoco:prepare-agent verify jacoco:report -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
mvn clean jacoco:prepare-agent verify jacoco:report sonar:sonar -Dmaven.javadoc.failOnError=false -s dev\settings-sonarqube.xml %*
Fix conda wrapper for Windows
@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" ( ...
@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" ( @pu...
Use Windows environment variable substitution
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\code.cloudfoundry.org\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\...
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\code.cloudfoundry.org\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\...
Use "call" for running Gradle
@REM @REM Copyright (c) 2013 mgm technology partners GmbH @REM @REM Licensed under the Apache License, Version 2.0 (the "License"); @REM you may not use this file except in compliance with the License. @REM You may obtain a copy of the License at @REM @REM http://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless...
@REM @REM Copyright (c) 2013 mgm technology partners GmbH @REM @REM Licensed under the Apache License, Version 2.0 (the "License"); @REM you may not use this file except in compliance with the License. @REM You may obtain a copy of the License at @REM @REM http://www.apache.org/licenses/LICENSE-2.0 @REM @REM Unless...
Add missing license to wrapper batch.
@echo off python "%~dp0\rossum.py" %*
@echo off REM REM Copyright (c) 2016, G.A. vd. Hoorn REM REM Licensed under the Apache License, Version 2.0 (the "License"); REM you may not use this file except in compliance with the License. REM You may obtain a copy of the License at REM REM http://www.apache.org/licenses/LICENSE-2.0 REM REM Unless required by ...
Update azure-cli's kudu specific branch.
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-tools-...
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s20 ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-to...
Change script to install azure-cli from a private branch, so we have the latest fixes (not dependant on azure-cli schedule for them).
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update azure-cli ) else ( cmd /c npm install azure-cli ) IF %ERRORLEVEL% NEQ 0 goto error if exist %1\node_modules\kudusync\bin\kudusync ( cmd /c npm update kudusync ) else ( cmd /c npm install kudusync ) IF %ERRORLEVEL% NEQ 0 got...
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/latest ) IF %ERRORLEVEL% NEQ 0 goto error if exist %1\node_modules\kudusync\bin...
Remove duplicate dost.jar from CLASSPATH - ID: 3499953
@echo off REM This file is part of the DITA Open Toolkit project hosted on REM Sourceforge.net. See the accompanying license.txt file for REM applicable licenses. REM (c) Copyright IBM Corp. 2006 All Rights Reserved. REM Get the absolute path of DITAOT's home directory set DITA_DIR=%~dp0 REM Set environment var...
@echo off REM This file is part of the DITA Open Toolkit project hosted on REM Sourceforge.net. See the accompanying license.txt file for REM applicable licenses. REM (c) Copyright IBM Corp. 2006 All Rights Reserved. REM Get the absolute path of DITAOT's home directory set DITA_DIR=%~dp0 REM Set environment var...
Add the script that is used to setup CI test server
@echo off setlocal if [%2]==[] goto :Usage if [%1]==[/?] goto :Usage if [%1]==[-?] goto :Usage if [%1]==[/help] goto :Usage if [%1]==[-help] goto :Usage set _n=%1 set _exitCode=0 set _cmd= set _cmd1= :Loop shift if [%1]==[] goto :Continue if [%1]==[#] ( set _cmd1=%_cmd1% %_cmd% set _cmd= goto :Loop ) set...
Use "python.exe" in PATH too, instead of only relying on fixed location.
@C:\Python26\python.exe %~dp0\clcache.py %*
@echo off if exist C:\Python26\python.exe ( C:\Python26\python.exe %~dp0\clcache.py %* ) else ( python.exe %~dp0\clcache.py %* )
Revert "print detailed debug info when creating DB"
@echo off echo [INFO] create db. echo [INFO] please confirm db encoding utf-8. echo [INFO] please confirm has modified es/web/pom.xml--^>profile--^>development---^>connection.admin.url/connection.username/password cd %~dp0 cd ../web call mvn db:create -e -X cd ../bin pause
@echo off echo [INFO] create db. echo [INFO] please confirm db encoding utf-8. echo [INFO] please confirm has modified es/web/pom.xml--^>profile--^>development---^>connection.admin.url/connection.username/password cd %~dp0 cd ../web call mvn db:create cd ../bin pause
Disable Python virtualenv on Jenkins
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN...
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN...
Remove echo so the API key doesn't appear on screen.
if "%NUGET_API_KEY%" == "" goto NO_KEY if "%1" == "" goto MISSING_INPUT_FOLDER REM dotnet nuget push %1\*.nupkg --api-key %NUGET_API_KEY% for %%f in (%1\*.nupkg) do dotnet nuget push %%f --api-key %NUGET_API_KEY% --source https://nuget.org/ GOTO END :NO_KEY ECHO Couldn't find 'NUGET_API_KEY' environment variable. E...
@ECHO OFF if "%NUGET_API_KEY%" == "" goto NO_KEY if "%1" == "" goto MISSING_INPUT_FOLDER REM dotnet nuget push %1\*.nupkg --api-key %NUGET_API_KEY% for %%f in (%1\*.nupkg) do dotnet nuget push %%f --api-key %NUGET_API_KEY% --source https://nuget.org/ GOTO END :NO_KEY ECHO Couldn't find 'NUGET_API_KEY' environment ...
Make a Microsoft import library for the x64 csound64.dll.
@echo CREATING MICROSOFT IMPORT LIBRARY FOR CSOUND64.DLL FOR X64 dumpbin /exports csound-mingw64/csound64.dll > exports.txt @echo LIBRARY CSOUND64 >> csound64.def @echo EXPORTS >> csound64.def FOR /F "skip=19 tokens=4" %%l in (exports.txt) do @echo %%l >> csound64.def lib /def:csound64.def /out:csound64.lib /machine:x6...
Move luvit windows make to new style
@ECHO off IF NOT "x%1" == "x" GOTO :%1 :luvit IF NOT EXIST lit.exe CALL Make.bat lit ECHO "Building luvit" SET LUVI_APP=app/ SET LUVI_TARGET=luvit.exe lit\luvi-binaries\Windows\luvi.exe SET "LUVI_APP=" SET "LUVI_TARGET=" GOTO :end :lit ECHO "Building lit" git clone --recursive --depth 10 https://github.com/luvit/lit...
@ECHO off IF NOT "x%1" == "x" GOTO :%1 :luvit IF NOT EXIST lit.exe CALL Make.bat lit ECHO "Building luvit" lit.exe make GOTO :end :lit ECHO "Building lit" PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/raw/0.9.8/web-install.p...