Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Move nssm to \control so only one docker load
@echo off rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1 rem It has some key differences for use in Windows CI for TP5+ rem - Daemon is NOT debug rem - Daemon is renamed to dockernssm.exe to spot easily in task manager rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines rem - TEMP and TMP are redirected to d:\temp (SSD drive) if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" ( set TEMP=d:\temp set TMP=d:\temp mkdir d:\temp > nul 2>&1 if exist d:\nssmdaemon (goto :runproduction) mkdir d:\nssmdaemon :runproduction copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=d:\nssmdaemon --pidfile=d:\nssmdaemon\daemon.pid ) ELSE ( if exist c:\nssmdaemon (goto :runlocal) mkdir c:\nssmdaemon :runlocal copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=c:\nssmdaemon --pidfile=c:\nssmdaemon\daemon.pid )
@echo off rem This is a variant of runDockerDaemon.cmd in programdata\docker installed by Install-ContainerHost.ps1 rem It has some key differences for use in Windows CI for TP5+ rem - Daemon is NOT debug rem - Daemon is renamed to dockernssm.exe to spot easily in task manager rem - Daemon is redirected to d:\daemon, D: being a fast SSD on CI machines rem - TEMP and TMP are redirected to d:\temp (SSD drive) if /I NOT "%LOCAL_CI_INSTALL%" EQU "1" ( set TEMP=d:\temp set TMP=d:\temp mkdir d:\temp > nul 2>&1 if exist d:\control (goto :runproduction) mkdir d:\control :runproduction copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=d:\control --pidfile=d:\control\daemon.pid ) ELSE ( if exist c:\control (goto :runlocal) mkdir c:\control :runlocal copy %systemroot%\system32\dockerd.exe %systemroot%\system32\nssmdockerd.exe /Y nssmdockerd --graph=c:\control --pidfile=c:\control\daemon.pid )
Embed EXE files inside a Batch script
@echo off :: :: The Batchography book by Elias Bachaalany :: setlocal enabledelayedexpansion set FN=%TEMP%\evil.tmp call :extract-embedded-bin "%FN%" start %FN% goto :eof :extract-embedded-bin <1=OutFileName> setlocal set MBEGIN=-1 for /f "useback tokens=1 delims=: " %%a in (`findstr /B /N /C:"-----BEGIN CERTIFICATE-----" "%~f0"`) DO ( set /a MBEGIN=%%a-1 ) if "%MBEGIN%"=="-1" ( endlocal exit /b -1 ) :: Delete previous output files if exist "%~1.tmp" del "%~1.tmp" if exist "%~1" del "%~1" for /f "useback skip=%MBEGIN% tokens=* delims=" %%a in ("%~f0") DO ( echo %%a >>"%~1.tmp" ) certutil -decode "%~1.tmp" "%~1" >nul 2>&1 del "%~1.tmp" endlocal exit /b 0 -----BEGIN CERTIFICATE----- TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAsAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5v dCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABdXG3BGT0Dkhk9A5IZPQOS lyIQkh49A5LlHRGSGD0DklJpY2gZPQOSAAAAAAAAAABQRQAATAEBALL6QFcAAAAA AAAAAOAADwELAQUMAAIAAAAAAAAAAAAAEBAAAAAQAAAAIAAAAABAAAAQAAAAAgAA BAAAAAAAAAAEAAAAAAAAAAAgAAAAAgAAAAAAAAIAAAAAABAAABAAAAAAEAAAEAAA AAAAABAAAAAAAAAAAAAAAGwQAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAEAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC50ZXh0AAAA 7gAAAAAQAAAAAgAAAAIAAAAAAAAAAAAAAAAAACAAAGAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADSEAAAAAAAALgQAAAAAAAA 6zJEcm9wcGVkIGV4ZWN1dGFibGUATGV0J3MgZG8gbW9yZSBldmlsIHN0dWZmLCBu b3QhAGoAaBIQQABoJRBAAGoA6AcAAABqAOgGAAAA/yUIEEAA/yUAEEAAzMywEAAA AAAAAAAAAADGEAAACBAAAKgQAAAAAAAAAAAAAOAQAAAAEAAAAAAAAAAAAAAAAAAA AAAAAAAAAADSEAAAAAAAALgQAAAAAAAAsQFNZXNzYWdlQm94QQB1c2VyMzIuZGxs AACbAEV4aXRQcm9jZXNzAGtlcm5lbDMyLmRsbAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAA== -----END CERTIFICATE-----
Patch for version 0.63 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.62" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.63" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Patch for version 0.71 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.70" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.71" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Change to pack with and without symbols
@echo off REM Capture parameters set ScriptDir=%~dp0 set SolutionDir=%~1 set AssemblyName=%~2 set NuGetCommand=%ScriptDir%NuGet.exe set VersionInfoCommand=%ScriptDir%VersionInfo.vbs set output=%SolutionDir%Output set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec set nuget_folder=%SolutionDir%.nuget\%AssemblyName% if not exist %nuget_nuspec% ( echo The nuspec file could not be found at: %nuget_nuspec% EXIT /B 1 ) for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i mkdir "%nuget_folder%" > nul 2>&1 del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1 copy "%nuget_nuspec%" "%nuget_folder%" > nul REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output% %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output% rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1
@echo off REM Capture parameters set ScriptDir=%~dp0 set SolutionDir=%~1 set AssemblyName=%~2 set NuGetCommand=%ScriptDir%NuGet.exe set VersionInfoCommand=%ScriptDir%VersionInfo.vbs set output=%SolutionDir%Output set nuget_nuspec=%SolutionDir%%AssemblyName%.nuspec set nuget_folder=%SolutionDir%.nuget\%AssemblyName% if not exist %nuget_nuspec% ( echo The nuspec file could not be found at: %nuget_nuspec% EXIT /B 1 ) for /f %%i in ('cscript //nologo %VersionInfoCommand% %output%\net46\%AssemblyName%.dll') do set AssemblyVersion=%%i mkdir "%nuget_folder%" > nul 2>&1 del "%nuget_folder%\%AssemblyName%.nuspec" > nul 2>&1 copy "%nuget_nuspec%" "%nuget_folder%" > nul %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -Symbols -OutputDirectory %output% REM %NuGetCommand% pack %nuget_folder%\%AssemblyName%.nuspec -Version %AssemblyVersion% -OutputDirectory %output% rmdir /s/q "%SolutionDir%.nuget" > nul 2>&1
Add new windows build script
set PYTHON=C:\Python27\python set EASY_INSTALL=c:\python27\scripts\easy_install.exe set NEXUSDIR="C:\Program Files (x86)\NeXus Data Format\" set PATH=C:\Python27;C:\Python27\Scripts;C:\mingw\bin;%PATH% cd %WORKSPACE% %PYTHON% check_packages.py cd %WORKSPACE% python setup.py build -cmingw32 cd %WORKSPACE% python setup.py docs cd %WORKSPACE% python setup.py bdist_egg --skip-build cd %WORKSPACE%\test %PYTHON% utest_sasview.py cd %WORKSPACE% mkdir sasview-install set PYTHONPATH=%WORKSPACE%\sasview-install;%PYTHONPATH% cd %WORKSPACE% cd dist %EASY_INSTALL% -d ..\sasview-install sasview-3.1.2-py2.7-win32.egg cd %WORKSPACE%\sasview python setup_exe.py py2exe python installer_generator.py "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" installer.iss cd Output xcopy setupSasView.exe %WORKSPACE%\dist cd %WORKSPACE%
Fix clone command for appveyor
git clone https://github.com/Vasar007/TIMLE.git cd SFML mkdir install mkdir build cd build cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE msbuild INSTALL.vcxproj cd ../../ git clone https://github.com/Vasar007/TIMLE.git cd TIMLE mkdir build mkdir build/TIMLE cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install
git clone https://github.com/SFML/SFML.git cd SFML mkdir install mkdir build cd build cmake .. -G "Visual Studio 15 Win64" -DCMAKE_INSTALL_PREFIX=../install -DSFML_DEPENDENCIES_INSTALL_PREFIX=../install -DSFML_BUILD_FRAMEWORKS=FALSE -DBUILD_SHARED_LIBS=TRUE msbuild INSTALL.vcxproj cd ../../ git clone https://github.com/Vasar007/TIMLE.git cd TIMLE mkdir build mkdir build/TIMLE cmake . -G "Visual Studio 15 Win64" -DCMAKE_BUILD_TYPE=$BUILD_CONFIGURATION -DTARGET_CPU=$TARGET_CPU -DCMAKE_INSTALL_PREFIX=./build/TIMLE -DCMAKE_PREFIX_PATH=./SFML/install
Use case 9 script for Windows.
call activate cate cate ds make_local esacci.CLOUD.mon.L3C.CLD_PRODUCTS.MODIS.Terra.MODIS_TERRA.1-0.r1 CLOUD_2007 2007 cate ds make_local esacci.OZONE.mon.L3.NP.multi-sensor.multi-platform.MERGED.fv0002.r1 OZONE_2007 2007 mkdir uc09 cd uc09 cate ws init cate res open cloud local.CLOUD_2007 cate res open ozone local.OZONE_2007 cate res set cloud_sub subset_spatial ds=cloud region=0,30,10,40 cate res set ozone_sub subset_spatial ds=ozone region=0,30,10,40 cate res set cloud_res coregister ds_master=ozone_sub ds_slave=cloud_sub cate ws save cate ws close cd ..
Add Windows batch file to update stdlib.
@echo off setlocal if [%1]==[] goto usage set _pyrepo=%1 if not exist "%_pyrepo%\Lib" ( echo "%_pyrepo% does not look like a CPython repo (no Lib directory)." goto :fail ) for /f %%I in ('hg -R "%_pyrepo%" id -i') do set _hgrev=%%I set _stdlibdir=%~dp0 pushd "%_stdlibdir%" git diff-index --quiet HEAD if "%ERRORLEVEL%" NEQ "0" ( echo "There are uncomitted changes. Commit or stash before proceeding." goto :fail ) for /f %%I in ('git rev-parse --abbrev-ref HEAD') do set _curbranch=%%I if "%_curbranch%" NEQ "python-stdlib" ( echo "This should only be run on the python-stdlib branch (on %_curbranch%)." goto :fail ) robocopy "%_pyrepo%\Lib" "%_stdlibdir%Lib" /MIR /R:1 /W:1 /XD plat-* git update-index --refresh -q > NUL git add -A "%_stdlibdir%/Lib" git diff-index --quiet HEAD if "%ERRORLEVEL%" EQU "0" ( echo "No changes found." ) else ( git commit -am "Import python stdlib @ %_hgrev%" ) goto :exit :usage echo %~n0 ^<path^\to^\cpython^> exit /B 1 :fail popd endlocal exit /B 1 :exit popd endlocal
Return the exit code from MSBuild.
@echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION echo.Building the TTR Mouse Click Simulator... echo. REM MSBuild is always installed in the 32-Bit program files folder if "!ProgramFiles(x86)!"=="" ( set "ProgramFiles32Bit=!ProgramFiles!" ) else ( set "ProgramFiles32Bit=!ProgramFiles(x86)!" ) set "BuildExe=!ProgramFiles32Bit!\MSBuild\14.0\Bin\MSBuild.exe" if not exist "!BuildExe!" ( echo.ERROR: MSBuild not found at "!BuildExe!"^^! pause exit /b 1 ) "!BuildExe!" /v:minimal /nologo /p:Configuration=Release "TTMouseclickSimulator\TTMouseclickSimulator.csproj" if not errorlevel 1 ( echo. echo.Build successful^^! ) pause
@echo off REM This build script allows you to build the TTR Mouse Click Simulator. REM For information about prerequisites, see the Wiki page at REM https://github.com/TTExtensions/MouseClickSimulator/wiki/Running-the-Simulator SetLocal ENABLEDELAYEDEXPANSION echo.Building the TTR Mouse Click Simulator... echo. REM MSBuild is always installed in the 32-Bit program files folder if "!ProgramFiles(x86)!"=="" ( set "ProgramFiles32Bit=!ProgramFiles!" ) else ( set "ProgramFiles32Bit=!ProgramFiles(x86)!" ) set "BuildExe=!ProgramFiles32Bit!\MSBuild\14.0\Bin\MSBuild.exe" if not exist "!BuildExe!" ( echo.ERROR: MSBuild not found at "!BuildExe!"^^! pause exit /b 1 ) "!BuildExe!" /v:minimal /nologo /p:Configuration=Release "TTMouseclickSimulator\TTMouseclickSimulator.csproj" if not errorlevel 1 ( echo. echo.Build successful^^! ) pause exit /b !ERRORLEVEL!
Use the latest paket.exe but just restore
@echo off cls .paket\paket.bootstrapper.exe 0.8.6 if errorlevel 1 ( exit /b %errorlevel% ) .paket\paket.exe install -v if errorlevel 1 ( exit /b %errorlevel% ) packages\FAKE\tools\FAKE.exe build.fsx %*
@echo off cls .paket\paket.bootstrapper.exe if errorlevel 1 ( exit /b %errorlevel% ) .paket\paket.exe restore if errorlevel 1 ( exit /b %errorlevel% ) packages\FAKE\tools\FAKE.exe build.fsx %*
Move proto generation into cmake and remove from prepare_build
REM Copyright 2022 The Chromium Authors. REM Use of this source code is governed by a BSD-style license that can be REM found in the LICENSE file. @echo off setlocal REM This script is meant to be run once to setup the example demo agent. REM Run it with one command line argument: the path to a directory where the REM demo agent will be built. This should be a directory outside the SDK REM directory tree. This directory must not already exist. REM REM Once the build is prepared, the demo binary is build using the command REM `cmake --build <build-dir>`, where <build-dir> is the same argument given REM to this script. set BUILD_DIR=%~f1 set DEMO_DIR=%~dp0 call :ABSPATH "%DEMO_DIR%.." ROOT_DIR call :ABSPATH "%ROOT_DIR%\proto" PROTO_DIR echo . echo Root dir: %ROOT_DIR% echo Build dir: %BUILD_DIR% echo Demo dir: %DEMO_DIR% echo Proto dir: %PROTO_DIR% echo . IF exist "%BUILD_DIR%" ( echo. echo ### Directory %1 must not exist. echo. EXIT /b ) mkdir "%BUILD_DIR%" cd /d "%BUILD_DIR%" REM Install vcpkg and use it to install Google Protocol Buffers. cmd/c git clone https://github.com/microsoft/vcpkg cmd/c .\vcpkg\bootstrap-vcpkg.bat -disableMetrics cmd/c .\vcpkg\vcpkg install protobuf:x64-windows REM Generate the build files. set CMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake cmake %DEMO_DIR% echo. echo. echo To build, type: cmake --build "%BUILD_DIR%" echo. exit /b REM Resolve relative path in %1 and set it into variable %2. :ABSPATH set %2=%~f1 exit /b
Comment source of Windows arch snippet
@echo off reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64 set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe" @IF NOT EXIST %NODE_PATH% ( set NODE_PATH="node.exe" ) %NODE_PATH% "%~dp0\..\lib\resin.js" %*
@echo off :: http://stackoverflow.com/questions/12322308/batch-file-to-check-64bit-or-32bit-os reg Query "HKLM\Hardware\Description\System\CentralProcessor\0" | find /i "x86" > NUL && set ARCH=x86 || set ARCH=x64 set NODE_PATH="%~dp0\bin\node\node-win32-%ARCH%.exe" @IF NOT EXIST %NODE_PATH% ( set NODE_PATH="node.exe" ) %NODE_PATH% "%~dp0\..\lib\resin.js" %*
Revert "build: autoselect build env"
@echo off set __VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017 if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd if not "%EnterpriseWDK%"=="" goto ewdk_ready if "%EWDK11_DIR%"=="" goto vs_vars call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd ::call :add_path "%VCToolsRedistDir%onecore\x86\Microsoft.VC142.OPENMP" goto :eof :vs_vars if not "%VSFLAVOR%"=="" goto :knownVS call :checkvs echo USING %VSFLAVOR% Visual Studio :knownVS echo %0: Setting NATIVE ENV for %1 (VS %VSFLAVOR%)... call "%__VS_PATH%\%VSFLAVOR%\VC\Auxiliary\Build\vcvarsall.bat" %1 goto :eof :checkvs set VSFLAVOR=Professional if exist "%__VS_PATH%\Community\VC\Auxiliary\Build\vcvarsall.bat" set VSFLAVOR=Community goto :eof :ewdk_ready echo We are already in EWDK version: %Version_Number% goto :eof :add_path echo %path% | findstr /i /c:"%~dp1" if not errorlevel 1 goto :eof echo Adding path %~dp1 set path=%path%;%~dp1 goto :eof
@echo off if "%CODEQL_HOME%"=="" set CODEQL_HOME=c:\codeql-home set CODEQL_BIN=%CODEQL_HOME%\codeql\codeql.cmd if not "%EnterpriseWDK%"=="" goto ready if "%EWDK11_DIR%"=="" set EWDK11_DIR=c:\ewdk11 :: call :add_path "%EWDK11_DIR%\Program Files\Microsoft Visual Studio\2019\BuildTools\VC\Redist\MSVC\14.28.29910\onecore\x86\Microsoft.VC142.OPENMP\vcomp140.dll" call %EWDK11_DIR%\BuildEnv\SetupBuildEnv.cmd goto :eof :add_path echo %path% | findstr /i /c:"%~dp1" if not errorlevel 1 goto :eof echo Adding path %~dp1 set path=%path%;%~dp1 goto :eof :ready echo We are already in EWDK version: %Version_Number% goto :eof
Update to exit if pid has been cleaned and configd is no longer there.
echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y /nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL SLEEP 6 EXIT /B 0
echo off REM leave a pid file so that a non-DC process REM like configd can be notified for shutdown copy /y /nul > %cd%\.pid%1 REM set this sleep value to be at least twice REM as long as the QMF_CONFIGD_WIN_INTERVAL set cntr=0 :LoopStart IF NOT EXIST %cd%\.pid%1 Goto EndClean SLEEP 1 IF %cntr%==5 Goto EndBad set /A cntr=%cntr%+1 Goto LoopStart :EndClean REM Give an extra second to clean up SLEEP 1 EXIT /B 0 :EndBad EXIT /B 1
Add cURL to the path for windows32 CATS tests
git submodule update --init SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit SET GOPATH=%CLIPATH% c:\Go\bin\go build -v -o cf-windows-386.exe main SET GOPATH=c:\Users\Administrator\go SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y SET PATH=%PATH%;%CATSPATH% call %environment.bat cd %CATSPATH% SET CONFIG=%CATSPATH%\config.json %GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"
git submodule update --init SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit SET GOPATH=%CLIPATH% c:\Go\bin\go build -v -o cf-windows-386.exe main SET GOPATH=c:\Users\Administrator\go SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /Y SET PATH=%PATH%;%CATSPATH%;C:\Program Files\cURL\bin call %environment.bat cd %CATSPATH% SET CONFIG=%CATSPATH%\config.json %GOPATH%\bin\ginkgo -r -v -slowSpecThreshold=300 -skip="admin buildpack"
Rename variable to not include the VS version
@ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln SET VS2015_BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" IF NOT EXIST %VS2015_BUILD_TOOLS_PATH% ( echo In order to build or run this tool you need either Visual Studio 2015 Preview or echo Microsoft Build Tools 2015 Preview tools installed. echo. echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs echo to download either. goto :eof ) IF EXIST %CACHED_NUGET% goto restore echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :restore IF EXIST "%~dp0src\packages" goto build %CACHED_NUGET% restore %SOLUTION_PATH% :build "%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*
@ECHO OFF SETLOCAL SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe SET SOLUTION_PATH=%~dp0src\CodeFormatter.sln SET BUILD_TOOLS_PATH="%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" IF NOT EXIST %BUILD_TOOLS_PATH% ( echo In order to build or run this tool you need either Visual Studio 2015 Preview or echo Microsoft Build Tools 2015 Preview tools installed. echo. echo Visit http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs echo to download either. goto :eof ) IF EXIST %CACHED_NUGET% goto restore echo Downloading latest version of NuGet.exe... IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'" :restore IF EXIST "%~dp0src\packages" goto build %CACHED_NUGET% restore %SOLUTION_PATH% :build "%ProgramFiles(x86)%\MSBuild\14.0\bin\MSBuild.exe" %SOLUTION_PATH% /p:OutDir="%~dp0bin " /nologo /m /v:m /flp:verbosity=normal %*
Use unannotated tags for fetchvm as github creates these for releases
@ECHO OFF REM Fetch the DolphinVM binaries from GitHub into the current directory. REM Specify a parameter to fetch a specific version or leave blank to REM get the recommended VM version for this release of the image. FOR /F "usebackq delims=" %%A in (`"git describe --abbrev=0"`) do SET tag=%%A powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*
@ECHO OFF REM Fetch the DolphinVM binaries from GitHub into the current directory. REM Specify a parameter to fetch a specific version or leave blank to REM get the recommended VM version for this release of the image. FOR /F "usebackq delims=" %%A in (`"git describe --tags --abbrev=0"`) do SET tag=%%A powershell.exe -ExecutionPolicy RemoteSigned -file FetchVM.ps1 %tag% %*
Remove extra hat in bootstrap batch file
@echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error call :NugetRestore Sharpmake.sln win if %errorlevel% NEQ 0 goto error goto success :NugetRestore echo Restoring nuget packages for %~1 set DOTNET_RESTORE=dotnet restore "%~1" if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2 echo %DOTNET_RESTORE% %DOTNET_RESTORE% if %errorlevel% NEQ 0 ( echo ERROR: Failed to restore nuget package for %~1 exit /b 1 ) exit /b 0 @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^^! timeout /t 5 exit /b 0 @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE%
@echo off :: set batch file directory as current pushd "%~dp0" set SHARPMAKE_EXECUTABLE=bin\debug\Sharpmake.Application.exe call CompileSharpmake.bat Sharpmake.Application/Sharpmake.Application.csproj Debug AnyCPU if %errorlevel% NEQ 0 goto error set SM_CMD=%SHARPMAKE_EXECUTABLE% /sources("Sharpmake.Main.sharpmake.cs") /verbose echo %SM_CMD% %SM_CMD% if %errorlevel% NEQ 0 goto error call :NugetRestore Sharpmake.sln win if %errorlevel% NEQ 0 goto error goto success :NugetRestore echo Restoring nuget packages for %~1 set DOTNET_RESTORE=dotnet restore "%~1" if "%~2" neq "" set DOTNET_RESTORE=%DOTNET_RESTORE% -r %2 echo %DOTNET_RESTORE% %DOTNET_RESTORE% if %errorlevel% NEQ 0 ( echo ERROR: Failed to restore nuget package for %~1 exit /b 1 ) exit /b 0 @REM ----------------------------------------------------------------------- :success COLOR 2F echo Bootstrap succeeded^! timeout /t 5 exit /b 0 @REM ----------------------------------------------------------------------- :error COLOR 4F echo Bootstrap failed^! pause set ERROR_CODE=1 goto end @REM ----------------------------------------------------------------------- :end :: restore caller current directory popd exit /b %ERROR_CODE%
Build script now creates zip
set /p Build=<ver.txt echo Building version %Build% fart ..\Properties\AssemblyInfo.cs 1.0.0.0 1.0.%Build% "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV" ..\..\Budford.sln /Rebuild Release call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" set /a Build=%Build%+1 echo %Build% > ver.txt git commit -m "New release" ver.txt git status git push origin master git checkout ..\..
set /p Build=<ver.txt echo Building version %Build% fart ..\Properties\AssemblyInfo.cs 1.0.0.0 1.0.%Build% "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\DEVENV" ..\..\Budford.sln /Rebuild Release call "c:\Program Files (x86)\NSIS\Bin\makensis.exe" Budford.nsi ren "Budford - Setup.exe" "Budford - Setup - V1.0.%Build%.exe" "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Users "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" Budford.exe "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" CNUSLib.dll "C:\Program Files\7-Zip\7z.exe" a "Budford - V1.0.%Build%.zip" discord-rpc.dll set /a Build=%Build%+1 echo %Build% > ver.txt git commit -m "New release" ver.txt git status git push origin master git checkout ..\..
Make zip archive from release
set name="%1" set src=%~2 set pub=%~2..\..\..\..\pub echo Copy from %src% echo Copy to %pub% if not exist "%pub%" mkdir "%pub%" :: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S xcopy "%src%*.exe" "%pub%" /D /Y /S xcopy "%src%*.dll" "%pub%" /D /Y /S xcopy "%src%*.config" "%pub%" /D /Y /S xcopy "%src%*.ids" "%pub%" /D /Y /S
set name="%1" set src=%~2 set pub=%~2..\..\..\..\pub\ set archiv=%pub%\com-kit_%APPVEYOR_BUILD_NUMBER%.zip echo Copy from %src% echo Copy to %pub% if not exist "%pub%" mkdir "%pub%" :: xcopy "$(TargetDir)*" "$(SolutionDir)..\pub\$(TargetName)\" /D /Y /S ::xcopy "%src%*.exe" "%pub%" /D /Y /S ::xcopy "%src%*.dll" "%pub%" /D /Y /S ::xcopy "%src%*.config" "%pub%" /D /Y /S ::xcopy "%src%*.ids" "%pub%" /D /Y /S pushd "%src%" 7z a "%archiv%" "*.exe" 7z a "%archiv%" "*.dll" 7z a "%archiv%" "*.config" 7z a "%archiv%" "*.ids" -r popd
Fix a build issue with Vista. Stop cp.exe from trying to emulate POSIX security on top of NTFS.
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x create-config.sh %OUTDIR% %JSENG%
@echo off setlocal set OUTDIR=%1 set JSENG=%2 set CYGWIN_ROOT=%~dp0..\..\..\third_party\cygwin\ set GNU_ROOT=%~dp0..\..\..\third_party\gnu\files :: Fix cp.exe on vista: without this flag, the files that it creates are not accessible. set CYGWIN=nontsec set PATH=%CYGWIN_ROOT%bin;%GNU_ROOT%;%SystemRoot%;%SystemRoot%\system32 :: Ensure that the cygwin mount points are defined CALL %CYGWIN_ROOT%setup_mount.bat > NUL bash -x create-config.sh %OUTDIR% %JSENG%
Remove *.res from files zipped.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla
Update path to Java 8
@ECHO OFF SET BASEDIR=%~dp0.. SET USERINI=%BASEDIR%\user.ini FOR /F "tokens=1,2 delims=:" %%a in ("%STEELTOE_PCF_CREDENTIALS%") do ( set CF_USER=%%a set CF_PASS=%%b ) SET PYTHON_HOME=C:\Python36 SET DOTNET_HOME=C:\Program Files\dotnet SET MAVEN_HOME=C:\opt\apache-maven-3.3.9 ECHO [behave.userdata] > %USERINI% ECHO 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;%DOTNET_HOME%;%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 DOTNET_HOME=C:\Program Files\dotnet SET JAVA_HOME=C:\opt\oracle-jdk-8 SET MAVEN_HOME=C:\opt\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;%DOTNET_HOME%;%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH% CALL %BASEDIR%\test-setup CALL %BASEDIR%\test-run %*
Remove ExcludedVersion from nuget package generation command line in buld.bat
@echo off cls "..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "-ExcludeVersion" "..\..\packages\FAKE\tools\Fake.exe" build.fsx pause
@echo off cls "..\packages\NuGet.CommandLine.2.8.6\tools\NuGet.exe" "Install" "FAKE" "-OutputDirectory" "..\..\packages" "..\..\packages\FAKE\tools\Fake.exe" build.fsx pause
Copy fftw library to correct file-name
@echo off set "INCLUDE=%LIBRARY_INC%;%INCLUDE%" set "LIB=%LIBRARY_LIB%;%LIB%" %PYTHON% setup.py build %PYTHON% setup.py install --single-version-externally-managed --record=record.txt
@echo off set "INCLUDE=%LIBRARY_INC%;%INCLUDE%" set "LIB=%LIBRARY_LIB%;%LIB%" xcopy %LIBRARY_LIB%\fftw3.lib %LIBRARY_LIB%\libfftw3-3.lib %PYTHON% setup.py build %PYTHON% setup.py install --single-version-externally-managed --record=record.txt
Add setup batchfile for windows (currently quite naive)
set vimdir="C:\Program Files - Portable\Vim" REM delete backup files del %vimdir%\_vimrc.bkup del %vimdir%\vimfiles\autoload\pathogen.vim.bkup REM backup existing files move %vimdir%\_vimrc %vimdir%\_vimrc.bkup move %vimdir%\vimfiles\autoload\pathogen.vim %vimdir%\vimfiles\autoload\pathogen.vim.bkup REM hard-link to new files MKLINK /H %vimdir%\_vimrc .vimrc MKLINK /H %vimdir%\vimfiles\autoload\pathogen.vim .vim\autoload\pathogen.vim
Fix bin path in bat.
rmdir /S /Q "./build" dotnet restore ./src/Certes/project.json dotnet pack -c release -o ./build/nuget ./src/Certes/project.json dotnet restore ./src/Certes.Cli/project.json dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json @echo off echo dotnet ./bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat @echo on
rmdir /S /Q "./build" dotnet restore ./src/Certes/project.json dotnet pack -c release -o ./build/nuget ./src/Certes/project.json dotnet restore ./src/Certes.Cli/project.json dotnet publish -f netcoreapp1.0 -c release -o ./build/cli/bin ./src/Certes.Cli/project.json @echo off echo dotnet %%^~dp0/bin/Certes.Cli.dll %%^* > ./build/cli/certes.bat @echo on
Fix batch file used when generating new instances
@ECHO OFF REM ========================================================================= REM REM Licensed to the Apache Software Foundation (ASF) under one or more REM contributor license agreements. See the NOTICE file distributed with REM this work for additional information regarding copyright ownership. REM The 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. REM REM ========================================================================= SET SERVICEMIX_BASE=${servicemix.base} SETLOCAL SET SERVICEMIX_HOME=${servicemix.home} %SERVICEMIX_HOME%\bin\servicemix.bat "$*"
@ECHO OFF REM ========================================================================= REM REM Licensed to the Apache Software Foundation (ASF) under one or more REM contributor license agreements. See the NOTICE file distributed with REM this work for additional information regarding copyright ownership. REM The 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. REM REM ========================================================================= SET SERVICEMIX_BASE=${servicemix.base} SETLOCAL SET SERVICEMIX_HOME=${servicemix.home} %SERVICEMIX_HOME%\bin\servicemix.bat %*
Make the web server auto-restart on crash
@echo off set lighttpd_dir=%~dp0..\third_party\lighttpd\win REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be REM killed by taskkill. xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. xcopy /D %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% REM Start the server, using the conf file in the slave directory. @echo on %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib
@echo off set lighttpd_dir=%~dp0..\third_party\lighttpd\win REM copy lighttpd.exe to lighttpd_server.exe, because we don't want it to be REM killed by taskkill. xcopy /D %lighttpd_dir%\lighttpd.exe %lighttpd_dir%\lighttpd_server.exe REM copy the cygwin dll to the lighttpd folder because otherwise it wont work. xcopy /D %lighttpd_dir%\..\no_dll\CygWin1.dll %lighttpd_dir% REM Start the server, using the conf file in the slave directory. :RESTART echo Starting %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib %lighttpd_dir%\lighttpd_server.exe -f %~dp0\lighttpd.conf -m %lighttpd_dir%\lib goto :RESTART
Use absolute path to MSBuild in release script
MSBuild.exe ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause
"C:/Program Files (x86)/MSBuild/14.0/bin/amd64/MSBuild.exe" ../Mappy.sln /p:Configuration=Release /t:Clean,Build && python MakeReleaseZip.py --release @pause
Add Visual C++ installation script
:: Windows Installer for Simple 2D :: This script will install includes, libraries, and DLLs for :: building Simple 2D apps. @echo off echo. echo Simple 2D and its dependencies will be installed to: echo %%LOCALAPPDATA%%\simple2d echo Resolving to %LOCALAPPDATA%\simple2d echo. set INPUT= set /p INPUT=Continue? (y/n) %=% if /i "%INPUT%"=="y" goto yes echo. echo Quitting... timeout 3 exit /b 0 :yes echo. & echo Copying... & echo. set S2D_DIR=%LOCALAPPDATA%\simple2d if not exist %S2D_DIR% mkdir %S2D_DIR% xcopy /e /y simple2d\* %S2D_DIR% echo. echo Simple 2D installed successfully! echo Remember to add %%LOCALAPPDATA%%\simple2d to your %%PATH%% echo. pause
Make a drop before import the data
mongoimport -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline
mongoimport --drop -d segmentationExample -c initial --type csv --file ..\Step1\CSVInKeys.csv --headerline
Install gobject-introspection test prerequisites on Cygwin
set CACHE=C:\cache set CYGWIN_MIRROR=http://cygwin.mirror.constant.com if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64 if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin if not exist %CACHE% mkdir %CACHE% echo Updating Cygwin and installing ninja and test prerequisites %CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^ gcc-objc++,^ gcc-objc,^ libboost-devel,^ libglib2.0-devel,^ ninja,^ python3-pip,^ zlib-devel echo Install done
set CACHE=C:\cache set CYGWIN_MIRROR=http://cygwin.mirror.constant.com if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64 if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin if not exist %CACHE% mkdir %CACHE% echo Updating Cygwin and installing ninja and test prerequisites %CYGWIN_ROOT%\%SETUP% -qnNdO -R "%CYGWIN_ROOT%" -s "%CYGWIN_MIRROR%" -l "%CACHE%" -g -P ^ gcc-objc++,^ gcc-objc,^ gobject-introspection,^ libboost-devel,^ libglib2.0-devel,^ libgtk3-devel,^ ninja,^ python3-pip,^ vala,^ zlib-devel echo Install done
Make Visual Studio related warnings go away.
@echo off :: Copyright (c) 2011 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal set NACL_SDK_ROOT=%~dp0.. :: Set the PYTHONPATH so we can import SCons modules set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine :: We have to do this because scons overrides PYTHONPATH and does not preserve :: what is provided by the OS. The custom variable name won't be overwritten. set PYMOX=%NACL_SDK_ROOT%\third_party\pymox :: Run the included copy of scons. python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^ --file=build.scons ^ --site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*
@echo off :: Copyright (c) 2011 The Native Client Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. setlocal set NACL_SDK_ROOT=%~dp0.. :: Set the PYTHONPATH so we can import SCons modules set PYTHONPATH=%NACL_SDK_ROOT%\third_party\scons-2.0.1\engine :: We have to do this because scons overrides PYTHONPATH and does not preserve :: what is provided by the OS. The custom variable name won't be overwritten. set PYMOX=%NACL_SDK_ROOT%\third_party\pymox :: Run the included copy of scons. python -O -OO "%NACL_SDK_ROOT%\third_party\scons-2.0.1\script\scons" ^ --warn no-visual-c-missing ^ --file=build.scons ^ --site-dir="%NACL_SDK_ROOT%\build_tools\nacl_sdk_scons" %*
Fix invalid dos script syntax: no then
@echo off net session >nul 2>&1 if %errorLevel% NEQ 0 ( echo Please run this script with Administrator privileges timeout 10 > NUL EXIT /B 1 ) SET cdpath=%~dp0 echo Setting the system environment variable DOCKER_HOST reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f echo Setting the system environment variable DOCKER_TLS reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f echo Configuring the Docker daemon for TLS if not exist c:\ProgramData\docker\certs.d\ then mkdir c:\ProgramData\docker\certs.d\ xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\ echo Configuring the Docker client to connect using TLS for the current user if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\ xcopy /O %cdpath%client\* c:\Users\%username%\.docker\ echo Restarting Docker net stop Docker net start Docker echo All done. Docker is now configured for TLS. echo Please complete the preparation on the control domain console. timeout 10 > NUL EXIT /b 0
@echo off net session >nul 2>&1 if %errorLevel% NEQ 0 ( echo Please run this script with Administrator privileges timeout 10 > NUL EXIT /B 1 ) SET cdpath=%~dp0 echo Setting the system environment variable DOCKER_HOST reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_HOST /t REG_SZ /d tcp://:2376 /f echo Setting the system environment variable DOCKER_TLS reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v DOCKER_TLS_VERIFY /t REG_SZ /d 1 /f echo Configuring the Docker daemon for TLS if not exist c:\ProgramData\docker\certs.d\ mkdir c:\ProgramData\docker\certs.d\ xcopy /O %cdpath%server\* c:\ProgramData\docker\certs.d\ echo Configuring the Docker client to connect using TLS for the current user if not exist c:\Users\%username%\.docker\ mkdir c:\Users\%username%\.docker\ xcopy /O %cdpath%client\* c:\Users\%username%\.docker\ echo Restarting Docker net stop Docker net start Docker echo All done. Docker is now configured for TLS. echo Please complete the preparation on the control domain console. timeout 10 > NUL EXIT /b 0
Remove unnecessary .dll files from installation
mkdir %DEPLOYMENT% mkdir %DEPLOYMENT%\src\ mkdir src\WhiteLibrary\bin\ copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.Reporting.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.ScreenObjects.0.13.3\lib\net40\TestStack.White.ScreenObjects.dll src\WhiteLibrary\bin\ rmdir docs /s /q python src/WhiteLibrary/version.py > temp.txt set /p CMDOUT=<temp.txt IF "%CMDOUT%" == "True" ( mkdir docs python -m robot.libdoc src\WhiteLibrary docs\keywords.html xcopy docs %DEPLOYMENT%\docs\ /s /a ) xcopy src %DEPLOYMENT%\src\ /s /a copy setup.py %DEPLOYMENT%\ copy build.info %DEPLOYMENT%\
mkdir %DEPLOYMENT% mkdir %DEPLOYMENT%\src\ mkdir src\WhiteLibrary\bin\ copy %NUGET%\Castle.Core.3.3.0\lib\net45\Castle.Core.dll src\WhiteLibrary\bin\ copy %NUGET%\TestStack.White.0.13.3\lib\net40\TestStack.White.dll src\WhiteLibrary\bin\ rmdir docs /s /q python src/WhiteLibrary/version.py > temp.txt set /p CMDOUT=<temp.txt IF "%CMDOUT%" == "True" ( mkdir docs python -m robot.libdoc src\WhiteLibrary docs\keywords.html xcopy docs %DEPLOYMENT%\docs\ /s /a ) xcopy src %DEPLOYMENT%\src\ /s /a copy setup.py %DEPLOYMENT%\ copy build.info %DEPLOYMENT%\
Remove *.res from files zipped.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res cd scintilla
Add missing components to prepare script
mkdir ..\..\..\workingdir mkdir ..\..\..\workingdir\components xcopy ..\..\..\das-collectionearnings-opa-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-collectionearnings-datalock ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerpayments-calculator ..\..\..\workingdir\components /E
mkdir ..\..\..\workingdir mkdir ..\..\..\workingdir\components xcopy ..\..\..\das-collectionearnings-opa-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-collectionearnings-datalock ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerpayments-calculator ..\..\..\workingdir\components /E xcopy ..\..\..\das-payment-reference-commitments ..\..\..\workingdir\components /E xcopy ..\..\..\das-payment-reference-accounts ..\..\..\workingdir\components /E xcopy ..\..\..\das-providerevents-components ..\..\..\workingdir\components /E
Add PATH comment for Windows users
@echo off rem This script installs OpenSC rem Parameters: rem user - Install for this user only. setlocal set MODE=%1 set KEY=HKEY_LOCAL_MACHINE if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER cd %0\..\.. if not exist bin\opensc-tool.exe goto error for /f %%f in (".") do set OPENSC_HOME=%%~ff set OPENSC_HOME_ESCAPED=%OPENSC_HOME:\=\\% set REG_FILE=%TEMP%\opensc-install.reg echo Windows Registry Editor Version 5.00 > %REG_FILE% echo [%KEY%\SOFTWARE\OpenSC] >> %REG_FILE% echo "ConfigFile"="%OPENSC_HOME_ESCAPED%\\etc\\opensc.conf" >> %REG_FILE% echo [%KEY%\SOFTWARE\PKCS11-Spy] >> %REG_FILE% echo "Module"="%OPENSC_HOME_ESCAPED%\\bin\\opensc-pkcs11.dll" >> %REG_FILE% regedit /s %REG_FILE% del /q %REG_FILE% "%OPENSC_HOME%\bin\opensc-tool" -S "app:default:profile_dir:%OPENSC_HOME%\share\opensc" goto end :error echo Invalid installation goto end :end endlocal
@echo off rem This script installs OpenSC rem Parameters: rem user - Install for this user only. setlocal set MODE=%1 set KEY=HKEY_LOCAL_MACHINE if "%MODE%" == "user" set KEY=HKEY_CURRENT_USER cd %0\..\.. if not exist bin\opensc-tool.exe goto error for /f %%f in (".") do set OPENSC_HOME=%%~ff set OPENSC_HOME_ESCAPED=%OPENSC_HOME:\=\\% set REG_FILE=%TEMP%\opensc-install.reg echo Windows Registry Editor Version 5.00 > %REG_FILE% echo [%KEY%\SOFTWARE\OpenSC] >> %REG_FILE% echo "ConfigFile"="%OPENSC_HOME_ESCAPED%\\etc\\opensc.conf" >> %REG_FILE% echo [%KEY%\SOFTWARE\PKCS11-Spy] >> %REG_FILE% echo "Module"="%OPENSC_HOME_ESCAPED%\\bin\\opensc-pkcs11.dll" >> %REG_FILE% regedit /s %REG_FILE% del /q %REG_FILE% "%OPENSC_HOME%\bin\opensc-tool" -S "app:default:profile_dir:%OPENSC_HOME%\share\opensc" echo You may also want to add "%OPENSC_HOME%\bin" to your PATH, for use by other applications. goto end :error echo Invalid installation goto end :end endlocal
Add missing windows configuration script
:: To build extensions for 64 bit Python 3, we need to configure environment :: variables to use the MSVC 2010 C++ compilers from GRMSDKX_EN_DVD.iso of: :: MS Windows SDK for Windows 7 and .NET Framework 4 (SDK v7.1) :: :: To build extensions for 64 bit Python 2, we need to configure environment :: variables to use the MSVC 2008 C++ compilers from GRMSDKX_EN_DVD.iso of: :: MS Windows SDK for Windows 7 and .NET Framework 3.5 (SDK v7.0) :: :: 32 bit builds do not require specific environment configurations. :: :: Note: this script needs to be run with the /E:ON and /V:ON flags for the :: cmd interpreter, at least for (SDK v7.0) :: :: More details at: :: https://github.com/cython/cython/wiki/64BitCythonExtensionsOnWindows :: http://stackoverflow.com/a/13751649/163740 :: :: Author: Olivier Grisel :: License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/ @ECHO OFF SET COMMAND_TO_RUN=%* SET WIN_SDK_ROOT=C:\Program Files\Microsoft SDKs\Windows SET MAJOR_PYTHON_VERSION="%PYTHON_VERSION:~0,1%" IF %MAJOR_PYTHON_VERSION% == "2" ( SET WINDOWS_SDK_VERSION="v7.0" ) ELSE IF %MAJOR_PYTHON_VERSION% == "3" ( SET WINDOWS_SDK_VERSION="v7.1" ) ELSE ( ECHO Unsupported Python version: "%MAJOR_PYTHON_VERSION%" EXIT 1 ) IF "%PYTHON_ARCH%"=="64" ( ECHO Configuring Windows SDK %WINDOWS_SDK_VERSION% for Python %MAJOR_PYTHON_VERSION% on a 64 bit architecture SET DISTUTILS_USE_SDK=1 SET MSSdk=1 "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Setup\WindowsSdkVer.exe" -q -version:%WINDOWS_SDK_VERSION% "%WIN_SDK_ROOT%\%WINDOWS_SDK_VERSION%\Bin\SetEnv.cmd" /x64 /release ECHO Executing: %COMMAND_TO_RUN% call %COMMAND_TO_RUN% || EXIT 1 ) ELSE ( ECHO Using default MSVC build environment for 32 bit architecture ECHO Executing: %COMMAND_TO_RUN% call %COMMAND_TO_RUN% || EXIT 1 )
Disable officescan context menu on directories
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=OfficeScan NT reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f
@echo off setlocal EnableDelayedExpansion set registryRoot=HKCU\Software\Classes set key=OfficeScan NT reg add "%registryRoot%\*\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Drive\shellex\ContextMenuHandlers\%key%" /d "---" /f reg add "%registryRoot%\Directory\shellex\ContextMenuHandlers\%key%" /d "---" /f
Add more hacks for Appveyor
if %VS_MAJOR% == 9 ( set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%" ) %PYTHON% -m pip install . -vv
:: Nasty hack to force the newer MSBuild from .NET is still used for the older :: Visual Studio build. Without this an older MSBuild will be picked up by accident on :: AppVeyor after running `vcvars32.bat`, which fails to process our solution files. :: :: ref: https://github.com/conda-forge/staged-recipes/pull/194#issuecomment-203577297 :: ref: https://github.com/conda-forge/libsodium-feedstock/commit/b411740e0f439d5a5d257f74f74945f86585684a#diff-d04c86b6bb20341f5f7c53165501a393R12 :: ref: https://stackoverflow.com/q/2709279 :: :: Also there is some bug using MSBuild from .NET to build with VS 2008 64-bit, which :: we workaround as well. :: :: ref: https://social.msdn.microsoft.com/Forums/vstudio/en-US/19bb86ab-258a-40a9-b9fc-3bf36cac46bc/team-build-error-msb4018-the-quotresolvevcprojectoutputquot-task-failed-unexpectedly?forum=tfsbuild if %VS_MAJOR% == 9 ( set "PATH=C:\Windows\Microsoft.NET\Framework\v4.0.30319;%PATH%" set VC_PROJECT_ENGINE_NOT_USING_REGISTRY_FOR_INIT=1 ) %PYTHON% -m pip install . -vv
Use most canonical location for npm
"%PREFIX%\Scripts\npm.cmd" install -g npm@latest --no-spin && "%PREFIX%\Scripts\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\Scripts\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
"%PREFIX%\node_modules\npm\npm.cmd" install . --no-spin --no-progress && "%PREFIX%\node_modules\npm\npm.cmd" run test --no-progress --no-spin && if errorlevel 1 exit 1
Delete project.lock.json files before restoring packages
@echo off @setlocal set NuGetExe="%~dp0NuGet.exe" set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200 REM If someone passed in a different Roslyn solution, use that. REM We make use of this when Roslyn is an sub-module for some REM internal repositories. set RoslynSolution=%1 if "%RoslynSolution%" == "" set RoslynSolution=%~dp0Roslyn.sln echo Restoring packages: Toolsets call %NugetExe% restore "%~dp0build\ToolsetPackages\project.json" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed echo Restoring packages: Samples call %NugetExe% restore "%~dp0src\Samples\Samples.sln" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed echo Restoring packages: Roslyn (this may take some time) call %NugetExe% restore "%RoslynSolution%" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed exit /b 0 :RestoreFailed echo Restore failed with ERRORLEVEL %ERRORLEVEL% exit /b 1
@echo off @setlocal set NuGetExe="%~dp0NuGet.exe" set NuGetAdditionalCommandLineArgs=-verbosity quiet -configfile "%~dp0nuget.config" -Project2ProjectTimeOut 1200 REM If someone passed in a different Roslyn solution, use that. REM We make use of this when Roslyn is an sub-module for some REM internal repositories. set RoslynSolution=%1 if "%RoslynSolution%" == "" set RoslynSolution=%~dp0Roslyn.sln echo Deleting project.lock.json files pushd "%~dp0src" del /s /q project.lock.json popd echo Restoring packages: Toolsets call %NugetExe% restore "%~dp0build\ToolsetPackages\project.json" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed echo Restoring packages: Samples call %NugetExe% restore "%~dp0src\Samples\Samples.sln" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed echo Restoring packages: Roslyn (this may take some time) call %NugetExe% restore "%RoslynSolution%" %NuGetAdditionalCommandLineArgs% || goto :RestoreFailed exit /b 0 :RestoreFailed echo Restore failed with ERRORLEVEL %ERRORLEVEL% exit /b 1
Revert "Removed for loop and used MOVE command with wildcards"
ECHO off ECHO MOVE C:\mongo* C:\mongodb setx MYPATH "%PATH%;C:\mongodb\bin"
ECHO on FOR /f %%i IN ('dir /ad /b "C:\" ^|findstr /I "mongo"') DO set dest=%%i ECHO MOVE C:\%dest% C:\mongodb\ setx MYPATH "%PATH%;C:\mongodb\bin"
Use `%SystemDrive%\` instead of `%windir%\..\`
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above cd %~dp0 @if not exist version.txt ( echo. echo !-- Error: version.txt is missing :/ echo. pause goto :eof ) rem This will sync this repo with the folder %windir%\..\buildsd robocopy . %windir%\..\buildsd /MIR /XA:SH /XD .* /XF .* /XF *.zip pushd %windir%\..\buildsd set /p Version=<version.txt dub build --compiler=ldc2 --arch=x86 if exist windows del /S /Q windows mkdir windows copy serve-d.exe windows\serve-d.exe copy libcurl.dll windows\libcurl.dll copy libeay32.dll windows\libeay32.dll copy ssleay32.dll windows\ssleay32.dll if exist windows.zip del windows.zip powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('windows', 'windows.zip'); }" popd move %windir%\..\buildsd\windows.zip "serve-d-%Version%-windows.zip" pause
rem Building & compressing serve-d for release inside a virtual machine with Windows 8 or above cd %~dp0 @if not exist version.txt ( echo. echo !-- Error: version.txt is missing :/ echo. pause goto :eof ) rem This will sync this repo with the folder %SystemDrive%\buildsd robocopy . %SystemDrive%\buildsd /MIR /XA:SH /XD .* /XF .* /XF *.zip pushd %SystemDrive%\buildsd set /p Version=<version.txt dub build --compiler=ldc2 --arch=x86 if exist windows del /S /Q windows mkdir windows copy serve-d.exe windows\serve-d.exe copy libcurl.dll windows\libcurl.dll copy libeay32.dll windows\libeay32.dll copy ssleay32.dll windows\ssleay32.dll if exist windows.zip del windows.zip powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('windows', 'windows.zip'); }" popd move %SystemDrive%\buildsd\windows.zip "serve-d-%Version%-windows.zip" pause
Update path of PyQt5 on Windows
cd ..\..\..\ rm -R build rm -R dist "%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^ --onefile ^ --windowed ^ --icon etc\bin\win\icon.ico ^ --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5 ^ etc\bin\unix\alignak-app.py pause
cd ..\..\..\ rm -R build rm -R dist "%APPDATA%\Python\Python35\Scripts\pyinstaller.exe" ^ --onefile ^ --windowed ^ --icon etc\bin\win\icon.ico ^ --paths C:\%HOMEPATH%\AppData\Roaming\Python\Python35\site-packages\PyQt5\Qt\bin ^ etc\bin\unix\alignak-app.py pause
Set to gpu version by default and remove version number
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html" pip install lytest simphony sax jax sklearn klayout pip install "jax[cpu]===0.3.7" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver pip install gdsfactory==5.38.0 gf tool install if exist "%USERPROFILE%\Desktop\gdsfactory" (goto SKIP_INSTALL) cd %USERPROFILE%\Desktop git clone https://github.com/gdsfactory/gdsfactory.git :SKIP_INSTALL echo gdsfactory installed
set PIP_FIND_LINKS="https://whls.blob.core.windows.net/unstable/index.html" pip install lytest simphony sax jax sklearn klayout pip install "jaxlib[cuda111]" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver pip install gdsfactory==5.38.0 gf tool install if exist "%USERPROFILE%\Desktop\gdsfactory" (goto SKIP_INSTALL) cd %USERPROFILE%\Desktop git clone https://github.com/gdsfactory/gdsfactory.git :SKIP_INSTALL echo gdsfactory installed
Add ability to create xunit test results
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools" "specrun.exe" run default.srprofile "/baseFolder:%~dp0\TestHarness\SpecRun\bin\Debug" /log:specrun.log /report:"%~dp0\results-example-specrun.html" pause @popd
@pushd %~dp0 goto begin ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools" "specrun.exe" run default.srprofile "/baseFolder:%~dp0\TestHarness\SpecRun\bin\Debug" /log:specrun.log /report:"%~dp0\results-example-specrun.html" :begin Cd "%~dp0\TestHarness\packagesNonNuget\xunit.runner" "xunit.console.clr4.exe" "%~dp0\TestHarness\xunit\bin\Debug\xunitHarness.dll" /xml "%~dp0\results-example-xunit.xml" pause @popd
Add prerelease check to vswhere to support dogfood VS builds.
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS% if not exist "%_VSCOMNTOOLS%" ( echo Error: Visual Studio 2015 or 2017 required. echo Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions. exit /b 1 ) set VSCMD_START_DIR="%~dp0" call "%_VSCOMNTOOLS%\VsDevCmd.bat" :Run powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*" exit /b %ERRORLEVEL%
@if "%_echo%" neq "on" echo off setlocal if defined VisualStudioVersion goto :Run set _VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe" if exist %_VSWHERE% ( for /f "usebackq tokens=*" %%i in (`%_VSWHERE% -latest -prerelease -property installationPath`) do set _VSCOMNTOOLS=%%i\Common7\Tools ) if not exist "%_VSCOMNTOOLS%" set _VSCOMNTOOLS=%VS140COMNTOOLS% if not exist "%_VSCOMNTOOLS%" ( echo Error: Visual Studio 2015 or 2017 required. echo Please see https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md for build instructions. exit /b 1 ) set VSCMD_START_DIR="%~dp0" call "%_VSCOMNTOOLS%\VsDevCmd.bat" :Run powershell -NoProfile -ExecutionPolicy unrestricted -Command "%~dp0run.ps1 -- %*" exit /b %ERRORLEVEL%
Use ILRepack.MSBuild.Task 1.1.1 from sympa public myget feed
@echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.0 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
@echo off Nuget.exe restore "Source\MSBuild.Community.Tasks.sln" NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.1 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Add build script for Windows environments.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: aartifact :: http://www.aartifact.org/src/ :: Copyright (C) 2008-2010 :: A. Lapets :: :: This software is made available under the GNU GPLv3. :: :: Make.bat :: Batch script for compiling with GHC under Windows :: environments. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: @IF EXIST o GOTO make @MD o @IF EXIST hi GOTO make @MD hi :make ghc -O2 --make -odir o -hidir hi Main -o aa.exe ::eof
Add bat file for generating installer for windows
REM create windows installer package(runtime included) for LLPAD REM In order to execute this batch file, java 8 or later needs to be installed REM In case creating exe installer, Download Inno Setup 5 or later from http://www.jrsoftware.org and add it to the PATH. REM In case creating msi installer, Download WiX 3.0 or later from http://wix.sf.net and add it to the PATH. echo off set APP_VERSION=0.5.0 IF "%JAVA_HOME%" == "" ( echo Please set the JAVA_HOME variable in your environment to match the location of your Java installation. exit /B ) REM change dir to project dir where this bat is placed. cd %~dp0 set JAR_NAME=llpad-%APP_VERSION%-jar-with-dependencies.jar set JAR_FULLPATH=%CD%\target\%JAR_NAME% set PACKAGE_PATH=%CD%\package set PACKAGE_RESOURCE_PATH=%CD%\package_resource set INFILE_PATH=%PACKAGE_PATH%\infiles set OUTFILE_PATH=%PACKAGE_PATH%\outfiles set PACKAGE_FOR_WINDOWS_PATH=%PACKAGE_PATH%\windows IF NOT EXIST "%JAR_FULLPATH%" ( echo The jar file "%JAR_FULLPATH%" not found.Please run "mvn install" first. Or APP_VERSION %APP_VERSION% may be incorrect. echo The version code must be same as project/version in the POM.xml exit /B ) rmdir /s /q %PACKAGE_PATH% mkdir %PACKAGE_PATH% rmdir %INFILE_PATH% mkdir %INFILE_PATH% rmdir %OUTFILE_PATH% mkdir %OUTFILE_PATH% rmdir %PACKAGE_FOR_WINDOWS_PATH% mkdir %PACKAGE_FOR_WINDOWS_PATH% copy %JAR_FULLPATH% %INFILE_PATH% copy %PACKAGE_RESOURCE_PATH%\license.txt %INFILE_PATH% REM Create a directory "[PJ_ROOT]/package/windows" and put app icon named "[APPNAME].ico" it's a rule of javapackager. copy %PACKAGE_RESOURCE_PATH%\LLPAD.ico %PACKAGE_FOR_WINDOWS_PATH% "%JAVA_HOME%\bin\javapackager" ^ -deploy ^ -native exe ^ -BappVersion=%APP_VERSION% ^ -BshortcutHint=true ^ -Bvendor="Riversun" ^ -Bwin.menuGroup="LLPAD" ^ -BsystemWide=true ^ -srcdir package/infiles ^ -outdir package/outfiles ^ -outfile LLPAD_OUT ^ -appclass org.riversun.llpad.AppMain ^ -BlicenseFile=license.txt ^ -name "LLPAD" ^ -title "LLPAD" ^ -Bruntime="%JAVA_HOME%\jre" ^ -srcfiles %JAR_NAME%;license.txt ^ -v echo package creation finished. pause
Remove outdated and wrong comment.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: Cake is a Windows batch script for invoking CakePHP shell commands :: :: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) :: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: :: Licensed under The MIT License :: Redistributions of files must retain the above copyright notice. :: :: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: @link http://cakephp.org CakePHP(tm) Project :: @since 2.0.0 :: @license http://www.opensource.org/licenses/mit-license.php MIT License :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: In order for this script to work as intended, the cake\console\ folder must be in your PATH @echo off SET app=%0 SET lib=%~dp0 php "%lib%cake.php" %* echo. exit /B %ERRORLEVEL%
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: Cake is a Windows batch script for invoking CakePHP shell commands :: :: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) :: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: :: Licensed under The MIT License :: Redistributions of files must retain the above copyright notice. :: :: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) :: @link http://cakephp.org CakePHP(tm) Project :: @since 2.0.0 :: @license http://www.opensource.org/licenses/mit-license.php MIT License :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: @echo off SET app=%0 SET lib=%~dp0 php "%lib%cake.php" %* echo. exit /B %ERRORLEVEL%
Delete old cf executable properly when running GATS on Windows
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\gcf.exe bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe go get -u github.com/pivotal-cf-experimental/GATS/... SET GATSPATH=%GOPATH%\src\github.com\pivotal-cf-experimental\GATS SET PATH=%PATH%;%GATSPATH%;C:\Program Files\cURL\bin SET CONFIG=%CD%\config.json SET LOCAL_GOPATH=%GATSPATH%\Godeps\_workspace MKDIR %LOCAL_GOPATH%\bin SET GOPATH=%LOCAL_GOPATH%;%GOPATH% SET PATH=%LOCAL_GOPATH%\bin;%PATH% go install -v github.com/onsi/ginkgo/ginkgo ginkgo.exe -r -slowSpecThreshold=120 ./gats
DEL c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe bitsadmin.exe /transfer "DownloadStableCLI" https://s3.amazonaws.com/go-cli/builds/cf-windows-amd64.exe c:\Users\Administrator\go\src\github.com\pivotal-cf-experimental\GATS\cf.exe go get -u github.com/pivotal-cf-experimental/GATS/... SET GATSPATH=%GOPATH%\src\github.com\pivotal-cf-experimental\GATS SET PATH=%PATH%;%GATSPATH%;C:\Program Files\cURL\bin SET CONFIG=%CD%\config.json SET LOCAL_GOPATH=%GATSPATH%\Godeps\_workspace MKDIR %LOCAL_GOPATH%\bin SET GOPATH=%LOCAL_GOPATH%;%GOPATH% SET PATH=%LOCAL_GOPATH%\bin;%PATH% go install -v github.com/onsi/ginkgo/ginkgo ginkgo.exe -r -slowSpecThreshold=120 ./gats
Bring this bat into the current millenium.
@echo off @setlocal rem ------------------------------------------------------ rem Check environment variables if not "%JAVA_HOME%" == "" goto java_home_ok echo Environment variable JAVA_HOME must be set. set ERROR=true :java_home_ok if not "%DEBUG_ENABLED%" == "" goto debug_enabled_ok set DEBUG_ENABLED=false :debug_enabled_ok if not "%WEBLOGIC_HOME%" == "" goto weblogic_home_ok set WEBLOGIC_HOME=C:\bea\weblogic700\server :weblogic_home_ok if "%ERROR%" == "true" goto end rem ------------------------------------------------------ rem Run Ant set target=%1 set default_target=orbeon-dist-packages if not defined target ( set target=%default_target% echo Defaulting to target %default_target% ) for %%I in (.) do set BUILD_ROOT=%%~fI set CLASSPATH=.\lib\junit.jar set PATH=%JAVA_HOME%\bin;%PATH% set ANT_HOME=tools\ant "%ANT_HOME%\bin\ant.bat" "-Djava.home=%JAVA_HOME%" "-Dant.home=%ANT_HOME%" "-Ddebug.enabled=%DEBUG_ENABLED%" "-Dweblogic.home=%WEBLOGIC_HOME%" %target% %2 %3 %4 %5 %6 %7 %8 %9 :end
@echo off setlocal @rem There is some funkiness wrt set command in a for statement in an if @rem block when setlocal is true. Consequently set set bld_root up here @rem rather than in an if block. set this_fqn=%~f0 for %%i in ( %this_fqn% ) do set bld_root=%%~dp%i if defined JAVA_HOME ( if not defined DEBUG_ENABLED set DEBUG_ENABLED=false if not defined WEBLOGIC_HOME set WEBLOGIC_HOME=C:\bea\weblogic700\server set default_target=orbeon-dist-packages set target=%1 if not defined target ( set target=!default_target! echo Defaulting to target !default_target! echo . ) @rem set CLASSPATH=%bld_root%lib\junit.jar set PATH=%JAVA_HOME%\bin;%PATH% set ANT_HOME=%bld_root%tools\ant echo "!ANT_HOME!\bin\ant.bat" "-Djava.home=!JAVA_HOME!" "-Dant.home=!ANT_HOME!" "-Ddebug.enabled=!DEBUG_ENABLED!" "-Dweblogic.home=!WEBLOGIC_HOME!" !target! %2 %3 %4 %5 %6 %7 %8 %9 "!ANT_HOME!\bin\ant.bat" "-Djava.home=!JAVA_HOME!" "-Dant.home=!ANT_HOME!" "-Ddebug.enabled=!DEBUG_ENABLED!" "-Dweblogic.home=!WEBLOGIC_HOME!" !target! %2 %3 %4 %5 %6 %7 %8 %9 ) else ( echo env var JAVA_HOME must be set to the location of a jdk. echo The jdk version must be 1.4 or higher. )
Fix windows test runner not detecting failure
@echo off SETLOCAL EnableDelayedExpansion set failed=0 cd bin for /r "." %%a in (tst_*.exe) do ( "%%~fa" if not ERRORLEVEL 0 ( echo Test FAILED: "%%~fa" set failed=1 ) ) cd .. if %failed% EQU 1 ( echo ERROR: At least one unit test failed! if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause ) exit /B 1 ) echo All tests passed if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause )
@echo off SETLOCAL EnableDelayedExpansion set failed=0 cd bin for /r "." %%a in (tst_*.exe) do ( "%%~fa" if !errorlevel! neq 0 ( echo Test FAILED: "%%~fa" set failed=1 ) ) cd .. if !failed! equ 1 ( echo ERROR: At least one unit test failed! if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause ) exit /B 1 ) echo All tests passed if "%HOPSAN_BUILD_SCRIPT_NOPAUSE%" == "" ( pause )
Revert "For loop without external file"
rem Copy runtime DLLs FOR /F %%I IN ('stack exec -- where libstdc++-6.dll') DO copy /Y "%%I" .\ FOR /F %%I IN ('stack exec -- where libgcc_s_seh-1.dll') DO copy /Y "%%I" .\ FOR /F %%I IN ('stack exec -- where libwinpthread-1.dll') DO copy /Y "%%I" .\
rem Copy runtime DLLs echo "" | stack exec -- where libstdc++-6.dll > lib.txt echo "" | stack exec -- where libgcc_s_seh-1.dll >> lib.txt echo "" | stack exec -- where libwinpthread-1.dll >> lib.txt FOR /F %%I IN (lib.txt) DO copy /Y "%%I" .\ del /q lib.txt
Use the new puppetlabs-windows module
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-stdlib cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-registry cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-dism cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-acl cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-reboot cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-inifile cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-powershell cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install chocolatey-chocolatey cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install gildas-firewall
cmd /c certutil -addstore "Root" C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c del C:\Windows\Temp\GeoTrust_Global_CA.pem cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-windows cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-dism cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install puppetlabs-inifile cmd /c "C:\Program Files\Puppet Labs\Puppet\bin\puppet.bat" module install gildas-firewall
Change specUrl as recommended by the SDK team.
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: set autoRestVersion=0.16.0-Nightly20160329 set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-scheduler/2016-03-01/swagger/scheduler.json" set source=-Source https://www.myget.org/F/autorest/api/v2 set repoRoot=%~dp0..\..\..\.. set autoRestExe=%repoRoot%\packages\autorest.%autoRestVersion%\tools\AutoRest.exe set generateFolder=%~dp0Generated %repoRoot%\tools\nuget.exe install autorest %source% -Version %autoRestVersion% -o %repoRoot%\packages if exist %generateFolder% rd /S /Q %generateFolder% %autoRestExe% -Modeler Swagger -CodeGenerator Azure.CSharp -Namespace Microsoft.Azure.Management.Scheduler -Input %specUrl% -outputDirectory %generateFolder% -Header NONE
:: :: Microsoft Azure SDK for Net - Generate library code :: Copyright (C) Microsoft Corporation. All Rights Reserved. :: set autoRestVersion=0.16.0-Nightly20160329 set specUrl="https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c582747a6ea5d55ea976a9a3cb7c7959e7f9ce2f/arm-scheduler/2016-03-01/swagger/scheduler.json" set source=-Source https://www.myget.org/F/autorest/api/v2 set repoRoot=%~dp0..\..\..\.. set autoRestExe=%repoRoot%\packages\autorest.%autoRestVersion%\tools\AutoRest.exe set generateFolder=%~dp0Generated %repoRoot%\tools\nuget.exe install autorest %source% -Version %autoRestVersion% -o %repoRoot%\packages if exist %generateFolder% rd /S /Q %generateFolder% %autoRestExe% -Modeler Swagger -CodeGenerator Azure.CSharp -Namespace Microsoft.Azure.Management.Scheduler -Input %specUrl% -outputDirectory %generateFolder% -Header NONE
Remove a level of indirection
:: %~dp0 gives the dirname of the script cmd /c %~dp0common.bat cmd /c %~dp0vagrant-ssh.bat
:: %~dp0 gives the dirname of the script cmd /c %~dp0firewall-disable.bat cmd /c %~dp0vagrant-ssh.bat
Fix LLVM build truncation by 2 libraries. Regression from 527a5d5
@setlocal ENABLEDELAYEDEXPANSION @echo Building llvm-config tool... @ninja -j %throttle% install-llvm-config @echo. @rem Build LLVM libraries @set llvmlibstotal=0 @FOR /F "skip=2 tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a llvmlibstotal+=1 @set llvmlibscount=0 @FOR /F "skip=2 tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a llvmlibscount+=1&echo Building library %%~na - !llvmlibscount! of %llvmlibstotal%...&ninja -j %throttle% install-%%~na&echo. @echo Installing headers... @ninja -j %throttle% install-llvm-headers @endlocal
@setlocal ENABLEDELAYEDEXPANSION @echo Building llvm-config tool... @ninja -j %throttle% install-llvm-config @echo. @rem Build LLVM libraries @set llvmlibstotal=0 @FOR /F "tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a llvmlibstotal+=1 @set llvmlibscount=0 @FOR /F "tokens=4 USEBACKQ" %%a IN (`%devroot%\llvm\%abi%\bin\llvm-config.exe --link-static --libnames engine coroutines 2^>^&1`) DO @set /a llvmlibscount+=1&echo Building library %%~na - !llvmlibscount! of %llvmlibstotal%...&ninja -j %throttle% install-%%~na&echo. @echo Installing headers... @ninja -j %throttle% install-llvm-headers @endlocal
Add a script to release binaries packages
:: This script create zip packages (need 7zip installed and path added to system environment variable) @echo off set PATH_TO_PHYSX=C:\library\PhysX-3.2.3_PC_SDK_Core\Bin :: dx9_x86 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip werkkzeug4_dx9_x32.exe 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3CHECKED_x86.dll 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3CommonCHECKED_x86.dll 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3CookingCHECKED_x86.dll 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip %PATH_TO_PHYSX%\win32\PhysX3CookingCHECKED_x86.dll 7z a -tzip -mx=9 Wz4CE_dx9_x86.zip changes.txt :: dx9_x64 7z a -tzip -mx=9 Wz4CE_dx9_x64.zip werkkzeug4_dx9_x64.exe 7z a -tzip -mx=9 Wz4CE_dx9_x64.zip %PATH_TO_PHYSX%\win64\PhysX3CHECKED_x64.dll 7z a -tzip -mx=9 Wz4CE_dx9_x64.zip %PATH_TO_PHYSX%\win64\PhysX3CommonCHECKED_x64.dll 7z a -tzip -mx=9 Wz4CE_dx9_x64.zip %PATH_TO_PHYSX%\win64\PhysX3CookingCHECKED_x64.dll 7z a -tzip -mx=9 Wz4CE_dx9_x64.zip changes.txt pause
Copy commands file to source directory
mkdir %LIBRARY_INC%\cspice cd %SRC_DIR%\src\cspice call makeDynamicSpice.bat copy "cspice.dll" %LIBRARY_LIB% if errorlevel 1 exit 1 cd %SRC_DIR% copy "include\\*.h" %LIBRARY_INC%\cspice if errorlevel 1 exit 1
mkdir %LIBRARY_INC%\cspice copy "makeDynamicSpice.bat" %SRC_DIR%\src\cspice cd %SRC_DIR%\src\cspice call makeDynamicSpice.bat copy "cspice.dll" %LIBRARY_LIB% if errorlevel 1 exit 1 cd %SRC_DIR% copy "include\\*.h" %LIBRARY_INC%\cspice if errorlevel 1 exit 1
Update windows build bat for new CMake / Visual Studio
@echo off SET GENERATOR="Visual Studio 15 2017" SET GENERATOR64="Visual Studio 15 2017 Win64" cd ../foreign/ cd SPIRV-Tools mkdir build cd build cmake -G%GENERATOR% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERATOR64% -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. cd .. cd SPIRV-Cross mkdir build cd build cmake -G%GENERATOR% .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERATOR64% .. cmake --build . cmake --build . --config Release cd .. cd .. cd ../windows
@echo off SET GENERATOR="Visual Studio 16 2019" cd ../foreign/ cd SPIRV-Tools mkdir build cd build cmake -G%GENERATOR% -A Win32 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERATOR% -A x64 -DSPIRV-Headers_SOURCE_DIR=%cd%/../../SPIRV-Headers .. cmake --build . cmake --build . --config Release cd .. cd .. cd SPIRV-Cross mkdir build cd build cmake -G%GENERATOR% -A Win32 .. cmake --build . cmake --build . --config Release cd .. mkdir build64 cd build64 cmake -G%GENERATOR% -A x64 .. cmake --build . cmake --build . --config Release cd .. cd .. cd ../windows
Set Windows resource version info
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output
electron-packager .\ Squiffy --platform=win32 --arch=ia32 --version=0.27.3 --app-bundle-id=uk.co.textadventures.squiffy --icon=squiffy.ico --app-version=3.9.0 --ignore=Output --version-string.ProductName=Squiffy --version-string.FileDescription=Squiffy --version-string.LegalCopyright="Copyright (c) 2015 Alex Warren" --version-string.OriginalFilename=Squiffy.exe --version-string.FileVersion=3.9.0 --version-string.ProductVersion=3.9.0 --version-string.InternalName=Squiffy --version-string.CompanyName="Alex Warren"
Add %CONDA_PREFIX%/bin to PATH on Windows
@echo off @REM This script was based on the original conda activate.bat @setlocal @set "CONDA_PREFIX=__CONDA_PREFIX__" @set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__" @set "CONDA_ENV_PATH=%CONDA_PREFIX%" @set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Library\bin;%CONDA_PREFIX%\Scripts;%PATH%" @REM Run any activate scripts @if exist "%CONDA_PREFIX%\etc\conda\activate.d" ( @pushd "%CONDA_PREFIX%\etc\conda\activate.d" @for %%g in (*.bat) do @call "%%g" @popd ) @REM Execute the given command __COMMAND__%* @endlocal
@echo off @REM This script was based on the original conda activate.bat @setlocal @set "CONDA_PREFIX=__CONDA_PREFIX__" @set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__" @set "CONDA_ENV_PATH=%CONDA_PREFIX%" @set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Library\bin;%CONDA_PREFIX%\Scripts;%CONDA_PREFIX%\bin;%PATH%" @REM Run any activate scripts @if exist "%CONDA_PREFIX%\etc\conda\activate.d" ( @pushd "%CONDA_PREFIX%\etc\conda\activate.d" @for %%g in (*.bat) do @call "%%g" @popd ) @REM Execute the given command __COMMAND__%* @endlocal
Update publish nuget cmd to specify source
@echo off echo Press any key to publish pause "..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg pause
@echo off echo Press any key to publish pause "..\.nuget\NuGet.exe" push PoolSharp.3.0.0.nupkg -Source https://www.nuget.org/api/v2/package pause
Use windows login for database init
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
Remove wildcard from del statement
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk rmdir /q /s dist\*.* del /s /q dist\*.* rem ****** Compile our executable and core zipfile python setup.py py2exe rem ****** Remove extras from core zipfile cd dist 7z d namebench.zip tcl\*.* rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos del tcl\tk8.5\images\*.eps rem ****** Final assembly of zipfile copy ..\README.txt . 7z a namebench_for_Windows.zip -r * >nul rem ****** Test assembled zipfile namebench -x -O 8.8.8.8 -q5 -o test.html start test.html cd ..
rem Tool to assemble Windows builds rem Requirements are 7-zip, py2exe, and FreeExtractor PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH% rem ****** Clean out the old junk del /s /f /q dist rem ****** Compile our executable and core zipfile python setup.py py2exe rem ****** Remove extras from core zipfile cd dist 7z d namebench.zip tcl\*.* rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos del tcl\tk8.5\images\*.eps rem ****** Final assembly of zipfile copy ..\README.txt . 7z a namebench_for_Windows.zip -r * >nul rem ****** Test assembled zipfile namebench -x -O 8.8.8.8 -q5 -o test.html start test.html cd ..
Remove pwd doskey since parameter is expanded at parse time
@echo off cls chcp 65001>nul rem old prompt: [%USERNAME%@%COMPUTERNAME% $p] prompt $$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey pwd=echo %CD% rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=ls doskey ll=ls rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 2" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 2\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
@echo off cls chcp 65001>nul rem old prompt: [%USERNAME%@%COMPUTERNAME% $p] prompt $$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=ls doskey ll=ls rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 2" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 2\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
Add mssql jdbc driver to path
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\lib" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
@ECHO OFF IF %1.==. GOTO No1 set CONFIG=%1 REM set debug parameters REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y" "%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" "-Djava.library.path=..\\..\\..\\mssql" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1 GOTO End1 :No1 ECHO Missing Config file GOTO End1 :End1 @ECHO ON
Update Xamarin Forms build script
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\RELEASE-NOTES.md /Directory=.. "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release
UpdateVersionNumbers.exe /VersionFromNuGet=OxyPlot.Core /Dependency=OxyPlot.Core /ReleaseNotesFile=..\CHANGELOG.md /Directory=.. "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" ..\Source\OxyPlot.XamarinForms.sln /p:Configuration=Release
Add tests to Windows build too
mkdir build cd build cmake -G "NMake Makefiles" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_BUILD_TYPE:STRING=Release ^ -DWITH_TESTS:BOOL=OFF ^ %SRC_DIR% if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1
mkdir build cd build cmake -G "NMake Makefiles" ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_BUILD_TYPE:STRING=Release ^ -DWITH_TESTS:BOOL=OFF ^ %SRC_DIR% if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1 nmake test if errorlevel 1 exit 1
Update windows batch script for handle supervisor for the live reload
@ECHO OFF for %%i in ("%~dp0..") do set "folder=%%~fi" ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist` ECHO To stop node server, press CTRL+C pause node "%folder%\src\server\node\server.js"
@ECHO OFF for %%i in ("%~dp0..") do set "folder=%%~fi" ECHO This script will launch OS.js in node using: `node src\server\node\server.js dist-dev` ECHO To stop node server, press CTRL+C where /q supervisor IF ERRORLEVEL 1 ( ECHO supervisor not installed, the server will not be live reloaded node "%folder%\src\server\node\server.js" dist-dev ) ELSE ( ECHO supervisor is installed, live reload is active supervisor --watch "%folder%\src\server\node","%folder%\src\server\settings.json" -- "%folder%\src\server\node\server.js" dist-dev )
Fix appveyor stuck on terminal
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" @call "C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw-w64.bat" SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;%PATH% cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\" cp "C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\opt\bin\*.dll" "%PROJECT_PATH%\build\bin\" REM cmake -GNinja -D%CONFIGURATION%=TRUE -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_VS_PLATFORM_TOOLSET_VERSION=15.6 .. cmake -G"MinGW Makefiles" .. cmake --build . --config %CONFIGURATION%
REM @call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH% cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\build\bin\" cp "C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\opt\bin\*.dll" "%PROJECT_PATH%\build\bin\" REM cmake -GNinja -D%CONFIGURATION%=TRUE -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_VS_PLATFORM_TOOLSET_VERSION=15.6 .. cmake -G"MinGW Makefiles" .. cmake --build . --config %CONFIGURATION%
Test if resetting the build cache will fix the build.
@echo off if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18 set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x -o%LIBDIR% AACQFGl4PKi9xnd15EbU5S1Ia :done
@echo off if not exist "C:\Program Files (x86)\gs" choco install ghostscript.app -y -x86 -version 9.18 set LIBDIR=C:\Magick.NET.libs if exist %LIBDIR% goto done echo Downloading .lib files appveyor DownloadFile https://www.dropbox.com/sh/5m3zllq81n4eyhm/AACQFGl4PKi9xnd15EbU5S1Ia?dl=1 echo Extracting .lib files 7z x -o%LIBDIR% AACQFGl4PKi9xnd15EbU5S1Ia :done
Adjust for latest perl-libsass 3.4.11
@echo off set drive=%~dp0 set drivep=%drive% set PERLVER=5.24.0.1 set PERLDIR=%drivep%\%ARCH%\perl REM latest version can be queried via 99-shell: REM perl tools\query-version.pl CSS::Sass set RELVERSION=3.4.10 if #%drive:~-1%# == #\# set drivep=%drive:~0,-1% set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%\perl\bin\;%PERLDIR%\c\bin\;%PATH%
@echo off set drive=%~dp0 set drivep=%drive% set PERLVER=5.24.0.1 set PERLDIR=%drivep%\%ARCH%\perl REM latest version can be queried via 99-shell: REM perl tools\query-version.pl CSS::Sass set RELVERSION=3.4.11 if #%drive:~-1%# == #\# set drivep=%drive:~0,-1% set PATH=%PERLDIR%\perl\site\bin\;%PERLDIR%\perl\bin\;%PERLDIR%\c\bin\;%PATH%
Put `npm update` into it's own shell
@echo off :: hook `nodist use <version>` if "%1"=="use" ( call %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( :: rescue our hacked npm.cmd from `npm update`'s fangs copy /Y "%~dp0\npm.cmd" "%~dp0\npm.copy.cmd" cmd /C npm update npm -g del /F "%~dp0\npm.cmd" move /Y "%~dp0\npm.copy.cmd" "%~dp0\npm.cmd" pushd . cd /D "%~dp0" cd .. npm update popd ) :main "%~dp0..\node.exe" "%~dp0..\cli" %* goto end :end
@echo off :: hook `nodist use <version>` if "%1"=="use" ( call %0 + %2 if ERRORLEVEL 0 ( :: get path to version and add it to PATH FOR /F "tokens=1 delims=" %%A in ('"%0" path %2') do @set "Path=%%A;%Path%" ) goto end ) :: hook `nodist update` if "%1"=="update" ( :: rescue our hacked npm.cmd from `npm update`'s fangs copy /Y "%~dp0\npm.cmd" "%~dp0\npm.copy.cmd" cmd /C npm update npm -g del /F "%~dp0\npm.cmd" move /Y "%~dp0\npm.copy.cmd" "%~dp0\npm.cmd" pushd . cd /D "%~dp0" cd .. cmd /C npm update popd ) :main "%~dp0..\node.exe" "%~dp0..\cli" %* goto end :end
Modify listing of tasks to resemble listing of assets.
:: Asset API :: :: This file is called whenever a user enters an asset, such as Cat or Shot01. :: :: Arguments: :: %1: Name of asset, e.g. Bruce :: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets :: :: Example: :: $ call _mkasset Bruce %~dp0 @echo off set ASSET=%1 set ASSETDIR=%2%ASSET% If not exist %ASSETDIR% ( mkdir %ASSETDIR% ) title %PROJECTDIR% / %ASSET% :: Clear screen cls echo+ echo %ASSET% ----------- echo+ echo Type application and task. echo+ echo For example: echo+ echo $ maya animation echo $ houdini sim echo $ nuke comp echo+ echo The following assets are allready created: setlocal EnableDelayedExpansion set FOLDERQUERRY=%ASSETDIR% for /f %%i in ('dir %FOLDERQUERRY%\work /b ') do ( set x=%%i echo !x! ) endlocal echo+ echo -------------------------------------- pushd %ASSETDIR%
:: Asset API :: :: This file is called whenever a user enters an asset, such as Cat or Shot01. :: :: Arguments: :: %1: Name of asset, e.g. Bruce :: %2: Absolute path to asset parent directory, e.g. m:\f01_projects\p999_Demo\assets :: :: Example: :: $ call _mkasset Bruce %~dp0 @echo off set ASSET=%1 set ASSETDIR=%2%ASSET% If not exist %ASSETDIR% ( mkdir %ASSETDIR% ) title %PROJECTDIR% / %ASSET% :: Clear screen cls echo+ echo %ASSET% ----------- echo+ :: List available tasks setlocal enabledelayedexpansion set FOLDERQUERRY=%ASSETDIR% for /f %%i in ('dir %FOLDERQUERRY%\work /b ') do ( set x=%%i echo !x! ) endlocal echo+ echo 1. Type application and task. echo 2. Press [Enter] to launch application. echo+ echo For example: echo+ echo $ maya animation echo $ houdini sim echo $ nuke comp echo+ echo -------------------------------------- pushd %ASSETDIR%
Update 'for' batch code to use block style.
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "tokens=1*" %%i in ("%*") do set RB_ARGS=%%j ) else ( set NOGEM= set RB_ARGS=%* ) :: echo pre call ruby: :: echo NOGEM = %NOGEM% :: echo RB_ARGS = %RB_ARGS% ruby.exe %NOGEM% -x %~f0 %RB_ARGS% endlocal exit /b #!ruby RCI_ROOT = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(RCI_ROOT, 'lib')) $LOAD_PATH.unshift(File.join(RCI_ROOT)) require 'rci' require 'inquisitor' Inquisitor.run
:: Copyright (c) 2011, Jon Maken :: License: 3-clause BSD (see project LICENSE file) :: Revision: 01/29/2011 10:20:16 AM @echo off setlocal :: echo initial: :: echo %%0 = %0 :: echo %%* = %* :: fix ruby.exe invocation when explicitly disabling RubyGems if "x%1" == "x--disable-gems" ( set NOGEM=%1 for /F "tokens=1*" %%i in ("%*") do ( set RB_ARGS=%%j ) ) else ( set NOGEM= set RB_ARGS=%* ) :: echo pre call ruby: :: echo NOGEM = %NOGEM% :: echo RB_ARGS = %RB_ARGS% ruby.exe %NOGEM% -x %~f0 %RB_ARGS% endlocal exit /b #!ruby RCI_ROOT = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(RCI_ROOT, 'lib')) $LOAD_PATH.unshift(File.join(RCI_ROOT)) require 'rci' require 'inquisitor' Inquisitor.run
Make CTest extra verbose temporarily.
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Release --clean-first || EXIT /B 1 ctest -C Release --output-on-failure -E dfa^|exhaustive^|random || EXIT /B 1 EXIT /B 0
CD git/re2 || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Debug -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Debug --clean-first || EXIT /B 1 ctest -C Debug --output-on-failure --extra-verbose -E dfa^|exhaustive^|random || EXIT /B 1 cmake -D CMAKE_BUILD_TYPE=Release -G "Visual Studio 12 2013" -A x64 . || EXIT /B 1 cmake --build . --config Release --clean-first || EXIT /B 1 ctest -C Release --output-on-failure --extra-verbose -E dfa^|exhaustive^|random || EXIT /B 1 EXIT /B 0
Load x64 toolchain for NMAKE
@if "%VS140COMNTOOLS%"=="" goto error_vc14 @call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" @if "%HIPACC_PATH%"=="" goto error_hipacc @if "%1" == "cpu" goto cpu @if "%1" == "cuda" goto cuda @if "%1" == "clean" goto clean @if "%1" == "distclean" goto distclean :cpu nmake.exe /f sample.mak cpu @goto end :cuda @if "%CUDA_PATH%"=="" goto error_cuda nmake.exe /f sample.mak cuda @goto end :clean nmake.exe /f sample.mak clean @goto end :distclean nmake.exe /f sample.mak distclean @goto end :error_cuda @echo ERROR: Cannot find CUDA installation. @goto end :error_hipacc @echo ERROR: Cannot find Hipacc installation. @goto end :error_vc14 @echo ERROR: Cannot find Visual C++ Build Tools 2015. @goto end :end
@if "%VS140COMNTOOLS%"=="" goto error_vc14 @call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x64 @if "%HIPACC_PATH%"=="" goto error_hipacc @if "%1" == "cpu" goto cpu @if "%1" == "cuda" goto cuda @if "%1" == "clean" goto clean @if "%1" == "distclean" goto distclean :cpu nmake.exe /f sample.mak cpu @goto end :cuda @if "%CUDA_PATH%"=="" goto error_cuda nmake.exe /f sample.mak cuda @goto end :clean nmake.exe /f sample.mak clean @goto end :distclean nmake.exe /f sample.mak distclean @goto end :error_cuda @echo ERROR: Cannot find CUDA installation. @goto end :error_hipacc @echo ERROR: Cannot find Hipacc installation. @goto end :error_vc14 @echo ERROR: Cannot find Visual C++ Build Tools 2015. @goto end :end
Revert "swap GnuWin32 with 7zip, cuz sourceforge is broke"
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\7-Zip;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json go get -v github.com/onsi/ginkgo/ginkgo 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 dir .. popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -slowSpecThreshold=120 -skipPackage="logging,services,v3,routing_api,routing,backend_compatibility,ssh" -skip="NO_DEA_SUPPORT|go makes the app reachable via its bound route|SSO|takes effect after a restart, not requiring a push|doesn't die when printing 32MB|exercises basic loggregator|firehose data|Downloads the droplet for the app" -nodes=2
SET GOPATH=%CD%\cf-release-repo SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests SET PATH=C:\Go\bin;%PATH% SET PATH=C:\Program Files\Git\cmd\;%PATH% SET PATH=%CD%\cf-release-repo\bin;%PATH% SET PATH=C:\Program Files\GnuWin32\bin;%PATH% SET PATH=C:\Program Files\cURL\bin;%PATH% SET PATH=%CD%;%PATH% SET /p DOMAIN=<%CD%\bosh-lite-lock\name call %CD%\cli\ci\tasks\create-cats-config.bat SET CONFIG=%CD%\config.json go get -v github.com/onsi/ginkgo/ginkgo 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 dir .. popd go get -v github.com/onsi/ginkgo/ginkgo cd %GATSPATH% ginkgo.exe -r -slowSpecThreshold=120 -skipPackage="logging,services,v3,routing_api,routing,backend_compatibility,ssh" -skip="NO_DEA_SUPPORT|go makes the app reachable via its bound route|SSO|takes effect after a restart, not requiring a push|doesn't die when printing 32MB|exercises basic loggregator|firehose data|Downloads the droplet for the app" -nodes=2
Hide dot-folders when printing example folders
@echo off setlocal if "%1" == "" ( echo usage: %0 EXAMPLE [options] echo. echo Where EXAMPLE is one of: call :printExampleList exit /B 1 ) if not exist examples\%1 ( echo Cannot find an example by the name '%1'. Use one of: call :printExampleList exit /B 1 ) rem Enable ansi color processing set ENABLE_VIRTUAL_TERMINAL_PROCESSING=1 set example=%1 set args= shift :readarg if not "%1" == "" ( set args=%args% %1 shift goto readarg ) mvn -f examples\%example%\pom.xml yamcs:run -Dyamcs.args="%YAMCS_OPTS% %args%" exit /B 0 :printExampleList for /f %%i in ( 'dir /a:d /b examples ^| find /V "snippets" ^| find /V ".*"' ) do ( echo. %%i )
@echo off setlocal if "%1" == "" ( echo usage: %0 EXAMPLE [options] echo. echo Where EXAMPLE is one of: call :printExampleList exit /B 1 ) if not exist examples\%1 ( echo Cannot find an example by the name '%1'. Use one of: call :printExampleList exit /B 1 ) rem Enable ansi color processing set ENABLE_VIRTUAL_TERMINAL_PROCESSING=1 set example=%1 set args= shift :readarg if not "%1" == "" ( set args=%args% %1 shift goto readarg ) mvn -f examples\%example%\pom.xml yamcs:run -Dyamcs.args="%YAMCS_OPTS% %args%" exit /B 0 :printExampleList for /f %%i in ( 'dir /a:d /b examples ^| find /V "snippets" ^| findstr /V "\..*"' ) do ( echo. %%i )
Fix path to "main" modules
@echo off cls echo. echo BEGIN OF DEMO 3: Bach.java pause > nul if exist demo rmdir /q/s demo mkdir demo cd demo mkdir src\demo echo ______ echo Step 1: Declare demo module: src\demo\module-info.java pause > nul ( echo module demo {} )>"src\demo\module-info.java" echo. type src\demo\module-info.java pause > nul echo ______ echo Step 2: NOOP -- no local build file is needed pause > nul echo ______ echo Step 3: Show tree of source files pause > nul echo. tree /f . | findstr /v Volume | findstr /v : pause > nul echo ______ echo Step 4: Build pause > nul @echo on jshell --show-version --execution local https://bit.ly/bach-build @echo off pause > nul echo ______ echo Step 5: Show tree of source and binary files pause > nul echo. tree /f . | findstr /v Volume | findstr /v : pause > nul echo ______ echo Step 6: Describe demo module pause > nul echo. jar --describe-module --file .bach\out\realm\modules\demo-0.jar pause > nul cd .. echo. echo END OF DEMO echo.
@echo off cls echo. echo BEGIN OF DEMO 3: Bach.java pause > nul if exist demo rmdir /q/s demo mkdir demo cd demo mkdir src\demo echo ______ echo Step 1: Declare demo module: src\demo\module-info.java pause > nul ( echo module demo {} )>"src\demo\module-info.java" echo. type src\demo\module-info.java pause > nul echo ______ echo Step 2: NOOP -- no local build file is needed pause > nul echo ______ echo Step 3: Show tree of source files pause > nul echo. tree /f . | findstr /v Volume | findstr /v : pause > nul echo ______ echo Step 4: Build pause > nul @echo on jshell --show-version --execution local https://bit.ly/bach-build @echo off pause > nul echo ______ echo Step 5: Show tree of source and binary files pause > nul echo. tree /f . | findstr /v Volume | findstr /v : pause > nul echo ______ echo Step 6: Describe demo module pause > nul echo. jar --describe-module --file .bach\out\main\modules\demo-0.jar pause > nul cd .. echo. echo END OF DEMO echo.
Fix setuptools with conda build on windows.
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q "%PYTHON%" setup.py install if errorlevel 1 exit 1
xcopy %RECIPE_DIR%\\..\\.. %SRC_DIR% /e /h /Y /Q "%PYTHON%" setup.py install --single-version-externally-managed --record=record.txt if errorlevel 1 exit 1
Add missing mklink to .vimrc.bundles in windows installer script.
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR% call mkdir %BASE_DIR%\.vim\bundle call mklink /J %HOME%\.vim %BASE_DIR%\.vim call mklink %HOME%\.vimrc %BASE_DIR%\.vimrc call mklink %HOME%\_vimrc %BASE_DIR%\.vimrc call git clone http://github.com/gmarik/vundle.git %HOME%/.vim/bundle/vundle
@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH% @if not exist "%HOME%" @set HOME=%USERPROFILE% @set BASE_DIR=%HOME%\.spf13-vim-3 call git clone --recursive -b 3.0 git://github.com/spf13/spf13-vim.git %BASE_DIR% call mkdir %BASE_DIR%\.vim\bundle call mklink /J %HOME%\.vim %BASE_DIR%\.vim call mklink %HOME%\.vimrc %BASE_DIR%\.vimrc call mklink %HOME%\_vimrc %BASE_DIR%\.vimrc call mklink %HOME%\.vimrc.bundles %BASE_DIR%\.vimrc.bundles call git clone http://github.com/gmarik/vundle.git %HOME%/.vim/bundle/vundle
Add a redirect for FAKE
@echo off :Build cls SET TARGET="Default" IF NOT [%1]==[] (set TARGET="%1") "tools\FAKE\tools\Fake.exe" "build.fsx" "target=%TARGET%" exit /b %errorlevel%
Allow for remote debugging in spark.
java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup
:run if "%1" == "-debug" goto debug java -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup goto end :debug start "Spark" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Dappdir=.. -cp ../lib/windows/jmf.jar;../lib/startup.jar;../lib/windows/jdic.jar;../resources;../lib/windows; org.jivesoftware.launcher.Startup goto end :end
Patch for version 0.77 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.76" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.77" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Revert "Try dotnet pack instead"
dotnet pack src/GladNet.Common/ -c Release dotnet pack src/GladNet.Encryption/ -c Release dotnet pack src/GladNet.Engine.Common/ -c Release dotnet pack src/GladNet.Engine.Server/ -c Release dotnet pack src/GladNet.Message/ -c Release dotnet pack src/GladNet.Message.Handlers/ -c Release dotnet pack src/GladNet.Payload/ -c Release dotnet pack src/GladNet.Serializer/ -c Release cd ./src/GladNet.Payload.Authentication dotnet restore cd .. cd .. dotnet pack src/GladNet.Payload.Authentication/ -c Release
msbuild ./src/GladNet.Common/GladNet.Common.csproj /p:Configuration=Release msbuild ./src/GladNet.Encryption/GladNet.Encryption.csproj /p:Configuration=Release msbuild ./src/GladNet.Engine.Common/GladNet.Engine.Common.csproj /p:Configuration=Release msbuild ./src/GladNet.Engine.Server/GladNet.Engine.Server.csproj /p:Configuration=Release msbuild ./src/GladNet.Message/GladNet.Message.csproj /p:Configuration=Release msbuild ./src/GladNet.Message.Handlers/GladNet.Message.Handlers.csproj /p:Configuration=Release msbuild ./src/GladNet.Payload/GladNet.Payload.csproj /p:Configuration=Release msbuild ./src/GladNet.Serializer/GladNet.Serializer.csproj /p:Configuration=Release cd ./src/GladNet.Payload.Authentication dotnet restore cd .. cd .. dotnet pack src/GladNet.Payload.Authentication/ -c Release
Fix mistake in setting sphinx's required version number
"%sdkverpath%" -q -version:"%sdkver%" call setenv /x64 rem install python packages pip install numpy rem builds currently fail rem pip install numexpr rem pip install tables >= 3.1.1 pip install enum34>=1.0.4 pip install stevedore>=1.2.0 pip install click>=3.3 pip install pyyaml>=3.11 pip install sphinx>1.3 pip install sphinxcontrib-napoleon>=0.2.10 pip install tabulate>=0.7.4 pip install mock==1.0.1 pip install coverage pip install flake8 rem install simphony-common python setup.py develop if %errorlevel% neq 0 exit /b %errorlevel% cd examples/plugin python setup.py develop if %errorlevel% neq 0 exit /b %errorlevel% cd ..
"%sdkverpath%" -q -version:"%sdkver%" call setenv /x64 rem install python packages pip install numpy rem builds currently fail rem pip install numexpr rem pip install tables >= 3.1.1 pip install enum34>=1.0.4 pip install stevedore>=1.2.0 pip install click>=3.3 pip install pyyaml>=3.11 pip install sphinx>=1.3 pip install sphinxcontrib-napoleon>=0.2.10 pip install tabulate>=0.7.4 pip install mock==1.0.1 pip install coverage pip install flake8 rem install simphony-common python setup.py develop if %errorlevel% neq 0 exit /b %errorlevel% cd examples/plugin python setup.py develop if %errorlevel% neq 0 exit /b %errorlevel% cd ..
Copy compiled binaries to C:\qiuwch\workspace\unrealcv\unrealcv.
set plugin_file=%CD%/UnrealCV.uplugin set package_folder=%CD%/Plugins/UnrealCV set UE4=C:\Program Files\Epic Games\UE_4.14 REM TODO: Check the existence of UE4 folder and give a useful hint for user REM Modify the UE4 variable to point to your UE4 installation path "%UE4%/Engine/Build/BatchFiles/RunUAT.bat" BuildPlugin -plugin=%plugin_file% -package=%package_folder% -rocket -targetplatforms=Win64
set plugin_file=%CD%/UnrealCV.uplugin set package_folder=%CD%/Plugins/UnrealCV set UE4=C:\Program Files\Epic Games\UE_4.14 REM TODO: Check the existence of UE4 folder and give a useful hint for user REM Modify the UE4 variable to point to your UE4 installation path "%UE4%/Engine/Build/BatchFiles/RunUAT.bat" BuildPlugin -plugin=%plugin_file% -package=%package_folder% -rocket -targetplatforms=Win64 xcopy /E /Y Plugins\UnrealCV\Binaries %CD%
Make socket tests run less annoyingly on Win32.
@ECHO OFF :: script for Windows to supply fork() to rakudo :: based on IO-Socket-INET.sh SET TEST=%1 SET PORT=%2 :: clear the status message flag but don't whinge about the file not being there DEL t\spec\S32-io\server-ready-flag 2> NUL :: Use START to fork the server and set the window title so we can kill it later START "P6IOSOCKETtest" perl6 t\spec\S32-io\IO-Socket-INET.pl %TEST% %PORT% server perl6 t\spec\S32-io\IO-Socket-INET.pl %TEST% %PORT% client :: Clean up any stray processes TASKKILL /FI "WINDOWTITLE eq P6IOSOCKETtest" > NUL
@ECHO OFF :: script for Windows to supply fork() to rakudo :: based on IO-Socket-INET.sh SET TEST=%1 SET PORT=%2 :: clear the status message flag but don't whinge about the file not being there DEL t\spec\S32-io\server-ready-flag 2> NUL :: Use START to fork the server and set the window title so we can kill it later START "P6IOSOCKETtest" /MIN perl6 t\spec\S32-io\IO-Socket-INET.pl %TEST% %PORT% server perl6 t\spec\S32-io\IO-Socket-INET.pl %TEST% %PORT% client :: Clean up any stray processes TASKKILL /FI "WINDOWTITLE eq P6IOSOCKETtest" > NUL
Change VS build script to x64 only.
@ECHO OFF REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12] SET solution=%1 SET version=%2 SET log=build_%version%.log SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat SET environment="%programfiles(x86)%\%tools%" IF NOT EXIST %environment% SET environment="%programfiles%\%tools%" IF NOT EXIST %environment% GOTO no_tools ECHO Building: %solution% CALL %environment% x86 > nul ECHO Platform=x86 ECHO Configuration=StaticDebug msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=Win32 %solution% > %log% IF errorlevel 1 GOTO error ECHO Configuration=StaticRelease msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=Win32 %solution% >> %log% IF errorlevel 1 GOTO error CALL %environment% x86_amd64 > nul ECHO Platform=x64 ECHO Configuration=StaticDebug msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=x64 %solution% >> %log% IF errorlevel 1 GOTO error ECHO Configuration=StaticRelease msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=x64 %solution% >> %log% IF errorlevel 1 GOTO error ECHO Complete: %solution% GOTO end :error ECHO *** ERROR, build terminated early, see: %log% GOTO end :no_tools ECHO *** ERROR, build tools not found: %tools% :end
@ECHO OFF REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12] SET solution=%1 SET version=%2 SET log=build_%version%.log SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat SET environment="%programfiles(x86)%\%tools%" IF NOT EXIST %environment% SET environment="%programfiles%\%tools%" IF NOT EXIST %environment% GOTO no_tools ECHO Building: %solution% CALL %environment% x86_amd64 > nul ECHO Platform=x64 ECHO Configuration=StaticDebug msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=x64 %solution% >> %log% IF errorlevel 1 GOTO error ECHO Configuration=StaticRelease msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=x64 %solution% >> %log% IF errorlevel 1 GOTO error ECHO Complete: %solution% GOTO end :error ECHO *** ERROR, build terminated early, see: %log% GOTO end :no_tools ECHO *** ERROR, build tools not found: %tools% :end
Correct code style for batch file
@echo off REM This file is part of the Zephir. REM REM (c) Zephir Team <team@zephir-lang.com> REM REM For the full copyright and license information, please view the LICENSE REM file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php SET mypath=%~dp0 echo %mypath:~0,-1% "%PHPBIN%" "%mypath%\zephir" %*
@echo off rem This file is part of the Zephir. rem rem (c) Zephir Team <team@zephir-lang.com> rem rem For the full copyright and license information, please view the LICENSE rem file that was distributed with this source code. cls if "%PHP_PEAR_PHP_BIN%" neq "" ( set PHPBIN=%PHP_PEAR_PHP_BIN% ) else set PHPBIN=php SET mypath=%~dp0 echo %mypath:~0,-1% "%PHPBIN%" "%mypath%\zephir" %*
Use full path to vcvarsall
vcvarsall.bat x86 CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat x86 CL /I C:\OpenSSL-Win32\include /INCREMENTAL bmpow.c /MT /link /DLL /OUT:bmpow32.dll /LIBPATH:"C:\OpenSSL-Win32\lib" libeay32.lib ws2_32.lib
Add No OpenCL Run Configuration
@echo off del /F TestApp.exe call gradlew clean -POS=windows call gradlew build -POS=windows echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe call TestApp.exe > output.log rem call TestApp.exe --useJSONFormat > outputJSON.log rem call TestApp.exe --nosha256 > outputnoSha.log
@echo off del /F TestApp.exe call gradlew clean -POS=windows call gradlew build -POS=windows echo F | xcopy /Q /Y /F build\exe\testApp\TestApp.exe TestApp.exe rem call TestApp.exe > output.log call TestApp.exe --noOpenCL > outputnoCL.log rem call TestApp.exe --useJSONFormat > outputJSON.log rem call TestApp.exe --nosha256 > outputnoSha.log