Instruction
stringlengths
14
778
input_code
stringlengths
0
4.24k
output_code
stringlengths
1
5.44k
Add steps for packaging Json extension. Use snupkg format for symbols.
@echo off echo. echo === TEST === echo. dotnet test --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj echo. echo === PACKAGE === echo. dotnet pack --include-symbols --include-source --configuration Release --output ..\.. src\DeepEqual\DeepEqual.csproj echo. pause
@echo off echo. echo === TEST === echo. dotnet test --configuration Release src/DeepEqual.Test/DeepEqual.Test.csproj echo. echo === PACKAGE === echo. dotnet pack ^ --include-symbols ^ -p:SymbolPackageFormat=snupkg ^ --include-source ^ --configuration Release ^ --output . ^ src\DeepEqual\DeepEqual.csproj dotnet pack ^ --include-symbols ^ -p:SymbolPackageFormat=snupkg ^ --include-source ^ --configuration Release ^ --output . ^ src\DeepEqual.System.Text.Json\DeepEqual.System.Text.Json.csproj echo. pause
Add a script to set up symlinks in P: and game dir
@echo off set source_dir=%~dp0\.. set arma3_dir=C:\Program Files (x86)\Steam\steamApps\common\Arma 3 IF NOT EXIST P: GOTO NODRIVE IF NOT EXIST %arma3_dir% GOTO NOARMA3DIR mkdir P:\z mkdir "%arma3_dir%\z" echo "Run this script as administrator!" mklink /D "%arma3_dir%\z\hehu" "%source_dir%" mklink /D "P:\z\hehu" "%source_dir%" pause exit 0 :NODRIVE echo "OMFG. Set up the P: drive!" pause exit 1 :NOARMA3DIR echo You don't have a %arma3_dir% directory. Please adjust the path in this script! pause exit 1
Build into virtual environment of Conda
REM To avoid building in work/ alongside the source. Rather build in work/build/ mkdir build cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^ -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^ --config "%CONFIGURATION%" ^ -DENABLE_MODULE_IRRLICHT=ON ^ -DENABLE_MODULE_FEA=OFF ^ -DENABLE_MODULE_POSTPROCESS=OFF ^ -DENABLE_MODULE_PYTHON=ON ^ -DBUILD_DEMOS=OFF ^ -DBUILD_TESTING=OFF ^ -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^ -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^ .. if errorlevel 1 exit 1 REM Build step cmake --build . --config "%CONFIGURATION%" if errorlevel 1 exit 1 REM Install step cmake --build . --config "%CONFIGURATION%" --target install if errorlevel 1 exit 1 REM Install step REM ninja install REM if errorlevel 1 exit 1
REM To avoid building in work/ alongside the source. Rather build in work/build/ mkdir build cd build REM Remove dot from PY_VER for use in library name set MY_PY_VER=%PY_VER:.=% REM Configure step cmake -G "%CMAKE_GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^ -DPYTHON_EXECUTABLE:FILEPATH="%PYTHON%" ^ -DPYTHON_INCLUDE_DIR:PATH="%PREFIX%"/include ^ -DPYTHON_LIBRARY:FILEPATH="%PREFIX%"/libs/python%MY_PY_VER%.lib ^ --config "%CONFIGURATION%" ^ -DENABLE_MODULE_IRRLICHT=ON ^ -DENABLE_MODULE_FEA=OFF ^ -DENABLE_MODULE_POSTPROCESS=OFF ^ -DENABLE_MODULE_PYTHON=ON ^ -DBUILD_DEMOS=OFF ^ -DBUILD_TESTING=OFF ^ -DCH_IRRLICHTDIR="C:\irrlicht-1.8.2" ^ -DCH_IRRLICHTLIB="C:\irrlicht-1.8.2\lib\Win64-visualStudio\Irrlicht.lib" ^ .. if errorlevel 1 exit 1 REM Build step cmake --build . --config "%CONFIGURATION%" if errorlevel 1 exit 1 REM Install step cmake --build . --config "%CONFIGURATION%" --target install if errorlevel 1 exit 1 REM Install step REM ninja install REM if errorlevel 1 exit 1
Remove examples from Codeplex Release package.
call DeletePdbFiles.cmd ..\Output\NET45\Examples call DeletePdbFiles.cmd ..\Output\NET40\Examples del /S /Q ..\Output\NET40\Examples "C:\Program Files\7-Zip\7z.exe" a -r ..\Output\HelixToolkit-%1.zip ..\Output\*.* > ZipRelease.log
mkdir ..\Output\Release mkdir ..\Output\Release\NET40 mkdir ..\Output\Release\NET45 copy ..\Output\NET45\HelixToolkit.??? ..\Output\Release copy ..\Output\NET45\HelixToolkit.Wpf.??? ..\Output\Release\NET45 copy ..\Output\NET40\HelixToolkit.Wpf.??? ..\Output\Release\NET40 copy ..\Output\NET45\HelixToolkit.Wpf.Input.??? ..\Output\Release\NET45 copy ..\Output\NET40\HelixToolkit.Wpf.Input.??? ..\Output\Release\NET40 copy ..\Output\NET45\HelixToolkit.Wpf.SharpDX.??? ..\Output\Release\NET45 copy ..\Output\NET40\HelixToolkit.Wpf.SharpDX.??? ..\Output\Release\NET40 "C:\Program Files\7-Zip\7z.exe" a -r ..\Output\HelixToolkit-%1.zip ..\Output\Release\*.* > ZipRelease.log
Make app use forever on windows
@echo off set NODE_ENV=production set AUTH_TOKEN=changeme set PORT=80 if %AUTH_TOKEN%==changeme ( echo ***************************************************** echo Please change the AUTH_TOKEN in server/bin/server.bat echo ***************************************************** pause > nul EXIT ) coffee ./bin/server.coffee
@echo off set NODE_ENV=production set AUTH_TOKEN=changeme set PORT=80 if %AUTH_TOKEN%==changeme ( echo ***************************************************** echo Please change the AUTH_TOKEN in server/bin/server.bat echo ***************************************************** pause > nul EXIT ) forever ./bin/server.coffee
Add in a new build bat for teh windoze
anvil copy ./lib/standard/postal.* ./example/standard/js copy ./lib/amd/postal.* ./example/amd/js/libs/postal copy ./lib/amd/postal.js ./example/node/client/js/lib copy ./lib/node/postal.js ./example/node/messaging
Store OS X files in zips.
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak cd scite
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.bsc -x *.ilk -x *.idb -x *.dpsession -x *.bak cd scite
Add error checking to package.bat.
nuget pack AgateLib/AgateLib.csproj nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj nuget pack AgateLib.Platform.WinForms/AgateLib.Platform.WinForms.csproj nuget pack AgateLib.Platform.Test/AgateLib.Platform.Test.csproj nuget pack AgateLib.Platform.IntegrationTest/AgateLib.Platform.IntegrationTest.csproj mkdir packages move *.nupkg packages
nuget pack AgateLib/AgateLib.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.AgateSDL/AgateLib.SDL.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.OpenGL/AgateLib.OpenGL.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.Platform.WinForms/AgateLib.Platform.WinForms.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.Platform.Test/AgateLib.Platform.Test.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% nuget pack AgateLib.Platform.IntegrationTest/AgateLib.Platform.IntegrationTest.csproj if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
Use /d switch for ls
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /b $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
@echo off chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality IF NOT EXIST "C:\Program Files\Sublime Text 3" GOTO NOSUBLIME doskey edit="C:\Program Files\Sublime Text 3\sublime_text" $* :NOSUBLIME rem Open functionality doskey open=start $* @echo on
Add VS tools initialization to NuGet package command so it can run standalone.
@echo off rem NuGet Package Script rem ==================== rem Creates a release build then generates the NuGet package into the output directory. rem Remember to update the version number and release notes in the "nuspec" file before each release. echo. echo Creating Release build msbuild "%~dp0Emlid.WindowsIot.Hardware.csproj" /p:Configuration=Release if %errorlevel% neq 0 goto error echo. echo Creating NuGet Package "%~dp0..\..\Tools\NuGet\nuget.exe" pack "%~dp0Emlid.WindowsIot.Hardware.csproj" -Prop Configuration=Release -OutputDirectory "%~dp0bin\ARM\Release" if %errorlevel% neq 0 goto error echo. echo Packaging successful. exit /b 0 :error set result=%errorlevel% echo. echo Error %result% exit /b %result%
@echo off rem NuGet Package Script rem ==================== rem Creates a release build then generates the NuGet package into the output directory. rem Remember to update the version number and release notes in the "nuspec" file before each release. echo. echo Initializing Visual Studio tools... call "%vs140comntools%\vsvars32.bat" if %errorlevel% neq 0 goto error echo. echo Creating Release build msbuild "%~dp0Emlid.WindowsIot.Hardware.csproj" /p:Configuration=Release if %errorlevel% neq 0 goto error echo. echo Creating NuGet Package "%~dp0..\..\Tools\NuGet\nuget.exe" pack "%~dp0Emlid.WindowsIot.Hardware.csproj" -Prop Configuration=Release -OutputDirectory "%~dp0bin\ARM\Release" if %errorlevel% neq 0 goto error echo. echo Packaging successful. exit /b 0 :error set result=%errorlevel% echo. echo Error %result% exit /b %result%
Add window capture script for windows
"C:\Program Files\ffmpeg\bin\ffmpeg.exe" -f gdigrab -framerate 30 -i title="REACT RUNNING" -c:v h264_nvenc -qp 0 output-4.mkv
Fix slashes in batch file.
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off smartypants. third-party/discount-2.1.6-win32/markdown.exe -F 0x4 -o README.html OSVR-Unity/README.md move README.html OSVR-Unity-Dist\
cd /d %~dp0 mkdir OSVR-Unity-Dist mkdir OSVR-Unity-Dist\src mkdir OSVR-Unity-Dist\src\OSVR-Unity mkdir OSVR-Unity-Dist\src\Managed-OSVR xcopy Managed-OSVR OSVR-Unity-Dist\src\Managed-OSVR /Y /S xcopy OSVR-Unity OSVR-Unity-Dist\src\OSVR-Unity /Y /S rem the -F 0x4 is to turn off smartypants. third-party\discount-2.1.6-win32\markdown.exe -F 0x4 -o README.html OSVR-Unity/README.md move README.html OSVR-Unity-Dist\
Fix Windows paths to play nice with MinGW.
:: Set $HOME to the current dir so msys runs here set HOME=%cd% :: Configure, build, test, and install using `make`. bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=$LIBRARY_PREFIX" if errorlevel 1 exit 1 bash -lc "make test" if errorlevel 1 exit 1 bash -lc "make PREFIX=$LIBRARY_PREFIX install" if errorlevel 1 exit 1
:: Set $HOME to the current dir so msys runs here set HOME=%cd% :: Configure, build, test, and install using `make`. bash -lc "make FC=gfortran DYNAMIC_ARCH=1 BINARY=$ARCH NO_LAPACK=0 NO_AFFINITY=1 USE_THREAD=1 PREFIX=`echo $LIBRARY_PREFIX | tr '\\' '/'`" if errorlevel 1 exit 1 bash -lc "make test" if errorlevel 1 exit 1 bash -lc "make PREFIX=`echo $LIBRARY_PREFIX | tr '\\' '/'` install" if errorlevel 1 exit 1
Add a script to restore nuget packages for all projects needing them.
@echo off REM TODO: detect these automatically. Probably a job for PowerShell... set PROJECTS=Benchmarks,CodeDiagnostics,CodeDiagnostics.Test,Demo set PROJECTS=%PROJECTS%,Serialization.JsonNet,Serialization.Test,Test set PROJECTS=%PROJECTS%,TzdbCompiler.Test,Web for %%p in (%PROJECTS%) DO ( echo Restoring NodaTime.%%p packages nuget restore -NonInteractive -PackagesDirectory src\packages src\NodaTime.%%p\packages.config )
Call parcel lookup after pulling foreclosures
cd C:\projects\lexington-pentaho-etl\ call git pull origin master :: set KETTLE_HOME="C:\projects\lexington-pentaho-etl\.kettle\" call data-integration\Pan.bat -level=Basic -file "pull-last-day-of-foreclosure-sales.ktr"
cd C:\projects\lexington-pentaho-etl\ call git pull origin master cd data-integration call Pan.bat -level=Basic -file "../pull-last-day-of-foreclosure-sales.ktr" call Pan.bat -level=Basic -file "../parcel-lookup-foreclosure-sales.ktr"
Expand build to include VS 2013.
@echo off cd %~dp0 "%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^ powershell Write-NuGetPackage nuget.autopkg
@echo off cd %~dp0 "%VS120COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^ msbuild pugixml_vs2013_static.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo "%VS140COMNTOOLS%\VsMSBuildCmd.bat" && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Debug /p:Platform=x64 /v:minimal /nologo && ^ msbuild pugixml_vs2015.vcxproj /t:Rebuild /p:Configuration=Release /p:Platform=x64 /v:minimal /nologo && ^ powershell Write-NuGetPackage nuget.autopkg
Fix minor issue with build script.
CALL .\.venv\Scripts\activate pip install -r .\requirements.txt pyinstaller .\rocketleagueminimapgenerator\main.py --onefile MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe COPY /Y .\README.md .\dist\README.txt DEL /S /Q .\dist\assets COPY /Y .\assets .\dist\assets powershell Compress-Archive -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip pause
CALL .\.venv\Scripts\activate pip install -r .\requirements.txt pyinstaller .\rocketleagueminimapgenerator\main.py --onefile MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe COPY /Y .\README.md .\dist\README.txt DEL /S /Q .\dist\assets COPY /Y .\assets .\dist\assets powershell Compress-Archive -Force -Path .\dist\rocketleagueminimapgenerator.exe, .\dist\README.txt, .\dist\assets -DestinationPath .\dist\rocketleagueminimapgenerator.zip pause
Fix the path to build_autodoc_files.py and call it by default everytime (it is safe as it does not re-generate files which already exist)
@echo off REM docs\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template REM These are the python modules REM application.py REM clipboard.py REM findbestmatch.py REM findwindows.py REM handleprops.py REM taskbar.py REM win32defines.py REM win32functions.py REM win32structures.py REM XMLHelpers.py REM controls REM tests REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste -t \.temp\pudge\pudge\template\green_paste
@echo off doc_src\build_autodoc_files.py sphinx-build -b html doc_src pywinauto\docs REM c:\.temp\pudge\pudge\cli --documents doc_source\index.rst,doc_source\controls_overview.rst,doc_source\howto.rst,doc_source\getting_started.rst,history.txt,license.txt,todo.txt --title pywinauto -v -d website -m pywinauto.application,pywinauto.taskbar,pywinauto.clipboard,pywinauto.timings,pywinauto.findbestmatch,pywinauto.findwindows,pywinauto.handleprops,pywinauto.XMLHelpers,pywinauto.controls,pywinauto.tests -t doc_source\template REM These are the python modules REM application.py REM clipboard.py REM findbestmatch.py REM findwindows.py REM handleprops.py REM taskbar.py REM win32defines.py REM win32functions.py REM win32structures.py REM XMLHelpers.py REM controls REM tests REM c:\.temp\pudge\pudge\cli --title pywinauto -v -m pywinauto --documents docs\index.rst,history.txt,license.txt,todo.txt,docs\howto.rst -d pudge_output_green_paste -t \.temp\pudge\pudge\template\green_paste
Add release verification script for Windows
@rem Licensed to the Apache Software Foundation (ASF) under one @rem or more contributor license agreements. See the NOTICE file @rem distributed with this work for additional information @rem regarding copyright ownership. The ASF licenses this file @rem to you under the Apache License, Version 2.0 (the @rem "License"); you may not use this file except in compliance @rem with 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, @rem software distributed under the License is distributed on an @rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @rem KIND, either express or implied. See the License for the @rem specific language governing permissions and limitations @rem under the License. @rem Then run from the directory containing the RC tarball @rem @rem verify-release-candidate.bat apache-parquet-cpp-%VERSION% @echo on if not exist "C:\tmp\" mkdir C:\tmp if exist "C:\tmp\parquet-verify-release" rd C:\tmp\parquet-verify-release /s /q if not exist "C:\tmp\parquet-verify-release" mkdir C:\tmp\parquet-verify-release tar xvf %1.tar.gz -C "C:/tmp/" set GENERATOR=Visual Studio 14 2015 Win64 set CONFIGURATION=release set PARQUET_SOURCE=C:\tmp\%1 set INSTALL_DIR=C:\tmp\%1\install pushd %PARQUET_SOURCE% set PARQUET_TEST_DATA=%PARQUET_SOURCE%\data set PARQUET_HOME=%INSTALL_DIR% set PATH=%INSTALL_DIR%\bin;%PATH% mkdir build pushd build cmake -G "%GENERATOR%" ^ -DCMAKE_INSTALL_PREFIX=%PARQUET_HOME% ^ -DPARQUET_BOOST_USE_SHARED=OFF ^ -DCMAKE_BUILD_TYPE=%CONFIGURATION% ^ -DPARQUET_CXXFLAGS="/WX /MP" ^ .. || exit /B cmake --build . --target INSTALL --config %CONFIGURATION% || exit /B ctest -VV || exit /B popd
Use ninja explicitly instead of default cmake generator
mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" -DBUILD_PYTHON_INTERFACE=ON -G "%CMAKE_GENERATOR%" .. cmake --build . --config Release --target install popd
mkdir "%SRC_DIR%"\build pushd "%SRC_DIR%"\build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" -DBUILD_PYTHON_INTERFACE=ON -G "Ninja" .. ninja ninja install popd
Move set generator before maturin build
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native" FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i set "CMAKE_GENERATOR=NMake Makefiles" %PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" set "CMAKE_GENERATOR=NMake Makefiles" maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native" FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i %PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv
Add setlocal to batch script
@echo off for %%i in (FileCheck.exe) do set FILE_CHECK=%%~$PATH:i if not defined FILE_CHECK (echo Error: FileCheck.exe not found in PATH. && exit /b 1) set HIPIFY=%1 set IN_FILE=%2 set TMP_FILE=%3 set all_args=%* call set clang_args=%%all_args:*%4=%% set clang_args=%4%clang_args% %HIPIFY% -o=%TMP_FILE% %IN_FILE% -- %clang_args% if errorlevel 1 (echo Error: hipify-clang.exe failed with exit code: %errorlevel% && exit /b %errorlevel%) %FILE_CHECK% %IN_FILE% -input-file=%TMP_FILE% if errorlevel 1 (echo Error: FileCheck.exe failed with exit code: %errorlevel% && exit /b %errorlevel%)
@echo off setlocal for %%i in (FileCheck.exe) do set FILE_CHECK=%%~$PATH:i if not defined FILE_CHECK (echo Error: FileCheck.exe not found in PATH. && exit /b 1) set HIPIFY=%1 set IN_FILE=%2 set TMP_FILE=%3 set all_args=%* call set clang_args=%%all_args:*%4=%% set clang_args=%4%clang_args% %HIPIFY% -o=%TMP_FILE% %IN_FILE% -- %clang_args% if errorlevel 1 (echo Error: hipify-clang.exe failed with exit code: %errorlevel% && exit /b %errorlevel%) %FILE_CHECK% %IN_FILE% -input-file=%TMP_FILE% if errorlevel 1 (echo Error: FileCheck.exe failed with exit code: %errorlevel% && exit /b %errorlevel%)
Fix vim color scheme copy on Windows
@echo off REM Emacs COPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano COPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim MKDIR "%USERPROFILE%\.vim\colors" COPY /Y vim\.vim\colors\* "%USERPROFILE%\.vim\colors\" COPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash COPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" COPY /Y bash\.bash_aliases "%USERPROFILE%\.bash_aliases" REM Sublime Text 3 MKDIR "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\" MKDIR "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\Preferences.sublime-settings "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y "sublime\Package Control.sublime-settings" "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\Default.sublime-keymap "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\jcd.tmTheme "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\"
@echo off REM Emacs COPY /Y emacs\.emacs "%APPDATA%\.emacs" REM nano COPY /Y nano\.nanorc "%USERPROFILE%\.nanorc" REM Vim MKDIR "%USERPROFILE%\vimfiles\colors" COPY /Y vim\.vim\colors\* "%USERPROFILE%\vimfiles\colors\" COPY /Y vim\.vimrc "%USERPROFILE%\.vimrc" REM bash COPY /Y bash\.bashrc "%USERPROFILE%\.bashrc" COPY /Y bash\.bash_aliases "%USERPROFILE%\.bash_aliases" REM Sublime Text 3 MKDIR "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\" MKDIR "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\Preferences.sublime-settings "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y "sublime\Package Control.sublime-settings" "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\Default.sublime-keymap "%APPDATA%\Sublime Text 3\Packages\User\" COPY /Y sublime\jcd.tmTheme "%APPDATA%\Sublime Text 3\Packages\Custom Color Schemes\"
Add ifconfig alias to batch environment
@echo off rem Do not set codepage since it makes Eclipse act weird on DEV14 rem chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% doskey which=where $* rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text.exe" $* ) where atom >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=atom $* ) where code >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=code $* ) rem Open functionality doskey open=start $* @echo on
@echo off rem Do not set codepage since it makes Eclipse act weird on DEV14 rem chcp 65001>nul prompt [%USERNAME%@%COMPUTERNAME% $p]$_$$$s rem Fake a UNIX environment doskey clear=cls doskey ls=dir /d $* doskey cp=copy $* doskey mv=move $* doskey rm=del $* doskey cat=type $* doskey touch=type nul$G$G$* doskey pwd=echo %CD% doskey which=where $* doskey ifconfig=ipconfig rem Easier navigation doskey cd=cd /D $* doskey cd..=cd .. doskey ..=cd .. doskey ...=cd ../.. doskey ....=cd ../../.. rem List files properly doskey l=dir /b $* doskey ll=dir /b $* rem Edit functionality if exist ""%PROGRAMFILES%\Sublime Text 3"" ( doskey edit="%PROGRAMFILES%\Sublime Text 3\sublime_text.exe" $* ) where atom >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=atom $* ) where code >nul 2>&1 if %ERRORLEVEL% EQU 0 ( doskey edit=code $* ) rem Open functionality doskey open=start $* @echo on
Set package version from BUILD_NUMBER environment variable
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set DOTNET_CLI_TELEMETRY_OPTOUT=1 echo ##teamcity[blockOpened name='Prepare' description='Preparing build environment...'] dotnet clean if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Prepare'] echo ##teamcity[blockOpened name='Restore' description='Restoring packages...'] dotnet restore if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Restore'] echo ##teamcity[blockOpened name='Build' description='Building solution...'] dotnet build --configuration %config% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Build'] echo ##teamcity[blockOpened name='Test' description='Running tests...'] dotnet test tests\YouTrackSharp.Tests\YouTrackSharp.Tests.csproj --no-build --configuration %config% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Test'] echo ##teamcity[blockOpened name='Pack' description='Creating NuGet packages...'] mkdir artifacts dotnet pack src\YouTrackSharp\YouTrackSharp.csproj --output %cd%\artifacts --include-symbols --include-source --configuration %config% /p:PackageVersion=%PackageVersion% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Pack'] :success exit 0 :failure exit -1
@echo off set config=%1 if "%config%" == "" ( set config=Release ) set DOTNET_CLI_TELEMETRY_OPTOUT=1 set PackageVersion=%BUILD_NUMBER% echo ##teamcity[blockOpened name='Prepare' description='Preparing build environment...'] dotnet clean if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Prepare'] echo ##teamcity[blockOpened name='Restore' description='Restoring packages...'] dotnet restore if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Restore'] echo ##teamcity[blockOpened name='Build' description='Building solution...'] dotnet build --configuration %config% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Build'] echo ##teamcity[blockOpened name='Test' description='Running tests...'] dotnet test tests\YouTrackSharp.Tests\YouTrackSharp.Tests.csproj --no-build --configuration %config% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Test'] echo ##teamcity[blockOpened name='Pack' description='Creating NuGet packages...'] mkdir artifacts dotnet pack src\YouTrackSharp\YouTrackSharp.csproj --output %cd%\artifacts --include-symbols --include-source --configuration %config% /p:PackageVersion=%PackageVersion% if not "%errorlevel%"=="0" goto failure echo ##teamcity[blockClosed name='Pack'] :success exit 0 :failure exit -1
Add Windows cmd/batch file to simplify usage.
@echo off REM ========================================================================== REM BEHAVE REM ========================================================================== setlocal set HERE=%~dp0 if not defined PYTHON set PYTHON=python %PYTHON% %HERE%behave %*
Backup the user's directory before cleaning
@for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~15,5%*. @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe" @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "java.exe" @echo( @echo Starting Gradle build. This will take a while... @echo( @call gradlew clean shadowJar --no-daemon @for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @echo( @echo Starting HubTurbo V%versionline:~15,5%. You can close this cmd window once HubTurbo begins launching. @start "" javaw -jar build/libs/HubTurbo-%versionline:~15,5%-all.jar @exit
@for /r build\libs %%i in (*.jar) do @set versionline=%%~ni @echo Closing all java and javaw processes with window title format: HubTurbo V%versionline:~9,5%*. @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "javaw.exe" @taskkill /fi "Windowtitle eq HubTurbo V%versionline:~15,5%*" /im "java.exe" @echo( @echo Backing up your files. Any jar or exe files will not be backed up. @echo .jar>>rbar-ex.txt @echo .exe>>rbar-ex.txt @xcopy build\libs rbar /i /s /exclude:rbar-ex.txt @del rbar-ex.txt @echo( @echo Starting Gradle build. This will take a while... @echo( @call gradlew clean shadowJar --no-daemon @xcopy rbar build\libs /i /s @rmdir /S /Q rbar @for /F "delims=" %%a in ('findstr /rc:"^ version" build.gradle') do @set versionline=%%a @cd build\libs @echo( @echo Starting HubTurbo V%versionline:~15,5%. You can close this cmd window once HubTurbo begins launching. @start "" javaw -jar HubTurbo-%versionline:~15,5%-all.jar @exit
Use REM for comments to avoid error messages on the DOS prompt for Windows users
# This is for windows users only. # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
REM # This is for windows users only. REM # If you're on a mac or linux, just run `ant build` from this folder in Terminal set MYDIR=%~dp0 set ANT_OPTS=-D"file.encoding=UTF-8" ant build
Add run multiply scripts bat file
REM Author: Manu Mohanan REM Original link: http://www.sqlservercentral.com/articles/SQLCMD/131634/ @@echo off del errors /f /s /q rd Errors md Errors FOR %%A IN (*.SQL) DO ( sqlcmd -S SERVERNAME -d DATABASE1 -U username -P password -i "%%A" -o "Errors\%%AError_DB1.txt" -I ) FOR %%A IN (*.SQL) DO ( sqlcmd -S SERVERNAME -d DATABASE2 -U username -P password -i "%%A" -o "Errors\%%AError_DB2.txt" -I )
Move echo off up to top.
REM REM Environment setup file for RailsInstaller. REM @ECHO OFF REM REM First we Determine where is RUBY_DIR REM (which is where this script is) REM PUSHD %~dp0. SET RUBY_DIR=%CD% POPD REM REM Now we Determine the RailsInstaller Root directory REM (parent directory of Ruby) REM PUSHD %RUBY_DIR%\.. SET ROOT_DIR=%CD% POPD REM REM Add RUBY_DIR\bin to the PATH, DevKit\bin and then Git\cmd REM RUBY_DIR\bin takes higher priority to avoid other tools conflict REM SET PATH=%RUBY_DIR%\bin;%RUBY_DIR%lib\ruby\gems\1.8\bin;%ROOT_DIR%\DevKit\bin;%ROOT_DIR%\Git\cmd;%PATH% SET RUBY_DIR= SET ROOT_DIR= REM REM Create the HOME\Sites directory. REM IF NOT EXIST %HOMEDRIVE%\Sites. (md %HOMEDRIVE%\Sites.) REM REM Set the HOME environment variables for Ruby & Gems to use REM with ENV["HOME"] REM SET HOME=%HOMEDRIVE%%HOMEPATH% REM Display Git, Ruby and Rails versions git --version ruby -v rails -v REM NOTE we start out in the Sites directory as that is the working dir set. REM cd %HOMEDRIVE%\Sites
@ECHO OFF REM REM Environment setup file for RailsInstaller. REM REM REM First we Determine where is RUBY_DIR REM (which is where this script is) REM PUSHD %~dp0. SET RUBY_DIR=%CD% POPD REM REM Now we Determine the RailsInstaller Root directory REM (parent directory of Ruby) REM PUSHD %RUBY_DIR%\.. SET ROOT_DIR=%CD% POPD REM REM Add RUBY_DIR\bin to the PATH, DevKit\bin and then Git\cmd REM RUBY_DIR\bin takes higher priority to avoid other tools conflict REM SET PATH=%RUBY_DIR%\bin;%RUBY_DIR%lib\ruby\gems\1.8\bin;%ROOT_DIR%\DevKit\bin;%ROOT_DIR%\Git\cmd;%PATH% SET RUBY_DIR= SET ROOT_DIR= REM REM Create the HOME\Sites directory. REM IF NOT EXIST %HOMEDRIVE%\Sites. (md %HOMEDRIVE%\Sites.) REM REM Set the HOME environment variables for Ruby & Gems to use REM with ENV["HOME"] REM SET HOME=%HOMEDRIVE%%HOMEPATH% REM Display Git Verison git --version REM Display Ruby Version %RUBY_DIR%\bin\ruby.exe -v REM Display Rails version %RUBY_DIR%\bin\rails.bat -v REM NOTE we start out in the Sites directory as that is the working dir set. REM cd %HOMEDRIVE%\Sites
Remove setting of env vars in scripts
@echo off title PostgreSQL Portable cls :: set default code page chcp 1252 > nul :: ensure variables set if not defined PGSQL set PGSQL=%~dp0 if not defined PGDATA set PGDATA=%PGSQL%..\..\Data\data if not defined PGLOG set PGLOG=%PGSQL%..\..\Data\log.txt if not defined PGLOCALDIR set PGLOCALDIR=%PGSQL%share if not defined PGDATABASE set PGDATABASE=postgres if not defined PGPORT set PGPORT=5432 if not defined PGUSER set PGUSER=postgres :: initialise a new database on first use if not exist "%PGDATA%" ( echo. echo Initialising database for first use, please wait... "%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul ) :: startup postgres server echo. "%PGSQL%\bin\pg_ctl" -D "%PGDATA%" -l "%PGLOG%" -w start cls echo. echo Type \q to quit and shutdown server echo. "%PGSQL%\bin\psql.exe" --port=%PGPORT% --dbname="%PGDATABASE%" --username="%PGUSER%" echo. "%PGSQL%\bin\pg_ctl" -D "%PGDATA%" stop
@echo off title PostgreSQL Portable cls :: set default code page chcp 1252 > nul :: initialise a new database on first use if not exist "%PGDATA%" ( echo. echo Initialising database for first use, please wait... "%PGSQL%\bin\initdb" -U %PGUSER% -A trust -E utf8 --locale=C >nul ) :: startup postgres server echo. "%PGSQL%\bin\pg_ctl" -D "%PGDATA%" -l "%PGLOG%" -w start cls echo. echo Type \q to quit and shutdown server echo. "%PGSQL%\bin\psql.exe" --port=%PGPORT% --dbname="%PGDATABASE%" --username="%PGUSER%" echo. "%PGSQL%\bin\pg_ctl" -D "%PGDATA%" stop
Make run_webkit_test.bat workable even if we execute it on a directory other than webkit\tools\layout_tests\.
@..\..\..\third_party\python_24\python.exe run_webkit_tests.py %*
@%~dp0\..\..\..\third_party\python_24\python.exe %~dp0\run_webkit_tests.py %*
Use nunit rather than gallileo
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) REM Build call "%msbuild%" src\cr-aggregaterepository.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false if not "%errorlevel%"=="0" goto failure REM Unit tests "%GallioEcho%" src\tests\bin\%config%\CR.AggregateRepository.Tests.dll if not "%errorlevel%"=="0" goto failure REM Package mkdir Build cmd /c %nuget% pack "src\core\core.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure cmd /c %nuget% pack "src\persistance.memory\persistance.memory.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure cmd /c %nuget% pack "src\persistance.eventstore\persistance.eventstore.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure :success exit 0 :failure exit -1
@echo Off set config=%1 if "%config%" == "" ( set config=Release ) REM Build call "%msbuild%" src\cr-aggregaterepository.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=Normal /nr:false if not "%errorlevel%"=="0" goto failure REM Unit tests "%nunit%" src\tests\bin\%config%\CR.AggregateRepository.Tests.dll if not "%errorlevel%"=="0" goto failure REM Package mkdir Build cmd /c %nuget% pack "src\core\core.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure cmd /c %nuget% pack "src\persistance.memory\persistance.memory.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure cmd /c %nuget% pack "src\persistance.eventstore\persistance.eventstore.csproj" -symbols -o Build -p Configuration=%config% if not "%errorlevel%"=="0" goto failure :success exit 0 :failure exit -1
Remove w9xopen.exe and add README.txt to Windows build
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* del /s w9xpopen.exe copy ..\README.txt . 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Add release tool for windows
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Correct script because the test runner no longer has a Packaging target
@echo off msbuild /p:Configuration=Packaging;Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 AppPackages\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Packaging_Test\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Packaging.appx /Logger:trx
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 AppPackages\Couchbase.Lite.Tests.UWP_1.0.0.0_x64_Test\Couchbase.Lite.Tests.UWP_1.0.0.0_x64.appx /Logger:trx
Update VS DebuggerVisualizers install script
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\MDbgCore.dll" "%VISUALIZERS%" copy /y "%BIN%\CorApi.dll" "%VISUALIZERS%" copy /y "%BIN%\CorApiRaw.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Collections.Immutable.dll" "%VISUALIZERS%" copy /y "%BIN%\Microsoft.DiaSymReader.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
Update script to generate standalone exe
@ECHO OFF python3 setup.py py2exe -d "%~dp0\" PAUSE
@ECHO OFF CD /D "%~dp0" SET "OutDir=Output" IF NOT EXIST "%OutDir%" ( MKDIR "%OutDir" ) python3 setup.py py2exe -d "%~dp0\%OutDir%" PAUSE
Delete doublequotes from set properties values
rem ### Configuration which should be placed on server where app is deployed rem Environment where our app is deployed, configuration will be taken from corresponding dir @set APP_ENV="prod" rem Git repository with configuration. Absolute path should be used. @set CONFIG_FOLDER="properties" rem For secretProd env, ENCRYPT_KEY is required. rem Use encrypt.key if you pass it as -D option when running java @set ENCRYPT_KEY="secretEncryptKey" rem ### pushd .. rem For production mode (no stubs) use prod rem For developer mode (stubs and embedded Zookeeper) use env gradlew %* bootRun -Dspring.profiles.active=dev popd
rem ### Configuration which should be placed on server where app is deployed rem Environment where our app is deployed, configuration will be taken from corresponding dir @set APP_ENV=prod rem Git repository with configuration. Absolute path should be used. @set CONFIG_FOLDER=properties rem For secretProd env, ENCRYPT_KEY is required. rem Use encrypt.key if you pass it as -D option when running java @set ENCRYPT_KEY=secretEncryptKey rem ### pushd .. rem For production mode (no stubs) use prod rem For developer mode (stubs and embedded Zookeeper) use env gradlew %* bootRun -Dspring.profiles.active=dev popd
Use MSVC 14.0 (2015) for compiling Python 3.6
REM Set variables for Microsoft Visual Studio for Python 2.7 REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64 REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.python.org/issue23246) REM SET DISTUTILS_USE_SDK=1 REM SET MSSdk=1 REM Test build python setup.py sdist bdist_wheel REM Upload to PyPi REM python setup.py sdist bdist_wheel upload
REM Set variables for Microsoft Visual Studio for Python 2.7 REM @call "C:\Users\michaelh3\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\vcvarsall.bat" amd64 REM Set environ as workaround for bugs (See http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat and http://bugs.python.org/issue23246) REM SET DISTUTILS_USE_SDK=1 REM SET MSSdk=1 @call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64 REM Test build python setup.py sdist bdist_wheel REM Upload to PyPi REM python setup.py sdist bdist_wheel upload
Remove trailing slash from directory
@echo off start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %~dpn1
@echo off set directory=%~f1 if %directory:~-1%==\ set directory=%directory:~0,-1% start "" "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe" -f %directory%
Add batch file for Windows
@echo off rem Copyright (C) 2016 The Syncthing Authors. rem rem This Source Code Form is subject to the terms of the Mozilla Public rem License, v. 2.0. If a copy of the MPL was not distributed with this file, rem You can obtain one at http://mozilla.org/MPL/2.0/. rem This batch file should be run from the GOPATH. rem It expects to run on amd64, for windows-amd64 Go to be installed in C:\go rem and for windows-386 Go to be installed in C:\go-386. rem cURL should be installed in C:\Program Files\cURL. set ORIGPATH="C:\Program Files\cURL\bin";%PATH% set PATH=c:\go\bin;%ORIGPATH% set GOROOT=c:\go cd >gopath set /p GOPATH= <gopath cd src\github.com\syncthing\syncthing echo Initializing ^& cleaning go version git clean -fxd || goto error echo. echo Fetching extras mkdir extra curl -s -L -o extra/Getting-Started.pdf https://docs.syncthing.net/pdf/Getting-Started.pdf || goto :error curl -s -L -o extra/FAQ.pdf https://docs.syncthing.net/pdf/FAQ.pdf || goto :error echo. echo Testing go run build.go test || goto :error echo. echo Building (amd64) go run build.go zip || goto :error echo. set PATH=c:\go-386\bin;%ORIGPATH% set GOROOT=c:\go-386 echo building (386) go run build.go zip || goto :error echo. goto :EOF :error echo code #%errorlevel%. exit /b %errorlevel%
Store OS X files in zips.
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
cd .. del/q scintilla.zip zip scintilla.zip scintilla\*.* scintilla\*\*.* scintilla\*\*\*.* scintilla\*\*\*\*.* scintilla\*\*\*\*\*.* -x *.o -x *.obj -x *.dll -x *.lib -x *.res -x *.exp cd scintilla
Set CMAKE generator for windows
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native" FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i %PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv
FOR /F "delims=" %%i in ('cygpath.exe -u "%SRC_DIR%\rust-nightly-install"') DO set "pfx=%%i" bash %SRC_DIR%\rust-nightly\install.sh --verbose --prefix=%pfx% --disable-ldconfig --components=rustc,cargo,rust-std-x86_64-pc-windows-msvc set "PATH=%SRC_DIR%\rust-nightly-install\bin;%PATH%" maturin build --no-sdist --release --strip --manylinux off --interpreter=%PYTHON% --rustc-extra-args="-C codegen-units=16 -C lto=thin -C target-cpu=native" FOR /F "delims=" %%i IN ('dir /s /b target\wheels\*.whl') DO set polars_wheel=%%i set "CMAKE_GENERATOR=NMake Makefiles" %PYTHON% -m pip install --ignore-installed --no-deps %polars_wheel% -vv
Test setting C++ standard for Windows build
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" .. if errorlevel 1 exit 1 cmake --build . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
:: Build tcplotter command-line utilities using cmake :: Change working directory to archive directory cd "%PKG_NAME%" :: Create build directory cd "src" mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Build with cmake cmake -G "MinGW Makefiles" .. if errorlevel 1 exit 1 cmake --build -DCMAKE_CXX_STANDARD=11 . if errorlevel 1 exit 1 :: Install executables to bin directory cmake --build . --target install --prefix=%PREFIX% if errorlevel 1 exit 1 :: Install tcplotter cd "%SRC_DIR%" $PYTHON -m pip install . -vv
Fix uploaded installer path filename.
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe" . --step "Build kolibri windows installer" --build %BUILDKITE_BUILD_ID% --agent-access-token %BUILDKITE_AGENT_ACCESS_TOKEN% %WINDOWS_SIGN_SCRIPT_PATH% "%current_path%\installer" && buildkite-agent.exe artifact upload "installer/*.exe"
@echo off rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent. rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact. set current_path=%cd% buildkite-agent.exe artifact download "installer/*.exe" . --step "Build kolibri windows installer" --build %BUILDKITE_BUILD_ID% --agent-access-token %BUILDKITE_AGENT_ACCESS_TOKEN% %WINDOWS_SIGN_SCRIPT_PATH% "%current_path%\installer" && buildkite-agent.exe artifact upload "%current_path%\*.exe"
Test script for automating changes
ECHO ON TITLE Automated Test Build for hobgoblin IF NOT EXIST test (mkdir test) SET /P _deltest= Clear contents of test dir? (y/n) IF "%_deltest%"=="y" GOTO :deltest IF "%_deltest%"=="n" GOTO :cdtest :deltest del test\js\*.js rmdir test\js :cdtest ECHO Entering test dir... cd test node ..\hobgoblin.js init -e index.html cd ..
Fix frontend test results uploader
@echo off cd C:\projects\spectre\src\Spectre.Angular2Client IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.Angular2Client\karma-tests.xml ) IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\protractor-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.Angular2Client\protractor-tests.xml )
@echo off cd C:\projects\spectre\src\Spectre.Angular2Client IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.AngularClient\karma-tests.xml ) IF EXIST "C:\projects\spectre\src\Spectre.AngularClient\protractor-tests.xml" ( powershell C:\projects\spectre\scripts\Upload-TestResult.ps1 -fileName C:\projects\spectre\src\Spectre.AngularClient\protractor-tests.xml )
Update create-translation script to use gettext
@echo off echo. echo == Create Translations files echo. set TARGET_DIR="..\extracted" echo. echo Unknwon-Horizons cd "%TARGET_DIR%\extracted\unknown-horizons\unknown-horizons-master\development\" python compile_translation_win.py dir "%TARGET_DIR%"
@echo off echo. echo == Create Translations files echo. set TARGET_DIR="..\extracted" set msgfmt "..\build-tools\gettext\bin\msgfmt.exe" echo. echo Unknwon-Horizons cd "%TARGET_DIR%\extracted\unknown-horizons\unknown-horizons-master\development" compile_translation_win.py dir "%TARGET_DIR%"
Update windows build script to specify x64 builds.
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015" .. devenv openrhythm.sln /build cd .. pause
md build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CONFIGURATION_TYPES=Release -G "Visual Studio 14 2015 Win64" .. devenv openrhythm.sln /build cd .. pause
Build TMF files after building all binaries
@echo off SETLOCAL EnableExtensions EnableDelayedExpansion if [%1] EQU [MSIONLY] goto BUILD_MSI if [%2] EQU [NOSIGN] (SET DEBUG_CFG=Debug_NoSign) ELSE (SET DEBUG_CFG=Debug) del *.log for %%x in (Win7, Win8, Win8.1, Win10, XP) do ( for %%y in (%DEBUG_CFG%, Release) do ( for %%z in (win32, x64) do ( call tools\vs_run.bat UsbDk.sln /Rebuild "%%x %%y|%%z" /Out build%%y_%%x_%%z.log if !ERRORLEVEL! NEQ 0 exit /B 1 ) ) ) if [%1] EQU [NOMSI] goto NOMSI :BUILD_MSI pushd Tools\Installer SET UsbDkVersion="%USBDK_MAJOR_VERSION%.%USBDK_MINOR_VERSION%.%USBDK_BUILD_NUMBER%" buildmsi.bat %2 popd :NOMSI ENDLOCAL
@echo off SETLOCAL EnableExtensions EnableDelayedExpansion if [%1] EQU [MSIONLY] goto BUILD_MSI if [%2] EQU [NOSIGN] (SET DEBUG_CFG=Debug_NoSign) ELSE (SET DEBUG_CFG=Debug) del *.log for %%x in (Win7, Win8, Win8.1, Win10, XP) do ( for %%y in (%DEBUG_CFG%, Release) do ( for %%z in (win32, x64) do ( call tools\vs_run.bat UsbDk.sln /Rebuild "%%x %%y|%%z" /Out build%%y_%%x_%%z.log if !ERRORLEVEL! NEQ 0 exit /B 1 ) ) ) pushd Install "C:\Program Files (x86)\Windows Kits\10\bin\x86\tracepdb.exe" -s -o .\UsbDk.tmf if !ERRORLEVEL! NEQ 0 exit /B 1 popd pushd Install_Debug "C:\Program Files (x86)\Windows Kits\10\bin\x86\tracepdb.exe" -s -o .\UsbDk.tmf if !ERRORLEVEL! NEQ 0 exit /B 1 popd if [%1] EQU [NOMSI] goto NOMSI :BUILD_MSI pushd Tools\Installer SET UsbDkVersion="%USBDK_MAJOR_VERSION%.%USBDK_MINOR_VERSION%.%USBDK_BUILD_NUMBER%" buildmsi.bat %2 popd :NOMSI ENDLOCAL
Correct path separators for; use working directory expansion to setup classpath
@rem Tune environment: @set COMPILER_CFG_SCRIPT=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat @set JAVA_HOME=C:\ws\bin\jdk1.5.0_06 @set ANT_HOME=C:\ws\bin\apache-ant-1.6.5 @set SVN_HOME=C:\ws\bin\svn-win32-1.4.2 @set ANT_OPTS=-XX:MaxPermSize=512m -Xmx1000M -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=1111 @set PATH=%SVN_HOME%/bin;%PATH%;%ANT_HOME%/bin @set CLASSPATH=./build/classes @call "%COMPILER_CFG_SCRIPT%" call ant %* 2>&1
@rem Tune environment: @set COMPILER_CFG_SCRIPT=C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat @set JAVA_HOME=C:\ws\bin\jdk1.5.0_06 @set ANT_HOME=C:\ws\bin\apache-ant-1.6.5 @set SVN_HOME=C:\ws\bin\svn-win32-1.4.2 @set ANT_OPTS=-XX:MaxPermSize=512m -Xmx1000M -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=1111 @set PATH=%SVN_HOME%\bin;%PATH%;%ANT_HOME%\bin @set CLASSPATH=%~dp0\build\classes @call "%COMPILER_CFG_SCRIPT%" call ant %* 2>&1
Add a one-shot, first-time Windows setup script
:: A one-shot, first-time Windows configuration script that disables some :: Windows misfeatures and sets paths to my usual preferences. I wish this :: script could do more, especially to disable Windows' built-in adware and :: spyware, but following Microsoft's usual mediocrity, Windows remains a :: toy operating system with most configuration inaccessible to scripts. :: Annoyances set key="HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" reg add "%key%" /f /v TaskbarGlomLevel /t REG_DWORD /d 2 reg add "%key%" /f /v HideFileExt /t REG_DWORD /d 0 reg add "%key%" /f /v ShowCortanaButton /t REG_DWORD /d 0 reg add "%key%" /f /v ShowTaskViewButton /t REG_DWORD /d 0 reg add "%key%" /f /v StoreAppsOnTaskbar /t REG_DWORD /d 0 reg add "%key%" /f /v MultiTaskingAltTabFilter /t REG_DWORD /d 3 reg add "%key%" /f /v JointResize /t REG_DWORD /d 0 reg add "%key%" /f /v SnapFill /t REG_DWORD /d 0 reg add "%key%" /f /v SnapAssist /t REG_DWORD /d 0 set key="HKCU\Software\Microsoft\Windows\CurrentVersion\Feeds" reg add "%key%" /f /v ShellFeedsTaskbarViewMode /t REG_DWORD /d 2 :: Paths setx GOBIN "%USERPROFILE%\bin" setx GOPATH "%TEMP%\go" setx PATH "%PATH%;%USERPROFILE%\bin;%USERPROFILE%\go\bin" :: Reload taskkill /f /im explorer.exe start explorer.exe
Copy the redist files with the Managed-OSVR wrapper.
echo on cd /d "%~dp0" xcopy "%1" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2osvr*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y
echo on cd /d "%~dp0" xcopy "%1" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2osvr*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y xcopy "%2msvc*.dll" ..\..\OSVR-Unity\Assets\Plugins\%3\ /Y
Add markers for recipe env testing
@echo off :: Copyright 2020 The Pigweed Authors :: :: Licensed under the Apache License, Version 2.0 (the "License"); you may not :: use this file except in compliance with the License. You may obtain a copy of :: the License at :: :: https://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable law or agreed to in writing, software :: distributed under the License is distributed on an "AS IS" BASIS, WITHOUT :: WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the :: License for the specific language governing permissions and limitations under :: the License. :: Pigweed Windows environment setup. :: Calls a Powershell script that determines the correct PW_ROOT directory and :: exports it as an environment variable. for /F "usebackq tokens=1" %%i in (`powershell %%~dp0..\..\pw_env_setup\env_setup.ps1`) do set PW_ROOT=%%i set shell_file="%PW_ROOT%\pw_env_setup\.env_setup.bat" if not exist %shell_file% ( call python %PW_ROOT%\pw_env_setup\py\pw_env_setup\env_setup.py --pw-root %PW_ROOT% --shell-file %shell_file% ) call %shell_file%
@echo off :: Copyright 2020 The Pigweed Authors :: :: Licensed under the Apache License, Version 2.0 (the "License"); you may not :: use this file except in compliance with the License. You may obtain a copy of :: the License at :: :: https://www.apache.org/licenses/LICENSE-2.0 :: :: Unless required by applicable law or agreed to in writing, software :: distributed under the License is distributed on an "AS IS" BASIS, WITHOUT :: WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the :: License for the specific language governing permissions and limitations under :: the License. :: Pigweed Windows environment setup. :: Calls a Powershell script that determines the correct PW_ROOT directory and :: exports it as an environment variable. :: LUCI DELETE BEGIN :: The ~dp0 magic doesn't work when this batch script is launched from another :: batch script. So when testing on Windows we write a copy of this batch :: script that assumes PW_ROOT is already set. Then the batch script we run :: directly sets PW_ROOT, calls the copy of this batch script and runs :: 'pw presubmit'. for /F "usebackq tokens=1" %%i in (`powershell %%~dp0..\..\pw_env_setup\env_setup.ps1`) do set PW_ROOT=%%i :: LUCI DELETE END set shell_file="%PW_ROOT%\pw_env_setup\.env_setup.bat" if not exist %shell_file% ( call python %PW_ROOT%\pw_env_setup\py\pw_env_setup\env_setup.py --pw-root %PW_ROOT% --shell-file %shell_file% ) call %shell_file%
Make the Wndows batch callable from any directory
@echo off set NaturalDocsParams= rem Shift and loop so we can get more than nine parameters. rem This is especially important if we have spaces in file names. :MORE if "%1"=="" goto NOMORE set NaturalDocsParams=%NaturalDocsParams% %1 shift goto MORE :NOMORE perl NaturalDocs %NaturalDocsParams% set NaturalDocsParams=
@perl %~dp0NaturalDocs %*
Update Rust version used by Appveyor
curl -sSf https://static.rust-lang.org/dist/rust-1.10.0-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIBCLANG_PATH=C:\LLVM\bin
curl -sSf https://static.rust-lang.org/dist/rust-1.22.1-i686-pc-windows-msvc.exe -o rust.exe rust.exe /VERYSILENT /NORESTART /DIR="C:\Rust" set PATH=%PATH%;C:\Rust\bin curl -sSf http://releases.llvm.org/%LLVM_VERSION%/LLVM-%LLVM_VERSION%-win32.exe -o LLVM.exe 7z x LLVM.exe -oC:\LLVM set PATH=%PATH%;C:\LLVM\bin set LIBCLANG_PATH=C:\LLVM\bin
Add batch file to run Python unit tests on Windows
@echo off set PATH=%PATH%;..\..\..\sandbox\bin\v140\Debug set PYTHONPATH=%PYTHONPATH%;..\..\..\sandbox\bin\v140\Debug python runtests.py pause
Update path to VS visualizers
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Collections.Immutable.dll" "%VISUALIZERS%" copy /y "%BIN%\Microsoft.DiaSymReader.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 2015\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Collections.Immutable.dll" "%VISUALIZERS%" copy /y "%BIN%\Microsoft.DiaSymReader.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
Fix comments on .bat file
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */
:: Copyright (c) 2015-present, Facebook, Inc. :: All rights reserved. :: :: This source code is licensed under the BSD-style license found in the :: LICENSE file in the root directory of this source tree. An additional grant :: of patent rights can be found in the PATENTS file in the same directory.
Tag the windows script, so we can see if we get the right one
@ECHO OFF SET ROOTDIR=%WRAPPER_HOME% if "%ROOTDIR%"=="" ( set ROOTDIR=%~dp0 ) SET data=%1 shift SET model=%1 shift : create var with remaining arguments set r=%1 :loop shift if [%1]==[] goto done set r=%r% %1 goto loop :done if [%PYTHON_BIN%]==[] goto nopython %PYTHON_BIN% %ROOTDIR%\FileJsonPyTorch\gate-lf-pytorch-json\train.py %data% %model% %r% goto exit :nopython python %ROOTDIR%\FileJsonPyTorch\gate-lf-pytorch-json\train.py %data% %model% %r% :exit
@ECHO OFF REM 001 SET ROOTDIR=%WRAPPER_HOME% if "%ROOTDIR%"=="" ( set ROOTDIR=%~dp0 ) SET data=%1 shift SET model=%1 shift : create var with remaining arguments set r=%1 :loop shift if [%1]==[] goto done set r=%r% %1 goto loop :done if [%PYTHON_BIN%]==[] goto nopython %PYTHON_BIN% %ROOTDIR%\FileJsonPyTorch\gate-lf-pytorch-json\train.py %data% %model% %r% goto exit :nopython python %ROOTDIR%\FileJsonPyTorch\gate-lf-pytorch-json\train.py %data% %model% %r% :exit
Use quotes around PFX certificate path in msi signing batch script
@echo off set DIST_DIR=dist set CERTIFICATE_PATH=%USERPROFILE%\certificates\nuxeo.com.pfx set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
@echo off set DIST_DIR=dist set CERTIFICATE_PATH="%USERPROFILE%\certificates\nuxeo.com.pfx" set MSI_PROGRAM_NAME="Nuxeo Drive" set TIMESTAMP_URL=http://timestamp.verisign.com/scripts/timstamp.dll set SIGN_CMD=signtool sign /v /f %CERTIFICATE_PATH% /d %MSI_PROGRAM_NAME% /t %TIMESTAMP_URL% set VERIFY_CMD=signtool verify /v /pa FOR %%F IN (%DIST_DIR%\*.msi) DO ( echo --------------------------------------------- echo Signing %%F echo --------------------------------------------- echo %SIGN_CMD% %%F %SIGN_CMD% %%F echo --------------------------------------------- echo Verifying %%F echo --------------------------------------------- echo %VERIFY_CMD% %%F %VERIFY_CMD% %%F )
Add ability to create specrun report
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots pause @popd
@pushd %~dp0 ECHO Remember to build the solution first! REM pause Cd "%~dp0\TestHarness\packages\NUnit.Runners.*\tools" "nunit-console.exe" "%~dp0\TestHarness\nunit\bin\Debug\nunitHarness.dll" /result="%~dp0\results-example-nunit.xml" /nologo /nodots Cd "%~dp0\TestHarness\packages\SpecRun.Runner.*\tools" "specrun.exe" run default.srprofile "/baseFolder:%~dp0\TestHarness\SpecRun\bin\Debug" /log:specrun.log /report:"%~dp0\results-example-specrun.html" pause @popd
Stop dumping the environment variables.
SETLOCAL SET MSBUILD="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" SET NUGET="%ProgramFiles(x86)%\MSBuild\14.0\Bin\Nuget.exe" SET MSTEST="%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" REM Dump the environment variables. SET FAILED=0 SET CD bigquery\api\BigQueryUtil %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\GettingStarted %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\..\..\storage\api %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\..\auth %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 @ECHO OFF IF %FAILED% NEQ 0 GOTO failed_case ENDLOCAL ECHO SUCCEEDED EXIT /b :failed_case ENDLOCAL ECHO FAILED EXIT /b 1
SETLOCAL SET MSBUILD="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe" SET NUGET="%ProgramFiles(x86)%\MSBuild\14.0\Bin\Nuget.exe" SET MSTEST="%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE\MSTest.exe" SET FAILED=0 CD bigquery\api\BigQueryUtil %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\GettingStarted %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\..\..\storage\api %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 CD ..\..\auth %NUGET% restore %MSBUILD% && %MSTEST% /testcontainer:test\bin\debug\test.dll || SET FAILED=1 @ECHO OFF IF %FAILED% NEQ 0 GOTO failed_case ENDLOCAL ECHO SUCCEEDED EXIT /b :failed_case ENDLOCAL ECHO FAILED EXIT /b 1
Add backwards compatibility for fellow freelancers
@echo off set AVALON_LABEL=Mindbender %~dp0bin\windows\python36\python.exe -u %~dp0avalon.py
@echo off :: Backwards compatibility if not defined AVALON_PROJECTS set AVALON_PROJECTS=%MINDBENDER_PROJECTS% if not defined AVALON_MONGO set AVALON_MONGO=%MINDBENDER_MONGO% if not defined AVALON_LOCATION set AVALON_LOCATION=%MINDBENDER_LOCATION% set AVALON_LABEL=Mindbender %~dp0bin\windows\python36\python.exe -u %~dp0avalon.py
Use correct install path for Windows
mkdir build cd build if errorlevel 1 exit /b 1 :: Other codecs cannot be enabled because they are not on conda-forge cmake .. -GNinja ^ -DCMAKE_INSTALL_PREFIX="%PREFIX%" ^ -DCMAKE_INSTALL_LIBDIR=lib ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_SHARED_LIBS=ON ^ -DAVIF_BUILD_TESTS=ON ^ -DAVIF_CODEC_AOM=ON ^ -DAVIF_CODEC_SVT=OFF ^ -DAVIF_CODEC_DAV1D=OFF ^ -DAVIF_CODEC_LIBGAV1=OFF if errorlevel 1 exit /b 1 ninja if errorlevel 1 exit /b 1 .\aviftest ..\tests\data\ if errorlevel 1 exit /b 1 ninja install if errorlevel 1 exit /b 1
mkdir build cd build if errorlevel 1 exit /b 1 :: Other codecs cannot be enabled because they are not on conda-forge cmake .. -GNinja ^ -DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_PREFIX_PATH:PATH="%LIBRARY_PREFIX%" ^ -DCMAKE_INSTALL_LIBDIR=lib ^ -DCMAKE_BUILD_TYPE=Release ^ -DBUILD_SHARED_LIBS=ON ^ -DAVIF_BUILD_TESTS=ON ^ -DAVIF_CODEC_AOM=ON ^ -DAVIF_CODEC_SVT=OFF ^ -DAVIF_CODEC_DAV1D=OFF ^ -DAVIF_CODEC_LIBGAV1=OFF if errorlevel 1 exit /b 1 ninja if errorlevel 1 exit /b 1 .\aviftest ..\tests\data\ if errorlevel 1 exit /b 1 ninja install if errorlevel 1 exit /b 1
Exclude profiler fiels from zip.
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.ilk -x *.idb cd scite
cd .. del/q scite.zip zip scite.zip scintilla\*.* scintilla\*\*.* scite\*.* scite\*\*.* scite\*\*\*.* scite\*\*\*\*.* -x *.o -x *.obj -x *.lib -x *.dll -x *.exe -x *.pdb -x *.res -x *.exp -x *.ncb -x *.sbr -x *.ilk -x *.idb -x *.dpsession cd scite
Support MSVS 2013 by setting environment variable MSVS_VERSION.
@echo off set PROTOC=%~dp0\depends\\protoc.exe set PROTOBUF=%~dp0\depends\protobuf-2.5.0 set GTEST=%~dp0\depends\gtest-1.7.0 set ZLIB=%~dp0\depends\zlib-1.2.8 set WTL80=%~dp0\depends\wtl80\ set GYP=%~dp0\depends\gyp call %gyp%\gyp.bat --depth %~dp0 -I build\common.gypi -G msvs_version=2012 python build_x86_x64_together.py
@echo off set PROTOC=%~dp0\depends\protoc.exe set PROTOBUF=%~dp0\depends\protobuf-2.5.0 set GTEST=%~dp0\depends\gtest-1.7.0 set ZLIB=%~dp0\depends\zlib-1.2.8 set WTL80=%~dp0\depends\wtl80\ set GYP=%~dp0\depends\gyp if not defined MSVS_VERSION set MSVS_VERSION=2012 call %gyp%\gyp.bat --depth %~dp0 -I build\common.gypi -G msvs_version=%MSVS_VERSION% python build_x86_x64_together.py
Use quotes around file names.
@echo off call monetdb-clients-config --internal rem must be aligned with the installation directory chosen in rem clients/src/python/test/Makefile.ag set testpath=%TSTSRCBASE%\..\python\test set PYTHONPATH=%testpath%;%PYTHONPATH% prompt # $t $g echo on python %testpath%/runtests.py
@echo off call monetdb-clients-config --internal rem must be aligned with the installation directory chosen in rem clients/src/python/test/Makefile.ag set testpath=%TSTSRCBASE%\..\python\test set PYTHONPATH=%testpath%;%PYTHONPATH% prompt # $t $g echo on python "%testpath%/runtests.py"
Update for new Avalon Framework version
@ECHO OFF set LIBDIR=lib set LOCALCLASSPATH=build/fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-cvs-20020806.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar java -cp %LOCALCLASSPATH% org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
@ECHO OFF set LIBDIR=lib set LOCALCLASSPATH=build/fop.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xml-apis.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xercesImpl-2.2.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\xalan-2.4.1.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\batik.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\avalon-framework-4.1.4.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jimi-1.0.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_core.jar set LOCALCLASSPATH=%LOCALCLASSPATH%;%LIBDIR%\jai_codec.jar java -cp %LOCALCLASSPATH% org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
Print the git diff for debug purposes in a test
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
if not exist .git exit 1 git describe --tags --dirty if errorlevel 1 exit 1 for /f "delims=" %%i in ('git describe') do set gitdesc=%%i if errorlevel 1 exit 1 echo "%gitdesc%" if not "%gitdesc%"=="1.8.1" exit 1 git status if errorlevel 1 exit 1 git diff if errorlevel 1 exit 1 set PYTHONPATH=. python -c "import conda_build; assert conda_build.__version__ == '1.8.1', conda_build.__version__" if errorlevel 1 exit 1
Stop doing "Test" builds for now
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Test set SessioName=Release set SessionOwner=AutoBuild rem ======================================================= rem Release variables rem ======================================================= set VersionName=%1 set InputProject=%2 set OutputDir=%3 set UAT=%4 rem ======================================================= rem Run UAT rem ======================================================= %UAT% -ScriptsForProject=%InputProject% BuildCookRun -project=%InputProject% -noP4 -clientconfig=%BuildMode% -serverconfig=%BuildMode% -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=%Platform% -targetplatform=%Platform% -build -cook -allmaps -unversionedcookedcontent -pak -prereqs -createreleaseversion=%VersionName% -distribution -nodebuginfo -compressed -stage -package -stagingdirectory=%OutputDir% -cmdline=" -Messaging" -addcmdline="-SessionOwner='%SessionOwner%' -SessionName='%SessioName%'"
@echo off rem ======================================================= rem Settings rem ======================================================= set Platform=Win64 set BuildMode=Development set SessioName=Release set SessionOwner=AutoBuild rem ======================================================= rem Release variables rem ======================================================= set VersionName=%1 set InputProject=%2 set OutputDir=%3 set UAT=%4 rem ======================================================= rem Run UAT rem ======================================================= %UAT% -ScriptsForProject=%InputProject% BuildCookRun -project=%InputProject% -noP4 -clientconfig=%BuildMode% -serverconfig=%BuildMode% -ue4exe=UE4Editor-Cmd.exe -utf8output -platform=%Platform% -targetplatform=%Platform% -build -cook -allmaps -unversionedcookedcontent -pak -prereqs -createreleaseversion=%VersionName% -distribution -nodebuginfo -compressed -stage -package -stagingdirectory=%OutputDir% -cmdline=" -Messaging" -addcmdline="-SessionOwner='%SessionOwner%' -SessionName='%SessioName%'"
Trim whitespace in version suffix
@ECHO OFF :: Output dotnet info dotnet --info SET number=00000%APPVEYOR_BUILD_NUMBER% SET STEELTOE_VERSION=1.1.0 SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_BRANCH%-%number:~-5% IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_TAG_NAME:~6,5% echo %STEELTOE_VERSION_SUFFIX% SET BUILD_TYPE=Release IF "%APPVEYOR_REPO_BRANCH%"=="master" COPY config\nuget-master.config .\nuget.config IF "%APPVEYOR_REPO_BRANCH%"=="dev" COPY config\nuget-dev.config .\nuget.config IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" COPY config\nuget.config .\nuget.config IF "%APPVEYOR_REPO_BRANCH%"=="dev" SET BUILD_TYPE=Debug
@ECHO OFF :: Output dotnet info dotnet --info SET number=00000%APPVEYOR_BUILD_NUMBER% SET STEELTOE_VERSION=1.1.0 SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_BRANCH%-%number:~-5% IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" SET STEELTOE_VERSION_SUFFIX=%APPVEYOR_REPO_TAG_NAME:~6,5% SET STEELTOE_VERSION_SUFFIX=%STEELTOE_VERSION_SUFFIX: =% echo %STEELTOE_VERSION_SUFFIX% SET BUILD_TYPE=Release IF "%APPVEYOR_REPO_BRANCH%"=="master" COPY config\nuget-master.config .\nuget.config IF "%APPVEYOR_REPO_BRANCH%"=="dev" COPY config\nuget-dev.config .\nuget.config IF NOT "%APPVEYOR_REPO_TAG_NAME%"=="" COPY config\nuget.config .\nuget.config IF "%APPVEYOR_REPO_BRANCH%"=="dev" SET BUILD_TYPE=Debug
Add a script to run the entire nofib suite
@ECHO OFF if not "%1" == "" goto continue for %%i in (imaginary) do for %%j in (yca\%%i\*.yca) do call %0 %%j goto end :continue echo Processing %1 firstify %1 -himl > %1.txt 2>&1 :end
Fix option used for msys2 installation
if not exist "C:\Windows\Temp\msys2.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe')" <NUL ) start /wait C:\Windows\Temp\msys2.exe --string A:\msys2-install.qs
if not exist "C:\Windows\Temp\msys2.exe" ( powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::TLS12; (New-Object System.Net.WebClient).DownloadFile('https://github.com/msys2/msys2-installer/releases/download/2020-07-20/msys2-x86_64-20200720.exe', 'C:\Windows\Temp\msys2.exe')" <NUL ) start /wait C:\Windows\Temp\msys2.exe --script A:\msys2-install.qs
Fix scripting mistake for launching UWP tests
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 /Framework:FrameworkUap10 bin\Release\Couchbase.Lite.Tests.UWP.build.appxrecipe /Logger:trx
@echo off msbuild /p:Configuration=Release /p:Platform=x64 Couchbase.Lite.Tests.UWP.csproj vstest.console.exe /InIsolation /Platform:x64 /Framework:FrameworkUap10 bin\x64\Release\Couchbase.Lite.Tests.UWP.build.appxrecipe /Logger:trx
Add rollback script for windows
echo off echo Set install parameter from ini file for /f "delims=" %%x in (wikijournals.ini) do (set "%%x") echo Delete Directory %HTMLDIR%\%WIKIDIR% rmdir %HTMLDIR%\%WIKIDIR% /S /Q mysql -u %DBUSER% -p%DBPASS% %DBNAME% -e "show tables" > tables.txt for /f %%i in (tables.txt) do ( echo delete %%i mysql -u %DBUSER% -p%DBPASS% %DBNAME% -e "drop table %%i" ) del tables.txt
Correct jar path for windows BAT
@ECHO OFF REM Taverna startup script REM distribution directory set TAVERNA_HOME=%~dp0 REM 300 MB memory, 140 MB for classes set ARGS=-Xmx300m -XX:MaxPermSize=140m REM Taverna system properties set ARGS=%ARGS% "-Dlog4j.configuration=file:///%TAVERNA_HOME%conf/log4j.properties" set ARGS=%ARGS% "-Djava.util.logging.config.file=%TAVERNA_HOME%conf/logging.properties" set ARGS=%ARGS% "-Dtaverna.app.startup=%TAVERNA_HOME%." java %ARGS% -jar "%TAVERNA_HOME%lib\taverna-command-line-0.1.1.jar" %*
@ECHO OFF REM Taverna startup script REM distribution directory set TAVERNA_HOME=%~dp0 REM 300 MB memory, 140 MB for classes set ARGS=-Xmx300m -XX:MaxPermSize=140m REM Taverna system properties set ARGS=%ARGS% "-Dlog4j.configuration=file:///%TAVERNA_HOME%conf/log4j.properties" set ARGS=%ARGS% "-Djava.util.logging.config.file=%TAVERNA_HOME%conf/logging.properties" set ARGS=%ARGS% "-Dtaverna.app.startup=%TAVERNA_HOME%." java %ARGS% -jar "%TAVERNA_HOME%lib\taverna-workbench-0.1.0-SNAPSHOT.jar" %*
Clear Zone.Identifier to allow depot_tools.zip bootstrap
@echo off :: Copyright (c) 2016 The Chromium Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*
@echo off :: Copyright (c) 2016 The Chromium Authors. All rights reserved. :: Use of this source code is governed by a BSD-style license that can be :: found in the LICENSE file. :: To allow this powershell script to run if it was a byproduct of downloading :: and unzipping the depot_tools.zip distribution, we clear the Zone.Identifier :: alternate data stream. This is equivalent to clicking the "Unblock" button :: in the file's properties dialog. echo.>"%~dp0\cipd.ps1:Zone.Identifier" powershell -NoProfile -ExecutionPolicy RemoteSigned -File "%~dp0\cipd.ps1" %*
Make sure we pass the configuration to the nested script.
@echo off setlocal set _projectName=CommandLine set _testProject=test\%_projectName%.tests.csproj set _analyzerTestProject=analyzer\%_projectName%.Analyzer.Test\%_projectName%.Analyzer.Test.csproj set _config=%1 if not defined _config ( set _config=Debug ) echo -------------------------- echo !!! Restoring packages !!! echo -------------------------- dotnet restore call build.cmd echo --------------------- echo !!! Running tests !!! echo --------------------- dotnet test --no-build -c %_config% %_testProject% dotnet test --no-build -c %_config% %_analyzerTestProject% endlocal @echo on
@echo off setlocal set _projectName=CommandLine set _testProject=test\%_projectName%.tests.csproj set _analyzerTestProject=analyzer\%_projectName%.Analyzer.Test\%_projectName%.Analyzer.Test.csproj set _config=%1 if not defined _config ( set _config=Debug ) echo -------------------------- echo !!! Restoring packages !!! echo -------------------------- dotnet restore call build.cmd %_config% echo --------------------- echo !!! Running tests !!! echo --------------------- dotnet test --no-build -c %_config% %_testProject% dotnet test --no-build -c %_config% %_analyzerTestProject% endlocal @echo on
Drop some options from the Windows build.
:: Setup a build directory. mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Configure, build, test, and install using `nmake`. cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DQUIET_MAKE=ON ^ -DDYNAMIC_ARCH=ON ^ -DBUILD_WITHOUT_LAPACK=OFF ^ -DSMP=ON ^ .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake check if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1
:: Setup a build directory. mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 :: Configure, build, test, and install using `nmake`. cmake -G "NMake Makefiles" ^ -DCMAKE_BUILD_TYPE=Release ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ -DDYNAMIC_ARCH=ON ^ -DBUILD_WITHOUT_LAPACK=OFF ^ .. if errorlevel 1 exit 1 nmake if errorlevel 1 exit 1 nmake check if errorlevel 1 exit 1 nmake install if errorlevel 1 exit 1
Change `Ninja finished` to `Test finished`
cd test if errorlevel 1 exit 1 mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 cmake .. ^ -GNinja ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_LIBRARY_PATH:PATH=%LIBRARY_PREFIX%\lib ^ -DCMAKE_VERBOSE_MAKEFILE=ON echo "CMake finished" if errorlevel 1 exit 1 echo "CMake okay" ninja echo "Ninja finished" if errorlevel 1 exit 1 echo "Ninja okay" test.exe echo "Ninja finished" if errorlevel 1 exit 1 echo "Ninja okay"
cd test if errorlevel 1 exit 1 mkdir build if errorlevel 1 exit 1 cd build if errorlevel 1 exit 1 cmake .. ^ -GNinja ^ -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ -DCMAKE_LIBRARY_PATH:PATH=%LIBRARY_PREFIX%\lib ^ -DCMAKE_VERBOSE_MAKEFILE=ON echo "CMake finished" if errorlevel 1 exit 1 echo "CMake okay" ninja echo "Ninja finished" if errorlevel 1 exit 1 echo "Ninja okay" test.exe echo "Test finished" if errorlevel 1 exit 1 echo "Test okay"
Patch for version 0.62 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.609" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.62" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Remove Windows 10 SDK requirement from the SharpGen batch script (this requirement is enforced with the Mapping files)
REM @ECHO OFF REM Run the generator from the current configuration setlocal pushd "%~dp0\Bin\%1" ECHO "%~dp0msdndoc.zip" xcopy /D /Y "%~dp0MSDNDoc.zip" . REM Find a VS 2017 installation with the C++ toolset installed. set InstallDir= for /f "usebackq tokens=*" %%i in (`..\..\..\..\..\External\vswhere\vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.Windows10SDK.14393 -property installationPath`) do ( set InstallDir=%%i ) set ToolsVersion= for /F %%A in ('type "%InstallDir%\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"') do ( set "ToolsVersion=%%A" ) set VCToolsInstallDir= if exist "%InstallDir%\VC\Tools\MSVC\%ToolsVersion%\" ( set "VCToolsInstallDir=%InstallDir%\VC\Tools\MSVC\%ToolsVersion%\" ) SharpGen.exe --doc --castxml ..\..\..\..\..\External\castxml\bin\castxml.exe ..\..\..\..\Mapping.xml --apptype %2 --vctools "%VCToolsInstallDir% set LOCALERROR = %ERRORLEVEL% xcopy /D /Y MSDNDoc.zip %~dp0 exit /B %LOCALERROR%
REM @ECHO OFF REM Run the generator from the current configuration setlocal pushd "%~dp0\Bin\%1" ECHO "%~dp0msdndoc.zip" xcopy /D /Y "%~dp0MSDNDoc.zip" . REM Find a VS 2017 installation with the C++ toolset installed. set InstallDir= for /f "usebackq tokens=*" %%i in (`..\..\..\..\..\External\vswhere\vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do ( set InstallDir=%%i ) set ToolsVersion= for /F %%A in ('type "%InstallDir%\VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt"') do ( set "ToolsVersion=%%A" ) set VCToolsInstallDir= if exist "%InstallDir%\VC\Tools\MSVC\%ToolsVersion%\" ( set "VCToolsInstallDir=%InstallDir%\VC\Tools\MSVC\%ToolsVersion%\" ) SharpGen.exe --doc --castxml ..\..\..\..\..\External\castxml\bin\castxml.exe ..\..\..\..\Mapping.xml --apptype %2 --vctools "%VCToolsInstallDir% set LOCALERROR = %ERRORLEVEL% xcopy /D /Y MSDNDoc.zip %~dp0 exit /B %LOCALERROR%
Update path to VS visualizers
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 14\Visualizers set BIN=%~dp0..\..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Collections.Immutable.dll" "%VISUALIZERS%" copy /y "%BIN%\Microsoft.DiaSymReader.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
@echo off set VISUALIZERS=%USERPROFILE%\Documents\Visual Studio 2015\Visualizers set BIN=%~dp0..\..\..\Binaries\Debug copy /y "%BIN%\Roslyn.DebuggerVisualizers.dll" "%VISUALIZERS%" copy /y "%BIN%\Roslyn.Test.PdbUtilities.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Reflection.Metadata.dll" "%VISUALIZERS%" copy /y "%BIN%\System.Collections.Immutable.dll" "%VISUALIZERS%" copy /y "%BIN%\Microsoft.DiaSymReader.dll" "%VISUALIZERS%" echo Close all VS instances to finish.
Patch for version 0.76 update
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.75" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
@echo off cls :start echo Starting server... "Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.76" -password "" -tcpLobby "149.202.51.185" 25565 echo. echo Restarting server... echo. goto start
Fix lib-acl-17.06 includes copying for Windows
@echo off rem ******************************************************************************************************************************* mkdir "%INSTALL_DIR%\src\obj" cd "%INSTALL_DIR%\src\obj" "%CK_MAKE%" -j %CK_HOST_CPU_NUMBER_OF_PROCESSORS% -f "%ORIGINAL_PACKAGE_DIR%\Makefile" %* set code=%errorlevel% if %code% equ 0 ( cd .. xcopy arm_compute ..\install\include /e /c /i /y xcopy tests ..\install\include\arm_compute /e /c /i /y ) cd "%INSTALL_DIR%" exit /b %code%
@echo off rem ******************************************************************************************************************************* mkdir "%INSTALL_DIR%\src\obj" cd "%INSTALL_DIR%\src\obj" "%CK_MAKE%" -j %CK_HOST_CPU_NUMBER_OF_PROCESSORS% -f "%ORIGINAL_PACKAGE_DIR%\Makefile" %* set code=%errorlevel% if %code% equ 0 ( cd .. xcopy arm_compute ..\install\include\arm_compute /e /c /i /y xcopy tests ..\install\include\arm_compute\tests /e /c /i /y ) cd "%INSTALL_DIR%" exit /b %code%
Clean up build debug blather
@ECHO OFF REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks REM COMPONENTS_VERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM --------------------------------------------------------------------------- IF "%1" == "" GOTO Usage SET BUILD_NUMBER=%1 ECHO BUILD_NUMBER=%BUILD_NUMBER% REM --------------------------------------------------------------------------- REM Build packages REM --------------------------------------------------------------------------- SET /P COMPONENTS_VERSION=<ver.txt ECHO COMPONENTS_VERSION=%COMPONENTS_VERSION% SET BUILD_VERSION=%COMPONENTS_VERSION%.%BUILD_NUMBER% ECHO BUILD_VERSION=%BUILD_VERSION% REM sanity checks: something is haywire in the TeamCity build. ECHO BUILD_NUMBER=%BUILD_NUMBER% ECHO COMPONENTS_VERSION=%COMPONENTS_VERSION% ECHO BUILD_VERSION=%BUILD_VERSION% ECHO These should end in .%BUILD_NUMBER%: ECHO COMBINE1=%COMPONENTS_VERSION%.%BUILD_NUMBER% ECHO COMBINE2=%COMPONENTS_VERSION% . %BUILD_NUMBER% call build-packages.cmd %BUILD_VERSION% GOTO :EOF :Usage ECHO USAGE: build_packages_teamcity.cmd (build-number) EXIT 1 GOTO :EOF ENDLOCAL
@ECHO OFF REM TeamCity chokes on the COMPONENTS_VERSION processing here, it thinks REM COMPONENTS_VERSION is required going into the build step when we would REM define it in the build step. SETLOCAL REM --------------------------------------------------------------------------- REM Check usage REM --------------------------------------------------------------------------- IF "%1" == "" GOTO Usage SET BUILD_NUMBER=%1 REM --------------------------------------------------------------------------- REM Build packages REM --------------------------------------------------------------------------- SET /P COMPONENTS_VERSION=<ver.txt SET BUILD_VERSION=%COMPONENTS_VERSION%.%BUILD_NUMBER% call build-packages.cmd %BUILD_VERSION% GOTO :EOF :Usage ECHO USAGE: build_packages_teamcity.cmd (build-number) EXIT 1 GOTO :EOF ENDLOCAL
Add release tool for windows
PATH=C:\python26;C:\progra~2\7-zip;%PATH% del /q /s dist\*.* python setup.py py2exe cd dist 7z d library.zip jinja2\* dns\* 'graphy\* 7z a namebench_for_Windows.zip -r * namebench -x -O 8.8.8.8 -t5 -o test.html start test.html cd ..
Change Aeron.Cluster to release to NuGet
@echo off pushd %~dp0.. SET nuget_source=https://api.nuget.org/v3/index.json SET myget_source=https://www.myget.org/F/aeron/api/v2/package del nupkgs\*.nupkg call dotnet pack src\Adaptive.Aeron\Adaptive.Aeron.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Agrona\Adaptive.Agrona.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Cluster\Adaptive.Cluster.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Archiver\Adaptive.Archiver.csproj -c Release --output ..\..\nupkgs call .\scripts\nuget pack .\driver\Aeron.Driver.nuspec -OutputDirectory nupkgs call dotnet nuget push nupkgs\Agrona.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Client.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Archiver.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Driver.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Cluster.*.nupkg -s %myget_source% popd
@echo off pushd %~dp0.. SET nuget_source=https://api.nuget.org/v3/index.json del nupkgs\*.nupkg call dotnet pack src\Adaptive.Aeron\Adaptive.Aeron.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Agrona\Adaptive.Agrona.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Cluster\Adaptive.Cluster.csproj -c Release --output ..\..\nupkgs call dotnet pack src\Adaptive.Archiver\Adaptive.Archiver.csproj -c Release --output ..\..\nupkgs call .\scripts\nuget pack .\driver\Aeron.Driver.nuspec -OutputDirectory nupkgs call dotnet nuget push nupkgs\Agrona.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Client.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Archiver.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Driver.*.nupkg -s %nuget_source% call dotnet nuget push nupkgs\Aeron.Cluster.*.nupkg -s %nuget_source% popd
Test runner batch now deletes empty log files.
@echo off ..\..\Tools\PhpNetTester.exe /compiler:..\..\Deployment\Debug\phpc.exe /php:..\..\Tools\PHP\php.exe del /s *.pdb *.exe EmittedNodes.csv LibraryCalls.csv UnknownCalls.csv __input.txt Debug.log > nul pause
@echo off ..\..\Tools\PhpNetTester.exe /compiler:..\..\Deployment\Debug\phpc.exe /php:..\..\Tools\PHP\php.exe del /s *.pdb *.exe EmittedNodes.csv LibraryCalls.csv UnknownCalls.csv __input.txt Debug.log > nul @echo Deleting empty log files... for /f "delims=" %%i in ('dir /s/b/a-d *.log') do if %~zi==0 del %%i pause
Remove a level of indirection
:: %~dp0 gives the dirname of the script cmd /c %~dp0common.bat
:: %~dp0 gives the dirname of the script cmd /c %~dp0install-cygwin-sshd.bat
Change to use latest nuget.
@if "%1" == "" goto :needpackage @if "%2" == "" goto :needfeed ..\packages\NuGet.CommandLine.3.3.0\tools\nuget push %1 -Source https://fuselabs.pkgs.visualstudio.com/DefaultCollection/_packaging/packages/nuget/v3/index.json -ApiKey %2 @goto end :needpackage @echo "You need to pass a package as first parameter" @goto end :needfeed @echo "You need to pass a feed name, either: fuse or fusesymbols" :end
@if "%1" == "" goto :needpackage @if "%2" == "" goto :needfeed ..\packages\NuGet.CommandLine.3.4.3\tools\nuget push %1 -Source https://fuselabs.pkgs.visualstudio.com/DefaultCollection/_packaging/packages/nuget/v3/index.json -ApiKey %2 @goto end :needpackage @echo "You need to pass a package as first parameter" @goto end :needfeed @echo "You need to pass a feed name, either: fuse or fusesymbols" :end
Update the build bat to support VS 2012.
@echo off goto menu :menu echo Build Project Generator: echo. echo [0] Clean echo [1] Visual C++ 2010 echo [2] Visual C++ 2008 echo [3] CodeLite echo [4] GNU Make echo. :choice set /P C="Choice: " if "%C%"=="4" goto gmake if "%C%"=="3" goto codelite if "%C%"=="2" goto vs2008 if "%C%"=="1" goto vs2010 if "%C%"=="0" goto clean :clean "premake4" --file=premake4.lua clean goto quit :vs2010 "premake4" --file=premake4.lua vs2010 goto quit :vs2008 "premake4" --file=premake4.lua vs2008 goto quit :codelite "premake4" --file=premake4.lua codelite goto quit :gmake "premake4" --file=premake4.lua gmake goto quit :quit pause :end
@echo off goto menu :menu echo Build Project Generator: echo. echo [0] Clean echo [1] Visual C++ 2010 echo [2] Visual C++ 2012 echo [3] CodeLite echo [4] GNU Make echo. :choice set /P C="Choice: " if "%C%"=="4" goto gmake if "%C%"=="3" goto codelite if "%C%"=="2" goto vs2012 if "%C%"=="1" goto vs2010 if "%C%"=="0" goto clean :clean "premake4" --file=premake4.lua clean goto quit :vs2010 "premake4" --file=premake4.lua vs2010 goto quit :vs2012 "premake4" --file=premake4.lua vs2012 goto quit :codelite "premake4" --file=premake4.lua codelite goto quit :gmake "premake4" --file=premake4.lua gmake goto quit :quit pause :end
Build taxon demo and bench list on $mol.
git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/taxon mol/app/users git commit -a -m "Update" && git push || git checkout master
git checkout gh-pages git merge master npm start mol mol/app/hello mol/app/supplies mol/app/habhub mol/app/todomvc mol/perf/render mol/perf/uibench mol/app/bench mol/app/bench/list/mol mol/app/taxon mol/app/taxon/demo mol/app/users git commit -a -m "Update" && git push || git checkout master
Add a check for 7zip
@echo off rem only if we are running from a checkout IF EXIST "%~dp0\.git" ( rem if dev_bundle is not present, get it IF NOT EXIST "%~dp0\dev_bundle" ( REM need `< con` so that we can run this file from Node REM (See http://stackoverflow.com/questions/9155289/calling-powershell-from-nodejs) PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\download-dev-bundle.ps1" < con ) rem if dev_bundle is the wrong version, remove it and get a new one PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\check-dev-bundle.ps1" < con IF errorlevel 1 ( rmdir /s /q "%~dp0\dev_bundle" PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\download-dev-bundle.ps1" < con ) ) SET NODE_PATH=%~dp0\dev_bundle\lib\node_modules "%~dp0\dev_bundle\bin\node.exe" "%~dp0\tools\main.js" %*
@echo off rem only if we are running from a checkout IF EXIST "%~dp0\.git" ( rem verify that we have 7zip in the path 7z.exe --help > con IF errorlevel 1 ( echo "Please install 7z.exe (7-Zip) and put it into your PATH" exit 1 ) rem if dev_bundle is not present, get it IF NOT EXIST "%~dp0\dev_bundle" ( REM need `< con` so that we can run this file from Node REM (See http://stackoverflow.com/questions/9155289/calling-powershell-from-nodejs) PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\download-dev-bundle.ps1" < con ) rem if dev_bundle is the wrong version, remove it and get a new one PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\check-dev-bundle.ps1" < con IF errorlevel 1 ( rmdir /s /q "%~dp0\dev_bundle" PowerShell.exe -executionpolicy ByPass -file "%~dp0\scripts\windows\download-dev-bundle.ps1" < con ) ) SET NODE_PATH=%~dp0\dev_bundle\lib\node_modules "%~dp0\dev_bundle\bin\node.exe" "%~dp0\tools\main.js" %*
Use node.js replace instead of rep
rd /s /q Client rd /s /q NodeJS rd /s /q Azure.NodeJS ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\ConnectorApi.json -outputDirectory ConnectorAPI -AddCredentials -ClientName ConnectorClient ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\StateAPI.json -outputDirectory StateApi -AddCredentials -ClientName StateClient cd ConnectorAPI ..\..\..\rep -r -find:"Microsoft.Bot.Connector.Models" -replace:"Microsoft.Bot.Connector" *.cs ..\..\..\rep -r -find:"using Models;" -replace:"" *.cs ..\..\..\rep -r -find:FromProperty -replace:From *.cs ..\..\..\rep -r -find:fromProperty -replace:from *.cs cd .. cd StateAPI ..\..\..\rep -r -find:"Microsoft.Bot.Connector.Models" -replace:"Microsoft.Bot.Connector" *.cs ..\..\..\rep -r -find:"using Models;" -replace:"" *.cs cd .. @echo !!!!! Please review ConversationsExtensions.cs and BotStateExtensions.cs for custom throw code pause
rd /s /q Client call npm install replace@0.3.0 ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\ConnectorApi.json -outputDirectory ConnectorAPI -AddCredentials -ClientName ConnectorClient ..\..\packages\autorest.0.16.0\tools\AutoRest -namespace Microsoft.Bot.Connector -input swagger\StateAPI.json -outputDirectory StateApi -AddCredentials -ClientName StateClient cd ConnectorAPI call ..\node_modules\.bin\replace "Microsoft.Bot.Connector.Models" "Microsoft.Bot.Connector" . -r --include="*.cs" call ..\node_modules\.bin\replace "using Models;" "" . -r --include="*.cs" call ..\node_modules\.bin\replace "FromProperty" "From" . -r --include="*.cs" call ..\node_modules\.bin\replace "fromProperty" "from" . -r --include="*.cs" cd .. cd StateAPI call ..\node_modules\.bin\replace "Microsoft.Bot.Connector.Models" "Microsoft.Bot.Connector" . -r --include="*.cs" call ..\node_modules\.bin\replace "using Models;" "" . -r --include="*.cs" cd .. @echo !!!!! Please review ConversationsExtensions.cs and BotStateExtensions.cs for custom throw code pause
Fix handling of spaces in plugin script on Windows
@echo off SETLOCAL enabledelayedexpansion IF DEFINED JAVA_HOME ( set JAVA=%JAVA_HOME%\bin\java.exe ) ELSE ( FOR %%I IN (java.exe) DO set JAVA=%%~$PATH:I ) IF NOT EXIST "%JAVA%" ( ECHO Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME 1>&2 EXIT /B 1 ) set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI TITLE Elasticsearch Plugin Manager ${project.version} SET path_props=-Des.path.home="%ES_HOME%" IF DEFINED CONF_DIR ( SET path_props=!path_props! -Des.path.conf="%CONF_DIR%" ) SET args=%* SET HOSTNAME=%COMPUTERNAME% "%JAVA%" %ES_JAVA_OPTS% !path_props! -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginCli" !args! ENDLOCAL
@echo off SETLOCAL enabledelayedexpansion IF DEFINED JAVA_HOME ( set JAVA="%JAVA_HOME%\bin\java.exe" ) ELSE ( FOR %%I IN (java.exe) DO set JAVA=%%~$PATH:I ) IF NOT EXIST %JAVA% ( ECHO Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME 1>&2 EXIT /B 1 ) set SCRIPT_DIR=%~dp0 for %%I in ("%SCRIPT_DIR%..") do set ES_HOME=%%~dpfI TITLE Elasticsearch Plugin Manager ${project.version} SET path_props=-Des.path.home="%ES_HOME%" IF DEFINED CONF_DIR ( SET path_props=!path_props! -Des.path.conf="%CONF_DIR%" ) SET args=%* SET HOSTNAME=%COMPUTERNAME% %JAVA% %ES_JAVA_OPTS% !path_props! -cp "%ES_HOME%/lib/*;" "org.elasticsearch.plugins.PluginCli" !args! ENDLOCAL
Fix bad windows batch file
set GO_ROOT=%~dp0\..\..\..\..\ set JRUBY_BASE=%GO_ROOT\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared:%GEM_HOME% set PATH=%JRUBY_BASE\bin:%PATH% %JRUBY_BASE%\bin\jruby.bat %*
set GO_ROOT=%~dp0\..\..\.. set JRUBY_BASE=%GO_ROOT%\tools\jruby-1.7.11 set SERVER_ROOT=%GO_ROOT%\server set RAILS_ROOT=%SERVER_ROOT%\webapp\WEB-INF\rails.new set GEM_HOME=%RAILS_ROOT%\vendor\bundle\jruby\1.9 set GEM_PATH=%JRUBY_BASE%\lib\ruby\gems\shared;%GEM_HOME% set PATH=%JRUBY_BASE%\bin;%PATH% %JRUBY_BASE%\bin\jruby.bat %*
Use the available python bin
python setup.py build python setup.py install --prefix=$PREFIX --single-version-externally-managed --record=record.txt
%PYTHON% setup.py build %PYTHON% setup.py install --prefix=$PREFIX --single-version-externally-managed --record=record.txt