Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix errai dashboard script reset to master
@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...
Use PWD instead of WORKSPACE in windows batch script.
@ECHO OFF REM Test default configuration against examples on windows. REM WORKSPACE is always set inside our testing environment. If this is run REM outside that environment, the caller is responsible for setting it. IF "%WORKSPACE%"=="" GOTO ErrExit REM NOTE: This is pretty messy, but it is the only way I could figu...
@ECHO OFF REM Test default configuration against examples on windows. REM WORKSPACE is always set inside our testing environment. If this is run REM outside that environment, the caller is responsible for setting it. IF "%WORKSPACE%"=="" GOTO ErrExit REM NOTE: This is pretty messy, but it is the only way I could figu...
Tweak the command used for the "run" argument
:: Forward the ./doom script to Emacs @ECHO OFF PUSHD "%~dp0" >NUL IF "%1"=="run" ( SHIFT emacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks" ) ELSE ( emacs --quick --script .\doom -- %* ) POPD >NUL ECHO ON
:: Forward the ./doom script to Emacs @ECHO OFF PUSHD "%~dp0" >NUL IF "%1"=="run" ( SHIFT start runemacs -Q %* -l ..\init.el -f "doom|run-all-startup-hooks" ) ELSE ( emacs --quick --script .\doom -- %* ) POPD >NUL ECHO ON
Add a batch file to build all of the nuget packages, including the DNX stuff. This isn't part of NightlyBuild.cmd yet, because it requires some special machine setup for the DNX part.
@echo off setlocal call NightlyBuild.cmd set PackageDir=%~dp0LocalPackages call dnu restore dnx\src\Microsoft.DotNet.xunit.performance.runner.dnx\project.json -f %PackageDir% call dnu pack dnx\src\Microsoft.DotNet.xunit.performance.runner.dnx\project.json --out %PackageDir% --configuration Release
Package restore script fixes (possibly some due to PowerShell 4 compatibility issues)
@echo off setlocal for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i if "%nuget_path%"=="" goto :nonuget set packages_path=%~dp0packages if exist "%packages_path%\repositories.config" ( for /f "usebackq delims=" %%p in (`PowerShell -C "Get-Content '%packages_path%\repositories.config' | Select-Xml //rep...
@echo off setlocal for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i if "%nuget_path%"=="" goto :nonuget set packages_path=%~dp0packages if exist "%packages_path%\repositories.config" ( for /f "usebackq delims=" %%p in (`PowerShell -C "[xml](Get-Content '%packages_path%\repositories.config') | Select-Xm...
Fix character corruption in Windows
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPATH%" cc.redpen.Main %*...
@echo off SETLOCAL if NOT DEFINED JAVA_HOME goto err set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set REDPEN_HOME=%%~dpfI set REDPEN_CLASSPATH=%REDPEN_HOME%/conf;%REDPEN_HOME%/lib/* set JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF-8 "%JAVA_HOME%\bin\java" %JAVA_OPTS% -classpath "%REDPEN_CLASSPA...
Use %* instead of enumerated arguments when calling java
@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...
@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...
Change directory - useful with ConEmu and MinGW
function cdt() { case "$1" in "-h") showcdtusage;; "") cdtbranches unstable;; "unstable") cdtbranches $1;; "10.3") cdtbranches $1;; "10.2") cdtbranches $1;; "10.1") cdtbranches $1;; "conv") cd /c/src/conversion;; "home") cd /c/users/chirag.shukla;; "d") cd /d;; "safe") cd ...
Fix the path to build_autodoc_files.py and call it by default everytime (it is safe as it does not re-generate files which already exist)
@echo off REM docs\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywina...
@echo off doc_src\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinau...
Add template of bat script
@echo off @rem ------------------------------------ @rem @file xxx.bat @rem @brief yyy @rem @author zzz@aaa @rem @date yyyy/mm/dd @rem @par Copyright @rem 2016-20XX YYYY All rights reserved. @rem Released under the MIT license @rem http://opensource.org/licenses/mit-license.php @rem ---...
Use robocopy to copy subdirs too
set FFMPEG_FN=ffmpeg-%PKG_VERSION%-win%ARCH% curl -L -O "https://ffmpeg.zeranoe.com/builds/win%ARCH%/dev/%FFMPEG_FN%-dev.7z" 7za x %SRC_DIR%\%FFMPEG_FN%-shared.7z -o%SRC_DIR% 7za x %FFMPEG_FN%-dev.7z -o%SRC_DIR% copy %SRC_DIR%\%FFMPEG_FN%-shared\bin %LIBRARY_BIN% copy %SRC_DIR%\%FFMPEG_FN%-dev\include %LIBRARY_INC% ...
set FFMPEG_FN=ffmpeg-%PKG_VERSION%-win%ARCH% curl -L -O "https://ffmpeg.zeranoe.com/builds/win%ARCH%/dev/%FFMPEG_FN%-dev.7z" 7za x %SRC_DIR%\%FFMPEG_FN%-shared.7z -o%SRC_DIR% 7za x %FFMPEG_FN%-dev.7z -o%SRC_DIR% robocopy %SRC_DIR%\%FFMPEG_FN%-shared\bin\ %LIBRARY_BIN%\ *.* /E if %ERRORLEVEL% GEQ 8 exit 1 robocopy %...
Add complete db installation before tests
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f ..\action_enter_edit_folders.sql 1> test_action_enter_edit_folders.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f test_action_enter_e...
REM install db call C:\funda_components\reports_manager\report_manager_database\reports_manager_test_db\install_reports_manager_test_db.bat "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d reports_manager_test_db -p 5432 -f ..\action_enter_edit_folders.sql 1> test_action_enter_edit_folders.l...
Enable all trace flags by default
@echo off traceview.exe -start UsbDk -rt -flag 0xFF -level 6 -ft 1 -pdb UsbDk.pdb -guid UsbDk.ctl mkdir WPP start traceview.exe -process -rt UsbDk -display -ods -o WPP\\UsbDk.txt -pdb UsbDk.pdb -guid UsbDk.ctl start dbgview.exe pause traceview.exe -stop UsbDk
@echo off traceview.exe -start UsbDk -rt -flag 0x7FFFFFFF -level 6 -ft 1 -pdb UsbDk.pdb -guid UsbDk.ctl mkdir WPP start traceview.exe -process -rt UsbDk -display -ods -o WPP\\UsbDk.txt -pdb UsbDk.pdb -guid UsbDk.ctl start dbgview.exe pause traceview.exe -stop UsbDk
Add flag specifying that random/srandom are not available on windows
mkdir -p build-cmake cd build-cmake cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_BUILD_TYPE=Release .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 MOVE %LIBRARY_LIB%\ann.dll %LIBRARY_BIN%
mkdir -p build-cmake cd build-cmake cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_BUILD_TYPE=Release -DANN_NO_RANDOM .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 MOVE %LIBRARY_LIB%\ann.dll %LIBRARY_BIN%
Use C:\Users\nuxeo instead of \Users\nuxeo in msi signing batch script (not set by Jenkins)
@echo off set DIST_DIR=dist set CERTIFICATE_PATH=%HOMEPATH%\certificates\nuxeo.com.pfx set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v ...
@echo off set DIST_DIR=dist set CERTIFICATE_PATH=%USERPROFILE%\certificates\nuxeo.com.pfx set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify ...
Delete OpenAL module from build from now on, because it's not yet used.
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q...
@rem Makes a build of the viewer @rem You should have a directory ..\viewerbuilddlls which has release versions of @rem all dependency dlls, including gtkmm & the Visual Studio 9 runtime @echo off rmdir build /S /Q md build xcopy bin\*.* build /S /C del build\data\configuration\*.xml rmdir build\testing /S /Q...
Make symbol extraction more verbose so progress can be observed
@echo Copying debug information... @IF %toolchain%==msvc ROBOCOPY "%devroot%\mesa\build\%toolchain%-%abi%" "%devroot%\%projectname%\debugsymbols\%abi%" *.pdb /E @IF NOT %toolchain%==msvc IF EXIST "%msysloc%\%LMSYSTEM%\bin\strip.exe" IF EXIST "%msysloc%\%LMSYSTEM%\bin\objcopy.exe" for /f delims^=^ eol^= %%a in ('dir /b ...
@IF %toolchain%==msvc ROBOCOPY "%devroot%\mesa\build\%toolchain%-%abi%" "%devroot%\%projectname%\debugsymbols\%abi%" *.pdb /E @IF NOT %toolchain%==msvc IF EXIST "%msysloc%\%LMSYSTEM%\bin\strip.exe" IF EXIST "%msysloc%\%LMSYSTEM%\bin\objcopy.exe" for /f delims^=^ eol^= %%a in ('dir /b "%devroot%\%projectname%\bin\%abi%\...
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 %*
Make test runner use the correct configuration
@echo off setlocal set _test_root=%DLR_ROOT%\Test set _runner=%_test_root%\TestRunner\TestRunner\bin\Debug\TestRunner.exe call :build_runner "%_runner%" "%_test_root%\IronPython.tests" /verbose /threads:1 /binpath:"%DLR_BIN%" /nunitoutput:"%_test_root%\TestResult.xml" %* endlocal goto:eof :build_runner %windir%\M...
@echo off setlocal if "%DLR_BIN%"=="" ( echo "You must set DLR_BIN before running this command" exit /b -1 ) if "%DLR_ROOT%"=="" ( echo "You must set DLR_ROOT before running this command" exit /b -1 ) set _test_root=%DLR_ROOT%\Test set _config=%CONFIGURATION% if "%_config%"=="" ( set _config=Debug ) set ...
Replace fwlink with direct link to contributor's guide.
@echo off setlocal :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successully delete the task :: assembly. :: Check prerequisites set _msbuildexe="%ProgramFiles(x86)%\...
@echo off setlocal :: Note: We've disabled node reuse because it causes file locking issues. :: The issue is that we extend the build with our own targets which :: means that that rebuilding cannot successully delete the task :: assembly. :: Check prerequisites set _msbuildexe="%ProgramFiles(x86)%\...
Add comment for %MSBuild% setting - CR follow-up
@echo off pushd %~dp0 setlocal if exist bin goto build mkdir bin :Build set MSBuild="%ProgramFiles(x86)%\MSBuild\12.0\Bin\MsBuild.exe" if not exist %MSBuild% @set MSBuild="%ProgramFiles%\MSBuild\12.0\Bin\MsBuild.exe" if not exist %MSBuild% @set MSBuild="%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" if...
@echo off pushd %~dp0 setlocal if exist bin goto build mkdir bin :Build REM Find the most recent 32bit MSBuild.exe on the system. If v12.0 (installed with VS2013) does not exist, fall back to REM v4.0. Also handle x86 operating systems, where %ProgramFiles(x86)% is not defined. Always quote the %MSBuild% value REM w...
Check for RunTest.cmd before running test on Nano.
@if "%_echo%" neq "on" echo off :: To run tests outside of MSBuild.exe :: %1 is the path to the tests\<OSConfig> folder :: %2 is the path to the packages folder pushd %1 FOR /D %%F IN (*.Tests) DO ( IF EXIST %%F\netcoreapp1.0 ( pushd %%F\netcoreapp1.0 CALL RunTests.cmd %2 popd ) ) popd
@if "%_echo%" neq "on" echo off :: To run tests outside of MSBuild.exe :: %1 is the path to the tests\<OSConfig> folder :: %2 is the path to the packages folder pushd %1 FOR /D %%F IN (*.Tests) DO ( IF EXIST %%F\netcoreapp1.0 ( pushd %%F\netcoreapp1.0 IF EXIST RunTests.cmd ( CALL RunTests.cmd %2 ) popd ...
Make the Wndows batch callable from any directory
@echo off set NaturalDocsParams= rem Shift and loop so we can get more than nine parameters. rem This is especially important if we have spaces in file names. :MORE if "%1"=="" goto NOMORE set NaturalDocsParams=%NaturalDocsParams% %1 shift goto MORE :NOMORE perl NaturalDocs %NaturalDocsParams% set ...
@perl %~dp0NaturalDocs %*
Build Pnacl in hermetic cygwin Use the same cygwin used for the GNU toolchain. This gets us a standard environment that is kept updated on the bots (see cygwin_env.bat).
:: Copyright (c) 2012 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 "PATH=c:\cygwin\bin;%PATH%" bash -c "buildbot/buildbot_pnacl.sh %*" if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL% endlocal
:: Copyright (c) 2012 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 :: Load the hermetic cygwin environment (downloading/installing/updating :: it if necessary). call "%~dp0cygwin_env.bat" bash -c...
Adjust build for windows to change how prefix is defined
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 --prefix=%PREFIX% .. if e...
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" -D CMAKE_CXX_STANDARD=11 -D CMAKE_INSTALL_PREFIX=...
Fix for spaces in path of repository
@ECHO OFF REM Set data directory with GTFS files as text in separate directories SET DATA_DIRECTORY="%~dp0..\data\gtfs" REM Set output directory for tests in GTFS zip format REM Don't chose a directory inside %DATA_DIRECTORY% SET GTFS_OUTPUT_DIRECTORY="%~dp0tests" REM Set output file for all tests combined in GTFS z...
@ECHO OFF REM Set data directory with GTFS files as text in separate directories SET DATA_DIRECTORY="%~dp0..\data\gtfs" REM Set output directory for tests in GTFS zip format REM Don't chose a directory inside %DATA_DIRECTORY% SET GTFS_OUTPUT_DIRECTORY="%~dp0tests" REM Set output file for all tests combined in GTFS z...
Add wrapper batch file for Jenkins to build
mkdir ..\libm2dec\Release mkdir ..\libm2dec\Debug mkdir ..\h264dec\Release mkdir ..\h264dec\Debug mkdir ..\m2dec\Release mkdir ..\m2dec\Debug "C:\Program Files (x86)\Renesas\Hew\hmake.exe" m2dec.mak > buildlog.txt find "ERROR" buildlog.txt if errorlevel 1 exit /b 0 exit /b 1
Create archives in windows build script
call tools\build_win_bdist64-py26.bat call tools\build_win_bdist32-py26.bat call tools\build_win_bdist64-py27.bat call tools\build_win_bdist32-py27.bat call tools\build_win_bdist32-py32.bat call tools\build_win_bdist64-py32.bat
call tools\build_win_bdist64-py26.bat call tools\build_win_bdist32-py26.bat call tools\build_win_bdist64-py27.bat call tools\build_win_bdist32-py27.bat call tools\build_win_bdist32-py32.bat call tools\build_win_bdist64-py32.bat call python setup.py sdist --formats=zip,gztar
Call pdflatex in non stop mode
doxygen cd latex pdflatex -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -shell-escape refman.tex pdflatex -shell-escape refman.tex cd .. copy latex\refman.pdf .
doxygen cd latex pdflatex -interaction=nonstopmode -shell-escape refman.tex makeindex -s ../refman.ist refman.idx pdflatex -interaction=nonstopmode -shell-escape refman.tex pdflatex -interaction=nonstopmode -shell-escape refman.tex cd .. copy latex\refman.pdf .
Add variable for password to call
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f ..\action_user_login.sql 1> test_action_user_login.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f test_action_user_login.sql 1>> test_act...
"C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f ..\action_user_login.sql 1> test_action_user_login.log 2>&1 "C:\Program Files\PostgreSQL\9.6\bin\psql.exe" -h localhost -U postgres -d system_user_demo_db -p 5432 -f test_action_user_login_master.sql 1>> t...
Add build script for MSVC 2017 community.
mkdir obj SET PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin;%PATH% SET "VSCMD_START_DIR=%CD%" CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 cl.exe /std:c++14 /O2 /MT /EHsc /I . /Fo.\obj\ ^ /D_USE_MATH_DEFINES ^ .\hl...
Expand author in Id keyword with user portion only
@echo off setlocal pushd "%~dp0" for /f %%i in (kwindex.txt) do call :id %%i goto :EOF :id setlocal echo %1 for /f "usebackq tokens=*" %%i in (`hg parents %1 --template "%~nx1 {node|short} {date|isodate} {author}\n"`) do set x=%%i call replace %1 \$Id(:.+?)?\$ "$Id: %x% $" > %temp%\%~nx1 copy %temp%\%~nx1 %...
@echo off setlocal pushd "%~dp0" for /f %%i in (kwindex.txt) do call :id %%i goto :EOF :id setlocal echo %1 for /f "usebackq tokens=*" %%i in (`hg parents %1 --template "%~nx1 {node|short} {date|isodate} {author|user}\n"`) do set x=%%i call replace %1 \$Id(:.+?)?\$ "$Id: %x% $" > %temp%\%~nx1 copy %temp%\%~...
Add a batch file to build on Windows with MSVC.
@setlocal @set SCHEME_H_DIR=..\src @set TSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DUSE_DL=1 /I%SCHEME_H_DIR% @set TSLIB=lib /nologo @set TSLINK=link /nologo @set REGSRC=re.c regcomp.c regexec.c regerror.c regfree.c @set OBJPRODN=re.obj regcomp.obj regexec.obj regerror.obj regfree.obj @if "%1"...
Fix http-analytics quickstart script for windows
@echo off REM --------------------------------------------------------------------------- REM Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 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 ...
@echo off REM --------------------------------------------------------------------------- REM Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. 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 ...
Update Rust version used by Appveyor
curl -sSf https://static.rust-lang.org/dist/rust-1.10.0-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIB...
curl -sSf https://static.rust-lang.org/dist/rust-1.24.0-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIB...
Disable pip cache dir on Windows
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate python -m pip install -r pyenv.pkgs CALL pyenv\Scripts\deactivate POPD
@ECHO OFF SET BASEDIR=%~dp0 PUSHD %BASEDIR% IF NOT EXIST pyenv\NUL GOTO NOENVDIR ECHO removing existing environment RMDIR /S /Q pyenv :NOENVDIR virtualenv pyenv CALL pyenv\Scripts\activate python -m pip install -r pyenv.pkgs --no-cache-dir CALL pyenv\Scripts\deactivate POPD
Add Batch File for Automated Testing with timeout
SET EXE=%2 start %1%EXE% timeout /t %3 FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1 exit /b %errorlevel%
Use xeli instead of eli
set SPECWARE4=\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\Applications...
set SPECWARE4=\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 rem set ALLEGRO=C:\Progra~1\acl62 set ALLEGRO=C:\Progra~1\acl61 set SPECWARE_BIN=$SPECWARE4\Applications...
Make Netica.dll available to Windows
java -Djava.library.path=lib -cp lib/NeticaJ.jar;target/vetaraus-1.0-SNAPSHOT-jar-with-dependencies.jar de.dhbw.vetaraus.Application --learn P003_learn.csv P003_classify.csv
set PATH=%PATH%;lib java -Djava.library.path=lib -cp lib/NeticaJ.jar;target/vetaraus-1.0-SNAPSHOT-jar-with-dependencies.jar de.dhbw.vetaraus.Application --learn P003_learn.csv P003_classify.csv
Add script to create nuget packages
msbuild\msbuild ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj /p:Configuration=Release nuget\nuget pack ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj -IncludeReferencedProjects -Prop Configuration=Release >>log.txt
msbuild\msbuild ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj /p:Configuration=Release nuget\nuget pack ..\src\Torken.CQRS.Core\Torken.CQRS.Core.csproj -IncludeReferencedProjects -Prop Configuration=Release
Use no-space path to current directory
@echo off echo. echo Portable Accord.NET Framework NuGet package publisher echo ========================================================= echo. echo This Windows batch file uses NuGet to automatically echo push the Portable Accord.NET Framework packages to the gallery. echo. timeout /T 5 :: Directory s...
@echo off echo. echo Portable Accord.NET Framework NuGet package publisher echo ========================================================= echo. echo This Windows batch file uses NuGet to automatically echo push the Portable Accord.NET Framework packages to the gallery. echo. timeout /T 5 :: Directory s...
Revert "fix syntax in Win ci build script"
@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");...
Use version of file and defaults runtime and arch
setlocal set BUILDSTAGE=build-stage set NUGETPATH=%BUILDSTAGE%\.nuget set NUGET=%NUGETPATH%\nuget.exe set PACKAGESPATH=%NUGETPATH%\packages :Build_EnvCheck call e5r 1>nul if "%ERRORLEVEL%"=="0" goto Build_NugetDownload echo. echo E5R Environment not installed! goto Build_End :Build_NugetDownload if exis...
setlocal set BUILDSTAGE=build-stage set NUGETPATH=%BUILDSTAGE%\.nuget set NUGET=%NUGETPATH%\nuget.exe set PACKAGESPATH=%NUGETPATH%\packages :Build_EnvCheck call e5r 1>nul if "%ERRORLEVEL%"=="0" goto Build_NugetDownload echo. echo E5R Environment not installed! goto Build_End :Build_NugetDownload if exis...
Load .env file on windows.
@echo off rem installer bug. http://stackoverflow.com/a/25095327 mkdir "%APPDATA%\npm" > NUL 2>&1 set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH% call npm install for /f "delims=\" %%i in ("%CD%") do set UID=%%i if "%REDIS_URL%" == "" ( set REDIS_URL=redis://localhost:6379/%UID% ) if ...
@echo off rem installer bug. http://stackoverflow.com/a/25095327 mkdir "%APPDATA%\npm" > NUL 2>&1 set PATH=node_modules\.bin;node_modules\lisb-hubot\node_modules\.bin;%PATH% call npm install for /f "delims=\" %%i in ("%CD%") do set UID=%%i for /f "tokens=1,2 delims==" %%i in (.env) do set %%i=%%j if "%REDIS_URL%" ...
Add sript to set APIs used by E2E Apps
@echo off if "%1" == "" goto :Error goto :Start :Error echo usage: %0 ^<application name^> echo where application name is a azure mobile Service app. goto :TheEnd :Start call azure mobile api create %1 admin --permissions *=admin call azure mobile api create %1 application --permissions *=application call azure mob...
Add script to plot dependency graph via cmake --graphviz
@echo off if not exist CMakeCache.txt ( echo Run this script from the CMake build folder exit /b ) if not exist graphviz mkdir graphviz cmake --graphviz=.\graphviz\deps.dot . && dot -Tpng -Gdpi=100 .\graphviz\deps.dot > deps.png && deps.png
Make run_webkit_test.bat workable even if we execute it on a directory other than webkit\tools\layout_tests\.
@..\..\..\third_party\python_24\python.exe run_webkit_tests.py %*
@%~dp0\..\..\..\third_party\python_24\python.exe %~dp0\run_webkit_tests.py %*
Use a different version of vstest.console to make sure the exit code is correct.
@echo off call "..\VsDevCmd.cmd" set platform="%1" if "%1" == "AnyCPU" ( set platform="x86" ) for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do ( if "%%~nxa"=="Magick.NET.Tests.dll" ( echo "Running tests from: %%~dpnxa" vstest.console /inIsolation /platform:%platform% /logger:AppVeyor %%~dpnxa ...
@echo off call "..\VsDevCmd.cmd" set platform="%1" if "%1" == "AnyCPU" ( set platform="x86" ) set vstest="%VSINSTALLDIR%Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do ( if "%%~nxa"=="Magick.NET.Tests.dll" ( echo "Running tests f...
Disable debug information generation when using ilrepack
msbuild /p:Configuration=Release NSISInfoWriter.sln ilrepack /targetplatform:v4 ^ /out:target\nsisiw.exe ^ /parallel ^ "%~dp0\NSISInfoWriter\bin\Release\nsisiw.exe" ^ "%~dp0\NSISInfoWriter\bin\Release\CommandLine.dll"
msbuild /p:Configuration=Release NSISInfoWriter.sln ilrepack /targetplatform:v4 ^ /out:target\nsisiw.exe ^ /parallel ^ /ndebug ^ "%~dp0\NSISInfoWriter\bin\Release\nsisiw.exe" ^ "%~dp0\NSISInfoWriter\bin\Release\CommandLine.dll"
Update the jenkins build to build Libevent.
md build cd build cmake -DLIBWS_WITH_AUTOBAHN=ON .. cmake --build . ctest bin\Debug\autobahntest.exe --config ..\test\autobahn\libws.cfg
cd deps cd libevent md build cd build cmake -DEVENT__DISABLE_TESTS=ON -DEVENT__DISABLE_REGRESS=ON -DEVENT__DISABLE_BENCHMARK=ON .. cd .. cd .. cd .. md build cd build cmake -DLibevent_DIR=deps/libevent/build/ -DLIBWS_WITH_AUTOBAHN=ON .. cmake --build . ctest bin\Debug\autobahntest.exe --config ..\test\autobahn\libws...
Add an option to clean the test directory
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run ../../runVimTests/bin/runVimTests.cmd --pure vimgrep.suite
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run echo "usage: runall.bat clean|run" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run echo Running ../../runVimTests/bin/runVimTests.cmd --pure vimgre...
Use velocity and jdom that was copied from jakarta-site2
@echo off echo. echo James Build System echo ------------------- set ANT_HOME=tools set CLASSPATH=lib\xerces.jar %ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 goto cleanup :cleanup set ANT_HOME=
@echo off echo. echo James Build System echo ------------------- set ANT_HOME=tools set CLASSPATH=lib\xerces-1.4.3.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar %ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8 goto cleanup :cleanup set ANT_HOME=
Update nuget commandline tool to 4.1.0 for bot.builder.history
@echo off echo *** Building Microsoft.Bot.Builder.History setlocal setlocal enabledelayedexpansion setlocal enableextensions set errorlevel=0 mkdir ..\nuget erase /s ..\nuget\Microsoft.Bot.Builder.History*nupkg msbuild /property:Configuration=release Microsoft.Bot.Builder.History.csproj for /f %%v in ('powershell -no...
@echo off echo *** Building Microsoft.Bot.Builder.History setlocal setlocal enabledelayedexpansion setlocal enableextensions set errorlevel=0 mkdir ..\nuget erase /s ..\nuget\Microsoft.Bot.Builder.History*nupkg msbuild /property:Configuration=release Microsoft.Bot.Builder.History.csproj for /f %%v in ('powershell -no...
Fix windows script start collector failure.
@echo off setlocal set COLLECOTR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_BASE_PATH=%~dp0%.. set COLLECTOR_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%COLLECTOR_BASE_PATH%\config; SET CLASSPATH=%COLLECTOR_BASE_PATH%\libs\*;%CLASSPATH% if ""%JAVA_HOME%"" == """" ( set _EXECJAVA=java ) else ( set _E...
@echo off setlocal set COLLECOTR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_BASE_PATH=%~dp0%.. set COLLECTOR_RUNTIME_OPTIONS="-Xms256M -Xmx512M" set CLASSPATH=%COLLECTOR_BASE_PATH%\config; SET CLASSPATH=%COLLECTOR_BASE_PATH%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) ...
Make Windows Installer more robust & auto updating
@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 "%HO...
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 IF NOT EXIST "%BASE_DIR%" ( call git clone --recursive -b 3.0 https://github.com/spf13/spf13-vim.git "%BASE_DIR%" ) ELSE ( @set ORIGINAL_DIR=%CD% echo updating spf13-vim ch...
Trim down the Windows installer size
@echo off echo Compiling... cd windeployqt qmake windeployqt.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR cd .. qmake presi-aoke.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR echo Copying files to staging del /Q /S .\staging mkdir...
@echo off echo Compiling... cd windeployqt qmake windeployqt.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR cd .. qmake presi-aoke.pro IF ERRORLEVEL ==1 GOTO :ERROR mingw32-make.exe release IF ERRORLEVEL ==1 GOTO :ERROR echo Copying files to staging del /Q /S .\staging mkdir...
Check for errors regarding ICProjConvert150
@echo off if "%~1" == "" ( echo Usage: release_win.bat path-to-bin-folder goto end ) setlocal set destroot=%cd%\%~1 set DESTDIR= mkdir build cd build del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\x64 -D COMPILER=ICC -G "Visual Studio 12 2013 Win64" .. ICProjCon...
@echo off if "%~1" == "" ( echo Usage: release_win.bat path-to-bin-folder goto end ) setlocal set destroot=%cd%\%~1 set DESTDIR= mkdir build cd build del CMakeCache.txt rem make sure to use default settings cmake -D CMAKE_INSTALL_PREFIX=%destroot%\x64 -D COMPILER=ICC -G "Visual Studio 12 2013 Win64" .. ICProjCon...
Add an argument to run only certain tests
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run echo "usage: runall.bat clean|run" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run echo Running ../../runVimTests/bin/runVimTests.cmd --pure vimgre...
@ECHO off REM This suite requires https://github.com/inkarkat/runVimTests to run if %1.==clean. goto Clean if %1.==run. goto Run if %1.==runall. goto RunAll echo "usage: runall.bat clean|run|runall" goto End :Clean echo Cleaning del /Q *.out 2> nul del /Q *.msgout 2> nul goto End :Run shift echo Running %1 %2 %3 %...
Disable tortoise git context menu on more types
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=TortoiseGit reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\Background\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMe...
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=TortoiseGit reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\Background\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMe...
Delete jar after packaging in zip
call sbt assembly del greedy.zip java -jar out/proguard5.0/lib/proguard.jar @proguard.config "C:\Program Files\7-Zip\7za.exe" a -tzip greedy.zip greedy.jar PAUSE
call sbt assembly del greedy.zip java -jar out/proguard5.0/lib/proguard.jar @proguard.config "C:\Program Files\7-Zip\7za.exe" a -tzip greedy.zip greedy.jar del greedy.jar PAUSE
Delete pdb files so they are not included in source zips.
rem ba.bat - download and build all of scintilla and scite rd /s/q scintilla scite cvs co scintilla scite cd scintilla call delbin del/q bin\*.a call delcvs call zipsrc cd win32 nmake -f scintilla.mak cd .. cd .. cd scite del/q bin\*.properties del/q bin\SciTE call delbin call delcvs call zipsrc cd win32 nmake -f scite...
rem ba.bat - download and build all of scintilla and scite rd /s/q scintilla scite cvs co scintilla scite cd scintilla call delbin del/q bin\*.a call delcvs call zipsrc cd win32 nmake -f scintilla.mak cd .. del/q bin\*.pdb cd .. cd scite del/q bin\*.properties del/q bin\SciTE call delbin call delcvs call zipsrc cd win3...
Move build type variables to the top
for /f %%c in ('wmic cpu get NumberOfCores ^| findstr [0-9]') do set "CORES=%%c" set SOURCE_DIR=%CD% set BUILD_DIR=../build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt-Installation\Tools\QtCreator\bin\jom.exe /J %CORES% call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevC...
set BUILD_DIR=../build-sqlitewrapper set CMAKE_BUILD_TYPE=Release for /f %%c in ('wmic cpu get NumberOfCores ^| findstr [0-9]') do set "CORES=%%c" set SOURCE_DIR=%CD% set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt-Installation\Tools\QtCreator\bin\jom.exe /J %CORES% call "C:\Program Files (x86)\Microsoft Visual St...
Convert Windows build script to MSVC
set SOURCE_DIR=%CD% set BUILD_DIR=build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=mingw32-make.exe -j2 cd .. if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COMMAND% -G "MinGW Makefiles" "%SOURCE_DIR%" || goto error %MAKE_COMMAND% || goto error cd "%SOURCE_DIR%" e...
set SOURCE_DIR=%CD% set BUILD_DIR=build-sqlitewrapper set CMAKE_COMMAND=cmake.exe set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2 call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat" cd .. if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%" cd "%BUILD_DIR%" || goto error %CMAKE_COM...
Fix OpenBLAS build on Windows
@echo off rem rem Extra installation script rem rem See CK LICENSE.txt for licensing details. rem See CK Copyright.txt for copyright details. rem rem Developer(s): Grigori Fursin, 2016-2017 rem rem ############################################################ echo. echo Preparing vars ... cd %INSTALL_DIR%\%PACKAGE_SU...
@echo off rem rem Extra installation script rem rem See CK LICENSE.txt for licensing details. rem See CK Copyright.txt for copyright details. rem rem Developer(s): Grigori Fursin, 2016-2017 rem rem ############################################################ echo. echo Preparing vars ... cd %INSTALL_DIR%\%PACKAGE_SU...
Fix Windows bat file for SDK try
@echo off :: Copyright (c) 2012 The The Chromium 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 :: TODO(noelallen) Share list with POSIX gcl try %* -b naclsdkm-mac -b naclsdkm-linux -b naclsdkm-linux ^ -b naclsd...
@echo off :: Copyright (c) 2012 The The Chromium 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 :: TODO(noelallen) Share list with POSIX gcl try %* -b naclsdkm-mac -b naclsdkm-linux -b naclsdkm-pnacl-linux ^ -b ...
Fix script to require VS 2019.
@echo off setlocal if not defined VisualStudioVersion ( if defined VS140COMNTOOLS ( call "%VS140COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) if defined VS120COMNTOOLS ( call "%VS120COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) echo Error: %~nx0 requires Visual Studio 2013 or ...
@echo off setlocal if not defined VisualStudioVersion ( if defined VS160COMNTOOLS ( call "%VS160COMNTOOLS%\VsDevCmd.bat" goto :EnvSet ) echo Error: %~nx0 requires Visual Studio 2019 because the .NET Core 3.0 SDK is needed. echo Please see https://github.com/dotnet/wcf/blob/maste...
Update script, seems to work for Qt-5.7.0 now.
set S7Z=%~dp0.\bin\7za.exe mkdir Package copy Source\*.txt Package\ copy Source\*LICENSE* Package\ copy Source\*README* Package\ "%S7Z%" x -oPackage Build\package-*.7z echo [Paths]>>Package\bin\qt.conf echo Prefix=..>>Package\bin\qt.conf pushd Package\include for /f "delims=" %%D in ('dir /ad /b /s ^| sort...
set S7Z=%~dp0.\bin\7za.exe mkdir Package copy Source\*.txt Package\ copy Source\*LICENSE* Package\ copy Source\*README* Package\ "%S7Z%" x -oPackage Build\package-*.7z echo [Paths]>>Package\bin\qt.conf echo Prefix=..>>Package\bin\qt.conf pushd Package\include for /f "delims=" %%D in ('dir /ad /b /s ^| sort...
Tweak packaging script for spaces in filenames
@echo off set zipcmd=%~dp0\tools\7z\7z.exe pushd %~dp0\..\.. %zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ -x!docs -x!README.md blenderseed-x.x.x.zip blenderseed popd move ..\..\blenderseed-x.x.x.zip . pause
@echo off set zipcmd="%~dp0\tools\7z\7z.exe" pushd %~dp0\..\.. %zipcmd% a -r -x!scripts -xr!.* -x!__pycache__ -x!docs -x!README.md blenderseed-x.x.x.zip blenderseed popd move ..\..\blenderseed-x.x.x.zip . pause
Add functional Windows pull script
@echo off REM Emacs XCOPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano XCOPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim XCOPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash XCOPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" XCOPY /Y bash\.bash_aliases "%USERPROFILE%\.bash_aliases" REM Sublime Text 3 MKDIR "%APPDATA%...
Add more lightweigth tools instead of full VS suite
@echo on choco install -y --allowEmptyChecksum firefox googlechrome wget notepadplusplus sublimetext3 mono monodevelop gtksharp visualstudiocode microsoft-build-tools visualstudio2015community p4merge dotnet4.5 ruby nodejs.install stylecop conemu dejavufonts call refreshenv wget -c https://cygwin.com/setup-x86_64.exe ...
@echo on choco install -y --allowEmptyChecksum firefox googlechrome wget notepadplusplus sublimetext3 mono monodevelop gtksharp visualstudiocode p4merge dotnet4.5 ruby nodejs.install stylecop conemu dejavufonts ag call refreshenv wget -c https://cygwin.com/setup-x86_64.exe setup-x86_64.exe -R "C:\cygwin64" -s http://m...
Revert usage to power shell
@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" @powershell -Command "java -cp \"..\lib\*\" %DEBUG_OPTS% \"-Daerobase.config.dir=%CONFIG%\" org.jboss.aerogear.unifiedpush.DBMaintenance" GOTO End1 :No1 EC...
@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" @powershell -Command "java -cp '..\lib\*' %DEBUG_OPTS% \"-Daerobase.config.dir=%CONFIG%\" org.jboss.aerogear.unifiedpush.DBMaintenance" GOTO End1 :No1 ECHO...
Fix launch script for windows.
set PWD=%~dp0 start /MIN "%PWD%dbserver\bin\openmole-dbserver.bat" mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole.location="%PWD%\" -Dosgi.classl...
set startdir=%cd% set PWD=%~dp0 cd /d %~dp0 start /MIN dbserver\bin\openmole-dbserver.bat cd %cd% mkdir "%UserProfile%\.openmole\.tmp" set ran="%UserProfile%\.openmole\.tmp\%random%" java -d64 -version >nul 2>&1 if errorlevel 1 goto is32bit set FLAG="-XX:+UseCompressedOops" :is32bit java -Dosgi.locking=none -Dopenmole....
Fix reference to Berkeley Java DB .jar file
copy ..\..\..\Rel\_Deployment\RelDBMS.jar . copy ..\..\..\Rel\_Deployment\commons-codec-1.4.jar . copy ..\..\..\Rel\_Deployment\commons-logging-1.1.1.jar . copy ..\..\..\Rel\_Deployment\ecj-4.4.2.jar . copy ..\..\..\Rel\_Deployment\httpclient-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpclient-cache-4.1.3.jar . copy ....
copy ..\..\..\Rel\_Deployment\RelDBMS.jar . copy ..\..\..\Rel\_Deployment\commons-codec-1.4.jar . copy ..\..\..\Rel\_Deployment\commons-logging-1.1.1.jar . copy ..\..\..\Rel\_Deployment\ecj-4.4.2.jar . copy ..\..\..\Rel\_Deployment\httpclient-4.1.3.jar . copy ..\..\..\Rel\_Deployment\httpclient-cache-4.1.3.jar . copy ....
Update directory tree for latest install of ddkbuild
copy /B objfre\i386\winpmc.sys c:\winnt\system32\drivers ntaddsvc winpmc net start winpmc
copy /B objfre_wnet_x86\i386\winpmc.sys c:\winnt\system32\drivers ntaddsvc winpmc net start winpmc
Convert the README file to HTML and include it in the bundle.
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off smartypants. third-party/disco...
Add cmd script to run the new single test case
@echo off pushd %~dp0 "%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_ONESTORE.S02_OneNoteRevisionStore.MSONESTORE_S02_TC06_LoadOneNoteWithAlternativePackaging /testcontainer:..\..\MS-ONESTORE\TestSuite\bin\Debug\MS-ONESTORE_TestSuite.dll /runconfig:..\..\MS-ONESTORE\MS-ONESTORE.testsettings /un...
Deploy - Open webstore editing page.
@echo off ::Move into chrome directory, zip it, then return here. cd chrome && call "7-zip.bat" && cd .. ::Merge psdle.js, psdle.user.js, and psdle.min.js to gh-pages. call "deploy-sync.bat" pause
::This is a near full-circle deployment script for PSDLE. ::It does two major things: :: - ./chrome/7-zip.bat - Zip up the PSDLE chrome extension properly for the webstore (and then opens the webstore for uploading). :: - ./deploy-sync.bat - Copy psdle.js, psdle.user.js, and psdle.min.js to the gh-pages branch for eve...
Add script to start bot on Windows
@echo off REM StarBot run script for Windows. REM Get latest version and star bot. echo Updating... git pull echo Starting bot... python main.py REM Loop back again. goto start
Add jenkins script for windows
cd %WORKSPACE% set PYTHON=c:\python26\python set EASY_INSTALL=c:\python26\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=c:\python26;c:\mingw\bin;%PATH% echo %SVN_REVISION%> svn_revision.txt %PYTHON% check_packages.py set PYTHONPATH=%WORKSPACE%\sansview-install;%...
Revert previous change. Bug is actually elsewhere.
@if defined ECHO (echo %ECHO%) else (echo off) REM REM Builds everything and drops it into the Build folder. REM You may specify additional arguments for MetaBuild also. REM "%~dp0tools\MetaBuild\bin\MetaBuild.bat" /rootdir "%~dp0." /metabuildconfig "%~dp0bin\MetaBuild.config.custom" %*
@if defined ECHO (echo %ECHO%) else (echo off) REM REM Builds everything and drops it into the Build folder. REM You may specify additional arguments for MetaBuild also. REM "%~dp0tools\MetaBuild\bin\MetaBuild.bat" /rootdir "%~dp0" /metabuildconfig "%~dp0bin\MetaBuild.config.custom" %*
Add question mark for questions
@echo off SET "memParams=-Xms4g -Xmx10g" SET debugParams= SET "rf2Archive=G:\incoming\SnomedCT_RF2Release_INT_20160131.zip" SET "secondDrive=D:\" SET newMemory= set /p newMemory="How much memory do you have available? [10g]: " IF NOT [%newMemory%]==[] SET "memParams=-Xms4g -Xmx%newMemory%" SET driveParam= set /p dri...
@echo off SET "memParams=-Xms4g -Xmx10g" SET debugParams= SET "rf2Archive=G:\incoming\SnomedCT_RF2Release_INT_20160131.zip" SET "secondDrive=D:\" SET newMemory= set /p newMemory="How much memory do you have available? [10g]: " IF NOT [%newMemory%]==[] SET "memParams=-Xms4g -Xmx%newMemory%" SET driveParam= set /p dri...
Set default version to .yml file
@ECHO OFF ECHO. ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% :: ensure we have Version.txt IF NOT EXIST Version.txt ( ECHO Version.txt is missing! GOTO error ) :: get the version and comment from Version.txt lines 2 and 3 SET RELEASE= SET COMMENT= FOR ...
@ECHO OFF ECHO. ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% :: ensure we have Version.txt IF NOT EXIST Version.txt ( ECHO Version.txt is missing! GOTO error ) :: get the version and comment from Version.txt lines 2 and 3 SET RELEASE=%APPVEYOR_BUILD_VE...
Add .bat wrapper around version header generation script
@echo off REM Windows batch script wrapper around the writeGitVersionHeader.sh bash script REM Author: Peter Nordin REM Date: 2017-02-07 set filepath="%~1" set name="%~2" set rev="%~3" set shorthash="%~4" REM Check where git bash is installed and use it if defined ProgramFiles(x86) ( REM Check for 32-bit version, ...
Add CMD file for new cases
@echo off pushd %~dp0 "%VS120COMNTOOLS%..\IDE\mstest" /test:Microsoft.Protocols.TestSuites.MS_ADMINS.S01_CreateAndDeleteSite.MSADMINS_S01_TC29_CreateSiteSuccessfully_WithoutTemplate /testcontainer:..\..\MS-ADMINS\TestSuite\bin\Debug\MS-ADMINS_TestSuite.dll /runconfig:..\..\MS-ADMINS\MS-ADMINS.testsettings /unique pause
Add windows batch file to install jamberoo libs
mvn install:install-file -DgroupId=jamberoo -DartifactId=bsh-2.0b4 -Dversion=1.0 -Dpackaging=jar -Dfile=./bsh-2.0b4.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=cct-globus -Dversion=1.0 -Dpackaging=jar -Dfile=./cct-globus.jar mvn install:install-file -DgroupId=jamberoo -DartifactId=Fragments -Dversion=1...
Use MSVC 2013 for continuous integration.
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random || EXIT ...
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 ...
Add unit test bat script
@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...
Add build release convenience script
@echo off @echo . @echo .. @echo ... @echo Running full Build Script, capturing output to buildlog.txt file... @echo Start Time: %time% build-support\tools\nant\bin\nant clean package -f:spring.build -D:project.build.sign=true -D:mstest.exe="c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\mstest.e...
Build using xbuild on Windows for mono
@@@ setlocal @@@ for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set msbuild=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe @@@ if not defined msbuild (echo MSBuild.exe not found>&2 & exit /b 42) @@@ if defined msbuild "%msbuild%" ...
@echo off setlocal for %%a in (%*) do echo "%%a" | findstr /C:"mono">nul && set buildtool=xbuild.bat if not defined buildtool for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set buildtool=%windir%\Microsoft.NET\Framework\%%i\msbuild....
Add a batch file to build on Windows with MSVC.
@setlocal @set SCHEME_H_DIR=..\src @set TSCOMPILE=cl /nologo /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /DWIN32 /DUSE_DL=1 /I%SCHEME_H_DIR% @set TSLIB=lib /nologo @set TSLINK=link /nologo @if "%1" == "static" goto STATIC @if not exist dll\ ( mkdir dll ) %TSCOMPILE% /MT tsx.c %TSLINK% /DLL /out:dll\tsx.dll /e...
Fix installer uploaded artifact filename.
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe...
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe...
Clean output of the checkout script
REM This script will checkout Banshee from git (and a few submodules that are needed). REM It will result in a banshee/ directory under where it's launched from. REM See banshee\build\windows\README.txt for more information REM (this file is tracked in version control at: http://git.gnome.org/browse/banshee/plain/build...
REM This script will checkout Banshee from git (and a few submodules that are needed). REM It will result in a banshee/ directory under where it's launched from. REM See banshee\build\windows\README.txt for more information REM (this file is tracked in version control at: http://git.gnome.org/browse/banshee/plain/build...
Update to kuduscript version 0.1.7
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/185e757b03239f556e73bead91b261f5fe3c8004 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %coun...
@echo off setlocal enabledelayedexpansion pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/3076c2ce36a3e11a71ea092098a40b11cb55d548 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %coun...
Use pytest and flake8 commands.
@echo off set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% python -m pytest python -m flake8
set PYTHON=%~1 set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH% pytest flake8
Support = signs in accumulator.
if "%ACC%" == "" goto emptyacc if "%SEPARATOR%" == "" goto noseparator set ACC=%ACC%%SEPARATOR%%1 goto end :noseparator set ACC=%ACC% %1 goto end :emptyacc set ACC=%1 goto end :end
if not defined ACC goto emptyacc if "%SEPARATOR%" == "" goto noseparator set ACC=%ACC%%SEPARATOR%%1 goto end :noseparator set ACC=%ACC% %1 goto end :emptyacc set ACC=%1 goto end :end
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...
Add a 'set -e'-like fail on command failure for batch script.
C:\Python27\Scripts\pip.exe install -r requirements.txt --allow-external pypubsub C:\Python27\Scripts\pip.exe install -r requirements-building.txt --allow-external pypubsub cd iridaUploader/docs C:\Python27\Scripts\sphinx-build -b html -d _build/doctrees . _build/html echo. 2>_build/__init__.py echo. 2>_build/html/__...
C:\Python27\Scripts\pip.exe install -r requirements.txt --allow-external pypubsub || exit /b C:\Python27\Scripts\pip.exe install -r requirements-building.txt --allow-external pypubsub || exit /b cd iridaUploader/docs || exit /b C:\Python27\Scripts\sphinx-build -b html -d _build/doctrees . _build/html || exit /b echo....
Add key to user's store
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -importpfx .\build\resources\authenticode-signing-cert.p12
openssl aes-256-cbc -k %ENCRYPTION_SECRET% -in .\build\resources\authenticode-signing-cert.p12.enc -out .\build\resources\authenticode-signing-cert.p12 -d -a certutil -p %KEY_PASSWORD% -user -importpfx .\build\resources\authenticode-signing-cert.p12 NoRoot
Revert to sleep in oq-webui.bat
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the WebUI using django start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui...
@echo off setlocal set mypath=%~dp0 set PATH=%mypath%\python2.7;%PATH% set PYTHONPATH=%mypath%\lib set OQ_SITE_CFG_PATH=%mypath%\openquake.cfg set OQ_HOST=127.0.0.1 set OQ_PORT=8800 echo Please wait ... REM Start the WebUI using django start "OpenQuake WebUI server" /B python.exe -m openquake.commands webui...
Set JAVA_HOME for Windows builds
call ..\gradlew clean installDist call "C:\Program Files\Java\jdk11\bin\jlink.exe" --verbose --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.logging,java.management,java.naming,java.sql,java.xml,jdk.unsupported --output build\install\plus-f\runtime call "C:\Program ...
set JAVA_HOME="C:\Program Files\Java\jdk11" call ..\gradlew clean installDist call "C:\Program Files\Java\jdk11\bin\jlink.exe" --verbose --no-header-files --no-man-pages --compress=2 --strip-debug --add-modules java.base,java.desktop,java.logging,java.management,java.naming,java.sql,java.xml,jdk.unsupported --output bu...