Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Fix windows bundle install staying in bundle dir after install
@echo off for /D %%i in (bundles/*) do ( if exist "%cd%\bundles\%%i\package.json" ( cd "%cd%\bundles\%%i" echo Updating %%i call npm install >nul 2>&1 ) )
@echo off for /D %%i in (bundles/*) do ( if exist "%cd%\bundles\%%i\package.json" ( pushd "%cd%\bundles\%%i" echo Updating %%i call npm install >nul 2>&1 popd ) )
Add script to enable consent in MS Edge as non admin
@PowerShell.exe -ExecutionPolicy RemoteSigned -Command "Invoke-Expression -Command ((Get-Content -Path '%~f0' | Select-Object -Skip 2) -join [environment]::NewLine)" @exit /b %Errorlevel% #Install scoop set-executionpolicy unrestricted -s cu -f iex (new-object net.webclient).downloadstring('https://get.scoop.sh') scoop install sudo # Add Enable Consent to Windows Registry $registryPath = "HKLM:\Software\Microsoft\MicrosoftEdge" $registryPathItem = "$($registryPath)\MediaCapture" $name = "EnableConsentPrompt" $value = "0" echo "Adding enable consent to Windows registry..." sudo New-Item -Path $registryPath -Force | Out-Null sudo New-Item -Path $registryPathItem -Force | Out-Null sudo New-ItemProperty -Path $registryPathItem -Name $name -Value $value -PropertyType DWORD -Force | Out-Null echo "Success!"
Use MSVC import lib for MSVC DLL for Fluidsynth in MSVC build.
scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=1 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=1 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4
scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=0 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=0 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4
Add Python install batch file.
@echo off set PYTHON_VERSION=2.7.6 set PYTHON_MSI=python-%PYTHON_VERSION%.msi set PYTHON_EXE=c:\\Python2.7\\python.exe set PYTHON_PATH="C:\Python27;c:\Python27\Scripts" echo, echo ------------------------------------------------------------------ echo Download Python echo ------------------------------------------------------------------ echo, if not exist %PYTHON_EXE% ( if not exist %PYTHON_MSI% ( curl -L -O http://python.org/ftp/python/%PYTHON_VERSION%/%PYTHON_MSI% ) ) echo, echo ------------------------------------------------------------------ echo Install Python echo ------------------------------------------------------------------ echo, if not exist %PYTHON_EXE% ( if exist %PYTHON_MSI% ( msiexec.exe /i %PYTHON_MSI% ALLUSERS=1 ADDDEFAULT=ALL ) ) echo, echo ------------------------------------------------------------------ echo Add Python to PATH echo ------------------------------------------------------------------ echo, rem reg add "HKCU\Environment" /v PATH /t REG_EXPAND_SZ /d "%PYTHON_PATH%" rem reg add "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v PATH /t REG_EXPAND_SZ /d "%PATH%;c:\Python27;c:\Python27\Scripts" reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v PATH /t REG_EXPAND_SZ /d "%PATH%;%PYTHON_PATH%"
Delete archive if it already exists.
@ECHO OFF SET /p APPLICATION_VERSION=Tabster Version: SET BUILD_DIRECTORY=%CD% SET ZIP_ARCHIVE="%BUILD_DIRECTORY%\Tabster %APPLICATION_VERSION%.zip" pushd.. SET SOLUTION_DIRECTORY=%CD% SET VS_BUILD_DIRECTORY=%SOLUTION_DIRECTORY%\Tabster\bin\Portable\ ::build ECHO. ECHO Building Solution... C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "%SOLUTION_DIRECTORY%\Tabster.sln" /p:Configuration=Portable ::compress ECHO. ECHO Compressing... 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.exe" 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.dll"
@ECHO OFF SET /p APPLICATION_VERSION=Tabster Version: SET BUILD_DIRECTORY=%CD% SET ZIP_ARCHIVE="%BUILD_DIRECTORY%\Tabster %APPLICATION_VERSION%.zip" IF EXIST %ZIP_ARCHIVE% del /F %ZIP_ARCHIVE% pushd.. SET SOLUTION_DIRECTORY=%CD% SET VS_BUILD_DIRECTORY=%SOLUTION_DIRECTORY%\Tabster\bin\Portable\ ::build ECHO. ECHO Building Solution... C:\windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe "%SOLUTION_DIRECTORY%\Tabster.sln" /p:Configuration=Portable ::compress ECHO. ECHO Compressing... 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.exe" 7z a -r %ZIP_ARCHIVE% "%VS_BUILD_DIRECTORY%\*.dll"
Fix a bug where brackets in PATH would break the batch script.
@echo off :: hook `nodist use <version>` if "%1"=="use" ( %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set Path=%%A;%Path% ) goto end ) :: hook `nodist update` if "%1"=="update" ( pushd . cd /D "%~dp0\.." npm update popd ) :main "%~dp0\..\node.exe" "%~dp0\..\cli" %* goto end :end
@echo off :: hook `nodist use <version>` if "%1"=="use" ( %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( pushd . cd /D "%~dp0\.." npm update popd ) :main "%~dp0\..\node.exe" "%~dp0\..\cli" %* goto end :end
Use environment variables and add atom support
@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 $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files (x86)\Microsoft VS Code" GOTO NOVSCODE doskey edit="C:\Program Files (x86)\Microsoft VS Code\bin\code.cmd" $* GOTO NOSUBLIME :NOVSCODE IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
@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 $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text" $* ) if exist ""%LOCALAPPDATA%\atom\app-1.4.0"" ( doskey edit=atom $* ) if exist ""%PROGRAMFILES(X86)%\Microsoft VS Code"" ( doskey edit="%PROGRAMFILES(X86)%\Microsoft VS Code\bin\code.cmd" $* ) rem Open functionality doskey open=start $* @echo on
Increase memory for PC startup file
SET "memParams=-Xms2g -Xmx4g" rem SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" SET debugParams= java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar -u D:\ -v G:\incoming\SnomedCT_RF2Release_INT_20160131.zip
SET "memParams=-Xms4g -Xmx8g" rem SET "debugParams=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8080" SET debugParams= java -jar %memParams% %debugParams% target\RF2toRF1Converter.jar -u D:\ -v G:\incoming\SnomedCT_RF2Release_INT_20160131.zip
Use automatic versioning for assembly version build number
@echo off goto :main ====================================================================== Performs a clean build and create NuGet packages for this solution Note that this also modifies the following files, replacing placeholder version numbers with actual version numbers: src\common\GlobalAssemblyInfo.cs src\*.nuspec src\*\project.json (see the SetVersionNumber task in xunit.performance.msbuild) These files will, therefore, show up as modified after the build. Be careful NOT to check them in that way! If you publish these packages to Nuget, then please remember to bump the build number on BuildSemanticVersion below. ====================================================================== :main setlocal set BuildAssemblyVersion=1.0.0.0 set BuildSemanticVersion=1.0.0-alpha-build0007 echo Building version %BuildSemanticVersion% NuGet packages. echo WARNING: Some source files will be modified during this build. echo WARNING: Please be careful not to check in those modifications. msbuild.exe /m /nologo /t:CI /v:m /fl xunit.performance.msbuild goto :eof
@echo off goto :main ====================================================================== Performs a clean build and create NuGet packages for this solution Note that this also modifies the following files, replacing placeholder version numbers with actual version numbers: src\common\GlobalAssemblyInfo.cs src\*.nuspec src\*\project.json (see the SetVersionNumber task in xunit.performance.msbuild) These files will, therefore, show up as modified after the build. Be careful NOT to check them in that way! If you publish these packages to Nuget, then please remember to bump the build number on BuildSemanticVersion below. ====================================================================== :main setlocal set BuildAssemblyVersion=1.0.0.* set BuildSemanticVersion=1.0.0-alpha-build0007 echo Building version %BuildSemanticVersion% NuGet packages. echo WARNING: Some source files will be modified during this build. echo WARNING: Please be careful not to check in those modifications. msbuild.exe /m /nologo /t:CI /v:m /fl xunit.performance.msbuild goto :eof
Allow no suffix for creating nuget packages
@ECHO OFF SET SUFFIX=%1 IF '%SUFFIX%' == '' GOTO NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" --version-suffix %SUFFIX% GOTO END :NOSUFFIX ECHO Please provide verison suffix. ECHO.For example: ECHO.createNugetPackages 20160818 GOTO END :END
@ECHO OFF SET SUFFIX=%1 IF '%SUFFIX%' == '' GOTO NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" --version-suffix %SUFFIX% GOTO END :NOSUFFIX for /f %%a in ('dir %~dp0..\src\project.json /b /s ^| find /v "Consumers"') do dotnet pack %%a --no-build -c Release -o "%~dp0..\nugets" GOTO END :END
Update header for new member
### application.bat - 2015 - gandubert ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"
### application.bat - 2015 - gandubert MAIGNAN ### version = "1.2" build_hour = "11H00" echo "Build ${build_hour}" echo "version ${version}"
Move the @echo line above license header so it is not echoed to command line. Thanks to Vincent Siveton FOR-1021
rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. @echo off set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=..\..\tools\ant set OLD_CLASSPATH=%CLASSPATH% set CLASSPATH= for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i echo Using classpath: "%CLASSPATH%" call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH%
@echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. set OLD_ANT_HOME=%ANT_HOME% set ANT_HOME=..\..\tools\ant set OLD_CLASSPATH=%CLASSPATH% set CLASSPATH= for %%i in (..\..\lib\endorsed\*.jar) do call appendcp.bat %%i echo Using classpath: "%CLASSPATH%" call %ANT_HOME%\bin\ant -emacs %1 %2 %3 %4 %5 %6 %7 %8 %9 set ANT_HOME=%OLD_ANT_HOME% set CLASSPATH=%OLD_CLASSPATH%
Use second parameter to define bitness
@rem Run CMake, pointing to sibling directories containing dependencies. @rem Note that zmq and cppzmq are relative to the source dir, while @rem protobuf is relative to the build dir. Not sure why. @set build_type=Release @if not "%1"=="" set build_type=%1 @echo Configuring for build type %build_type% cmake -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win32-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" .. @if %errorlevel% neq 0 exit /b %errorlevel% @echo Configuration complete. To build, run `nmake`
@rem Run CMake, pointing to sibling directories containing dependencies. @rem Note that zmq and cppzmq are relative to the source dir, while @rem protobuf is relative to the build dir. Not sure why. @set build_type=Release @if not "%1"=="" set build_type=%1 @set build_bitness=32 @if not "%2"=="" set build_bitness=%2 @echo Configuring for build type %build_type% for %build_bitness% bits cmake -DZeroMQ_ROOT_DIR="..\ZeroMQ 3.2.4" -DPROTOBUF_SRC_ROOT_FOLDER="..\..\protobuf-2.6.0-win%build_bitness%-vc12" -DCPPZMQ_HEADER_PATH="..\cppzmq" -DCMAKE_INSTALL_PREFIX="install/%build_type%" -G "NMake Makefiles" -DCMAKE_BUILD_TYPE="%build_type%" .. @if %errorlevel% neq 0 exit /b %errorlevel% @echo Configuration complete. To build, run `nmake`
Add batch script used for creating binary egg packages for Python.
:: batch script to build a binary egg package for the currently active Python cd .. del /q /s build-formast\ mkdir build-formast cd build-formast cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_JAVA=OFF ..\formast nmake cpack -G ZIP cd swig\python\package python setup.py bdist_egg
Add a debug, highly crude script to start a Mesa3D Meson build
@set mesa=C:\Software\Development\projects\mesa @SET PATH=C:\Software\Development\Git\cmd\;%mesa%\Python\;%mesa%\Py3\;%mesa%\Py3\Scripts\;%mesa%\flexbison\;%mesa%\ninja\;%mesa%\pkgconfig\;%PATH% @call "%ProgramFiles% (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 @cd %mesa%\mesa @set buildcmd=%mesa%\Py3\python.exe %mesa%\Py3\Scripts\meson.py . .\build\windows-x86_64 @RD /S /Q %mesa%\mesa\build\windows-x86_64 @cmd
Add Windows build script to root folder
@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%versionline:~15,5%*" /im "java.exe" @echo( @echo Starting Gradle build. This will take a while... @echo( @call gradlew clean shadowJar --no-daemon @for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo( @echo Starting HubTurbo V%versionline:~15,5%. You can close this cmd window once HubTurbo begins launching. @start "" javaw -jar build/libs/HubTurbo-%versionline:~15,5%-all.jar @exit
Add note about updates to the Windows build script
@ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build grunt :pre_build mkdir build :build cp -R src/* build call :build_server call :build_viewer cd build npm install cd .. :build_server npm install GochoMugo/docvy-server#develop mv node_modules/docvy-server build/server :build_viewer npm install GochoMugo/docvy-viewer#develop mv node_modules/docvy-viewer build/viewer :src call :src_viewer call :src_server :src_viewer mklink src\viewer ..\..\docvy-viewer\dist :src_server mklink /d src\server ..\..\docvy-server
REM This batch script is an effort at porting the Unix Makefile for REM Windows. Therefore, it may not be updated as frequent as the Unix REM Makefile. (Please consider helping us keeping it up to date) @ECHO OFF :args IF NOT "%1"=="" ( call :%1 SHIFT GOTO args ) GOTO :EOF :releases call :pre_build call :build grunt :pre_build mkdir build :build cp -R src/* build call :build_server call :build_viewer cd build npm install cd .. :build_server npm install GochoMugo/docvy-server#develop mv node_modules/docvy-server build/server :build_viewer npm install GochoMugo/docvy-viewer#develop mv node_modules/docvy-viewer build/viewer :src call :src_viewer call :src_server :src_viewer mklink src\viewer ..\..\docvy-viewer\dist :src_server mklink /d src\server ..\..\docvy-server
Replace absolute path of python
@echo off set PYTHONPATH=%CD% C:\Python27\python.exe feed_archive\feed_archive.py %*
@echo off set PYTHONPATH=%CD% python feed_archive\feed_archive.py %*
Put win32 binaries at front of path, to pick up scala &c.
@PATH=%PATH%;%XIA2_ROOT%\binaries\win32 @PATH=%PATH%;%XIA2_ROOT%\Applications
@PATH=%XIA2_ROOT%\binaries\win32;%PATH% @PATH=%PATH%;%XIA2_ROOT%\Applications
Fix location of java home for windows build
SET "JAVA_HOME=C:\opt\jdk1.8.0_161" cd git-repo ./mvnw clean install -X
SET "JAVA_HOME=C:\opt\jdk-8" cd git-repo ./mvnw clean install -X
Add script to enable ps remoting
rem This needs to be run as an administrator! winrm quickconfig -q winrm set winrm/config/winrs @{MaxMemoryPerShellMB="512"} winrm set winrm/config @{MaxTimeoutms="1800000"} winrm set winrm/config/service @{AllowUnencrypted="true"} winrm set winrm/config/service/auth @{Basic="true"} sc config WinRM start= auto
Fix missing newline at EOF.
rem from https://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-5-from-the-command-line rem install .NET version manager (DNVM) @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}" rem install .NET execution environment (DNX) for coreclr dnvm upgrade -r coreclr pause
rem from https://docs.asp.net/en/latest/getting-started/installing-on-windows.html#install-asp-net-5-from-the-command-line rem install .NET version manager (DNVM) @powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$Branch='dev';iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.ps1'))}" rem install .NET execution environment (DNX) for coreclr dnvm upgrade -r coreclr pause
Fix drmemory build environment wrapper for VS 2008
:: Sets up the environment for use with MSVS tools and CMake. @echo off setlocal :: cmd for loops are really hard, so I hardcoded the list of MSVS paths. set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :found_vcvars call %vcvars% :: Add the normal CMake install path. set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH% echo Final PATH: echo %PATH% %*
:: Sets up the environment for use with MSVS tools and CMake. @echo off setlocal :: cmd for loops are really hard, so I hardcoded the list of MSVS paths. set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 11.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :: VS 2008 vcvars isn't standalone, it needs this env var. set VS90COMNTOOLS=%PROGRAMFILES%\Microsoft Visual Studio 9.0\Common7\Tools\ set vcvars="%PROGRAMFILES%\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat" if exist %vcvars% goto found_vcvars :found_vcvars call %vcvars% :: Add the normal CMake install path. set PATH=%PROGRAMFILES%\CMake 2.8\bin;%PATH% echo Final PATH: echo %PATH% %*
Change register to use rbenv exec instead of Ruby shim
:: Add a new Ruby version to rbenv @ setlocal EnableDelayedExpansion @ call "%~dp0common_vars.cmd" @reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL @reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL @reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f > NUL @reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\shims\ruby.cmd\" \"%%1\" %%*" /f > NUL @ echo(Ruby files are now associated with rbenv-cmd. @ exit /b 0
:: Add a new Ruby version to rbenv @ setlocal EnableDelayedExpansion @ call "%~dp0common_vars.cmd" @reg add "HKCR\.rb" /ve /t REG_SZ /d "RubyFile" /f > NUL @reg add "HKCR\RubyFile" /ve /t REG_SZ /d "Ruby File" /f > NUL @reg add "HKCR\RubyFile\DefaultIcon" /ve /t REG_SZ /d "%RBENV_ROOT%\resources\ruby.ico" /f > NUL @reg add "HKCR\RubyFile\shell\open\command" /ve /t REG_SZ /d "\"%RBENV_ROOT%\libexec\rbenv_exec.cmd\" \"%%1\" %%*" /f > NUL @ echo(Ruby files are now associated with rbenv-cmd. @ exit /b 0
Solve problem of non-failing native tests
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... set failures=0 FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i --gtest_output="xml:%%i.xml" powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml IF %ERRORLEVEL% NEQ 0 ( set /A failures=%failures%+1 ) ) del __tmp_gtest.txt EXIT /B %failures%
@echo off setlocal EnableDelayedExpansion echo Test discovery started... dir C:\projects\spectre\*Tests.exe /b /s | findstr /v obj > __tmp_gtest.txt echo Testing (Google Test)... set failures=0 FOR /F %%i IN (__tmp_gtest.txt) DO ( echo %%i %%i --gtest_output="xml:%%i.xml" IF %ERRORLEVEL% NEQ 0 ( set /A failures=%failures%+1 ) powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName %%i.xml ) del __tmp_gtest.txt EXIT /B %failures%
Fix issue that collector start failed in the Windows environment
@echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" CollectorBootStartUp endlocal
@echo off setlocal set COLLECTOR_PROCESS_TITLE=Skywalking-Collector set COLLECTOR_HOME=%~dp0%.. set COLLECTOR_OPTS="-Xms256M -Xmx512M -Dcollector.logDir=%COLLECTOR_HOME%\logs" set CLASSPATH=%COLLECTOR_HOME%\config;.; set CLASSPATH=%COLLECTOR_HOME%\libs\*;%CLASSPATH% if defined JAVA_HOME ( set _EXECJAVA="%JAVA_HOME:"=%"\bin\java ) if not defined JAVA_HOME ( echo "JAVA_HOME not set." set _EXECJAVA=java ) start "%COLLECTOR_PROCESS_TITLE%" %_EXECJAVA% "%COLLECTOR_OPTS%" -cp "%CLASSPATH%" org.apache.skywalking.apm.collector.boot.CollectorBootStartUp endlocal
Revert using fsi from FSharp.Compiler.Tools
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages nuget install FSharp.Compiler.Tools -nocache -version 4.0.1.21 -excludeVersion -o tools/packages tools\packages\FSharp.Compiler.Tools\tools\fsi.exe --exec build.fsx %*
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\4.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\4.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %*
Build tests w/ debugging symbols
mkdir bin ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs csc /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs
mkdir bin ilasm /dll src\PtrUtils.il /out:bin\System.Slice.netmodule csc /t:library /debug /unsafe /o+ /addmodule:bin\System.Slice.netmodule /out:bin\System.Slice.dll src\*.cs csc /debug /unsafe /r:bin\System.Slice.dll /out:bin\System.Slice.Test.exe tests\*.cs
Add Program Files\7-Zip to path
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 ..
PATH=C:\python26;C:\progra~1\7-zip;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 ..
Build for 1.7 even with 1.8 javac
cd %~dp0java_executor del /s /q objs rmdir objs md objs cd src javac -d ..\objs ca\dmoj\java\*.java cd ..\objs del ..\..\executors\java_executor.jar jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class
cd %~dp0java_executor del /s /q objs rmdir objs md objs cd src javac -source 1.7 -target 1.7 -d ..\objs ca\dmoj\java\*.java cd ..\objs del ..\..\executors\java_executor.jar jar cmf ..\src\META-INF\MANIFEST.MF ..\..\executors\java_executor.jar ca\dmoj\java\*.class
Add a batch file to support windows until panda gets its own automatic .bat facility generation at installation time
@rem = '--*-Perl-*-- @echo off if "%OS%" == "Windows_NT" goto WinNT perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofperl :WinNT perl6 "%~dp0\%0" %* if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl if %errorlevel% == 9009 echo You do not have Perl in your PATH. if errorlevel 1 goto script_failed_so_exit_with_non_zero_val 2>nul goto endofperl @rem '; __END__ :endofperl
Create a script to allow building 32-bit and 64-bit Windows.
echo off REM REM This batch file builds both 32-bit and 64-bit versions of the loader. REM It is assumed that the developer has run the update_external_sources.bat REM file prior to running this. REM REM Determine the appropriate CMake strings for the current version of Visual Studio echo Determining VS version python .\determine_vs_version.py > vsversion.tmp set /p VS_VERSION=< vsversion.tmp echo Detected Visual Studio Version as %VS_VERSION% REM Cleanup the file we used to collect the VS version output since it's no longer needed. del /Q /F vsversion.tmp rmdir /Q /S build rmdir /Q /S build32 REM ******************************************* REM 64-bit LoaderAndTools build REM ******************************************* mkdir build pushd build echo Generating 64-bit spirv-tools CMake files for Visual Studio %VS_VERSION% cmake -G "Visual Studio %VS_VERSION% Win64" .. echo Building 64-bit Debug LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Debug\vulkan-1.dll ( echo. echo LoaderAndTools 64-bit Debug build failed! set errorCode=1 ) echo Building 64-bit Release LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Release\vulkan-1.dll ( echo. echo LoaderAndTools 64-bit Release build failed! set errorCode=1 ) popd REM ******************************************* REM 32-bit LoaderAndTools build REM ******************************************* mkdir build32 pushd build32 echo Generating 32-bit LoaderAndTools CMake files for Visual Studio %VS_VERSION% cmake -G "Visual Studio %VS_VERSION%" .. echo Building 32-bit Debug LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Debug\vulkan-1.dll ( echo. echo LoaderAndTools 32-bit Debug build failed! set errorCode=1 ) echo Building 32-bit Release LoaderAndTools msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release REM Check for existence of one DLL, even though we should check for all results if not exist .\loader\Release\vulkan-1.dll ( echo. echo LoaderAndTools 32-bit Release build failed! set errorCode=1 ) popd
Add PFX certificate password option when signing msi
@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 /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
@echo off set DIST_DIR=dist set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx" set PFX_PASSWORD="" 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% /p %PFX_PASSWORD% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
Add quotation around dir path.
robocopy C:\Users\user\Documents F:\Backup\Documents /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt robocopy C:\Users\user\Pictures F:\Backup\Pictures /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy C:\Users\user\Music F:\Backup\Music /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy C:\Users\user\Downloads F:\Backup\Downloads /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt pause
robocopy "C:\Users\user\Documents" "F:\Backup\Documents" /MIR /DCOPY:T /xj /np /tee /log:backup_log.txt robocopy "C:\Users\user\Pictures" "F:\Backup\Pictures" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy "C:\Users\user\Music" "F:\Backup\Music" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt robocopy "C:\Users\user\Downloads" "F:\Backup\Downloads" /MIR /DCOPY:T /xj /np /tee /log+:backup_log.txt pause
Write twistd.log files on Windows
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% cd /d %~dp0 :: Running it once will make sure svn and python were downloaded. call gclient.bat > nul :: run_slave.py will overwrite the PATH and PYTHONPATH environment variables. python %~dp0\run_slave.py --no_save -y buildbot.tac %*
@echo off setlocal title Build slave if not exist %~dp0..\..\depot_tools\. ( echo You must put a copy of depot_tools in %~dp0..\depot_tools goto :EOF ) set PATH=%~dp0..\..\depot_tools;%PATH% cd /d %~dp0 :: Running it once will make sure svn and python were downloaded. call gclient.bat > nul :: run_slave.py will overwrite the PATH and PYTHONPATH environment variables. python %~dp0\run_slave.py --no_save -y buildbot.tac --logfile=twistd.log %*
Move post building command from make file to bat file. Until build system support post build, these command will be for Duet platform's post building commands.
# # Currently, Build system does not provide post build mechanism for module # and platform building, so just use a bat file to do post build commands. # Originally, following post building command is for EfiLoader module. # set BUILD_DIR=%WORKSPACE%\Build\DuetPkg\DEBUG_MYTOOLS set BASETOOLS_DIR=%WORKSPACE_TOOLS_PATH%\Bin\Win32 set OUTPUT_DIR=%BUILD_DIR%\IA32\DuetPkg\BootSector\BootSector\OUTPUT %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DUETEFIMAINFV.z %BUILD_DIR%\FV\DUETEFIMAINFV.Fv %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeMain.z %BUILD_DIR%\IA32\DxeMain.efi %BASETOOLS_DIR%\TianoCompress -e -o %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\IA32\DxeIpl.efi %BASETOOLS_DIR%\EfiLdrImage.exe -o %BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\IA32\EfiLoader.efi %BUILD_DIR%\FV\DxeIpl.z %BUILD_DIR%\FV\DUETEFIMAINFV.z copy /b %OUTPUT_DIR%\Start.com+%OUTPUT_DIR%\Efi32.com2+%BUILD_DIR%\FV\Efildr32 %BUILD_DIR%\FV\Efildr
Use java instead of full path
"C:\Program Files (x86)\Java\jre1.8.0_45\bin\java.exe" -jar compiler.jar ^ --js=misc.js ^ --js=siggy.js ^ --js=siggy.helpers.js ^ --js=siggy.static.js ^ --js=siggy.intel.dscan.js ^ --js=siggy.intel.poses.js ^ --js=siggy.charactersettings.js ^ --js=siggy.notifications.js ^ --js=siggy.timer.js ^ --js=siggy.sigtable.js ^ --js=siggy.globalnotes.js ^ --js=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause
java.exe -jar compiler.jar ^ --js=misc.js ^ --js=siggy.js ^ --js=siggy.helpers.js ^ --js=siggy.static.js ^ --js=siggy.intel.dscan.js ^ --js=siggy.intel.poses.js ^ --js=siggy.charactersettings.js ^ --js=siggy.notifications.js ^ --js=siggy.timer.js ^ --js=siggy.sigtable.js ^ --js=siggy.globalnotes.js ^ --js=siggy.map.connection.js ^ --js=siggy.hotkeyhelper.js ^ --js=siggy.map.js ^ --js=siggy.activity.siggy.js ^ --js=siggy.activity.scannedsystems.js ^ --js=siggy.activity.search.js ^ --js=siggy.activity.thera.js ^ --js=siggy.activity.notifications.js ^ --js=siggy.activity.astrolabe.js ^ --js=siggy.activity.chainmap.js ^ --source_map_format=V3 ^ --create_source_map siggy.compiled.js.map ^ --js_output_file=siggy.compiled.js echo //# sourceMappingURL=siggy.compiled.js.map >> siggy.compiled.js @pause
Update test script to clean up at start
@ECHO OFF REM compile the code into the bin folder javac javac -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java REM run the program, feed commands from input.txt file and redirect the output to the actual.txt java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt REM compare the output to the expected output FC actual.txt expected.txt
@ECHO OFF REM create bin directory if it doesn't exist if not exist ..\bin mkdir ..\bin REM delete output from previous run del actual.txt REM compile the code into the bin folder javac javac -cp ..\src -Xlint:none -d ..\bin ..\src\seedu\addressbook\Main.java REM run the program, feed commands from input.txt file and redirect the output to the actual.txt java -classpath ..\bin seedu.addressbook.Main < input.txt > actual.txt REM compare the output to the expected output FC actual.txt expected.txt
Test run via bat file.
setlocal cd %~dp0 set path=%path;%C:\Users\marco\OneDrive\Documents\PROJECTS\ThirdParties\vtk_installRelease\bin "C:\Users\marco\OneDrive\Documents\PROJECTS\polytriagnulation\out\Unittests\Release\unittests.exe"
setlocal cd %~dp0 set path=%path;%C:\Users\marco\OneDrive\Documents\PROJECTS\ThirdParties\vtk_installRelease\bin call "C:\Users\marco\OneDrive\Documents\PROJECTS\polytriagnulation\out\Unittests\Release\unittests.exe" pause
Update to use KuduScript 1.0.4
@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/f1f26085d54438c5a3eb951baba56fc0db8f90eb IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
@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/93edfcb6e9c75d395e805825f5051e707bd50bb8 IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
Use choco upgrade iso update
choco install docfx -y choco update docfx -y docfx docfx\docfx.json del docs /s /q REM the CNAME file is generated in the doc folder when added through the github REM settings page. Apparently github uses this file to determine the custom REM domain. The line above deletes the whole docs folder so we need to copy it REM from the docfx folder. If we ever want to change the custom domain settings REM we need to alter the docfx\CNAME file and not use the github settings page. copy docfx\CNAME docs /Y xcopy docfx\_site docs /E /Y
choco install docfx -y choco upgrade docfx -y docfx docfx\docfx.json del docs /s /q REM the CNAME file is generated in the doc folder when added through the github REM settings page. Apparently github uses this file to determine the custom REM domain. The line above deletes the whole docs folder so we need to copy it REM from the docfx folder. If we ever want to change the custom domain settings REM we need to alter the docfx\CNAME file and not use the github settings page. copy docfx\CNAME docs /Y xcopy docfx\_site docs /E /Y
Add batch to compile release binary.
@echo off rem > Build-Release [cfg file] rem Note: compiling twice the same sources gives different binaries. rem clean output directory del ..\dcu\*.dcu if '%1' NEQ '' goto use_cfg_argument :use_default_cfg dcc32 Drago goto return :use_cfg_argument set cfg=%1 copy Drago.cfg Drago.cfg.bak > nul copy %cfg% Drago.cfg > nul dcc32 Drago move Drago.cfg.bak Drago.cfg > nul :return
Add gradle wrapper for Windows
@if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS= set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto init echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto init echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :init @rem Get command-line arguments, handling Windowz variants if not "%OS%" == "Windows_NT" goto win9xME_args if "%@eval[2+2]" == "4" goto 4NT_args :win9xME_args @rem Slurp the command line arguments. set CMD_LINE_ARGS= set _SKIP=2 :win9xME_args_slurp if "x%~1" == "x" goto execute set CMD_LINE_ARGS=%* goto execute :4NT_args @rem Get arguments from the 4NT Shell from JP Software set CMD_LINE_ARGS=%$ :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega
Update publish bat for new release.
@echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.1.nupkg pause
@echo off echo Press any key to publish pause ".nuget\NuGet.exe" push Rssdp.2.0.0.2.nupkg pause
Update paths to Python and Maven
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET MAVEN_HOME=C:\opt\apache\apache-maven-3.5.3 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI% ECHO cf_org = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% SET PATH=%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %*
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET MAVEN_HOME=C:\opt\apache\apache-maven-3.3.9 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI% ECHO cf_org = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% SET PATH=%PYTHON_HOME%\Scripts;%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %*
Move gvimrc log message so it doesn't print unnecessarily.
@echo off pushd %cd% %~d0 cd %~dp0 echo Temporarily changing directory to %~dp0 if exist %USERPROFILE%\_vimrc goto GVIMRC echo Installing _vimrc echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc :GVIMRC echo Installing _gvimrc if exist %USERPROFILE%\_gvimrc goto END echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc :END popd
@echo off pushd %cd% %~d0 cd %~dp0 echo Temporarily changing directory to %~dp0 if exist %USERPROFILE%\_vimrc goto GVIMRC echo Installing _vimrc echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc :GVIMRC if exist %USERPROFILE%\_gvimrc goto END echo Installing _gvimrc echo source %CD%\vim\gvimrc > %USERPROFILE%\_gvimrc :END popd
Test npm version, just rebuild with 693
call :test 4.7.2 call :test 6.9.4 call :test 7.4.0 goto :eof :test setlocal docker run node:%1 node --version docker run node:%1-nano node --version
call :test 4.7.2 call :test 6.9.4 call :test 7.4.0 goto :eof :test setlocal docker run node:%1 node --version docker run node:%1 npm --version docker run node:%1-nano node --version docker run node:%1-nano npm --version
Make temp directory in HOME
@echo off if not defined HOME ( echo ‹ϐ HOME `Ă܂ echo ‹ϐ HOME _vimrc zu邽߂̃fBNgpXݒ肵Ă exit /b ) set MY_DIR=%~dp0 @echo on echo source %MY_DIR%vimrc >> %HOME%\_vimrc echo source %MY_DIR%gvimrc >> %HOME%\_gvimrc
@echo off if not defined HOME ( echo ‹ϐ HOME `Ă܂ echo ‹ϐ HOME _vimrc zu邽߂̃fBNgpXݒ肵Ă exit /b ) set MY_DIR=%~dp0 @echo on echo source %MY_DIR%vimrc >> %HOME%\_vimrc echo source %MY_DIR%gvimrc >> %HOME%\_gvimrc mkdir %HOME%\temp\vim_backup
Remove unnecessary npm tsc check.
@echo off IF NOT EXIST %APPDATA%\npm\tsc.cmd ( ECHO You must have the TypeScript compiler installed. If npm is installed, run ECHO npm install -g typescript GOTO end ) IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" ( CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( IF EXIST "%APPDATA%\npm\tsc.cmd" ( CALL %APPDATA%\npm\tsc -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( echo TypeScript compiler not installed. ) ) mkdir out COPY main.html out\main.html XCOPY sdk out\sdk\ /r /f /e /c /h /y ECHO. :end
@echo off IF EXIST "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" ( CALL "%ProgramFiles(x86)%\Microsoft SDKs\TypeScript\1.4\tsc.exe" -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( IF EXIST "%APPDATA%\npm\tsc.cmd" ( CALL %APPDATA%\npm\tsc -m amd --outDir out\scripts\PublicEvents scripts\PublicEvents\PublicEventsSource.ts ) ELSE ( echo TypeScript compiler not installed. ) ) mkdir out COPY main.html out\main.html XCOPY sdk out\sdk\ /r /f /e /c /h /y ECHO. :end
Build script error propagation fix
@echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ) set EnableNuGetPackageRestore=true for %%s in (src\*.sln) do for %%c in (debug release) do "%MSBUILDEXE%" %%s /p:Configuration=%%c /v:m %*
@echo off setlocal pushd "%~dp0" call :main %* popd goto :EOF :main set MSBUILDEXE=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe if not exist "%MSBUILDEXE%" ( echo The .NET Framework 4.0 does not appear to be installed on this echo machine, which is required to build the solution. exit /b 1 ) set EnableNuGetPackageRestore=true call :build Debug && call :build Release goto :EOF :build "%MSBUILDEXE%" src\NCrontab.sln /p:Configuration=%1 /v:m %2 %3 %4 %5 %6 %7 %8 %9 goto :EOF
Add -t and --test to expected output args
@echo off SET EXPECT_OUTPUT= FOR %%a IN (%*) DO ( IF /I "%%a"=="-h" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--help" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-v" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--version" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-f" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--foreground" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-w" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--wait" SET EXPECT_OUTPUT=YES ) IF "%EXPECT_OUTPUT%"=="YES" ( "%~dp0\..\atom.exe" %* ) ELSE ( "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %* )
@echo off SET EXPECT_OUTPUT= FOR %%a IN (%*) DO ( IF /I "%%a"=="-f" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--foreground" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-h" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--help" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-t" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--test" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-v" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--version" SET EXPECT_OUTPUT=YES IF /I "%%a"=="-w" SET EXPECT_OUTPUT=YES IF /I "%%a"=="--wait" SET EXPECT_OUTPUT=YES ) IF "%EXPECT_OUTPUT%"=="YES" ( "%~dp0\..\atom.exe" %* ) ELSE ( "%~dp0\..\resources\app\apm\node_modules\atom-package-manager\bin\node.exe" "%~dp0\atom.js" %* )
Add Java line count script for windows
@echo off :CountLines setlocal cd .. set /a totalNumLines = 0 for /r %1 %%F in (*.java *.html *.hpp *.cs *.c) do ( echo "%%F" for /f %%N in ('find /v /c "" ^<"%%F"') do set /a totalNumLines+=%%N ) echo Total LOC (Java) = %totalNumLines% timeout 15 > NUL
Update nuget publish script for updated nuget.exe path
@echo off call ..\..\SetNugetApiKey.bat del *.nupkg nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release nuget setApiKey %NUGET_API_KEY% nuget push *.nupkg pause
@echo off call ..\..\SetNugetApiKey.bat del *.nupkg ..\..\nuget pack RocketLeagueReplayParser.csproj -Build -Prop Configuration=Release ..\..\nuget setApiKey %NUGET_API_KEY% ..\..\nuget push *.nupkg pause
Remove the restriction to haskell-src-exts-1.3.0 in the .bat file
ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports -package haskell-src-exts-1.3.0
ghci.exe -isrc -i. src\Main.hs -fno-warn-overlapping-patterns -w -fwarn-unused-binds -fwarn-unused-imports
Use same case for NUL
@echo off setlocal set mypath=%~dp0 set PYTHONPATH=pkgs if "%PROCESSOR_ARCHITECTURE%"=="x86" ( set common="%COMMONPROGRAMFILES%" ) else ( set common="%COMMONPROGRAMFILES(x86)%" ) REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B %common%\Python\2.7\python.exe -m openquake.server.dbserver REM Make sure that the dbserver is up and running echo Please wait ... if exist C:\Windows\System32\timeout.exe ( timeout /t 10 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n 1 -w 10000 > nul ) REM Start the WebUI using django %common%\Python\2.7\python.exe -m openquake.server.manage runserver %* endlocal
@echo off setlocal set mypath=%~dp0 set PYTHONPATH=pkgs if "%PROCESSOR_ARCHITECTURE%"=="x86" ( set common="%COMMONPROGRAMFILES%" ) else ( set common="%COMMONPROGRAMFILES(x86)%" ) REM Start the DbServer in background but within the same context start "OpenQuake DB server" /B %common%\Python\2.7\python.exe -m openquake.server.dbserver REM Make sure that the dbserver is up and running echo Please wait ... if exist C:\Windows\System32\timeout.exe ( timeout /t 10 /nobreak > NUL ) else ( REM Windows XP hack ping 192.0.2.2 -n 1 -w 10000 > NUL ) REM Start the WebUI using django %common%\Python\2.7\python.exe -m openquake.server.manage runserver %* endlocal
Revert to Visual Studio 16 2019
:: 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 "Visual Studio 15 2017" -A x64 .. if errorlevel 1 exit 1 cmake --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
:: 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 "Visual Studio 16 2019" -A x64 .. if errorlevel 1 exit 1 cmake --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
Build .Net 4.0 and .Net 4.5 projects
@setlocal @cd SLOTaxService @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @cd SLOTaxGuiTest @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd ..
@setlocal @cd SLOTaxGuiTest40 @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @cd SLOTaxGuiTest @msbuild /t:build /p:Configuration=Release /nologo /v:m @if %errorlevel% neq 0 exit /b %errorlevel% @cd .. @rd FinalOutput /s /q @md FinalOutput @cd FinalOutput @md Net40 @md Net45 @cd .. @copy SLOTaxGuiTest40\bin\Release\*.exe FinalOutput\Net40 @copy SLOTaxGuiTest40\bin\Release\*.dll FinalOutput\Net40 @copy SLOTaxGuiTest40\bin\Release\*.config FinalOutput\Net40 @del FinalOutput\Net40\*vshost* @copy SLOTaxGuiTest\bin\Release\*.exe FinalOutput\Net45 @copy SLOTaxGuiTest\bin\Release\*.dll FinalOutput\Net45 @copy SLOTaxGuiTest\bin\Release\*.config FinalOutput\Net45 @del FinalOutput\Net45\*vshost*
Rename Zafir packages to WebSharper
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %*
@ECHO OFF REM NOTE: This file was auto-generated with `IB.exe prepare` from `IntelliFactory.Build`. setlocal set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles(x86)%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.1\Framework\v4.0 set PATH=%PATH%;%ProgramFiles%\Microsoft SDKs\F#\3.0\Framework\v4.0 set PATH=%PATH%;tools\NuGet nuget install IntelliFactory.Build -nocache -pre -ExcludeVersion -o tools\packages fsi.exe --exec build.fsx %*
Fix mixed line endings in generateshader.bat
@ECHO OFF REM REM Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM PATH %PATH%;%DXSDK_DIR%\Utilities\bin\x86 fxc /E standardvs /T vs_2_0 /Fh standardvs.h Blit.vs fxc /E flipyvs /T vs_2_0 /Fh flipyvs.h Blit.vs fxc /E passthroughps /T ps_2_0 /Fh passthroughps.h Blit.ps fxc /E luminanceps /T ps_2_0 /Fh luminanceps.h Blit.ps fxc /E componentmaskps /T ps_2_0 /Fh componentmaskps.h Blit.ps fxc /E VS_Passthrough /T vs_4_0 /Fh passthrough11vs.h Passthrough11.hlsl fxc /E PS_Passthrough /T ps_4_0 /Fh passthrough11ps.h Passthrough11.hlsl
@ECHO OFF REM REM Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. REM PATH %PATH%;%DXSDK_DIR%\Utilities\bin\x86 fxc /E standardvs /T vs_2_0 /Fh standardvs.h Blit.vs fxc /E flipyvs /T vs_2_0 /Fh flipyvs.h Blit.vs fxc /E passthroughps /T ps_2_0 /Fh passthroughps.h Blit.ps fxc /E luminanceps /T ps_2_0 /Fh luminanceps.h Blit.ps fxc /E componentmaskps /T ps_2_0 /Fh componentmaskps.h Blit.ps fxc /E VS_Passthrough /T vs_4_0 /Fh passthrough11vs.h Passthrough11.hlsl fxc /E PS_Passthrough /T ps_4_0 /Fh passthrough11ps.h Passthrough11.hlsl
Add experience enhancers to perf_update
REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp. REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates. SET P4PORT= SET P4CLIENT= SET P4USER= SET P4PASSWD= SET DIR= SET FILEPATH=%DIR%\last_updated p4 login -s p4 info p4 sync -q -f REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful p4 add %FILEPATH% p4 edit %FILEPATH% ECHO %DATE%-%TIME% > %FILEPATH% p4 submit -d "Update" %FILEPATH% p4 logout
@ECHO OFF SETLOCAL ENABLEEXTENSIONS REM This Windows batch script logs into Perforce and updates a file named `last_updated` in the depot with the current date and timestamp. REM This can be set up to be executed upon startup/login to avoid expiration of access permissions upon a lack of recent Perforce updates. ECHO [Script executed at %DATE%-%TIME%] SET P4PORT= SET P4CLIENT= SET P4USER= SET P4PASSWD= SET DIR= SET FILEPATH=%DIR%\last_updated p4 login -s p4 info p4 sync -q -f REM If the file does not exist, ADD will be successful; if the file does exist, EDIT will be successful p4 add %FILEPATH% p4 edit %FILEPATH% ECHO %DATE%-%TIME% > %FILEPATH% p4 submit -d "Update" %FILEPATH% p4 logout EXIT /B 0
Add dummy resource file values for manifest
@@setlocal @@set POWERSHELL_BAT_ARGS=%* @@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"% @@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF if ($args.Length -lt 1 -or $args.Length -gt 2) { Write-Host "Specify an assembly path and an optional output directory."; Exit 1; } $assemblyPath = $args[0]; $outputDirectory = "."; if ($args.Length -eq 2) { $outputDirectory = $args[1]; } $eventSourceType = [System.Diagnostics.Tracing.EventSource]; $assembly = [System.Reflection.Assembly]::LoadFrom($args[0]); $types = $assembly.GetTypes(); foreach ($type in $types) { if ($type.IsSubclassOf($eventSourceType)) { Write-Host "Found type '$type'."; $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, $null); $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man"; Write-Host "Writing manifest to '$fileName'..."; $text | Out-File $fileName; } } Write-Host "Done.";
@@setlocal @@set POWERSHELL_BAT_ARGS=%* @@if defined POWERSHELL_BAT_ARGS set POWERSHELL_BAT_ARGS=%POWERSHELL_BAT_ARGS:"=\"% @@powershell.exe -Command Invoke-Expression $('$args=@(^&{$args} %POWERSHELL_BAT_ARGS%);'+[String]::Join([char]10, $((Get-Content '%~f0') -notmatch '^^@@'))) & goto :EOF if ($args.Length -lt 1 -or $args.Length -gt 2) { Write-Host "Specify an assembly path and an optional output directory."; Exit 1; } $assemblyPath = $args[0]; $outputDirectory = "."; if ($args.Length -eq 2) { $outputDirectory = $args[1]; } $eventSourceType = [System.Diagnostics.Tracing.EventSource]; $assembly = [System.Reflection.Assembly]::LoadFrom($args[0]); $types = $assembly.GetTypes(); foreach ($type in $types) { if ($type.IsSubclassOf($eventSourceType)) { Write-Host "Found type '$type'."; $text = [System.Diagnostics.Tracing.EventSource]::GenerateManifest($type, "NOT-USED"); $fileName = "$outputDirectory\" + $type.FullName.Replace(".", "-") + ".man"; Write-Host "Writing manifest to '$fileName'..."; $text | Out-File $fileName; } } Write-Host "Done.";
Switch back to Ninja as generator on win
mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake ..\pythonfmu\pythonfmu-export --debug-output -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" -DCMAKE_BUILD_TYPE=Release more .\CMakeFiles\CMakeOutput.log if errorlevel 1 exit 1 cmake --build . --config Release --verbose if errorlevel 1 exit 1 cd .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1
mkdir tmp-build if errorlevel 1 exit 1 cd tmp-build if errorlevel 1 exit 1 cmake --debug-output -G "Ninja" ^ -DPython3_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DCMAKE_BUILD_TYPE=Release ^ ..\pythonfmu\pythonfmu-export more .\CMakeFiles\CMakeOutput.log if errorlevel 1 exit 1 REM cmake --build . --config Release --verbose ninja install if errorlevel 1 exit 1 cd .. if errorlevel 1 exit 1 %PYTHON% -m pip install . -vv if errorlevel 1 exit 1
Add android sdk upload script.
echo 'y' | "%ANDROID_HOME%/tools/android.bat" update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
Add newline to end of file
java -jar Collate-TUI.jar collate from src/main to collated/main include java, fxml, css java -jar Collate-TUI.jar collate from src/test to collated/test include java java -jar Collate-TUI.jar collate from unused to collated/unused include java, fxml, css
java -jar Collate-TUI.jar collate from src/main to collated/main include java, fxml, css java -jar Collate-TUI.jar collate from src/test to collated/test include java java -jar Collate-TUI.jar collate from unused to collated/unused include java, fxml, css
Use relative path for local nuspec build script
nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory C:\Users\egger\Workspace\NuGet -Version 0.0.1-alpha
nuget pack Weingartner.Json.Migration.Fody.nuspec -OutputDirectory ..\..\NuGet -Version 0.0.1-alpha
Revert "switching to 7z as well, sourceforge still broke"
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli-ci\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json pushd %CD%\cf-cli-binaries 7z x cf-cli-binaries.tgz 7z x cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application
SET GOPATH=%CD%\gopath SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%GOPATH%\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli-ci\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json pushd %CD%\cf-cli-binaries gzip -d cf-cli-binaries.tgz tar -xvf cf-cli-binaries.tar MOVE %CD%\cf-cli_winx64.exe ..\cf.exe popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites -skipPackage application ./gats ginkgo.exe -r -nodes=4 -slowSpecThreshold=120 -randomizeSuites ./gats/application
Fix npm install intermittent failures.
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( call npm update azure-cli ) else ( call npm install azure-cli ) if exist %1\node_modules\kudusync\bin\kudusync ( call npm update kudusync ) else ( call npm install kudusync ) popd
@echo off pushd %1 if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update azure-cli ) else ( cmd /c npm install azure-cli ) IF %ERRORLEVEL% NEQ 0 goto error if exist %1\node_modules\kudusync\bin\kudusync ( cmd /c npm update kudusync ) else ( cmd /c npm install kudusync ) popd
Fix missing files in release ZIP
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set releasePath=%projectPath%\.release mkdir "%releasePath%" for /f "tokens=*" %%a in ('type version.txt') do set version=%%a del "%releasePath%\shareical_%version%.zip" "build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!components -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln
set projectPath=%~dp0 if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1% set releasePath=%projectPath%\.release mkdir "%releasePath%" for /f "tokens=*" %%a in ('type version.txt') do set version=%%a del "%releasePath%\shareical_%version%.zip" "build_tools\7za.exe" a -tzip -r "%releasePath%\shareical_%version%.zip" "%projectPath%\*.*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!composer.phar -xr!shareical.phpproj -xr!shareical.phpproj.user -xr!shareical.sln "build_tools\7za.exe" d -tzip -r "%releasePath%\shareical_%version%.zip" components
Fix build by installing grunt
call "c:\Program Files (x86)\nodejs\nodevars.bat" call npm.cmd install grunt-contrib-compress call npm.cmd install grunt-contrib-clean call npm.cmd install -g grunt-cli call grunt.cmd
call "c:\Program Files (x86)\nodejs\nodevars.bat" call npm.cmd install grunt call npm.cmd install grunt-contrib-compress call npm.cmd install grunt-contrib-clean call npm.cmd install -g grunt-cli call grunt.cmd
Set environment variables to Jay's values
set CATALINA_HOME=C:\Java\apache-tomcat-7.0.47 set BREEZEJS_TEST=C:\git\Breeze\breeze.js\test\
set CATALINA_HOME=C:\Java\apache-tomcat-7.0.59-windows-x64\apache-tomcat-7.0.59 set BREEZEJS_TEST=C:\GitHub\breeze.js\test\
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
Add buildtest batch file for Windows
@echo off setlocal ENABLEEXTENSIONS set PATH=C:\MinGW\bin;%PATH% set TEST_PY=26,30,31 set TEST_MPI=deinompi,mpich2_win,msmpi set TEST_CC=msvc,mingw32 for %%A in (%TEST_PY%) do ( for %%B in (%TEST_MPI%) do ( for %%C in (%TEST_CC%) do ( echo -------------------------------------------------------------------------- call :Main %%A %%B %%C echo -------------------------------------------------------------------------- ))) goto :eof :Main set PYVERSION=%1 set MPICONF=%2 set COMPILER=%3 echo Py: %PYVERSION% - MPI: %MPICONF% - CC: %COMPILER% set PYTHONDIR=C:\Python%PYVERSION% set PYTHON="%PYTHONDIR%\python.exe" set MPIDIR= if %MPICONF%==deinompi set MPIDIR=%ProgramFiles%\DeinoMPI if %MPICONF%==mpich2_win set MPIDIR=%ProgramFiles%\MPICH2 if %MPICONF%==msmpi set MPIDIR=%ProgramFiles%\Microsoft HPC Pack 2008 SDK set MPIEXEC="%MPIDIR%\bin\mpiexec.exe" %PYTHON% setup.py -q clean --all %PYTHON% setup.py -q build --mpi=%MPICONF% --compiler=%COMPILER% %PYTHON% setup.py -q install --home=%TEMP% %PYTHON% setup.py -q clean --all %MPIEXEC% -n 2 %PYTHON% test\runalltest.py -q --path=%TEMP%\lib\python del /S /Q %TEMP%\lib\python > NUL rmdir /S /Q %TEMP%\lib\python\mpi4py goto :eof
Move mare build directory to Build/Debug
@echo off if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/mare --outputDir=Build/mare --sourceDir=Ext/mare/src if not "%1"=="" (Build\mare\mare.exe %*) else Build\mare\mare.exe --vcxproj=2013
@echo off if not exist Build\mare\mare.exe call Ext\mare\compile.bat --buildDir=Build/Debug/mare --outputDir=Build/Debug/mare --sourceDir=Ext/mare/src if not "%1"=="" (Build\Debug\mare\mare.exe %*) else Build\Debug\mare\mare.exe --vcxproj=2013
Add step generating geos_svn_revision.h template with revision 0
@ECHO OFF REM REM This script generates headers for use with Visual C++ only REM REM Usage: REM .\autogen.bat REM nmake -f makefile.vc REM REM NOTE: DO NOT include this script in GEOS sources distribution REM set GEOS_HEADERS=include\geos COPY %GEOS_HEADERS%\version.h.vc %GEOS_HEADERS%\version.h COPY %GEOS_HEADERS%\platform.h.vc %GEOS_HEADERS%\platform.h COPY capi\geos_c.h.in capi\geos_c.h
@ECHO OFF REM REM This script generates headers for use with Visual C++ only REM REM Usage: REM .\autogen.bat REM nmake -f makefile.vc REM REM NOTE: DO NOT include this script in GEOS sources distribution REM set GEOS_HEADERS=include\geos COPY %GEOS_HEADERS%\version.h.vc %GEOS_HEADERS%\version.h COPY %GEOS_HEADERS%\platform.h.vc %GEOS_HEADERS%\platform.h COPY capi\geos_c.h.in capi\geos_c.h @ECHO #define GEOS_SVN_REVISION 0 > geos_svn_revision.h
Add a CI build script
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true REM Kill any instances of VBCSCompiler.exe to release locked files; REM otherwise future CI runs may fail while trying to delete those files. taskkill /F /IM vbcscompiler.exe
Change environment variables in stop.bat file.
REM see README.txt REM SET UP ENVIRONMENT VARIABLES set KDBCODE=%cd%\code set KDBCONFIG=%cd%\config set KDBLOG=%cd%\logs set KDBHTML=%cd%\html set KDBLIB=%cd%\lib set KDBBASEPORT=6000 set PATH=%PATH%;%KDBLIB%\w32 REM to kill it, run this: start "kill" q torq.q -load code/processes/kill.q -proctype kill -procname killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed
REM see README.txt REM SET UP ENVIRONMENT VARIABLES set TORQHOME=%cd% set KDBCODE=%TORQHOME%\code set KDBCONFIG=%TORQHOME%\config set KDBLOG=%TORQHOME%\logs set KDBHTML=%TORQHOME%\html set KDBLIB=%TORQHOME%\lib set KDBBASEPORT=6000 set KDBHDB=%TORQHOME%/hdb/database REM App specific configuration directory set KDBAPPCONFIG=%TORQHOME%\appconfig set KDBBASEPORT=6000 set PATH=%PATH%;%KDBLIB%\w32 REM to kill it, run this: start "kill" q torq.q -load code/processes/kill.q -proctype kill -procname killtick -.servers.CONNECTIONS rdb wdb tickerplant chainedtp hdb gateway housekeeping monitor discovery sort reporter compression feed
Change nunit argument to Debug
nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools nuget install OpenCover -Version 4.6.519 -OutputDirectory tools nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools .\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe -targetargs:".\NUnit.Tests1\bin\Release\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user .\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml
nuget install NUnit.ConsoleRunner -Version 3.6.1 -OutputDirectory tools nuget install OpenCover -Version 4.6.519 -OutputDirectory tools nuget install coveralls.net -Version 0.412.0 -OutputDirectory tools .\tools\OpenCover.4.6.519\tools\OpenCover.Console.exe -target:.\tools\NUnit.ConsoleRunner.3.6.1\tools\nunit3-console.exe -targetargs:".\NUnit.Tests1\bin\Debug\NUnit.Tests1.dll" -filter:"+[*]* -[*.Tests]*" -register:user .\tools\coveralls.net.0.412\tools\csmacnz.Coveralls.exe --opencover -i .\results.xml
Update path to CloundFoundry CLI
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN_HOME=C:\opt\apache-maven-3.3.9 SET TEST_OUT=C:\st\%~nx1 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI% ECHO cf_org = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% ECHO output = %TEST_OUT% >> %USERINI% SET PATH=%PYTHON_HOME%\Scripts;%DOTNET_HOME%;%JAVA_HOME%\bin;%GIT_HOME%\bin;%MAVEN_HOME%\bin;%PATH% RMDIR /S /Q %TEST_OUT% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %*
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET GIT_HOME=C:\Program Files\Git SET MAVEN_HOME=C:\opt\apache-maven-3.3.9 SET CF_HOME=C:\ProgramData\chocolatey\bin SET TEST_OUT=C:\st\%~nx1 ECHO [behave.userdata] > %USERINI% ECHO cf_apiurl = api.run.pcfbeta.io >> %USERINI% ECHO cf_org = STEELTOE >> %USERINI% ECHO cf_username = %CF_USER% >> %USERINI% ECHO cf_password = %CF_PASS% >> %USERINI% ECHO output = %TEST_OUT% >> %USERINI% SET PATH=%PYTHON_HOME%\Scripts;%DOTNET_HOME%;%JAVA_HOME%\bin;%GIT_HOME%\bin;%MAVEN_HOME%\bin;%PATH%;%CF_HOME% RMDIR /S /Q %TEST_OUT% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %*
Update RingQt - Update from Qt 5.12.2 to Qt 5.12.3
call ..\..\src\locatevc.bat "C:\Qt\Qt5.12.2\5.12.2\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler" rem "C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_2_MSVC2017_32bit-Release/Makefile qmake_all "C:\Qt\Qt5.12.2\Tools\QtCreator\bin\jom.exe" copy release\ringqt.dll ..\..\bin
call ..\..\src\locatevc.bat "C:\Qt\Qt5.12.3\5.12.3\msvc2017\bin\qmake.exe" ring_qt512.pro -spec win32-msvc "CONFIG+=qtquickcompiler" rem "C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe" -f ../build-ring_qt512-Desktop_Qt_5_12_3_MSVC2017_32bit-Release/Makefile qmake_all "C:\Qt\Qt5.12.3\Tools\QtCreator\bin\jom.exe" copy release\ringqt.dll ..\..\bin
Add init db windows script file
@ECHO OFF IF %1.==. GOTO No1 REM Remove trailing / 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\*" org.jboss.aerogear.unifiedpush.DBMaintenance $%DEBUG_OPTS% -Daerobase.config.dir=%CONFIG%" GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
Modify .Net framework version to 4.0
::******************************************************************************************************* :: BuildBeta.bat - Gbtc :: :: Tennessee Valley Authority, 2009 :: No copyright is claimed pursuant to 17 USC 105. All Other Rights Reserved. :: :: This software is made freely available under the TVA Open Source Agreement (see below). :: :: Code Modification History: :: ----------------------------------------------------------------------------------------------------- :: 10/05/2009 - Pinal C. Patel :: Generated original version of source code. :: 10/20/2009 - Pinal C. Patel :: Modified to force a build and suppress archives from being published to public locations. :: ::******************************************************************************************************* @ECHO OFF C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe Synchrophasor.buildproj /p:ForceBuild=true;SkipPublicArchive=true /l:FileLogger,Microsoft.Build.Engine;logfile=Synchrophasor.output PAUSE
::******************************************************************************************************* :: BuildBeta.bat - Gbtc :: :: Tennessee Valley Authority, 2009 :: No copyright is claimed pursuant to 17 USC 105. All Other Rights Reserved. :: :: This software is made freely available under the TVA Open Source Agreement (see below). :: :: Code Modification History: :: ----------------------------------------------------------------------------------------------------- :: 10/05/2009 - Pinal C. Patel :: Generated original version of source code. :: 10/20/2009 - Pinal C. Patel :: Modified to force a build and suppress archives from being published to public locations. :: 09/21/2010 - Mihir Brahmbhatt :: Change Framework path from v3.5 to v4.0 :: ::******************************************************************************************************* @ECHO OFF C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe Synchrophasor.buildproj /p:ForceBuild=true;SkipPublicArchive=true;SkipHelpFiles=true;SkipSigning=true /l:FileLogger,Microsoft.Build.Engine;logfile=Synchrophasor.output PAUSE
Remove long directory from azure-cli
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist %1\node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) IF %ERRORLEVEL% NEQ 0 goto error goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
@echo off pushd %1 set attempts=5 set counter=0 :retry set /a counter+=1 echo Attempt %counter% out of %attempts% if exist node_modules\azure-cli\bin\azure ( cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) else ( cmd /c npm install https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5 ) IF %ERRORLEVEL% NEQ 0 goto error set long_unrequired_directory=node_modules\azure-cli\node_modules\azure\node_modules\request\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stream\test if exist %long_unrequired_directory% ( rmdir /s /q %long_unrequired_directory% IF %ERRORLEVEL% NEQ 0 goto error ) goto end :error if %counter% GEQ %attempts% goto :lastError goto retry :lastError popd echo An error has occured during npm install. exit /b 1 :end popd echo Finished successfully. exit /b 0
Make prebuild batch file more adaptable by trying to find Git.exe
ECHO Get revision number from git echo // Pre build automatically generated header file> GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed) git rev-list HEAD | find /v /c "" >> GitRevision.h
ECHO Get revision number from git echo // Automatically generated header file created by Prebuild.bat > GitRevision.h REM We use SET/P to do an echo without newline set /p="#define GITREVISION " >> GitRevision.h REM Count number of commits (relies on Git being installed) IF NOT EXIST "C:\Program Files (x86)\Git\bin\git.exe" goto next1 "C:\Program Files (x86)\Git\bin\git.exe" rev-list HEAD | find /v /c "" >> GitRevision.h goto end :next1 IF NOT EXIST "C:\Program Files (x86)\SmartGit\git\bin\git.exe" goto next2 "C:\Program Files (x86)\SmartGit\git\bin\git.exe" rev-list HEAD | find /v /c "" >> GitRevision.h goto end :next2 REM Just try running git and hope it's in the path git rev-list HEAD | find /v /c "" >> GitRevision.h :end
Allow Windows batch file to work when there are spaces in the path.
python setup.py install rmdir %~dp0windows /s /q mkdir %~dp0windows python setup.py py2exe move dist\retriever.exe %~dp0windows rmdir build dist /s /q
python setup.py install rmdir %~dp0windows /s /q mkdir %~dp0windows python setup.py py2exe move dist\retriever.exe windows\ rmdir build dist /s /q
Remove manual versioning from self-contained targets
@ECHO OFF REM --------------------------------------------------------------------------- REM Builds the file utility nuget packages. REM --------------------------------------------------------------------------- SETLOCAL SET BUILD_NUMBER=%1 IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555 ECHO BUILD_NUMBER=%BUILD_NUMBER% SET /p VERSION=<ver.file-utility-code.txt ECHO Building targets for %VERSION%.%BUILD_NUMBER% SET PUBLISHCMD=dotnet publish -c Release /p:Version=%VERSION% ECHO PUBLISHCMD=%PUBLISHCMD% %PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-win-x86\ --runtime win-x86 %PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-linux-x64\ --runtime linux-x64 ENDLOCAL
@ECHO OFF REM --------------------------------------------------------------------------- REM Builds the file utility nuget packages. REM --------------------------------------------------------------------------- SETLOCAL SET BUILD_NUMBER=%1 IF "%BUILD_NUMBER%" == "" SET BUILD_NUMBER=5555 ECHO BUILD_NUMBER=%BUILD_NUMBER% ECHO Building self-contained dotnet targets SET PUBLISHCMD=dotnet publish -c Release ECHO PUBLISHCMD=%PUBLISHCMD% %PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-win-x86\ --runtime win-x86 %PUBLISHCMD% .\CheckArisFile\ -o .\self-contained\CheckArisFile-linux-x64\ --runtime linux-x64 ENDLOCAL
Make sure errorlevel is not empty
:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3 :: https://github.com/matplotlib/matplotlib/issues/9176 for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (curl -sL https://github.com/python/cpython/pull/1224.patch | patch -fsup 1 -d %PATCH_PREFIX% ) || ( set errorlevel= ) pytest -v -s -m indexed_gzip_test --niters 250 --pyargs indexed_gzip -k "not drop_handles" pytest -v -s -m indexed_gzip_test --niters 250 --concat --pyargs indexed_gzip -k "not drop_handles"
:: Apply patch to `subprocess` on Python versions > 2 and < 3.6.3 :: https://github.com/matplotlib/matplotlib/issues/9176 for /f "delims=" %%a in ('python -c "import subprocess; import os.path as op; print(op.abspath(op.join(op.dirname(subprocess.__file__), "".."")));"') do @set PATCH_PREFIX=%%a python -c "import sys; sys.exit(not (3,) < sys.version_info < (3,6,3))" && (curl -sL https://github.com/python/cpython/pull/1224.patch | patch -fsup 1 -d %PATCH_PREFIX% ) || ( set errorlevel=0 ) pytest -v -s -m indexed_gzip_test --niters 250 --pyargs indexed_gzip -k "not drop_handles" pytest -v -s -m indexed_gzip_test --niters 250 --concat --pyargs indexed_gzip -k "not drop_handles"
Use -W on the Windows 64 buildbots
@rem Used by the buildbot "test" step. cd PCbuild call rt.bat -q -d -x64 -uall -rw
@rem Used by the buildbot "test" step. cd PCbuild call rt.bat -d -q -x64 -uall -rwW -n
Make sure all taskkills fire.
REM Run from anywhere, project root or bin folder. E.g. (from root): REM bin\kill-drivers tasklist | find /i "driver" && taskkill /f /im "chromedriver.exe" && taskkill /f /im "IEDriverServer.exe"
@echo off REM Run from anywhere, project root or bin folder. E.g. (from root): REM bin\kill-drivers tasklist | findstr /i "driver phantomjs" taskkill /f /im "chromedriver.exe" taskkill /f /im "IEDriverServer.exe" taskkill /f /im "phantomjs.exe"
Fix copy and paste typo
@echo off if "%1" == "" ( echo Usage: buildrelease version-number goto end ) IF EXIST tmpdocs rmdir /s /q tmpdocs xcopy /q /s /i www\unstable\userguide tmpdocs xcopy /q /s /i www\_layouts tmpdocs\_layouts xcopy /q /s /i www\_plugins tmpdocs\_plugins xcopy /q /s /i www\css tmpdocs\css xcopy /q /s /i www\js tmpdocs\js xcopy /q /s /i www\fonts tmpdocs\fonts copy www\_config.yml tmpdocs echo ug_version: %1 >> tmpdocs\_config.yml REM Override the normal foundation layout copy tmpdocs\_layouts\foundation-offline.html tmpdocs\_layouts\foundation.html cd tmpdocs call jekyll build cd .. :end
@echo off if "%1" == "" ( echo Usage: buildofflineguide version-number goto end ) IF EXIST tmpdocs rmdir /s /q tmpdocs xcopy /q /s /i www\unstable\userguide tmpdocs xcopy /q /s /i www\_layouts tmpdocs\_layouts xcopy /q /s /i www\_plugins tmpdocs\_plugins xcopy /q /s /i www\css tmpdocs\css xcopy /q /s /i www\js tmpdocs\js xcopy /q /s /i www\fonts tmpdocs\fonts copy www\_config.yml tmpdocs echo ug_version: %1 >> tmpdocs\_config.yml REM Override the normal foundation layout copy tmpdocs\_layouts\foundation-offline.html tmpdocs\_layouts\foundation.html cd tmpdocs call jekyll build cd .. :end
Add script for automated local running
docker run --rm --volume="%cd%:/srv/jekyll" -p 35729:35729 -p 4000:4000 --name jekyll -it jekyll/jekyll jekyll serve
Update Baseclass.Contrib.Nuget.Output version to 1.0.7
.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.6 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1.0.2 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.GitIgnoreContent\Baseclass.Contrib.Nuget.GitIgnoreContent.nuspec -Version 0.0.2
.nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.nuspec -Version 1.0.7 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Output\Baseclass.Contrib.Nuget.Output.Web.nuspec -Version 1.0.0 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.Linked\Baseclass.Contrib.Nuget.Linked.nuspec -Version 1.0.2 .nuget\nuget.exe pack Baseclass.Contrib.Nuget.GitIgnoreContent\Baseclass.Contrib.Nuget.GitIgnoreContent.nuspec -Version 0.0.2
Add a separate install phase
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% .. if errorlevel 1 exit 1 cmake --build . --config Release --target install if errorlevel 1 exit 1
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% .. if errorlevel 1 exit 1 cmake --build . --config Release if errorlevel 1 exit 1 echo "Build finished" cmake --config Release --target install if errorlevel 1 exit 1
Fix test script for appveyor
@ECHO OFF :: Run unit tests cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test if not "%errorlevel%"=="0" goto failure dotnet test cd ..\.. echo Unit Tests Pass goto success :failure echo Unit Tests Failure exit -1 :success
@ECHO OFF :: Run unit tests cd test\Steeltoe.Extensions.Configuration.CloudFoundry.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. cd test\Steeltoe.Extensions.Configuration.ConfigServer.Test dotnet test if not "%errorlevel%"=="0" goto failure cd ..\.. echo Unit Tests Pass goto success :failure echo Unit Tests Failure exit -1 :success
Make Tests in Appveyor Exit when Test is finished
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%
SET EXE=%2 SET FINISHED=0 start %1%EXE% && %FINISHED%=1 FOR /L %%I in (1,1,%3) DO (timeout /t 1 && IF %%I EQU %3 goto :timeout && IF FINISHED EQU 1 goto :taskFinished) :taskFinished exit /b %errorlevel% :timeout FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% taskkill /im %EXE% /f & exit /b 1
Remove windows explicitly stated compiler directives.
:: Paths assume java-jdk installed by conda set JCC_JDK=%JAVA_HOME% set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH% set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib set JDK_HOME=%JCC_JDK% set ::cd jcc "%PYTHON%" setup.py install --single-version-externally-managed --record record.txt if errorlevel 1 exit 1 :: ensure that JCC_JDK is set correctly set ACTIVATE_DIR=%PREFIX%\etc\conda\activate.d set DEACTIVATE_DIR=%PREFIX%\etc\conda\deactivate.d mkdir %ACTIVATE_DIR% mkdir %DEACTIVATE_DIR% copy %RECIPE_DIR%\scripts\activate.bat %ACTIVATE_DIR%\jcc-activate.bat if errorlevel 1 exit 1 copy %RECIPE_DIR%\scripts\deactivate.bat %DEACTIVATE_DIR%\jcc-deactivate.bat if errorlevel 1 exit 1
:: Paths assume openjdk installed by conda set JCC_JDK=%JAVA_HOME% set PATH=%JCC_JDK%\jre\bin\server;%JCC_JDK%;%JCC_JDK%\jre\bin;%PATH% :: set JCC_INCLUDES=%JCC_JDK%\include\win32;%JCC_JDK%\include :: set JCC_LFLAGS=/DLL;/LIBPATH:%JCC_JDK%\lib;Ws2_32.lib;jvm.lib :: set JDK_HOME=%JCC_JDK% :: set "%PYTHON%" setup.py install --single-version-externally-managed --record record.txt if errorlevel 1 exit 1 :: ensure that JCC_JDK is set correctly set ACTIVATE_DIR=%PREFIX%\etc\conda\activate.d set DEACTIVATE_DIR=%PREFIX%\etc\conda\deactivate.d mkdir %ACTIVATE_DIR% mkdir %DEACTIVATE_DIR% copy %RECIPE_DIR%\scripts\activate.bat %ACTIVATE_DIR%\jcc-activate.bat if errorlevel 1 exit 1 copy %RECIPE_DIR%\scripts\deactivate.bat %DEACTIVATE_DIR%\jcc-deactivate.bat if errorlevel 1 exit 1
Increase memory limit for standard installation
cd /d %~dp0 java -jar pathvisio.jar -p visplugins.jar %*
cd /d %~dp0 java -Xmx1024m -jar pathvisio.jar -p visplugins.jar %*
Build : Added pause at the end of the bat file
@echo off cls ".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "packages\FAKE\tools\Fake.exe" build.fsx
@echo off cls ".nuget\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "packages" "-ExcludeVersion" "packages\FAKE\tools\Fake.exe" build.fsx pause
Change install prefix to LIBRARY_PREFIX
set PATH=%PATH:C:\Program Files\Git\usr\bin;=% :: Configure. cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% . if errorlevel 1 exit 1 :: Build. mingw32-make if errorlevel 1 exit 1 :: Install. mingw32-make install if errorlevel 1 exit 1 sixs < Example_In_1.txt
set PATH=%PATH:C:\Program Files\Git\usr\bin;=% :: Configure. cmake -G "MinGW Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% . if errorlevel 1 exit 1 :: Build. mingw32-make if errorlevel 1 exit 1 :: Install. mingw32-make install if errorlevel 1 exit 1 sixs < Example_In_1.txt
Patch for version 0.602 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.60" -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.602" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Fix build script for systems without VS2012
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release /maxcpucount powershell.exe %~dp0PackageNuget.ps1
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "%~dp0..\LightBlue.sln" /target:Clean,Build /p:Configuration=Release;VisualStudioVersion=12.0 /maxcpucount powershell.exe %~dp0PackageNuget.ps1