Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add steps for packaging Json extension. Use snupkg format for symbols.
@echo off echo. echo === TEST === echo. dotnet test --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj echo. echo === PACKAGE === echo. dotnet pack --include-symbols --include-source --configuration Release --output ..\.. src\DeepEqual\DeepEqual.csproj echo. pause
@echo off echo. echo === TEST === echo. dotnet test --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj echo. echo === PACKAGE === echo. dotnet pack ^ --include-symbols ^ -p:SymbolPackageFormat=snupkg ^ --include-source ^ --configuration Release ^ --output . ^ src\DeepEqual\DeepEqual.csproj dot...
Add a script to set up symlinks in P: and game dir
@echo off set source_dir=%~dp0\.. set arma3_dir=C:\Program Files (x86)\Steam\steamApps\common\Arma 3 IF NOT EXIST P: GOTO NODRIVE IF NOT EXIST %arma3_dir% GOTO NOARMA3DIR mkdir P:\z mkdir "%arma3_dir%\z" echo "Run this script as administrator!" mklink /D "%arma3_dir%\z\hehu" "%source_dir%" mklink /D "P:\z\hehu" "%...
Build into virtual environment of Conda
REM To avoid building in work/ alongside the source. Rather build in work/build/ mkdir build cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ...
REM To avoid building in work/ alongside the source. Rather build in work/build/ mkdir build cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON...
Remove examples from Codeplex Release package.
call DeletePdbFiles.cmd ..\Output\NET45\Examples call DeletePdbFiles.cmd ..\Output\NET40\Examples del /S /Q ..\Output\NET40\Examples "C:\Program Files\7-Zip\7z.exe" a -r ..\Output\HelixToolkit-%1.zip ..\Output\*.* > ZipRelease.log
mkdir ..\Output\Release mkdir ..\Output\Release\NET40 mkdir ..\Output\Release\NET45 copy ..\Output\NET45\HelixToolkit.??? ..\Output\Release copy ..\Output\NET45\HelixToolkit.Wpf.??? ..\Output\Release\NET45 copy ..\Output\NET40\HelixToolkit.Wpf.??? ..\Output\Release\NET40 copy ..\Output\NET45\HelixToolkit.Wpf.In...
Make app use forever on windows
@echo off set NODE_ENV=production set AUTH_TOKEN=changeme set PORT=80 if %AUTH_TOKEN%==changeme ( echo ***************************************************** echo Please change the AUTH_TOKEN in server/bin/server.bat echo ***************************************************** pause > nul EXIT ) coffee ./bin/...
@echo off set NODE_ENV=production set AUTH_TOKEN=changeme set PORT=80 if %AUTH_TOKEN%==changeme ( echo ***************************************************** echo Please change the AUTH_TOKEN in server/bin/server.bat echo ***************************************************** pause > nul EXIT ) forever ./bin...
Add in a new build bat for teh windoze
anvil copy ./lib/standard/postal.* ./example/standard/js copy ./lib/amd/postal.* ./example/amd/js/libs/postal copy ./lib/amd/postal.js ./example/node/client/js/lib copy ./lib/node/postal.js ./example/node/messaging
Store OS X files in zips.
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak cd scite
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak cd ...
Add error checking to package.bat.
nuget pack AgateLib/AgateLib.csproj nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj nuget pack AgateLib.Platform.WinForms/AgateLib.Platform.WinForms.csproj nuget pack AgateLib.Platform.Test/AgateLib.Platform.Test.csproj nuget pack AgateLib.Platform.IntegrationTest/Aga...
nuget pack AgateLib/AgateLib.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.Platform.WinForms/AgateLib.Platf...
Use /d switch for ls
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=c...
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=c...
Add VS tools initialization to NuGet package command so it can run standalone.
@echo off rem NuGet Package Script rem ==================== rem Creates a release build then generates the NuGet package into the output directory. rem Remember to update the version number and release notes in the "nuspec" file before each release. echo. echo Creating Release build msbuild "%~dp0Emlid.Windows...
@echo off rem NuGet Package Script rem ==================== rem Creates a release build then generates the NuGet package into the output directory. rem Remember to update the version number and release notes in the "nuspec" file before each release. echo. echo Initializing Visual Studio tools... call "%vs140comntools%...
Add window capture script for windows
"C:\Program Files\ffmpeg\bin\ffmpeg.exe" -f gdigrab -framerate 30 -i title="REACT RUNNING" -c:v h264_nvenc -qp 0 output-4.mkv
Fix slashes in batch file.
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...
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...
Fix Windows paths to play nice with MinGW.
:: Set $HOME to the current dir so msys runs here set HOME=%cd% :: Configure, build, test, and install using `make`. bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=$LIBRARY_PREFIX" if errorlevel 1 exit 1 bash -lc "make test" if errorlevel 1 exit 1 bash -lc "make P...
:: Set $HOME to the current dir so msys runs here set HOME=%cd% :: Configure, build, test, and install using `make`. bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=`echo $LIBRARY_PREFIX | tr '\\' '/'`" if errorlevel 1 exit 1 bash -lc "make test" if errorlevel 1 ex...
Add a script to restore nuget packages for all projects needing them.
@echo off REM TODO: detect these automatically. Probably a job for PowerShell... set PROJECTS=Benchmarks,CodeDiagnostics,CodeDiagnostics.Test,Demo set PROJECTS=%PROJECTS%,Serialization.JsonNet,Serialization.Test,Test set PROJECTS=%PROJECTS%,TzdbCompiler.Test,Web for %%p in (%PROJECTS%) DO ( echo Restoring...
Call parcel lookup after pulling foreclosures
cd C:\projects\lexington-pentaho-etl\ call git pull origin master :: set KETTLE_HOME="C:\projects\lexington-pentaho-etl\.kettle\" call data-integration\Pan.bat -level=Basic -file "pull-last-day-of-foreclosure-sales.ktr"
cd C:\projects\lexington-pentaho-etl\ call git pull origin master cd data-integration call Pan.bat -level=Basic -file "../pull-last-day-of-foreclosure-sales.ktr" call Pan.bat -level=Basic -file "../parcel-lookup-foreclosure-sales.ktr"
Expand build to include VS 2013.
@echo off cd %~dp0 "%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Co...
@echo off cd %~dp0 "%VS120COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2013_static.vcx...
Fix minor issue with build script.
CALL .\.venv\Scripts\activate pip install -r .\requirements.txt pyinstaller .\rocketleagueminimapgenerator\main.py --onefile MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe COPY /Y .\README.md .\dist\README.txt DEL /S /Q .\dist\assets COPY /Y .\assets .\dist\assets powershell Compress-Archive -Path .\...
CALL .\.venv\Scripts\activate pip install -r .\requirements.txt pyinstaller .\rocketleagueminimapgenerator\main.py --onefile MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe COPY /Y .\README.md .\dist\README.txt DEL /S /Q .\dist\assets COPY /Y .\assets .\dist\assets powershell Compress-Archive -Force -...
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 release verification script for Windows
@rem Licensed to the Apache Software Foundation (ASF) under one @rem or more contributor license agreements. See the NOTICE file @rem distributed with this work for additional information @rem regarding copyright ownership. The ASF licenses this file @rem to you under the Apache License, Version 2.0 (the @rem "Licens...
Use ninja explicitly instead of default cmake generator
mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" -DBUILD_PYTHON_INTERFACE=ON -G "%CMAKE_GENERATOR%" .. cmake --build . --config Release --target install popd
mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" -DBUILD_PYTHON_INTERFACE=ON -G "Ninja" .. ninja ninja install popd
Move set generator before maturin build
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --releas...
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" set "CMAKE_GENERATOR=NMake Makefil...
Add setlocal to batch script
@echo off for %%i in (FileCheck.exe) do set FILE_CHECK=%%~$PATH:i if not defined FILE_CHECK (echo Error: FileCheck.exe not found in PATH. && exit /b 1) set HIPIFY=%1 set IN_FILE=%2 set TMP_FILE=%3 set all_args=%* call set clang_args=%%all_args:*%4=%% set clang_args=%4%clang_args% %HIPIFY% -o=%TMP_FILE% %IN_FILE...
@echo off setlocal for %%i in (FileCheck.exe) do set FILE_CHECK=%%~$PATH:i if not defined FILE_CHECK (echo Error: FileCheck.exe not found in PATH. && exit /b 1) set HIPIFY=%1 set IN_FILE=%2 set TMP_FILE=%3 set all_args=%* call set clang_args=%%all_args:*%4=%% set clang_args=%4%clang_args% %HIPIFY% -o=%TMP_FILE%...
Fix vim color scheme copy on Windows
@echo off REM Emacs COPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano COPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim MKDIR "%USERPROFILE%\.vim\colors" COPY /Y vim\.vim\colors\* "%USERPROFILE%\.vim\colors\" COPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash COPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" COPY /Y b...
@echo off REM Emacs COPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano COPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim MKDIR "%USERPROFILE%\vimfiles\colors" COPY /Y vim\.vim\colors\* "%USERPROFILE%\vimfiles\colors\" COPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash COPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" C...
Add ifconfig alias to batch environment
@echo off rem Do not set codepage since it makes Eclipse act weird on DEV14 rem chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=e...
@echo off rem Do not set codepage since it makes Eclipse act weird on DEV14 rem chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=e...
Set package version from BUILD_NUMBER environment variable
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set DOTNET_CLI_TELEMETRY_OPTOUT=1 echo ##teamcity[blockOpened name='Prepare' description='Preparing build environment...'] dotnet clean if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Prepare'] echo ##teamcity[blockOpened...
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set DOTNET_CLI_TELEMETRY_OPTOUT=1 set PackageVersion=%BUILD_NUMBER% echo ##teamcity[blockOpened name='Prepare' description='Preparing build environment...'] dotnet clean if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Prep...
Add Windows cmd/batch file to simplify usage.
@echo off REM ========================================================================== REM BEHAVE REM ========================================================================== setlocal set HERE=%~dp0 if not defined PYTHON set PYTHON=python %PYTHON% %HERE%behave %*
Backup the user's directory before cleaning
@for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~15,5%*. @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe" @taskkill /fi "Windowtitle eq HubTurbo V%version...
@for /r build\libs %%i in (*.jar) do @set versionline=%%~ni @echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~9,5%*. @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe" @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "java.exe" @echo...
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
Add run multiply scripts bat file
REM Author: Manu Mohanan REM Original link: http://www.sqlservercentral.com/articles/SQLCMD/131634/ @@echo off del errors /f /s /q rd Errors md Errors FOR %%A IN (*.SQL) DO ( sqlcmd -S SERVERNAME -d DATABASE1 -U username -P password -i "%%A" -o "Errors\%%AError_DB1.txt" -I ) FOR %%A IN (*.SQL) DO...
Move echo off up to top.
REM REM Environment setup file for RailsInstaller. REM @ECHO OFF REM REM First we Determine where is RUBY_DIR REM (which is where this script is) REM PUSHD %~dp0. SET RUBY_DIR=%CD% POPD REM REM Now we Determine the RailsInstaller Root directory REM (parent directory of Ruby) REM PUSHD %RUBY_DIR%\.. SET ROOT_DIR=%CD% ...
@ECHO OFF REM REM Environment setup file for RailsInstaller. REM REM REM First we Determine where is RUBY_DIR REM (which is where this script is) REM PUSHD %~dp0. SET RUBY_DIR=%CD% POPD REM REM Now we Determine the RailsInstaller Root directory REM (parent directory of Ruby) REM PUSHD %RUBY_DIR%\.. SET ROOT_DIR=%CD%...
Remove setting of env vars in scripts
@echo off title PostgreSQL Portable cls :: set default code page chcp 1252 > nul :: ensure variables set if not defined PGSQL set PGSQL=%~dp0 if not defined PGDATA set PGDATA=%PGSQL%..\..\Data\data if not defined PGLOG set PGLOG=%PGSQL%..\..\Data\log.txt if not defined PGLOCALDIR set PGLOCALDIR=%PGSQL%shar...
@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 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 nunit rather than gallileo
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) REM Build call "%msbuild%" src\cr-aggregaterepository.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false if not "%errorlevel%"=="0" goto failure REM Unit tests "%GallioEcho%" src\tests\bin\%co...
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) REM Build call "%msbuild%" src\cr-aggregaterepository.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false if not "%errorlevel%"=="0" goto failure REM Unit tests "%nunit%" src\tests\bin\%config%...
Remove w9xopen.exe and add README.txt to Windows build
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* del /s w9xpopen.exe copy ..\README.txt . 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Add release tool for windows
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Correct script because the test runner no longer has a Packaging target
@echo off msbuild /p:Configuration=Packaging;Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 AppPackages\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Packaging_Test\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Packaging.appx /Logger:trx
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 AppPackages\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Test\Couchbase.Lite.Tests.UWP_1.0.0.0_x64.appx /Logger:trx
Update VS DebuggerVisualizers install script
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\M...
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN...
Update script to generate standalone exe
@ECHO OFF python3 setup.py py2exe -d "%~dp0\" PAUSE
@ECHO OFF CD /D "%~dp0" SET "OutDir=Output" IF NOT EXIST "%OutDir%" ( MKDIR "%OutDir" ) python3 setup.py py2exe -d "%~dp0\%OutDir%" PAUSE
Delete doublequotes from set properties values
rem ### Configuration which should be placed on server where app is deployed rem Environment where our app is deployed, configuration will be taken from corresponding dir @set APP_ENV="prod" rem Git repository with configuration. Absolute path should be used. @set CONFIG_FOLDER="properties" rem For secretProd env, ENCR...
rem ### Configuration which should be placed on server where app is deployed rem Environment where our app is deployed, configuration will be taken from corresponding dir @set APP_ENV=prod rem Git repository with configuration. Absolute path should be used. @set CONFIG_FOLDER=properties rem For secretProd env, ENCRYPT_...
Use MSVC 14.0 (2015) for compiling Python 3.6
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...
Remove trailing slash from directory
@echo off start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %~dpn1
@echo off set directory=%~f1 if %directory:~-1%==\ set directory=%directory:~0,-1% start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %directory%
Add batch file for Windows
@echo off rem Copyright (C) 2016 The Syncthing Authors. rem rem This Source Code Form is subject to the terms of the Mozilla Public rem License, v. 2.0. If a copy of the MPL was not distributed with this file, rem You can obtain one at http://mozilla.org/MPL/2.0/. rem This batch file should be run from the GOPATH. re...
Store OS X files in zips.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
Set CMAKE generator for windows
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --releas...
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --releas...
Test setting C++ standard for Windows build
:: 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" .. if errorlevel 1 exit 1 cmake --build . if erro...
:: 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" .. if errorlevel 1 exit 1 cmake --build -DCMAKE_C...
Fix uploaded installer path 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...
Test script for automating changes
ECHO ON TITLE Automated Test Build for hobgoblin IF NOT EXIST test (mkdir test) SET /P _deltest= Clear contents of test dir? (y/n) IF "%_deltest%"=="y" GOTO :deltest IF "%_deltest%"=="n" GOTO :cdtest :deltest del test\js\*.js rmdir test\js :cdtest ECHO Entering test dir... cd test node ..\hobgoblin.js init -e index.htm...
Fix frontend test results uploader
@echo off cd C:\projects\spectre\src\Spectre.Angular2Client IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.Angular2Client\karma-tests.xml ) IF EXIST "C:\projects\spectre\src\Spectre.Ang...
@echo off cd C:\projects\spectre\src\Spectre.Angular2Client IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml ) IF EXIST "C:\projects\spectre\src\Spectre.Angu...
Update create-translation script to use gettext
@echo off echo. echo == Create Translations files echo. set TARGET_DIR="..\extracted" echo. echo Unknwon-Horizons cd "%TARGET_DIR%\extracted\unknown-horizons\unknown-horizons-master\development\" python compile_translation_win.py dir "%TARGET_DIR%"
@echo off echo. echo == Create Translations files echo. set TARGET_DIR="..\extracted" set msgfmt "..\build-tools\gettext\bin\msgfmt.exe" echo. echo Unknwon-Horizons cd "%TARGET_DIR%\extracted\unknown-horizons\unknown-horizons-master\development" compile_translation_win.py dir "%TARGET_DIR%"
Update windows build script to specify x64 builds.
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" .. devenv openrhythm.sln /build cd .. pause
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015 Win64" .. devenv openrhythm.sln /build cd .. pause
Build TMF files after building all binaries
@echo off SETLOCAL EnableExtensions EnableDelayedExpansion if [%1] EQU [MSIONLY] goto BUILD_MSI if [%2] EQU [NOSIGN] (SET DEBUG_CFG=Debug_NoSign) ELSE (SET DEBUG_CFG=Debug) del *.log for %%x in (Win7, Win8, Win8.1, Win10, XP) do ( for %%y in (%DEBUG_CFG%, Release) do ( for %%z in (win32, x64) do ( call ...
@echo off SETLOCAL EnableExtensions EnableDelayedExpansion if [%1] EQU [MSIONLY] goto BUILD_MSI if [%2] EQU [NOSIGN] (SET DEBUG_CFG=Debug_NoSign) ELSE (SET DEBUG_CFG=Debug) del *.log for %%x in (Win7, Win8, Win8.1, Win10, XP) do ( for %%y in (%DEBUG_CFG%, Release) do ( for %%z in (win32, x64) do ( call ...
Correct path separators for; use working directory expansion to setup classpath
@rem Tune environment: @set COMPILER_CFG_SCRIPT=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat @set JAVA_HOME=C:\ws\bin\jdk1.5.0_06 @set ANT_HOME=C:\ws\bin\apache-ant-1.6.5 @set SVN_HOME=C:\ws\bin\svn-win32-1.4.2 @set ANT_OPTS=-XX:MaxPermSize=512m -Xmx1000M -Dhttp.proxyHost=my.proxy.com -...
@rem Tune environment: @set COMPILER_CFG_SCRIPT=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat @set JAVA_HOME=C:\ws\bin\jdk1.5.0_06 @set ANT_HOME=C:\ws\bin\apache-ant-1.6.5 @set SVN_HOME=C:\ws\bin\svn-win32-1.4.2 @set ANT_OPTS=-XX:MaxPermSize=512m -Xmx1000M -Dhttp.proxyHost=my.proxy.com -...
Add a one-shot, first-time Windows setup script
:: A one-shot, first-time Windows configuration script that disables some :: Windows misfeatures and sets paths to my usual preferences. I wish this :: script could do more, especially to disable Windows' built-in adware and :: spyware, but following Microsoft's usual mediocrity, Windows remains a :: toy operating ...
Copy the redist files with the Managed-OSVR wrapper.
echo on cd /d "%~dp0" xcopy "%1" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2osvr*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y
echo on cd /d "%~dp0" xcopy "%1" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2osvr*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2msvc*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y
Add markers for recipe env testing
@echo off :: Copyright 2020 The Pigweed Authors :: :: Licensed under the Apache License, Version 2.0 (the "License"); you may not :: use this file except in compliance with the License. You may obtain a copy of :: the License at :: :: https://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable l...
@echo off :: Copyright 2020 The Pigweed Authors :: :: Licensed under the Apache License, Version 2.0 (the "License"); you may not :: use this file except in compliance with the License. You may obtain a copy of :: the License at :: :: https://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable l...
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 %*
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.22.1-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...
Add batch file to run Python unit tests on Windows
@echo off set PATH=%PATH%;..\..\..\sandbox\bin\v140\Debug set PYTHONPATH=%PYTHONPATH%;..\..\..\sandbox\bin\v140\Debug python runtests.py pause
Update path to VS visualizers
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN...
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 2015\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%...
Fix comments on .bat file
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */
:: Copyright (c) 2015-present, Facebook, Inc. :: All rights reserved. :: :: This source code is licensed under the BSD-style license found in the :: LICENSE file in the root directory of this source tree. An additional grant :: of patent rights can be found in the PATENTS file in the same directory.
Tag the windows script, so we can see if we get the right one
@ECHO OFF SET ROOTDIR=%WRAPPER_HOME% if "%ROOTDIR%"=="" ( set ROOTDIR=%~dp0 ) SET data=%1 shift SET model=%1 shift : create var with remaining arguments set r=%1 :loop shift if [%1]==[] goto done set r=%r% %1 goto loop :done if [%PYTHON_BIN%]==[] goto nopython %PYTHON_BIN% %ROOTDIR%\FileJsonPy...
@ECHO OFF REM 001 SET ROOTDIR=%WRAPPER_HOME% if "%ROOTDIR%"=="" ( set ROOTDIR=%~dp0 ) SET data=%1 shift SET model=%1 shift : create var with remaining arguments set r=%1 :loop shift if [%1]==[] goto done set r=%r% %1 goto loop :done if [%PYTHON_BIN%]==[] goto nopython %PYTHON_BIN% %ROOTDIR%\Fil...
Use quotes around PFX certificate path in msi signing batch script
@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 ...
@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 verif...
Add ability to create specrun report
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots pause @popd
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools" ...
Stop dumping the environment variables.
SETLOCAL SET MSBUILD="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" SET NUGET="%ProgramFiles(x86)%\MSBuild\14.0\Bin\Nuget.exe" SET MSTEST="%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" REM Dump the environment variables. SET FAILED=0 SET CD bigquery\api\BigQueryUtil %NUGET% rest...
SETLOCAL SET MSBUILD="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" SET NUGET="%ProgramFiles(x86)%\MSBuild\14.0\Bin\Nuget.exe" SET MSTEST="%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" SET FAILED=0 CD bigquery\api\BigQueryUtil %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:...
Add backwards compatibility for fellow freelancers
@echo off set AVALON_LABEL=Mindbender %~dp0bin\windows\python36\python.exe -u %~dp0avalon.py
@echo off :: Backwards compatibility if not defined AVALON_PROJECTS set AVALON_PROJECTS=%MINDBENDER_PROJECTS% if not defined AVALON_MONGO set AVALON_MONGO=%MINDBENDER_MONGO% if not defined AVALON_LOCATION set AVALON_LOCATION=%MINDBENDER_LOCATION% set AVALON_LABEL=Mindbender %~dp0bin\windows\python36\python.exe -u %~...
Use correct install path for Windows
mkdir build cd build if errorlevel 1 exit /b 1 :: Other codecs cannot be enabled because they are not on conda-forge cmake .. -GNinja ^ -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^ -DCMAKE_INSTALL_LIBDIR=lib ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_SHARED_LIBS=ON ^ -DAVIF_BUILD_TESTS=ON ^ -DAVIF_CODEC_AOM=ON ^ -DAVIF_CODEC_SVT=O...
mkdir build cd build if errorlevel 1 exit /b 1 :: Other codecs cannot be enabled because they are not on conda-forge cmake .. -GNinja ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_INSTALL_LIBDIR=lib ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_SHARED_LIBS=ON ^ -DAVI...
Exclude profiler fiels from zip.
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.ilk -x *.idb cd scite
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.ilk -x *.idb -x *.dpsession cd scite
Support MSVS 2013 by setting environment variable MSVS_VERSION.
@echo off set PROTOC=%~dp0\depends\\protoc.exe set PROTOBUF=%~dp0\depends\protobuf-2.5.0 set GTEST=%~dp0\depends\gtest-1.7.0 set ZLIB=%~dp0\depends\zlib-1.2.8 set WTL80=%~dp0\depends\wtl80\ set GYP=%~dp0\depends\gyp call %gyp%\gyp.bat --depth %~dp0 -I build\common.gypi -G msvs_version=2012 python build_x86_x64_...
@echo off set PROTOC=%~dp0\depends\protoc.exe set PROTOBUF=%~dp0\depends\protobuf-2.5.0 set GTEST=%~dp0\depends\gtest-1.7.0 set ZLIB=%~dp0\depends\zlib-1.2.8 set WTL80=%~dp0\depends\wtl80\ set GYP=%~dp0\depends\gyp if not defined MSVS_VERSION set MSVS_VERSION=2012 call %gyp%\gyp.bat --depth %~dp0 -I build\commo...
Use quotes around file names.
@echo off call monetdb-clients-config --internal rem must be aligned with the installation directory chosen in rem clients/src/python/test/Makefile.ag set testpath=%TSTSRCBASE%\..\python\test set PYTHONPATH=%testpath%;%PYTHONPATH% prompt # $t $g echo on python %testpath%/runtests.py
@echo off call monetdb-clients-config --internal rem must be aligned with the installation directory chosen in rem clients/src/python/test/Makefile.ag set testpath=%TSTSRCBASE%\..\python\test set PYTHONPATH=%testpath%;%PYTHONPATH% prompt # $t $g echo on python "%testpath%/runtests.py"
Update for new Avalon Framework version
@ECHO OFF set LIBDIR=lib set LOCALCLASSPATH=build/fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar set LOCALCLASSPATH=%L...
@ECHO OFF set LIBDIR=lib set LOCALCLASSPATH=build/fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar set LOCALCLASSPATH=%L...
Print the git diff for debug purposes in a test
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__versio...
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 git diff if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_bu...
Stop doing "Test" builds for now
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Test set SessioName=Release set SessionOwner=AutoBuild rem ======================================================= rem Release variables rem...
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Development set SessioName=Release set SessionOwner=AutoBuild rem ======================================================= rem Release variab...
Trim whitespace in version suffix
@ECHO OFF :: Output dotnet info dotnet --info SET number=00000%APPVEYOR_BUILD_NUMBER% SET STEELTOE_VERSION=1.1.0 SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_BRANCH%-%number:~-5% IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_TAG_NAME:~6,5% echo %STEELTOE_VERSION_SUFFIX% SET BUILD_TYPE...
@ECHO OFF :: Output dotnet info dotnet --info SET number=00000%APPVEYOR_BUILD_NUMBER% SET STEELTOE_VERSION=1.1.0 SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_BRANCH%-%number:~-5% IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_TAG_NAME:~6,5% SET STEELTOE_VERSION_SUFFIX=%STEELTOE_VERSION_...
Add a script to run the entire nofib suite
@ECHO OFF if not "%1" == "" goto continue for %%i in (imaginary) do for %%j in (yca\%%i\*.yca) do call %0 %%j goto end :continue echo Processing %1 firstify %1 -himl > %1.txt 2>&1 :end
Fix option used for msys2 installation
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'...
Fix scripting mistake for launching UWP tests
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 /Framework:FrameworkUap10 bin\Release\Couchbase.Lite.Tests.UWP.build.appxrecipe /Logger:trx
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 /Framework:FrameworkUap10 bin\x64\Release\Couchbase.Lite.Tests.UWP.build.appxrecipe /Logger:trx
Add rollback script for windows
echo off echo Set install parameter from ini file for /f "delims=" %%x in (wikijournals.ini) do (set "%%x") echo Delete Directory %HTMLDIR%\%WIKIDIR% rmdir %HTMLDIR%\%WIKIDIR% /S /Q mysql -u %DBUSER% -p%DBPASS% %DBNAME% -e "show tables" > tables.txt for /f %%i in (tables.txt) do ( echo delete %%i my...
Correct jar path for windows BAT
@ECHO OFF REM Taverna startup script REM distribution directory set TAVERNA_HOME=%~dp0 REM 300 MB memory, 140 MB for classes set ARGS=-Xmx300m -XX:MaxPermSize=140m REM Taverna system properties set ARGS=%ARGS% "-Dlog4j.configuration=file:///%TAVERNA_HOME%conf/log4j.properties" set ARGS=%ARGS% "-Djava.util.logging....
@ECHO OFF REM Taverna startup script REM distribution directory set TAVERNA_HOME=%~dp0 REM 300 MB memory, 140 MB for classes set ARGS=-Xmx300m -XX:MaxPermSize=140m REM Taverna system properties set ARGS=%ARGS% "-Dlog4j.configuration=file:///%TAVERNA_HOME%conf/log4j.properties" set ARGS=%ARGS% "-Djava.util.logging....
Clear Zone.Identifier to allow depot_tools.zip bootstrap
@echo off :: Copyright (c) 2016 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. powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*
@echo off :: Copyright (c) 2016 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. :: To allow this powershell script to run if it was a byproduct of downloading :: and unzipping the depot_tools.zip distribution, we c...
Make sure we pass the configuration to the nested script.
@echo off setlocal set _projectName=CommandLine set _testProject=test\%_projectName%.tests.csproj set _analyzerTestProject=analyzer\%_projectName%.Analyzer.Test\%_projectName%.Analyzer.Test.csproj set _config=%1 if not defined _config ( set _config=Debug ) echo -------------------------- echo !!! Restoring package...
@echo off setlocal set _projectName=CommandLine set _testProject=test\%_projectName%.tests.csproj set _analyzerTestProject=analyzer\%_projectName%.Analyzer.Test\%_projectName%.Analyzer.Test.csproj set _config=%1 if not defined _config ( set _config=Debug ) echo -------------------------- echo !!! Restoring package...
Drop some options from the Windows build.
:: Setup a build directory. mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Configure, build, test, and install using `nmake`. cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ ...
:: Setup a build directory. mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Configure, build, test, and install using `nmake`. cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ ...
Change `Ninja finished` to `Test finished`
cd test if errorlevel 1 exit 1 mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 cmake .. ^ -GNinja ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_LIBRARY_PATH:PATH=%LIBRARY_PREFIX%\lib ^ -DCMAKE_VERBOSE_MAKEFILE=ON echo "CMake finished" if errorlevel 1 exit 1 echo "CMake okay" ni...
cd test if errorlevel 1 exit 1 mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 cmake .. ^ -GNinja ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_LIBRARY_PATH:PATH=%LIBRARY_PREFIX%\lib ^ -DCMAKE_VERBOSE_MAKEFILE=ON echo "CMake finished" if errorlevel 1 exit 1 echo "CMake okay" ni...
Patch for version 0.62 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.609" -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.62" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Remove Windows 10 SDK requirement from the SharpGen batch script (this requirement is enforced with the Mapping files)
REM @ECHO OFF REM Run the generator from the current configuration setlocal pushd "%~dp0\Bin\%1" ECHO "%~dp0msdndoc.zip" xcopy /D /Y "%~dp0MSDNDoc.zip" . REM Find a VS 2017 installation with the C++ toolset installed. set InstallDir= for /f "usebackq tokens=*" %%i in (`..\..\..\..\..\External\vswhere\vswhere -latest -...
REM @ECHO OFF REM Run the generator from the current configuration setlocal pushd "%~dp0\Bin\%1" ECHO "%~dp0msdndoc.zip" xcopy /D /Y "%~dp0MSDNDoc.zip" . REM Find a VS 2017 installation with the C++ toolset installed. set InstallDir= for /f "usebackq tokens=*" %%i in (`..\..\..\..\..\External\vswhere\vswhere -latest -...
Update path to VS visualizers
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN...
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 2015\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%...
Patch for version 0.76 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.75" -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.76" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Fix lib-acl-17.06 includes copying for Windows
@echo off rem ******************************************************************************************************************************* mkdir "%INSTALL_DIR%\src\obj" cd "%INSTALL_DIR%\src\obj" "%CK_MAKE%" -j %CK_HOST_CPU_NUMBER_OF_PROCESSORS% -f "%ORIGINAL_PACKAGE_DIR%\Makefile" %* set code=%errorlevel% if %c...
@echo off rem ******************************************************************************************************************************* mkdir "%INSTALL_DIR%\src\obj" cd "%INSTALL_DIR%\src\obj" "%CK_MAKE%" -j %CK_HOST_CPU_NUMBER_OF_PROCESSORS% -f "%ORIGINAL_PACKAGE_DIR%\Makefile" %* set code=%errorlevel% if %c...
Clean up build debug blather
@ECHO OFF REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks REM COMPONENTS_VERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM -----------------...
@ECHO OFF REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks REM COMPONENTS_VERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM -----------------...
Add release tool for windows
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Change Aeron.Cluster to release to NuGet
@echo off pushd %~dp0.. SET nuget_source=https://api.nuget.org/v3/index.json SET myget_source=https://www.myget.org/F/aeron/api/v2/package del nupkgs\*.nupkg call dotnet pack src\Adaptive.Aeron\Adaptive.Aeron.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Agrona\Adaptive.Agrona.c...
@echo off pushd %~dp0.. SET nuget_source=https://api.nuget.org/v3/index.json del nupkgs\*.nupkg call dotnet pack src\Adaptive.Aeron\Adaptive.Aeron.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Agrona\Adaptive.Agrona.csproj -c Release --output ..\..\nupkgs call dotne...
Test runner batch now deletes empty log files.
@echo off ..\..\Tools\PhpNetTester.exe /compiler:..\..\Deployment\Debug\phpc.exe /php:..\..\Tools\PHP\php.exe del /s *.pdb *.exe EmittedNodes.csv LibraryCalls.csv UnknownCalls.csv __input.txt Debug.log > nul pause
@echo off ..\..\Tools\PhpNetTester.exe /compiler:..\..\Deployment\Debug\phpc.exe /php:..\..\Tools\PHP\php.exe del /s *.pdb *.exe EmittedNodes.csv LibraryCalls.csv UnknownCalls.csv __input.txt Debug.log > nul @echo Deleting empty log files... for /f "delims=" %%i in ('dir /s/b/a-d *.log') do if %~zi==0 del %%i pa...
Remove a level of indirection
:: %~dp0 gives the dirname of the script cmd /c %~dp0common.bat
:: %~dp0 gives the dirname of the script cmd /c %~dp0install-cygwin-sshd.bat
Change to use latest nuget.
@if "%1" == "" goto :needpackage @if "%2" == "" goto :needfeed ..\packages\NuGet.CommandLine.3.3.0\tools\nuget push %1 -Source https://fuselabs.pkgs.visualstudio.com/DefaultCollection/_packaging/packages/nuget/v3/index.json -ApiKey %2 @goto end :needpackage @echo "You need to pass a package as first parameter" @goto ...
@if "%1" == "" goto :needpackage @if "%2" == "" goto :needfeed ..\packages\NuGet.CommandLine.3.4.3\tools\nuget push %1 -Source https://fuselabs.pkgs.visualstudio.com/DefaultCollection/_packaging/packages/nuget/v3/index.json -ApiKey %2 @goto end :needpackage @echo "You need to pass a package as first parameter" @goto ...
Update the build bat to support VS 2012.
@echo off goto menu :menu echo Build Project Generator: echo. echo [0] Clean echo [1] Visual C++ 2010 echo [2] Visual C++ 2008 echo [3] CodeLite echo [4] GNU Make echo. :choice set /P C="Choice: " if "%C%"=="4" goto gmake if "%C%"=="3" goto codelite if "%C%"=="2" goto vs2008 if "%C%"=="1" goto vs2010 if "%C%"=="0" go...
@echo off goto menu :menu echo Build Project Generator: echo. echo [0] Clean echo [1] Visual C++ 2010 echo [2] Visual C++ 2012 echo [3] CodeLite echo [4] GNU Make echo. :choice set /P C="Choice: " if "%C%"=="4" goto gmake if "%C%"=="3" goto codelite if "%C%"=="2" goto vs2012 if "%C%"=="1" goto vs2010 if "%C%"=="0" go...
Build taxon demo and bench list on $mol.
git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/taxon mol/app/users git commit -a -m "Update" && git push || git checkout master
git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/bench/list/mol mol/app/taxon mol/app/taxon/demo mol/app/users git commit -a -m "Update" && git push || git checkout master
Add a check for 7zip
@echo off rem only if we are running from a checkout IF EXIST "%~dp0\.git" ( rem if dev_bundle is not present, get it IF NOT EXIST "%~dp0\dev_bundle" ( REM need `< con` so that we can run this file from Node REM (See http://stackoverflow.com/questions/9155289/calling-powershell-from-nodejs) PowerShell....
@echo off rem only if we are running from a checkout IF EXIST "%~dp0\.git" ( rem verify that we have 7zip in the path 7z.exe --help > con IF errorlevel 1 ( echo "Please install 7z.exe (7-Zip) and put it into your PATH" exit 1 ) rem if dev_bundle is not present, get it IF NOT EXIST "%~dp0\dev_bundl...
Use node.js replace instead of rep
rd /s /q Client rd /s /q NodeJS rd /s /q Azure.NodeJS ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\ConnectorApi.json -outputDirectory ConnectorAPI -AddCredentials -ClientName ConnectorClient ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connec...
rd /s /q Client call npm install replace@0.3.0 ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\ConnectorApi.json -outputDirectory ConnectorAPI -AddCredentials -ClientName ConnectorClient ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -in...
Fix handling of spaces in plugin script on Windows
@echo off SETLOCAL enabledelayedexpansion IF DEFINED JAVA_HOME ( set JAVA=%JAVA_HOME%\bin\java.exe ) ELSE ( FOR %%I IN (java.exe) DO set JAVA=%%~$PATH:I ) IF NOT EXIST "%JAVA%" ( ECHO Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME 1>&2 EXIT /B 1 ) set SCRIPT_DIR=...
@echo off SETLOCAL enabledelayedexpansion IF DEFINED JAVA_HOME ( set JAVA="%JAVA_HOME%\bin\java.exe" ) ELSE ( FOR %%I IN (java.exe) DO set JAVA=%%~$PATH:I ) IF NOT EXIST %JAVA% ( ECHO Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME 1>&2 EXIT /B 1 ) set SCRIPT_DIR=...
Fix bad windows batch file
set GO_ROOT=%~dp0\..\..\..\..\ set JRUBY_BASE=%GO_ROOT\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared:%GEM_HOME% set PATH=%JRUBY_BASE\bin:%PATH% %JRUBY_BASE%\bin\j...
set GO_ROOT=%~dp0\..\..\.. set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME% set PATH=%JRUBY_BASE%\bin;%PATH% %JRUBY_BASE%\bin\jru...
Use the available python bin
python setup.py build python setup.py install --prefix=$PREFIX --single-version-externally-managed --record=record.txt
%PYTHON% setup.py build %PYTHON% setup.py install --prefix=$PREFIX --single-version-externally-managed --record=record.txt