Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Add a helper sync script | pushd %~dp0
setlocal
if "%2" == "" (
set source=%~dp0\Plugins
set dest=%1\Plugins
shift
) else (
set source=%1\Plugins
set dest=%2\Plugins
shift
shift
)
robocopy /mir /l %source% %dest% -xd Binaries -xd Resources -xd Intermediate
popd
| |
Fix golden reference in verible lint test | -lint_fatal -parse_fatal sv_file.sv
-lint_fatal -parse_fatal vlog_file.v
-lint_fatal -parse_fatal vlog05_file.v
| --lint_fatal --parse_fatal sv_file.sv
--lint_fatal --parse_fatal vlog_file.v
--lint_fatal --parse_fatal vlog05_file.v
|
Switch to using the latest v3.3 nuget.exe | @echo off
rem Optional batch file to quickly build with some defaults.
rem Alternatively, this batch file can be invoked passing msbuild parameters, like: build.cmd /v:detailed /t:Rebuild
cd %~dp0
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://www.nuget.org/nuget.exe' -OutFile '%CACHED_NUGET%'"
:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul
.nuget\nuget.exe update -self
:restore
rem Build script packages have no version in the path, so we install them to .nuget\packages to avoid conflicts with
rem solution/project packages.
IF NOT EXIST packages.config goto run
.nuget\NuGet.exe install packages.config -OutputDirectory .nuget\packages -ExcludeVersion
:run
rem NOTE: this needs to be a developer command prompt with MSBuild in the path.
msbuild build.proj /t:build,test,package /v:normal %1 %2 %3 %4 %5 %6 %7 %8 %9 | @echo off
rem Optional batch file to quickly build with some defaults.
rem Alternatively, this batch file can be invoked passing msbuild parameters, like: build.cmd /v:detailed /t:Rebuild
cd %~dp0
SETLOCAL
SET CACHED_NUGET=%LocalAppData%\NuGet\NuGet.exe
IF EXIST %CACHED_NUGET% goto copynuget
echo Downloading latest version of NuGet.exe...
IF NOT EXIST %LocalAppData%\NuGet md %LocalAppData%\NuGet
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest 'https://dist.nuget.org/win-x86-commandline/v3.3.0/nuget.exe' -OutFile '%CACHED_NUGET%'"
:copynuget
IF EXIST .nuget\nuget.exe goto restore
md .nuget
copy %CACHED_NUGET% .nuget\nuget.exe > nul
.nuget\nuget.exe update -self
:restore
rem Build script packages have no version in the path, so we install them to .nuget\packages to avoid conflicts with
rem solution/project packages.
IF NOT EXIST packages.config goto run
.nuget\NuGet.exe install packages.config -OutputDirectory .nuget\packages -ExcludeVersion
:run
rem NOTE: this needs to be a developer command prompt with MSBuild in the path.
msbuild build.proj /t:build,test,package /v:normal %1 %2 %3 %4 %5 %6 %7 %8 %9 |
Adjust to version change of Commons IO | @ECHO OFF
rem %~dp0 is the expanded pathname of the current script under NT
set LOCAL_FOP_HOME=
if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%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%\commons-io-1.0-dev.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
rem %~dp0 is the expanded pathname of the current script under NT
set LOCAL_FOP_HOME=
if "%OS%"=="Windows_NT" set LOCAL_FOP_HOME=%~dp0
set LIBDIR=%LOCAL_FOP_HOME%lib
set LOCALCLASSPATH=%LOCAL_FOP_HOME%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%\commons-io-dev-20030703.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
|
Fix path in thrift compiler tool | thrift-0.9.1.exe -gen java -strict -out src\main\java jdbc.thrift
pause | thrift-0.9.1.exe -gen java -strict -out ..\src\main\java jdbc.thrift
pause
|
Add batch file to run IronPython tests under TeamCity. | @echo off
setlocal
set _test_root=%DLR_ROOT%\Test
set _runner_sln=%_test_root%\TestRunner\TestRunner.sln
set _runner=%_test_root%\TestRunner\TestRunner\bin\Debug\TestRunner.exe
if not exist "%_runner%" call :build_runner
"%_runner%" "%_test_root%\IronPython.tests" /verbose /all /binpath:"%DLR_BIN%" /nunitoutput:"%_test_root%\TestResult.xml"
endlocal
goto:eof
:build_runner
msbuild %_runner_sln%
goto:eof
| |
Add missing psutil dependency for appveyor | "%sdkver%" -q -version:v7.0
call setenv /x64
rem install python packages
pip install --cache-dir c:/temp nose
pip install --cache-dir c:/temp Sphinx
pip install --cache-dir c:/temp coverage
pip install --cache-dir c:/temp numpy
pip install --cache-dir c:/temp pyside
pip install --cache-dir c:/temp git+http://github.com/enthought/traits.git#egg=traits
pip install --cache-dir c:/temp git+http://github.com/enthought/traitsui.git#egg=traitsui
pip install --cache-dir c:/temp git+http://github.com/enthought/apptools.git#egg=apptools
pip install --cache-dir c:/temp git+http://github.com/enthought/pyface.git#egg=pyface
pip install --cache-dir c:/temp git+http://github.com/enthought/envisage.git#egg=envisage
rem install mayavi
python setup.py develop
| "%sdkver%" -q -version:v7.0
call setenv /x64
rem install python packages
pip install --cache-dir c:/temp nose
pip install --cache-dir c:/temp Sphinx
pip install --cache-dir c:/temp coverage
pip install --cache-dir c:/temp numpy
pip install --cache-dir c:/temp pyside
pip install --cache-dir c:/temp psutil
pip install --cache-dir c:/temp git+http://github.com/enthought/traits.git#egg=traits
pip install --cache-dir c:/temp git+http://github.com/enthought/traitsui.git#egg=traitsui
pip install --cache-dir c:/temp git+http://github.com/enthought/apptools.git#egg=apptools
pip install --cache-dir c:/temp git+http://github.com/enthought/pyface.git#egg=pyface
pip install --cache-dir c:/temp git+http://github.com/enthought/envisage.git#egg=envisage
rem install mayavi
python setup.py develop
|
Build script and nuget now automatically grabs missing dependencies | call .\packages\psake.4.2.0.1\tools\psake.cmd build.ps1 %*
pause | set EnableNuGetPackageRestore=true
call .\packages\psake.4.2.0.1\tools\psake.cmd build.ps1 %*
pause |
Build with VS 15 dev tools | @echo off
setlocal enabledelayedexpansion
where /q msbuild
if "%ERRORLEVEL%" == "0" (
goto :SkipDeveloperSetup
)
set DeveloperCommandPrompt=%VS140COMNTOOLS%\VsDevCmd.bat
if not exist "%DeveloperCommandPrompt%" (
echo In order to build this repository, you either need 'msbuild' on the path or Visual Studio 2015 installed.
echo.
echo Visit this page to download:
echo.
echo https://go.microsoft.com/fwlink/?LinkId=691978^&clcid=0x409
exit /b 1
)
call "%DeveloperCommandPrompt%" || goto :BuildFailed
:SkipDeveloperSetup
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "& \"%~dp0build.ps1\" %*; exit $LastExitCode;"
exit /b %ERRORLEVEL%
:BuildFailed
echo Build failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1
| @echo off
setlocal enabledelayedexpansion
where /q msbuild
if "%ERRORLEVEL%" == "0" (
goto :SkipDeveloperSetup
)
set DeveloperCommandPrompt=%VS150COMNTOOLS%\VsDevCmd.bat
if not exist "%DeveloperCommandPrompt%" (
echo In order to build this repository, you either need 'msbuild' on the path or Visual Studio 2015 installed.
echo.
echo Visit this page to download:
echo.
echo https://go.microsoft.com/fwlink/?LinkId=691978^&clcid=0x409
exit /b 1
)
call "%DeveloperCommandPrompt%" || goto :BuildFailed
:SkipDeveloperSetup
powershell -NoProfile -NoLogo -ExecutionPolicy Bypass -Command "& \"%~dp0build.ps1\" %*; exit $LastExitCode;"
exit /b %ERRORLEVEL%
:BuildFailed
echo Build failed with ERRORLEVEL %ERRORLEVEL%
exit /b 1
|
Disable logger because it does not work with this preview version of vstest.console.exe | @echo off
call "..\VsDevCmd.cmd"
set platform="%1"
if "%1" == "AnyCPU" (
set platform="x86"
)
set vstest="%VSINSTALLDIR%\Common7\IDE\Extensions\TestPlatform\vstest.console.exe"
for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do (
if "%%~nxa"=="Magick.NET.Tests.dll" (
echo "Running tests from: %%~dpnxa"
%vstest% %%~dpnxa /platform:%platform% /TestAdapterPath:%%~dpa /logger:AppVeyor
if %errorlevel% neq 0 exit /b %errorlevel%
)
)
| @echo off
call "..\VsDevCmd.cmd"
set platform="%1"
if "%1" == "AnyCPU" (
set platform="x86"
)
set vstest="%VSINSTALLDIR%\Common7\IDE\Extensions\TestPlatform\vstest.console.exe"
for /r ..\..\Tests\Magick.NET.Tests\bin %%a in (*.dll) do (
if "%%~nxa"=="Magick.NET.Tests.dll" (
echo "Running tests from: %%~dpnxa"
%vstest% %%~dpnxa /platform:%platform% /TestAdapterPath:%%~dpa
if %errorlevel% neq 0 exit /b %errorlevel%
)
)
|
Remove that -o; everybody knows what's going on | # © 2013 the Mid Authors under the MIT license. See AUTHORS for the list of authors.
T := $(TARG)
TARG := cmd/$(T)/$(T)
ALL += $(TARG)
OFILES := $(OFILES:%=cmd/$(T)/%)
ALLO += $(OFILES)
LIBHFILES := $(LIBDEPS:%=include/%.h)
LIBDEPS := $(shell echo $(LIBDEPS) | awk '{ for(i = 1; i <= NF; i++) printf("lib/%s/%s.a ", $$i, $$i) }')
HFILES := $(HFILES:%=cmd/$(T)/%) $(LIBHFILES)
$(TARG): $(OFILES) $(LIBDEPS)
@echo ld -o $@
@$(LD) -o $@ $^ $(LDFLAGS)
$(OFILES): $(HFILES) $(LIBHFILES)
| # © 2013 the Mid Authors under the MIT license. See AUTHORS for the list of authors.
T := $(TARG)
TARG := cmd/$(T)/$(T)
ALL += $(TARG)
OFILES := $(OFILES:%=cmd/$(T)/%)
ALLO += $(OFILES)
LIBHFILES := $(LIBDEPS:%=include/%.h)
LIBDEPS := $(shell echo $(LIBDEPS) | awk '{ for(i = 1; i <= NF; i++) printf("lib/%s/%s.a ", $$i, $$i) }')
HFILES := $(HFILES:%=cmd/$(T)/%) $(LIBHFILES)
$(TARG): $(OFILES) $(LIBDEPS)
@echo ld $@
@$(LD) -o $@ $^ $(LDFLAGS)
$(OFILES): $(HFILES) $(LIBHFILES)
|
Convert script from Unicode to ANSI | SET SOL_DIR=%1
SET ALT_SOL_DIR=..\
IF "%SOL_DIR%" == "" SET SOL_DIR=%ALT_SOL_DIR%
IF "%SOL_DIR%" == "*Undefined*" SET SOL_DIR=%ALT_SOL_DIR%
echo SOL_DIR is %SOL_DIR%
SET PROJ_DIR=%2
SET ALT_PROJ_DIR=%SOL_DIR%\SoundMetrics.Aris.BeamWidths\
IF "%PROJ_DIR%" == "" SET PROJ_DIR=%ALT_PROJ_DIR%
IF "%PROJ_DIR%" == "*Undefined*" SET PROJ_DIR=%ALT_PROJ_DIR%
echo PROJ_DIR is %PROJ_DIR%
IF NOT EXIST "%PROJ_DIR%\generated" MKDIR "%PROJ_DIR%\generated"
for %%f in (BeamWidths_ARIS_Telephoto_48 BeamWidths_ARIS_Telephoto_96 BeamWidths_ARIS1800_96 BeamWidths_ARIS1800_1200_48 BeamWidths_ARIS3000_64 BeamWidths_ARIS3000_128) do ^
call %SOL_DIR%\run-fsi.cmd "%PROJ_DIR%ParseBeamWidthDefs.fsx" -- "%SOL_DIR%..\beam-width-metrics\%%f.h" "%PROJ_DIR%generated\%%f.cs"
dir "%PROJ_DIR%\generated\"
| SET SOL_DIR=%1
SET ALT_SOL_DIR=..\
IF "%SOL_DIR%" == "" SET SOL_DIR=%ALT_SOL_DIR%
IF "%SOL_DIR%" == "*Undefined*" SET SOL_DIR=%ALT_SOL_DIR%
echo SOL_DIR is %SOL_DIR%
SET PROJ_DIR=%2
SET ALT_PROJ_DIR=%SOL_DIR%\SoundMetrics.Aris.BeamWidths\
IF "%PROJ_DIR%" == "" SET PROJ_DIR=%ALT_PROJ_DIR%
IF "%PROJ_DIR%" == "*Undefined*" SET PROJ_DIR=%ALT_PROJ_DIR%
echo PROJ_DIR is %PROJ_DIR%
IF NOT EXIST "%PROJ_DIR%\generated" MKDIR "%PROJ_DIR%\generated"
for %%f in (BeamWidths_ARIS_Telephoto_48 BeamWidths_ARIS_Telephoto_96 BeamWidths_ARIS1800_96 BeamWidths_ARIS1800_1200_48 BeamWidths_ARIS3000_64 BeamWidths_ARIS3000_128) do ^
call %SOL_DIR%\run-fsi.cmd "%PROJ_DIR%ParseBeamWidthDefs.fsx" -- "%SOL_DIR%..\beam-width-metrics\%%f.h" "%PROJ_DIR%generated\%%f.cs"
dir "%PROJ_DIR%\generated\"
|
Fix typo in 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 -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 | :: Build tcplotter command-line utilities using cmake
:: Change working directory to archive directory
cd "%PKG_NAME%"
:: Create build directory
cd "src"
mkdir build
if errorlevel 1 exit 1
cd build
if errorlevel 1 exit 1
:: Build with cmake
cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 ..
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 |
Add support for specifying what benchmark suite you want to run | @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 -himlv > %1.txt 2>&1
:end
| @ECHO OFF
if "%1" == "goto" shift && goto continue
REM If they enter nothing, do all the benchmarks
set def=imaginary,spectral,real
if not "%1" == "" set def=%1
for %%i in (%def%) do for %%j in (yca\%%i\*.yca) do call %0 goto %%j
goto end
:continue
echo Processing %1
firstify %1 -himlv > %1.txt 2>&1
:end
|
Remove the byte order mark | REM QuantConnect Lean Engine -- Python Build Script.
del Python.Runtime.dll
REM Python Compile the Algorithm with all the files in current directory
nPython -m compileall -lq .
REM Copy to the Lean Algorithm Project
copy *.pyc ..\..\..\Launcher\bin\Debug >NUL
copy *.pyc ..\..\..\Launcher\bin\Release >NUL
copy *.pyc ..\..\..\Tests\bin\Debug >NUL | REM QuantConnect Lean Engine -- Python Build Script.
del Python.Runtime.dll
REM Python Compile the Algorithm with all the files in current directory
nPython -m compileall -lq .
REM Copy to the Lean Algorithm Project
copy *.pyc ..\..\..\Launcher\bin\Debug >NUL
copy *.pyc ..\..\..\Launcher\bin\Release >NUL
copy *.pyc ..\..\..\Tests\bin\Debug >NUL |
Delete pause command after generated visual studio solution | @echo off
Rem Generate visual studio project files
Rem This file is a part of llbc library
echo Visual Studio solution and project files generate tool.
echo For now supported Visual Studio versions:
echo vs2005
echo vs2008
echo vs2010
echo vs2012
echo vs2013
echo vs2015
set /p choose=Please input:
cd tools\premake && premake5_windows.exe %choose%
if errorlevel 1 (
echo Failed to generate Visual Studio solution and project files, error: %errorlevel%
pause
) else (
echo Succcess to generate Visual Studio solution and project files
echo Solution file path: build/%choose%/llbc_%choose%.sln
echo Press any key to open target directory...
pause >nul
explorer ..\..\build\%choose%
)
| @echo off
Rem Generate visual studio project files
Rem This file is a part of llbc library
echo Visual Studio solution and project files generate tool.
echo For now supported Visual Studio versions:
echo vs2005
echo vs2008
echo vs2010
echo vs2012
echo vs2013
echo vs2015
set /p choose=Please input:
cd tools\premake && premake5_windows.exe %choose%
if errorlevel 1 (
echo Failed to generate Visual Studio solution and project files, error: %errorlevel%
pause
) else (
echo Succcess to generate Visual Studio solution and project files
echo Solution file path: build/%choose%/llbc_%choose%.sln
explorer ..\..\build\%choose%
)
|
Update warning message with clear buildpack names | @echo off
if exist %1\web.config (
set message=Warning: We detected a Web.config in your app. This probably means that you want to use the hwc-buildpack. If you really want to use the binary-buildpack, you must specify a start command.
) else (
set message=Error: no start command specified during staging or launch
)
echo ---
echo default_process_types:
echo web: "cmd /c \"echo %message% ^>^&2 ^& exit 1\""
| @echo off
if exist %1\web.config (
set message=Warning: We detected a Web.config in your app. This probably means that you want to use the HWC Buildpack (run cf buildpacks for exact buildpack name). If you really want to use the Binary Buildpack, you must specify a start command.
) else (
set message=Error: no start command specified during staging or launch
)
echo ---
echo default_process_types:
echo web: "cmd /c \"echo %message% ^>^&2 ^& exit 1\""
|
Fix path to VirtualBox in PATH on Windows | REM Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
REM Installing virtualbox
choco install virtualbox -y
REM Killing the default adapter and DHCP server to avoid network issues down the road
VBoxManage dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
VBoxManage hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
REM Installing vagrant
choco install vagrant -y
| REM Installing Chocolatey
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
REM Installing virtualbox
choco install virtualbox -y
REM Killing the default adapter and DHCP server to avoid network issues down the road
"C:\Program Files\Oracle\VirtualBox\VBoxManage" dhcpserver remove --netname "HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter"
"C:\Program Files\Oracle\VirtualBox\VBoxManage" hostonlyif remove "VirtualBox Host-Only Ethernet Adapter"
REM Installing vagrant
choco install vagrant -y
|
Enable zlib in the Windows build | @ECHO off
IF NOT "x%1" == "x" GOTO :%1
GOTO :tiny
:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -H. -Bbuild
GOTO :build
:tiny
ECHO "Building tiny"
cmake -H. -Bbuild
GOTO :build
:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end
:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end
:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end
:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..
:end
| @ECHO off
IF NOT "x%1" == "x" GOTO :%1
GOTO :tiny
:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild
GOTO :build
:tiny
ECHO "Building tiny"
cmake -H. -Bbuild
GOTO :build
:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end
:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end
:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end
:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..
:end
|
Test set CXX14 for win build | "%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
| %SRC_DIR%>set "CXX_STD=CXX14"
%SRC_DIR%>set "CXX14STD=-std=c++1y"
"%R%" CMD INSTALL --build .
IF %ERRORLEVEL% NEQ 0 exit 1
|
Check the Jeka jar is actually present at JEKA_HOME | @echo off
@rem Change here the default JVM options
@rem SET JEKA_OPTS == ""
@rem set terminal encoding to utf-8
chcp 65001 > nul
if not "%JEKA_JDK%" == "" set "JAVA_HOME=%JEKA_JDK%"
if "%JAVA_HOME%" == "" set "JAVA_CMD=java"
if not "%JAVA_HOME%" == "" set "JAVA_CMD=%JAVA_HOME%\bin\java"
if exist %cd%\jeka\boot set "LOCAL_BUILD_DIR=.\jeka\boot\*;"
if "%JEKA_HOME%" == "" set "JEKA_HOME=%~dp0"
set "COMMAND="%JAVA_CMD%" %JEKA_OPTS% -cp "%LOCAL_BUILD_DIR%%JEKA_HOME%\dev.jeka.jeka-core.jar" dev.jeka.core.tool.Main %*"
if not "%JEKA_ECHO_CMD%" == "" (
@echo on
echo %COMMAND%
@echo off)
%COMMAND%
| @echo off
@rem Change here the default JVM options
@rem SET JEKA_OPTS == ""
@rem set terminal encoding to utf-8
chcp 65001 > nul
if not "%JEKA_JDK%" == "" set "JAVA_HOME=%JEKA_JDK%"
if "%JAVA_HOME%" == "" set "JAVA_CMD=java"
if not "%JAVA_HOME%" == "" set "JAVA_CMD=%JAVA_HOME%\bin\java"
if exist %cd%\jeka\boot set "LOCAL_BUILD_DIR=.\jeka\boot\*;"
if "%JEKA_HOME%" == "" set "JEKA_HOME=%~dp0"
rem Ensure that the Jeka jar is actually in JEKA_HOME
if not exist %JEKA_HOME%\dev.jeka.jeka-core.jar (
echo Could not find "dev.jeka.jeka-core.jar" in "%JEKA_HOME%"
echo Please ensure JEKA_HOME points to the correct directory
echo or that the distrib.zip file has been extracted fully
rem Pause before exiting so the user can read the message first
pause
exit /b 1
)
set "COMMAND="%JAVA_CMD%" %JEKA_OPTS% -cp "%LOCAL_BUILD_DIR%%JEKA_HOME%\dev.jeka.jeka-core.jar" dev.jeka.core.tool.Main %*"
if not "%JEKA_ECHO_CMD%" == "" (
@echo on
echo %COMMAND%
@echo off)
%COMMAND%
|
Add missing set commands to commented-out code | @echo off
rem config.bat: master configuration file for the batch files
rem Running this command directly has no effect,
rem but you can tweak the settings to your liking.
rem Set the amount of RAM available to the command line tools.
set JFLAGS=-Xmx512m
rem Set the NO_UPDATE_CHECK flag to skip the update check.
rem NO_UPDATE_CHECK=1
rem If you are behind a proxy server, the host name and port must be set.
set PROXY_HOST=
set PROXY_PORT=
rem If your CLASSPATH already includes the needed classes,
rem you can set the SCIFIO_DEVEL environment variable to
rem disable the required JAR library checks.
rem SCIFIO_DEVEL=1
| @echo off
rem config.bat: master configuration file for the batch files
rem Running this command directly has no effect,
rem but you can tweak the settings to your liking.
rem Set the amount of RAM available to the command line tools.
set JFLAGS=-Xmx512m
rem Set the NO_UPDATE_CHECK flag to skip the update check.
rem set NO_UPDATE_CHECK=1
rem If you are behind a proxy server, the host name and port must be set.
set PROXY_HOST=
set PROXY_PORT=
rem If your CLASSPATH already includes the needed classes,
rem you can set the SCIFIO_DEVEL environment variable to
rem disable the required JAR library checks.
rem set SCIFIO_DEVEL=1
|
Add batch file for project creation | @echo off
echo ===========================================================================
echo 1. Create bower.json, package.json
echo 2. Download gulpfile.js
echo 3. Make directories
echo.
pause && npm init && bower init && ^
npm install gulp gulp-sass gulp-jade gulp-shell gulp-coffee && ^
curl -O https://raw.githubusercontent.com/PixxxeL/regular-gulpfile/master/gulpfile.js && ^
mkdir jade html coffee js sass css img
exit 0
| |
Improve bat not accepting enter first loop | @echo off
SET STATUS=,
:START:
python.exe mcedit.py
ECHO.
ECHO ^|-----------------^|
ECHO ^|Mcedit Terminated^|
ECHO ^|-----------------^|
ECHO.
SET /P K=Press R or Enter to restart MCEdit%STATUS% any other key to exit:
IF /I %K%==R GOTO CLEAR
GOTO EXIT
:CLEAR:
CLS
SET STATUS= again,
GOTO START
:EXIT: | @echo off
SET STATUS=,
:START:
python.exe mcedit.py
ECHO.
ECHO ^|-----------------^|
ECHO ^|Mcedit Terminated^|
ECHO ^|-----------------^|
ECHO.
SET K==R
SET /P K=Press R or Enter to restart MCEdit%STATUS% any other key to exit:
IF /I %K%==R GOTO CLEAR
GOTO EXIT
:CLEAR:
CLS
SET STATUS= again,
GOTO START
:EXIT: |
Add git status debug output to test | if not exist .git exit 1
git describe
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
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
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
|
Add toolset as commandline parameter | powershell -Command "(gc .build/projects/vs2015/unit_test.vcxproj) -replace '<ExceptionHandling>false', '<ExceptionHandling>Sync' | Out-File -encoding UTF8 .build/projects/vs2015/unit_test.vcxproj"
powershell -Command "(gc .build/projects/vs2015/unit_test.vcxproj) -replace '<RuntimeTypeInfo>false', '<RuntimeTypeInfo>true' | Out-File -encoding UTF8 .build/projects/vs2015/unit_test.vcxproj" | powershell -Command "(gc .build/projects/%1/unit_test.vcxproj) -replace '<ExceptionHandling>false', '<ExceptionHandling>Sync' | Out-File -encoding UTF8 .build/projects/%1/unit_test.vcxproj"
powershell -Command "(gc .build/projects/%1/unit_test.vcxproj) -replace '<RuntimeTypeInfo>false', '<RuntimeTypeInfo>true' | Out-File -encoding UTF8 .build/projects/%1/unit_test.vcxproj" |
Fix pathname of patch file | @echo off
if exist src\fscanner.l goto dir_okay
echo !!!! Must run this batch file from the main source directory!
exit
:dir_okay
echo ---- Start by patching the ylwrap script to avoid problems
echo with "ln -s":
patch -p1 -i contrib/msdos/ylwrap.pat
echo ---- Now configure and make it.
echo -- NOTE --: this assumes you have pdcurses installed!
echo -- NOTE --: Will be using '-f' mode of flex, for faster scanning
bash configure
make CURSES_LIBS=-lpdcurses LFLAGS="-f8B"
echo ---- You may now call "make install", if desired.
echo -- DONE --
| @echo off
if exist src\fscanner.l goto dir_okay
echo !!!! Must run this batch file from the main source directory!
exit
:dir_okay
echo ---- Start by patching the ylwrap script to avoid problems
echo with "ln -s":
patch -p1 -i packages/MSDOS/ylwrap.pat
echo ---- Now configure and make it.
echo -- NOTE --: this assumes you have pdcurses installed!
echo -- NOTE --: Will be using '-f' mode of flex, for faster scanning
bash configure
make CURSES_LIBS=-lpdcurses LFLAGS="-f8B"
echo ---- You may now call "make install", if desired.
echo -- DONE --
|
Add other dlls to copy for release. Fix libstc++-6.dll not being found as requires quotations | @call set_vars.bat
copy %QTPATH%\Qt5Charts.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Core.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Gui.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Network.dll %ROOTPATH%\release\
copy %QTPATH%\Qt5Widgets.dll %ROOTPATH%\release\
copy %QTPATH%\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %QTPATH%\libstdc++-6.dll %ROOTPATH%\release\
copy %QTPATH%\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy %QTPATH%\libwinpthread-1.dll %ROOTPATH%\release\
@if not "%RUNALL%"=="1" pause
| @call set_vars.bat
copy %QTDIR%\5.8\mingw53_32\Qt5Charts.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\Qt5Core.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\Qt5Gui.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\Qt5Network.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\Qt5Widgets.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\bin\libgcc_s_dw2-1.dll %ROOTPATH%\release\
copy "%QTDIR%\5.8\mingw53_32\bin\libstdc++-6.dll" %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\bin\libwinpthread-1.dll %ROOTPATH%\release\
copy %QTDIR%\5.8\mingw53_32\plugins\iconengines\qsvgicon.dll %ROOTPATH%\release\iconengines\qsvgicon.dll
copy %QTDIR%\5.8\mingw53_32\plugins\imageformats\qsvg.dll %ROOTPATH%\release\imageformats\qsvg.dll
copy %QTDIR%\5.8\mingw53_32\plugins\platforms\qwindows.dll %ROOTPATH%\release\platforms\qwindows.dll
@if not "%RUNALL%"=="1" pause
|
Add a Stack build script for Windows | @rem Change the current directory to the one containing this script
@cd %~dp0
@rem Build Hadrian and dependencies
@stack build
@rem Run Hadrian in GHC top directory forwarding additional user arguments
@stack exec hadrian -- --lint --directory ".." %*
| |
Copy the necessary Visual C++ Runtime files into the ZIP archive. | @echo off
rem Repack the installer contents into a ZIP archive.
mkdir .\unpacked
msiexec /a CormanLispInstaller.msi /qn TARGETDIR="%~dp0unpacked"
del CormanLispBinaries.zip
powershell Compress-Archive -Path \"%~dp0unpacked\Corman Lisp\" -DestinationPath \"%~dp0CormanLispBinaries.zip\"
rd /s /q .\unpacked
| @echo off
rem Repack the installer contents into a ZIP archive.
mkdir .\unpacked
msiexec /a CormanLispInstaller.msi /qn TARGETDIR="%~dp0unpacked"
move ".\unpacked\System\*" ".\unpacked\Corman Lisp\"
del CormanLispBinaries.zip
rem rem Visual C++ Runtime DLL files and Universal CRT files Local Deployment
rem copy "%VS140COMNTOOLS%..\..\VC\redist\x86\Microsoft.VC140.CRT\*.dll" ".\unpacked\Corman Lisp\"
rem copy "%VS140COMNTOOLS%..\..\VC\redist\x86\Microsoft.VC140.MFC\*.dll" ".\unpacked\Corman Lisp\"
rem copy "%VS140COMNTOOLS%..\..\VC\redist\x86\Microsoft.VC140.MFCLOC\*.dll" ".\unpacked\Corman Lisp\"
rem rem Visual Studio 2015 only
rem if exist "%SystemRoot%\SysWOW64\" (
rem copy "%SystemRoot%\SysWOW64\mfc140.dll" ".\unpacked\Corman Lisp\"
rem copy "%SystemRoot%\SysWOW64\mfcm140.dll" ".\unpacked\Corman Lisp\"
rem ) else (
rem copy "%SystemRoot%\System32\mfc140.dll" ".\unpacked\Corman Lisp\"
rem copy "%SystemRoot%\System32\mfcm140.dll" ".\unpacked\Corman Lisp\"
rem )
rem rem Universal C Runtime
rem if exist "%ProgramFiles(x86)%\" (
rem copy "%ProgramFiles(x86)%\Windows Kits\10\Redist\ucrt\DLLs\x86\*.dll" ".\unpacked\Corman Lisp\"
rem ) else (
rem copy "%ProgramFiles%\Windows Kits\10\Redist\ucrt\DLLs\x86\*.dll" ".\unpacked\Corman Lisp\"
rem )
powershell Compress-Archive -Path \"%~dp0unpacked\Corman Lisp\" -DestinationPath \"%~dp0CormanLispBinaries.zip\"
rd /s /q .\unpacked
|
Update perl module version to be built | @echo off
set drive=%~dp0
set drivep=%drive%
set PERLVER=5.20.3.1
set PERLDIR=%drivep%\%ARCH%\perl
set RELVERSION=3.3.0_01
if #%drive:~-1%# == #\# set drivep=%drive:~0,-1%
set PATH=%PERLDIR%\perl\site\bin;%PERLDIR%\perl\bin;%PERLDIR%\c\bin;%PATH%
| @echo off
set drive=%~dp0
set drivep=%drive%
set PERLVER=5.20.3.1
set PERLDIR=%drivep%\%ARCH%\perl
set RELVERSION=3.3.0_02
if #%drive:~-1%# == #\# set drivep=%drive:~0,-1%
set PATH=%PERLDIR%\perl\site\bin;%PERLDIR%\perl\bin;%PERLDIR%\c\bin;%PATH%
|
Update lit version to fix windows build | @ECHO off
@SET LIT_VERSION=1.1.4
IF NOT "x%1" == "x" GOTO :%1
:luvit
IF NOT EXIST lit.exe CALL make.bat lit
ECHO "Building luvit"
lit.exe make
GOTO :end
:lit
ECHO "Building lit"
PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/raw/%LIT_VERSION%/get-lit.ps1'))"
GOTO :end
:test
IF NOT EXIST luvit.exe CALL make.bat luvit
ECHO "Testing luvit"
SET LUVI_APP=.
luvit.exe tests\run.lua
SET "LUVI_APP="
GOTO :end
:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe
IF EXIST lit.exe DEL /F /Q lit.exe
:end
| @ECHO off
@SET LIT_VERSION=1.1.8
IF NOT "x%1" == "x" GOTO :%1
:luvit
IF NOT EXIST lit.exe CALL make.bat lit
ECHO "Building luvit"
lit.exe make
GOTO :end
:lit
ECHO "Building lit"
PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://github.com/luvit/lit/raw/%LIT_VERSION%/get-lit.ps1'))"
GOTO :end
:test
IF NOT EXIST luvit.exe CALL make.bat luvit
ECHO "Testing luvit"
SET LUVI_APP=.
luvit.exe tests\run.lua
SET "LUVI_APP="
GOTO :end
:clean
IF EXIST luvit.exe DEL /F /Q luvit.exe
IF EXIST lit.exe DEL /F /Q lit.exe
:end
|
Fix pipenv addition to PATH when PATH contains parenthsis. | @echo off
chcp 65001 > NUL
set PIPENV_VENV_IN_PROJECT=1
python --version > NUL 2>&1
if %ERRORLEVEL% neq 0 (
echo Cannot find Python executable, make sure it is installed and added to your PATH.
pause
exit /B 0
)
python -c "import pipenv" > NUL 2>&1
if %ERRORLEVEL% neq 0 (
python -m pip install --user pipenv
)
pipenv --version > NUL 2>&1
if %ERRORLEVEL% neq 0 (
echo Adding pipenv to PATH...
for /F %%p IN ('python -m site --user-site') do set path_pipenv=%%p
set PATH=%PATH%;%path_pipenv:site-packages=Scripts%
)
if not exist ".venv" ( pipenv --bare install )
pipenv run python3 -c "exit(__import__('discord').opus.is_loaded())" > NUL 2>&1
if %ERRORLEVEL% equ 0 (
echo Cannot find libopus on your system, make sure it is installed.
pause
exit /B 0
)
del /Q panda.log
pipenv run python panda.py
pause | @echo off
SETLOCAL EnableDelayedExpansion
chcp 65001 > NUL
set PIPENV_VENV_IN_PROJECT=1
python --version > NUL 2>&1
if %ERRORLEVEL% neq 0 (
echo Cannot find Python executable, make sure it is installed and added to your PATH.
pause
exit /B 0
)
python -c "import pipenv" > NUL 2>&1
if %ERRORLEVEL% neq 0 (
python -m pip install --user pipenv
)
pipenv --version > NUL 2>&1
if %ERRORLEVEL% neq 0 (
echo Adding pipenv to PATH...
for /F %%p IN ('python -m site --user-site') do set path_pipenv=%%p
set PATH=!PATH!;!path_pipenv:site-packages=Scripts!
)
if not exist ".venv" ( pipenv --bare install )
pipenv run python3 -c "exit(__import__('discord').opus.is_loaded())" > NUL 2>&1
if %ERRORLEVEL% equ 0 (
echo Cannot find libopus on your system, make sure it is installed.
pause
exit /B 0
)
del /Q panda.log
pipenv run python panda.py
pause |
Add the logic for the Windows script | @echo off
setlocal
| @echo off
setlocal
set "output=nul"
set "times=1"
:help
:parseArgs
if "%~1" == "" goto main
if /i "%~1" == "-?" goto help
if /i "%~1" == "-h" goto help
if /i "%~1" == "--help" goto help
if /i "%~1" == "-t" (
set "times=%~2"
shift
)
if /i "%~1" == "--times" (
set "times=%~2"
shift
)
if /i "%~1" == "-o" (
set "output=%~2"
shift
)
if /i "%~1" == "--output" (
set "output=%~2"
shift
)
shift
:curl
@powershell -NoProfile "iwr %~1 -OutFile %~2" 2> nul
goto :eof
:downloadPackage
set "url=https://www.nuget.org/api/v2/package/%~1"
call :curl "%url%" %2
goto :eof
:main
for /l %%i in (1, 1, %times%) do (
call :downloadPackage "%package%" "%output%"
)
|
Use MSVC import lib for MSVC DLL for Fluidsynth in MSVC build. | scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=1 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=1 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4
| scons withMSVC=1 custom=custom-msvc.py useJack=0 buildRelease=1 buildCsoundVST=1 buildvst4cs=1 buildInterfaces=1 buildCsoundAC=1 buildJavaWrapper=1 useOSC=0 buildPythonOpcodes=1 buildLoris=0 buildStkOpcodes=1 buildWinsound=1 noFLTKThreads=0 noDebug=1 buildPDClass=0 buildVirtual=1 buildCsound5GUI=1 buildTclcsound=1 buildLua=1 useDouble=1 dynamicCsoundLibrary=1 buildCSEditor=1 %1 %2 %3 %4
|
Add build script for windows | set CONDA_LOC=C:\Users\mcraig\AppData\Local\Continuum\Anaconda\Scripts\
set CMD_IN_ENV=cmd /E:ON /V:ON /C %CONDA_LOC%obvci_appveyor_python_build_env.cmd
conda config --add channels astropy
python affiliate-builder\build_recipes.py
for /F "tokens=*" %%A in (.\build_order.txt) do (
cd bdist_conda\%%A
python setup.py bdist_conda
cd ..\..
)
| |
Add skip existing to appveyor. | cd conda-skeletons
conda install conda-build anaconda-client
conda config --add channels matsci
conda config --set anaconda_upload yes
FOR %%A IN (ase latexcodec pybtex spglib pyhull pymatgen pymatgen-db seekpath) DO conda build --user matsci %%A
cd ..
| cd conda-skeletons
conda install conda-build anaconda-client
conda config --add channels matsci
conda config --set anaconda_upload yes
FOR %%A IN (ase latexcodec pybtex spglib pyhull pymatgen pymatgen-db seekpath) DO conda build --skip-existing --user matsci %%A
cd ..
|
Update command line for new version of signtool | @echo off
call "%~dp0\SetVsEnv.bat" x86
for /r "%~dp0\..\" %%i in (*.sys) do "signtool.exe" sign /f "%~dp0\VirtIOTestCert.pfx" "%%i"
for /r "%~dp0\..\" %%i in (*.cat) do "signtool.exe" sign /f "%~dp0\VirtIOTestCert.pfx" "%%i"
| @echo off
call "%~dp0\SetVsEnv.bat" x86
for /r "%~dp0\..\" %%i in (*.sys) do "signtool.exe" sign /fd SHA256 /f "%~dp0\VirtIOTestCert.pfx" "%%i"
for /r "%~dp0\..\" %%i in (*.cat) do "signtool.exe" sign /fd SHA256 /f "%~dp0\VirtIOTestCert.pfx" "%%i"
|
Fix auto-sync on start for Windows. | @echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
echo You must put a copy of depot_tools in %~dp0..\depot_tools
echo Did you read the instructions carefully??
goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac %*
| @echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
echo You must put a copy of depot_tools in %~dp0..\depot_tools
echo Did you read the instructions carefully??
goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
cd /d %~dp0
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac %*
|
Remove export from windows script. | export set "JAVA_HOME_CONDA_BACKUP=%JAVA_HOME%"
export set "JAVA_HOME=%CONDA_PREFIX%\Library"
| set "JAVA_HOME_CONDA_BACKUP=%JAVA_HOME%"
set "JAVA_HOME=%CONDA_PREFIX%\Library"
|
Add NuGet push to NuGet build script. | NuGet.exe pack ../Springboard365.Tools.CommandLine.Core.csproj -Build -symbols
pause | NuGet.exe pack ../Springboard365.Tools.CommandLine.Core.csproj -Build -symbols
NuGet.exe push *.nupkg
pause |
Fix path to dummy pvlist file | REM @echo off
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat
%HIDEWINDOW% h
set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255
set PYTHONUNBUFFERED=TRUE
set MYDIRGATE=%MYDIRBLOCK%..\..\..\gateway\master
if exist "%ICPSETTINGSDIR%/gwblock.pvlist" (
set GWBLOCK_PVLIST=%ICPSETTINGSDIR%/gwblock.pvlist
) else (
set GWBLOCK_PVLIST=%MYDIRGATE%\gwblock_dummy.pvlist
)
set MYDIRVC=%MYDIRBLOCK%..\..\ConfigVersionControl\master
%PYTHONW% %MYDIRBLOCK%BlockServer\block_server.py -od %MYDIRBLOCK%..\..\..\iocstartup -sd %MYDIRBLOCK%..\..\..\schema\configurations -cd %ICPCONFIGROOT% -pv %GWBLOCK_PVLIST%
| REM @echo off
set MYDIRBLOCK=%~dp0
call %MYDIRBLOCK%..\..\..\config_env_base.bat
%HIDEWINDOW% h
set EPICS_CAS_INTF_ADDR_LIST=127.0.0.1
set EPICS_CAS_BEACON_ADDR_LIST=127.255.255.255
set PYTHONUNBUFFERED=TRUE
set MYDIRGATE=%MYDIRBLOCK%..\..\..\gateway
if exist "%ICPSETTINGSDIR%/gwblock.pvlist" (
set GWBLOCK_PVLIST=%ICPSETTINGSDIR%/gwblock.pvlist
) else (
set GWBLOCK_PVLIST=%MYDIRGATE%\gwblock_dummy.pvlist
)
set MYDIRVC=%MYDIRBLOCK%..\..\ConfigVersionControl\master
%PYTHONW% %MYDIRBLOCK%BlockServer\block_server.py -od %MYDIRBLOCK%..\..\..\iocstartup -sd %MYDIRBLOCK%..\..\..\schema\configurations -cd %ICPCONFIGROOT% -pv %GWBLOCK_PVLIST%
|
Fix example paths in batch file. | ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>
::Set the path below as you need and then run this bat to copy the files and make them debuggeable
::SET KSPPATH=C:\work\builds\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
::SET KSPPATH2=C:\work\builds\Kerbal Space Program2 | ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>
::Set the path below as you need and then run this bat to copy the files and make them debuggeable
::SET KSPPATH=C:\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
::SET KSPPATH2=C:\Kerbal Space Program2 |
Fix to windows build script | @echo off
:: Author: Mark Gottscho <mgottscho@ucla.edu>
echo Building X-Mem for Windows x86-64...
:: Do a little trick to ensure build datetime are correct
:: DO NOT remove this code -- otherwise X-Mem will fail to build.
set build_datetime=%DATE% %TIME%
echo #ifndef __BUILD_DATETIME_H>src\include\build_datetime.h
echo #define __BUILD_DATETIME_H>>src\include\build_datetime.h
echo #define BUILD_DATETIME "%build_datetime%">>src\include\build_datetime.h
echo #endif>>src\include\build_datetime.h
:: Build
call scons -f SConstruct_win_x64
:: Check if build was successful
if ERRORLEVEL 1 goto buildFailure
:: Copy executable
copy build\win\release\xmem.exe .\xmem.exe
echo Done! The executable is at the top of the project tree: xmem.exe
exit /B 0
:buildFailure
echo X-Mem for Windows build FAILED.
exit /B 1
| @echo off
:: Author: Mark Gottscho <mgottscho@ucla.edu>
set ARCH=%1
echo Building X-Mem for Windows on %ARCH%...
:: Do a little trick to ensure build datetime are correct
:: DO NOT remove this code -- otherwise X-Mem will fail to build.
set build_datetime=%DATE% %TIME%
echo #ifndef __BUILD_DATETIME_H>src\include\build_datetime.h
echo #define __BUILD_DATETIME_H>>src\include\build_datetime.h
echo #define BUILD_DATETIME "%build_datetime%">>src\include\build_datetime.h
echo #endif>>src\include\build_datetime.h
:: Build
call scons -f SConstruct_win_%ARCH%
:: Check if build was successful
if ERRORLEVEL 1 goto buildFailure
:: Copy executable
copy build\win\%ARCH%\release\xmem.exe .\xmem.exe
echo Done! The executable is at the top of the project tree: xmem.exe
exit /B 0
:buildFailure
echo X-Mem for Windows build FAILED.
exit /B 1
|
Update to use latest KuduScript | @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/3362e1a069445bc83767cd41bb1160d239cfac7b
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0
| @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/cf97bbbb26b0442de8cafa99275e3ea8fedf8849
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0
|
Add Batch File PackageRestore tools | @Echo off
Title %CD% - Restore Clangbuilder Packages
PowerShell -NoProfile -NoLogo -ExecutionPolicy unrestricted -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = '';& '%~dp0RestorePackages.ps1' %*" | |
Fix windows script start failure | @echo off
setlocal
set WEB_PROCESS_TITLE=Skywalking-Web
set WEB_BASE_PATH=%~dp0%..
set WEB_RUNTIME_OPTIONS="-Xms256M -Xmx512M"
set CLASSPATH=%WEB_BASE_PATH%\config;
SET CLASSPATH=%WEB_BASE_PATH%\libs\*;%CLASSPATH%
if ""%JAVA_HOME%"" == """" (
set _EXECJAVA=java
) else (
set _EXECJAVA="%JAVA_HOME%"/bin/java
)
start /MIN "%WEB_PROCESS_TITLE%" %_EXECJAVA% "%WEB_RUNTIME_OPTIONS%" -cp "%CLASSPATH%" org.skywalking.apm.ui.ApplicationStartUp &
echo Skywalking Web started successfully!
endlocal
| @echo off
setlocal
set WEB_PROCESS_TITLE=Skywalking-Web
set WEB_BASE_PATH=%~dp0%..
set WEB_RUNTIME_OPTIONS="-Xms256M -Xmx512M"
set CLASSPATH=%WEB_BASE_PATH%\config;
SET CLASSPATH=%WEB_BASE_PATH%\libs\*;%CLASSPATH%
if defined JAVA_HOME (
set _EXECJAVA="%JAVA_HOME:"=%"\bin\java
)
if not defined JAVA_HOME (
echo "JAVA_HOME not set."
set _EXECJAVA=java
)
start /MIN "%WEB_PROCESS_TITLE%" %_EXECJAVA% "%WEB_RUNTIME_OPTIONS%" -cp "%CLASSPATH%" org.skywalking.apm.ui.ApplicationStartUp &
echo Skywalking Web started successfully!
endlocal
|
Add script to build and test the projects. | @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 | |
Add stress tests to jenkins on windows | set PATH=C:\Ruby192\bin;%PATH%
REM Chef 10 contains the client in the chef/ sub-directory
cd chef
ruby -v
call bundle install --binstubs --path vendor/bundle || ( call rm Gemfile.lock && call bundle install --binstubs --path vendor/bundle )
ruby bin\rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec/functional spec/unit
move test.xml ..
| set PATH=C:\Ruby192\bin;%PATH%
REM Chef 10 contains the client in the chef/ sub-directory
cd chef
ruby -v
call bundle install --binstubs --path vendor/bundle || ( call rm Gemfile.lock && call bundle install --binstubs --path vendor/bundle )
ruby bin\rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec/functional spec/unit spec/stress
move test.xml ..
|
Add batch file for Sphinx doc generation on Windows | @ECHO OFF
pushd %~dp0
REM Command file for Sphinx documentation
if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build
if "%1" == "" goto help
%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd
| |
Use "%~1" instead of "%1" in bat argument parsing. | @echo off
setlocal
title VSCode Dev
pushd %~dp0\..
:: Get electron, compile, built-in extensions
if "%VSCODE_SKIP_PRELAUNCH%"=="" node build/lib/preLaunch.js
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=%NAMESHORT:"=%.exe
set CODE=".build\electron\%NAMESHORT%"
:: Manage built-in extensions
if "%1"=="--builtin" goto builtin
:: Configuration
set NODE_ENV=development
set VSCODE_DEV=1
set VSCODE_CLI=1
set ELECTRON_ENABLE_LOGGING=1
set ELECTRON_ENABLE_STACK_DUMPING=1
:: Launch Code
%CODE% . %*
goto end
:builtin
%CODE% build/builtin
:end
popd
endlocal
| @echo off
setlocal
title VSCode Dev
pushd %~dp0\..
:: Get electron, compile, built-in extensions
if "%VSCODE_SKIP_PRELAUNCH%"=="" node build/lib/preLaunch.js
for /f "tokens=2 delims=:," %%a in ('findstr /R /C:"\"nameShort\":.*" product.json') do set NAMESHORT=%%~a
set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=%NAMESHORT:"=%.exe
set CODE=".build\electron\%NAMESHORT%"
:: Manage built-in extensions
if "%~1"=="--builtin" goto builtin
:: Configuration
set NODE_ENV=development
set VSCODE_DEV=1
set VSCODE_CLI=1
set ELECTRON_ENABLE_LOGGING=1
set ELECTRON_ENABLE_STACK_DUMPING=1
:: Launch Code
%CODE% . %*
goto end
:builtin
%CODE% build/builtin
:end
popd
endlocal
|
Add unnecessary files to .gitignore | del log.txt
for %%i in (CalcEBNF, ComplexRightNull, EpsilonCycle, ManyAndOne, ManyAndOpt, RightNull, SimpleEpsilon, SimpleOpt, SimpleRightNull, SimpleSome, StackingConflict, TwoEpsilonsMiddle) do (
echo . >> log.txt
echo %%i >> log.txt
..\..\Bin\Release\v40\YC.YaccConstructor.exe -i %%i.yrd -c ExpandMeta ^
-g "RNGLR.EBNFGenerator -pos int -token int -module RNGLR.Parse%%i -translate true -table LR -o %%i.yrd.fs" >> log.txt
) | del log.txt
for %%i in (CalcEBNF, ComplexRightNull, EpsilonCycle, ManyAndOne, ManyAndOpt, RightNull, SimpleEpsilon, SimpleOpt, SimpleRightNull, SimpleSome, StackingConflict, TwoEpsilonsMiddle) do (
echo . >> log.txt
echo %%i >> log.txt
..\..\Bin\Release\v40\YC.YaccConstructor.exe -i %%i.yrd -c ExpandMeta ^
-g "RNGLR.EBNFGenerator -pos int -token int -module RNGLR.Parser%%i -translate true -table LR -o %%i.yrd.fs" >> log.txt
) |
Fix for test runner to capture a failing exit code. | @echo off
rmdir bin
mkdir bin
haxe -cp src -neko bin/HxpectTests.n -main "hxpect.tests.Main"
cd bin
neko HxpectTests.n
| @echo off
rmdir bin
mkdir bin
haxe -cp src -neko bin/HxpectTests.n -main "hxpect.tests.Main"
cd bin
set errorlevel=
neko HxpectTests.n
exit /b %errorlevel%
|
Update kuduscript for function changes | @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/b3494d6fc023f34cc0dded832110b608635cca40
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0
| @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
cmd /c npm install https://github.com/projectkudu/KuduScript/tarball/b1c12f132cf357238672dd57cd7213b1f282123a
IF %ERRORLEVEL% NEQ 0 goto error
goto end
:error
if %counter% GEQ %attempts% goto :lastError
goto retry
:lastError
popd
echo An error has occured during npm install.
exit /b 1
:end
popd
echo Finished successfully.
exit /b 0
|
Fix build/test script on Windows | # Assume zip install layout. and MYSQL_INSTALL_ROOT environment variable points to the root directory of the installation
IF "%MYSQL_INSTALL_ROOT%"=="" set MYSQL_INSTALL_ROOT=C:\mysql\mariadb-5.5.28a-winx64\mariadb-5.5.28a-winx64\
set BINDIR=%MYSQL_INSTALL_ROOT%\bin
set CERTDIR=%MYSQL_INSTALL_ROOT%\mysqltest\std_data
start %BINDIR%\mysqld.exe --console --max_allowed_packet=1G --enable-named-pipe --socket=JDBC-test-socket --ssl-ca=%CERTDIR%\cacert.pem --ssl-cert=%CERTDIR%\server-cert.pem --ssl-key=%CERTDIR%\server-key.pem
timeout 20
call mvn exec:exec package -Dpackage-source
call %BINDIR%\mysqladmin -uroot shutdown | REM Assume zip install layout. and MYSQL_INSTALL_ROOT environment variable points to the root directory of the installation
IF "%MYSQL_INSTALL_ROOT%"=="" set MYSQL_INSTALL_ROOT=C:\mysql\mariadb-5.5.28a-winx64\mariadb-5.5.28a-winx64\
set BINDIR=%MYSQL_INSTALL_ROOT%\bin
set CERTDIR=%MYSQL_INSTALL_ROOT%\mysqltest\std_data
start %BINDIR%\mysqld.exe --console --max_allowed_packet=1G --enable-named-pipe --socket=JDBC-test-socket --ssl-ca=%CERTDIR%\cacert.pem --ssl-cert=%CERTDIR%\server-cert.pem --ssl-key=%CERTDIR%\server-key.pem
timeout 20
call mvn exec:exec package -Dpackage-source
call %BINDIR%\mysqladmin -uroot shutdown |
Create a non-portable bat file for compiling the shader files | T:/Applications/VulkanSDK/1.0.61.1/Bin/glslangValidator.exe -V -o ../source/core/visualizer/shaders/fullscreen_triangle_vs.spv -S vert ../source/core/visualizer/shaders/fullscreen_triangle_vs.glsl
T:/Applications/VulkanSDK/1.0.61.1/Bin/glslangValidator.exe -V -o ../source/core/visualizer/shaders/final_resolve_ps.spv -S frag ../source/core/visualizer/shaders/final_resolve_ps.glsl
| |
Add VSCode python env switch batch file. | @echo off
set v_params=%*
set v_params=%v_params:\=/%
set v_params=%v_params:c:=/mnt/c%
set v_params=%v_params:"=\"%
bash.exe -c "python3 %v_params%" | |
Put quotes around PYTHONPATH to handle the case where there's a space in the name | @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
CALL virtualenv\scripts\activate
SET PYTHONPATH=%CD%\submodule\s3g;%CD%\src\main\python;%PYTHONPATH%
REM EXIT /B 0
easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\mock-1.0.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\lockfile-0.9.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\python_daemon-1.6-py2.7.egg
easy_install -q submodule\conveyor_bins\python\argparse-1.2.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\unittest2-0.5.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg
GOTO DONE
:DIRNOTEXISTS
IF "%1" == "" GOTO DEFAULTPY
set PYTHON=%1
GOTO VIRTUALENV
:DEFAULTPY
set PYTHON=python
:VIRTUALENV
%PYTHON% virtualenv.py --extra-search-dir=submodule/conveyor_bins/python --never-download virtualenv
GOTO DIREXISTS
:DONE
| @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
CALL virtualenv\scripts\activate
SET PYTHONPATH=%CD%\submodule\s3g;%CD%\src\main\python;%PYTHONPATH%
REM EXIT /B 0
easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\mock-1.0.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\lockfile-0.9.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\python_daemon-1.6-py2.7.egg
easy_install -q submodule\conveyor_bins\python\argparse-1.2.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\unittest2-0.5.1-py2.7.egg
easy_install -q submodule\conveyor_bins\python\pyserial-2.7_mb2.1-py2.7.egg
GOTO DONE
:DIRNOTEXISTS
IF "%1" == "" GOTO DEFAULTPY
set PYTHON=%1
GOTO VIRTUALENV
:DEFAULTPY
set PYTHON=python
:VIRTUALENV
"%PYTHON%" virtualenv.py --extra-search-dir=submodule/conveyor_bins/python --never-download virtualenv
GOTO DIREXISTS
:DONE
|
Remove commented out line in windows build script. History is what git is for. | @ECHO OFF
SETLOCAL
SET EL=0
ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET PLATFORM=x64
SET CONFIGURATION=Release
::SET LOCAL_DEV=1
FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i
ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH%
::SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.1.0-win32-x86\bin;%PATH%
SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.4.0-win32-x86\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
CALL appveyor-build.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
GOTO DONE
:ERROR
ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ECHO ERRORLEVEL^: %ERRORLEVEL%
SET EL=%ERRORLEVEL%
:DONE
ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EXIT /b %EL%
| @ECHO OFF
SETLOCAL
SET EL=0
ECHO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SET PLATFORM=x64
SET CONFIGURATION=Release
::SET LOCAL_DEV=1
FOR /F "tokens=*" %%i in ('git rev-parse --abbrev-ref HEAD') do SET APPVEYOR_REPO_BRANCH=%%i
ECHO APPVEYOR_REPO_BRANCH^: %APPVEYOR_REPO_BRANCH%
SET PATH=C:\mb\windows-builds-64\tmp-bin\cmake-3.4.0-win32-x86\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
powershell Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
CALL appveyor-build.bat
IF %ERRORLEVEL% NEQ 0 GOTO ERROR
GOTO DONE
:ERROR
ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ECHO ERRORLEVEL^: %ERRORLEVEL%
SET EL=%ERRORLEVEL%
:DONE
ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EXIT /b %EL%
|
Add a batch file to automate compiling the Windows Help File (CHM) | @echo off
REM Setup for running on Neil Mitchell's machine
REM To run on other machines, install the appropriate things and
REM Change the environment variables at the top
REM REQUIRES:
REM Internet Connection
REM sed
REM --------------------------------------------------------------------------
REM Parameter section
REM xsltproc location (http://www.zlatkovic.com/libxml.en.html)
set XSLTPROC=xsltproc
REM Docbook location (no \ slashes, all must be /) (http://docbook.sourceforge.net/)
set DOCBOOK=d:/bin/docbook-xsl-1.60.1/htmlhelp/htmlhelp.xsl
REM Html Help Workshop (http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en)
set HTMLHELP="c:\Program Files\HTML Help Workshop\hhc.exe"
REM --------------------------------------------------------------------------
mkdir users_guide_windows > nul
pushd users_guide_windows
REM First check the users guide is closed
if not exist hugs98.chm goto done
del hugs98.chm
if not exist hugs98.chm goto done
echo You have the .chm file still open, please close it first
goto finished
:done
echo Generating HTML
%XSLTPROC% %DOCBOOK% ../users_guide/users_guide.xml
copy ..\users_guide\*.png *.png
copy ..\users_guide\*.css *.css
echo Patching HTML
ren *.html *.h
for %%i in (*.h) do sed "s/<title>/<link rel='stylesheet' type='text\/css' href='hugs-ug.css'><title>/" %%i > %%itml
echo Generating CHM
%HTMLHELP% htmlhelp.hhp
ren htmlhelp.chm hugs98.chm
:finished
popd
echo Finished
| |
Set Default GUI to Pyblish QML | @echo off
:: Dependencies
set PYBLISH_BASE=%~dp0git\pyblish-base
set PYBLISH_MAYA=%~dp0git\pyblish-maya
set PYBLISH_NUKE=%~dp0git\pyblish-nuke
set PYBLISH_QML=%~dp0git\pyblish-qml
set PYBLISH_LITE=%~dp0git\pyblish-lite
set MINDBENDER_CORE=%~dp0git\mindbender-core
set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher
set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects
set PATH=%~dp0bin\windows\syncthing;%PATH%
set PATH=%~dp0bin\windows\python36;%PATH%
set PATH=%~dp0bin\windows;%PATH%
set PATH=%~dp0bin;%PATH%
set PYTHONPATH=%MINDBENDER_LAUNCHER%;%PYTHONPATH%
:: ---------------------------------------------------------
::
:: Edit here
::
:: ---------------------------------------------------------
if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE%
python -u -m launcher --root %MINDBENDER_PROJECTS% | @echo off
:: Dependencies
set PYBLISH_BASE=%~dp0git\pyblish-base
set PYBLISH_MAYA=%~dp0git\pyblish-maya
set PYBLISH_NUKE=%~dp0git\pyblish-nuke
set PYBLISH_QML=%~dp0git\pyblish-qml
set PYBLISH_LITE=%~dp0git\pyblish-lite
set MINDBENDER_CORE=%~dp0git\mindbender-core
set MINDBENDER_LAUNCHER=%~dp0git\mindbender-launcher
set MINDBENDER_EXAMPLE=%~dp0git\mindbender-example\projects
set PATH=%~dp0bin\windows\syncthing;%PATH%
set PATH=%~dp0bin\windows\python36;%PATH%
set PATH=%~dp0bin\windows;%PATH%
set PATH=%~dp0bin;%PATH%
set PYTHONPATH=%MINDBENDER_LAUNCHER%;%PYTHONPATH%
if "%MINDBENDER_PROJECTS%"=="" set MINDBENDER_PROJECTS=%MINDBENDER_EXAMPLE%
:: ---------------------------------------------------------
::
:: Edit here
::
:: ---------------------------------------------------------
set PYBLISHGUI=pyblish_qml
python -u -m launcher --root %MINDBENDER_PROJECTS% |
Update Windows build script to remove __init__.pyc. | rmdir %~dp0current-release\windows /s
mkdir %~dp0current-release\windows
cd %~dp0current-release\src\dbtk
python setup.py py2exe
move dist\dbtk.exe %~dp0current-release\windows
rmdir build dist /s
| rmdir %~dp0current-release\windows /s
mkdir %~dp0current-release\windows
cd %~dp0current-release\src\dbtk
python setup.py py2exe
move dist\dbtk.exe %~dp0current-release\windows
rmdir build dist /s
del __init__.pyc |
Test script review for redundancies | @echo off
setlocal
cd "%~dp0"
chcp 1252 > nul
if exist tools\NUnit.Runners goto :test
for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
if "%nuget%"=="" goto :nonuget
md tools
nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory tools || exit /b 1
move .\tools\NUnit.Runners.2.6.4 .\tools\NUnit.Runners
if not %errorlevel%==0 exit /b %errorlevel%
:test
call build /v:m ^
&& .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Debug\net40\MoreLinq.Test.dll ^
&& .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Release\net40\MoreLinq.Test.dll ^
&& .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Debug\net40-client\MoreLinq.Test.dll ^
&& .\tools\NUnit.Runners\tools\nunit-console.exe .\MoreLinq.Test\bin\Release\net40-client\MoreLinq.Test.dll
goto :EOF
:nonuget
echo NuGet executable not found in PATH
echo For more on NuGet, see http://nuget.codeplex.com
exit /b 2 | @echo off
pushd "%~dp0"
call :main %*
popd
goto :EOF
:main
setlocal
set NUNIT_CONSOLE_PATH=tools\NUnit.Runners\tools\nunit-console.exe
if exist %NUNIT_CONSOLE_PATH% goto :test-all
for %%i in (NuGet.exe) do set nuget=%%~dpnx$PATH:i
if "%nuget%"=="" goto :nonuget
nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory tools || exit /b 1
move tools\NUnit.Runners.2.6.4 tools\NUnit.Runners
if not %errorlevel%==0 exit /b %errorlevel%
:test-all
call build /v:m ^
&& call :test net40 ^
&& call :test net40 ^
&& call :test net40-client ^
&& call :test net40-client
goto :EOF
:test
setlocal
%NUNIT_CONSOLE_PATH% MoreLinq.Test\bin\Release\%1\MoreLinq.Test.dll
goto :EOF
:nonuget
echo NuGet executable not found in PATH
echo For more on NuGet, see http://nuget.codeplex.com
exit /b 2 |
Add git to default cygwin installation | @echo off
REM Installs Cygwin with a minimal package requirement for Kickboxer
REM Cy Rossignol <cy@rossignols.me>
REM Exit codes:
SET CYGWIN_INSTALLED=0
SET CYGWIN_NOT_INSTALLED=1
CD %CYGDIR%
%CYGWIN_SETUP% --quiet-mode --no-admin --no-shortcuts ^
--site http://mirrors.kernel.org/sourceware/cygwin/ ^
--site rsync://mirrors.kernel.org/sourceware/cygwin/ ^
--root %CYGDIR% ^
--local-package-dir %CYGDIR%\packages ^
--categories Base ^
--packages openssh >nul
IF %ERRORLEVEL% EQU 0 EXIT /B %CYGWIN_INSTALLED%
EXIT /B %CYGWIN_NOT_INSTALLED%
| @echo off
REM Installs Cygwin with a minimal package requirement for Kickboxer
REM Cy Rossignol <cy@rossignols.me>
REM Exit codes:
SET CYGWIN_INSTALLED=0
SET CYGWIN_NOT_INSTALLED=1
CD %CYGDIR%
%CYGWIN_SETUP% --quiet-mode --no-admin --no-shortcuts ^
--site http://mirrors.kernel.org/sourceware/cygwin/ ^
--site rsync://mirrors.kernel.org/sourceware/cygwin/ ^
--root %CYGDIR% ^
--local-package-dir %CYGDIR%\packages ^
--categories Base ^
--packages git openssh >nul
IF %ERRORLEVEL% EQU 0 EXIT /B %CYGWIN_INSTALLED%
EXIT /B %CYGWIN_NOT_INSTALLED%
|
Use ILRepack.MSBuild.Task 1.1.2 from sympa public myget feed | @echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.1 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
| @echo off
Nuget.exe restore "Source\MSBuild.Community.Tasks.sln"
NuGet.exe install MSBuildTasks -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
Nuget.exe install ILRepack.MSBuild.Task -Version 1.1.2 -Source https://www.myget.org/F/sympa-public/api/v3/index.json -OutputDirectory .\Tools\ -ExcludeVersion -NonInteractive
|
Change the script to be able to launch it when clicking on it | @echo off
echo.
echo --- StartNode----------------------------------------
if "%1" == "" goto usage
goto doit
:usage
echo.
echo Start a new Node
echo - 1 : the url of the node to create
echo.
echo ex : startNode rmi://localhost/node1
echo ex : startNode jini://localhost/node2
echo.
goto end
:doit
SETLOCAL
call init.bat
%JAVA_CMD% org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6
ENDLOCAL
:end
echo.
echo ---------------------------------------------------------
| @echo off
echo.
echo --- StartNode----------------------------------------
if "%1" == "" goto usage
goto doit
:usage
echo.
echo Start a new Node
echo - 1 : the url of the node to create
echo.
echo ex : startNode rmi://localhost/node1
echo ex : startNode jini://localhost/node2
echo.
echo Node started with a random name
echo.
goto doit
:doit
SETLOCAL
call init.bat
%JAVA_CMD% org.objectweb.proactive.StartNode %1 %2 %3 %4 %5 %6
ENDLOCAL
:end
echo.
echo ---------------------------------------------------------
|
Support for plugins in Windows | @echo off
set current_dir=%~dp0\..
cd %current_dir%
set _JAVACMD=java.exe
if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe
set HOST=0.0.0.0
set PORT=8080
set LOGGING_LEVEL=WARN
rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
"%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar" org.springframework.boot.loader.JarLauncher | @echo off
set current_dir=%~dp0\..
cd %current_dir%
set _JAVACMD=java.exe
if exist "%JAVA_HOME%\bin\java.exe" set _JAVACMD=%JAVA_HOME%\bin\java.exe
set HOST=0.0.0.0
set PORT=8080
set LOGGING_LEVEL=WARN
rem set DEBUG=-agentlib:jdwp=transport=dt_socket,server=y,address=8000,suspend=n
"%_JAVACMD%" %DEBUG% -Xms256m -Xmx1024m -Dserver.address=%HOST% -Dserver.port=%PORT% -Dlogging.level.org.springframework.web=ERROR -Dlogging.level.il.co.topq.report=%LOGGING_LEVEL% -cp "lib\difido-server.jar;plugin\*" org.springframework.boot.loader.JarLauncher |
Add global variables to file | @ECHO OFF
:USAGE
:START
:INITIALIZE
SETLOCAL ENABLEDELAYEDEXPANSION
SET GLOBALS_FILE=%1
SET VAR_NAME=%2
SET VALUE=%3
:CODE
IF NOT EXIST %GLOBALS_FILE% (
COPY /Y NUL %GLOBALS_FILE% > NUL 2>&1
)
ECHO %VAR_NAME% %VALUE% >> %GLOBALS_FILE%
:RETURN
ENDLOCAL
:EOF
@ECHO ON
| |
Add script to remove Windows 10 old user account pictures | @ECHO OFF
SETLOCAL
SETLOCAL EnableExtensions EnableDelayedExpansion
SET /P name="Enter your Windows username: "
ECHO You have entered [%name%]
SET /P answer="Do you want to continue (Y/n)? "
IF /I {!answer!}=={n} (GOTO :EOF)
IF /I {!answer!}=={no} (GOTO :EOF)
DEL "C:\Users\%name%\AppData\Roaming\Microsoft\Windows\AccountPictures\*.accountpicture-ms"
ECHO All old user accounts pictures have been deleted
ENDLOCAL | |
Add automated Windows build script using msbuild | @echo off
REM Automated Windows build script for nomlib -- windev.local
REM NOTE: This script is intended to be ran from the project's root
REM directory, i.e.: %HOME%/Projects/nomlib.git
REM virgo.local source repository
unison nomlib
IF NOT EXIST build mkdir build
REM pushd build
cd build
if errorlevel 0 call ..\bin\msbuild_gen.bat Debug
if errorlevel 0 call ..\bin\msbuild_build.bat Debug
if errorlevel 0 call ..\bin\msbuild_install.bat Debug
REM popd
| |
Enable hdf5 1_8_18 to build by turning of tests, examples and multi-core build | @ECHO OFF
REM $Id$
REM Bat script building libHDF5 dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se
REM Date: 2015-07-06
set dirname=hdf5
REM Automatic code starts here
echo.
echo ======================
echo Building 64-bit version of FMILibrary
echo ======================
set OLDPATH=%PATH%
call setHopsanBuildPaths.bat
REM We don want msys in the path so we have to set it manually
set PATH=%mingw_path%;%cmake_path%;%OLDPATH%
cd %dirname%
mkdir build
cd build
cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DCMAKE_INSTALL_PREFIX="../install" ../
mingw32-make.exe -j4
mingw32-make.exe install
echo.
echo Done
pause | @ECHO OFF
REM $Id$
REM Bat script building libHDF5 dependency automatically
REM Author: Peter Nordin peter.nordin@liu.se
REM Date: 2015-07-06
set dirname=hdf5
REM Automatic code starts here
echo.
echo ======================
echo Building the HDF5 library and tools
echo ======================
set OLDPATH=%PATH%
call setHopsanBuildPaths.bat
REM We don want msys in the path so we have to set it manually
set PATH=%mingw_path%;%cmake_path%;%OLDPATH%
cd %dirname%
mkdir hopsanbuild
cd hopsanbuild
cmake -Wno-dev -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON -DHDF5_BUILD_FORTRAN=OFF -DBUILD_TESTING=OFF -DHDF5_BUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX="../install" ../
REM DO NOT enable multi-core build (make -j4), we must build sequentially
mingw32-make.exe
mingw32-make.exe install
cd ..
echo.
echo Done
pause |
Correct mistake in windows bat file | mkdir build
#mkdir 3rdparty\build
Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
#Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T
IF %ERRORLEVEL% LSS 8 goto build
goto :eof
:build
exit 0
| mkdir build
REM mkdir 3rdparty\build
Robocopy "./tools/googletest/googlemock" "./tools/protobuf/gmock" /E /MT:2 /R:0 /DCOPY:T
Robocopy "./tools/googletest/googletest" "./tools/protobuf/gmock/gtest" /E /MT:2 /R:0 /DCOPY:T
REM Robocopy "./tools/spdlog/include" "./3rdparty/include" /E /MT:2 /R:0 /DCOPY:T
IF %ERRORLEVEL% LSS 8 goto build
goto :eof
:build
exit 0
|
Fix issue where CBT.NuGet.dll wasn't included in package because BinDir contained .." | @ECHO OFF
msbuild /v:m /m /nologo dirs.proj /t:Rebuild
FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO (
CALL :Pack "%%A"
)
GOTO :EOF
:Pack
"NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~dp0..\bin\Debug\AnyCPU\%~n1" | @ECHO OFF
msbuild /v:m /m /nologo dirs.proj /t:Rebuild
FOR /F "usebackq" %%A IN (`dir %~dp0*.nuspec /s /b ^| findstr /v /i "CBT.DotNetFx"`) DO (
CALL :Pack "%%A" "%~dp0.."
)
GOTO :EOF
:Pack
"NuGet.exe" pack "%~1" -OutputDirectory %~dp0 -Properties "BinDir=%~f2\bin\Debug\AnyCPU\%~n1" |
Remove make_version from windows' recipe | cd %RECIPE_DIR%\..
%PYTHON% make_version.py
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt
| cd %RECIPE_DIR%\..
%PYTHON% setup.py install --single-version-externally-managed --record=record.txt
|
Use 64-bit build for windows (assuming community or pro edition) | @ECHO off
IF NOT "x%1" == "x" GOTO :%1
GOTO :tiny
:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild
GOTO :build
:tiny
ECHO "Building tiny"
cmake -H. -Bbuild
GOTO :build
:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end
:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end
:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end
:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..
:end
| @ECHO off
IF NOT "x%1" == "x" GOTO :%1
GOTO :tiny
:large
ECHO "Building large"
cmake -DWithOpenSSL=ON -DWithSharedOpenSSL=OFF -DWithZLIB=ON -DWithSharedZLIB=OFF -H. -Bbuild -G"Visual Studio 12 2013 Win64"
GOTO :build
:tiny
ECHO "Building tiny"
cmake -H. -Bbuild -G"Visual Studio 12 2013 Win64"
GOTO :build
:build
cmake --build build --config Release -- /maxcpucount
COPY build\Release\luvi.exe .
GOTO :end
:test
SET LUVI_APP=samples\test.app
luvi.exe
SET LUVI_TARGET=test.exe
luvi.exe
SET "LUVI_APP="
SET "LUVI_TARGET="
test.exe
DEL /Q test.exe
GOTO :end
:clean
IF EXIST build RMDIR /S /Q build
IF EXIST luvi.exe DEL /F /Q luvi.exe
GOTO :end
:publish
ECHO "Building all versions"
git submodule update --init --recursive
CALL make.bat clean
CALL make.bat tiny
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi-tiny.exe
CALL make.bat clean
CALL make.bat large
CALL make.bat test
COPY build\Release\luvi.exe luvi-binaries\Windows\luvi.exe
CD luvi-binaries
git pull
git add Windows
git commit
git push
CD ..
:end
|
Update bat file by new NuGet version | @echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)
set nuget=
if "%nuget%" == "" (
set nuget=nuget
)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\paymentwall.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
mkdir Build
mkdir Build\lib
mkdir Build\lib\net40
%nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -o Build -Version %version% -p Configuration="%config%" | @echo Off
set config=%1
if "%config%" == "" (
set config=Release
)
set version=1.0
if not "%PackageVersion%" == "" (
set version=%PackageVersion%
)
set nuget=
if "%nuget%" == "" (
set nuget=nuget
)
%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild src\paymentwall.sln /p:Configuration="%config%" /m /v:M /fl /flp:LogFile=msbuild.log;Verbosity=diag /nr:false
mkdir Build
mkdir Build\lib
mkdir Build\lib\net40
%nuget% pack "src\paymentwall.nuspec" -NoPackageAnalysis -verbosity detailed -OutputDirectory Build -Version %version% -p Configuration="%config%"
|
Delete HLSL directory when copying Android assets. | md assets\Data
xcopy ..\Bin\Data\*.* assets\Data /S /E /C /Y
md assets\CoreData
xcopy ..\Bin\CoreData\*.* assets\CoreData /S /E /C /Y
| md assets\Data
xcopy ..\Bin\Data\*.* assets\Data /S /E /C /Y
md assets\CoreData
xcopy ..\Bin\CoreData\*.* assets\CoreData /S /E /C /Y
rd /S /Q assets\CoreData\Shaders\HLSL
|
Fix conda wrapper for Windows | @echo off
@set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@"
@endlocal & (
@set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH%
@REM Run any activate scripts
@if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" (
@pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d"
@for %%g in (*.bat) do @call "%%g"
@popd
)
)
%* | @echo off
@REM This script was based on the original conda activate.bat
@setlocal
@set "CONDA_DEFAULT_ENV=@CONDA_ENV_DIR@"
@set PATH="%CONDA_DEFAULT_ENV%";"%CONDA_DEFAULT_ENV%\Scripts";"%CONDA_DEFAULT_ENV%\Library\bin";%PATH%
@REM Run any activate scripts
@if exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" (
@pushd "%CONDA_DEFAULT_ENV%\etc\conda\activate.d"
@for %%g in (*.bat) do @call "%%g"
@popd
)
@REM Execute the given command
%*
@endlocal
|
Copy tests to ironpaw too | c:\python25\python.exe setup.py bdist_wininst
c:\python25\python.exe setup.py sdist --formats=gztar,zip
copy dist\*.* \\ironpaw\pub\jasons\arcrest
copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\
hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt
| c:\python25\python.exe setup.py bdist_wininst
c:\python25\python.exe setup.py sdist --formats=gztar,zip
copy dist\*.* \\ironpaw\pub\jasons\arcrest
copy documentation\html\*.* \\ironpaw\pub\jasons\arcrest\documentation\
copy tests.py \\ironpaw\pub\jasons\arcrest\tests.py
hg history > \\ironpaw\pub\jasons\arcrest\changelog.txt
|
Check if we are already on the minimal FAKE version - otherwise patch it. | @echo off
:Build
cls
if not exist tools\FAKE.Core\tools\Fake.exe (
"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease"
)
SET TARGET="Default"
IF NOT [%1]==[] (set TARGET="%1")
SET BUILDMODE="Release"
IF NOT [%2]==[] (set BUILDMODE="%2")
"tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%"
rem Bail if we're running a TeamCity build.
if defined TEAMCITY_PROJECT_NAME goto Quit
rem Bail if we're running a MyGet build.
if /i "%BuildRunner%"=="MyGet" goto Quit
rem Loop the build script.
set CHOICE=nothing
echo (Q)uit, (Enter) runs the build again
set /P CHOICE=
if /i "%CHOICE%"=="Q" goto :Quit
GOTO Build
:Quit
exit /b %errorlevel%
| @echo off
SET MinimalFAKEVersion=639
SET FAKEVersion=1
cls
if exist tools\FAKE.Core\tools\PatchVersion.txt (
FOR /F "tokens=*" %%i in (tools\FAKE.Core\tools\PatchVersion.txt) DO (SET FAKEVersion=%%i)
)
if %MinimalFAKEVersion% lss %FAKEVersion% goto Build
if %MinimalFAKEVersion%==%FAKEVersion% goto Build
"tools\nuget\nuget.exe" "install" "FAKE.Core" "-OutputDirectory" "tools" "-ExcludeVersion" "-Prerelease"
:Build
cls
SET TARGET="Default"
IF NOT [%1]==[] (set TARGET="%1")
SET BUILDMODE="Release"
IF NOT [%2]==[] (set BUILDMODE="%2")
"tools\FAKE.Core\tools\Fake.exe" "build.fsx" "target=%TARGET%" "buildMode=%BUILDMODE%"
rem Bail if we're running a TeamCity build.
if defined TEAMCITY_PROJECT_NAME goto Quit
rem Bail if we're running a MyGet build.
if /i "%BuildRunner%"=="MyGet" goto Quit
rem Loop the build script.
set CHOICE=nothing
echo (Q)uit, (Enter) runs the build again
set /P CHOICE=
if /i "%CHOICE%"=="Q" goto :Quit
GOTO Build
:Quit
exit /b %errorlevel%
|
Update script for latest vt-dictionary. | @echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set CLASSPATH=%LIBDIR%\vt-dictionary-3.0-SNAPSHOT.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR%
call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %*
goto end
:no_vtpass_home
echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path.
goto end
:no_java_home
echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path.
:end
| @echo off
if "%OS%" == "Windows_NT" setlocal
if not defined JAVA_HOME goto no_java_home
if not defined VTPASS_HOME goto no_vtpass_home
set JAVA=%JAVA_HOME%\bin\java
set PASS_JAR=%VTPASS_HOME%\jars\vt-password-${project.version}.jar
set LIBDIR=%VTPASS_HOME%\lib
set CLASSPATH=%LIBDIR%\vt-dictionary-3.0.jar;%LIBDIR%\vt-crypt-2.1.1.jar;%LIBDIR%\commons-logging-1.1.1.jar;%PASS_JAR%
call "%JAVA%" -cp "%CLASSPATH%" edu.vt.middleware.password.PasswordValidator %*
goto end
:no_vtpass_home
echo ERROR: VTPASS_HOME environment variable must be set to VT Password install path.
goto end
:no_java_home
echo ERROR: JAVA_HOME environment variable must be set to JRE/JDK install path.
:end
|
Use JAVA_HOME for schema creation | @ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
java -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1
GOTO End1
:No1
ECHO Missing Config file
GOTO End1
:End1
@ECHO ON
| @ECHO OFF
IF %1.==. GOTO No1
set CONFIG=%1
REM set debug parameters
REM set DEBUG_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=y"
"%JAVA_HOME%\bin\java" -cp ..\lib\* %DEBUG_OPTS% "-Daerobase.config.dir=%CONFIG%" org.jboss.aerogear.unifiedpush.DBMaintenance > initdb-java.log 2>&1
GOTO End1
:No1
ECHO Missing Config file
GOTO End1
:End1
@ECHO ON
|
Switch to Visual Studio 2012 for build release | @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
REM call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86
set DXROOT=C:\Program Files\Sandcastle
%~dp0\External\nant\bin\nant %* | @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\vc\vcvarsall.bat" x86
call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\vc\vcvarsall.bat" x86
set DXROOT=C:\Program Files\Sandcastle
%~dp0\External\nant\bin\nant %* |
Use the default directories for KSP in the master branch's batch files. | ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>
::Set the path below as you need and then run this bat to copy the files and make them debuggeable
SET KSPPATH=C:\work\builds\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
SET KSPPATH2=C:\work\builds\Kerbal Space Program2 | ::THIS FILE IS BEING UNTRACKED FROM GIT with the command: git update-index --skip-worktree <file>
::To resume the tracking of changes to this file use the command: git update-index --no-skip-worktree <file>
::Set the path below as you need and then run this bat to copy the files and make them debuggeable
::SET KSPPATH=C:\work\builds\Kerbal Space Program
::Set another path in case you run two KSP instances otherwise leave empty
::SET KSPPATH2=C:\work\builds\Kerbal Space Program2 |
Remove another jsBeizer reference as we weren't using it | "C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jsBezier-0.6-min.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js
echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause | "C:\Program Files (x86)\Java\jre7\bin\java.exe" -jar compiler.jar ^
--js=translate.js ^
--js=jquery/jquery-1.11.2.js ^
--js=jquery/jquery-ui.1.11.2.min.js ^
--js=jquery/jquery.qtip.js ^
--js=jquery/jquery.blockUI.js ^
--js=jquery/jquery.color.js ^
--js=jquery/jquery.autocomplete.js ^
--js=jquery/jquery.tablesorter.js ^
--js=jquery/jquery.flot.js ^
--js=jquery/jquery.ui.position.js ^
--js=jquery/jquery.contextMenu.js ^
--js=jquery/jquery.hotkeys.js ^
--js=jquery/jquery.jsPlumb-1.7.5.js ^
--js=jquery/jquery.placeholder.js ^
--js=handlebars-v2.0.0.js ^
--js=dropdown.js ^
--source_map_format=V3 ^
--create_source_map thirdparty.compiled.js.map ^
--js_output_file=thirdparty.compiled.js
echo //# sourceMappingURL=thirdparty.compiled.js.map >> thirdparty.compiled.js
@pause |
Build using utils library being build with CMake | REM This assumes that libutil.a has been previously build with cmake and is
REM available in ..\build
del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj
swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i
REM set USE_PRMAN=1
REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build\
set USE_DELIGHT=1
set RUBY_VERSION=180
ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build\
nmake clean all
| REM This assumes that libutil.a has been previously build with cmake and is
REM available in ..\build
del /f RIBClientRUBY_wrap.cxx *.def *.pdb *.obj
swig -ruby -includeall -c++ -I..\utils -o RIBClientRUBY_wrap.cxx RIBClient.i
REM set USE_PRMAN=1
REM ruby extconf.rb --with-rman-dir=$RMANTREE --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils
set USE_DELIGHT=1
set RUBY_VERSION=180
ruby extconf.rb --with-rman-dir=%DELIGHT% --with-utils-include=..\utils\ --with-utils-lib=..\build_nmake\utils
nmake all
|
Make cython always rebuild modules on windows | "C:\Program Files (x86)\Python 3.5\python.exe" setup.py build_ext --inplace
"C:\Program Files\Python 3.5\python.exe" setup.py build_ext --inplace | rmdir /s /q build
del vapoursynth.*.pyd
"C:\Program Files (x86)\Python 3.5\python.exe" setup.py build_ext --inplace
"C:\Program Files\Python 3.5\python.exe" setup.py build_ext --inplace
pause |
Use conda Python rather than system | setlocal enableextensions
if "%PY_VER%" == "3.4" (
set MSVC_VER="10.0"
) else (
if "%PY_VER%" == "3.5" (
set MSVC_VER="14.0"
) else (
set MSVC_VER="9.0"
)
)
set EXTRA_ARGS=""
if %ARCH% EQU 64 (
set EXTRA_ARGS="address-model=64"
)
python -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt
set /p PYTHON_INCLUDE_DIR=<temp.txt
call bootstrap.bat
bjam.exe --debug-configuration ^
--user-config="%RECIPE_DIR%/user-config-win.jam" ^
-sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^
-sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^
link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage
robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL
robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL
exit 0
| setlocal enableextensions
if "%PY_VER%" == "3.4" (
set MSVC_VER="10.0"
) else (
if "%PY_VER%" == "3.5" (
set MSVC_VER="14.0"
) else (
set MSVC_VER="9.0"
)
)
set EXTRA_ARGS=""
if %ARCH% EQU 64 (
set EXTRA_ARGS="address-model=64"
)
%PYTHON% -c "from __future__ import print_function; import distutils.sysconfig; print(distutils.sysconfig.get_python_inc(True))" > temp.txt
set /p PYTHON_INCLUDE_DIR=<temp.txt
call bootstrap.bat
bjam.exe --debug-configuration ^
--user-config="%RECIPE_DIR%/user-config-win.jam" ^
-sBZIP2_LIBPATH="%LIBRARY_LIB%" -sBZIP2_INCLUDE="%LIBRARY_INC%" -sBZIP2_BINARY=bzip2 ^
-sZLIB_INCLUDE="%LIBRARY_INC%" -sZLIB_LIBPATH="%LIBRARY_LIB%" -sZLIB_BINARY=zlib ^
link=shared toolset="msvc-%MSVC_VER%" %EXTRA_ARGS% stage
robocopy "stage\lib" "%LIBRARY_BIN%" /E /NFL
robocopy "boost" "%LIBRARY_INC%\boost" /E /NFL /NDL
exit 0
|
Add quotation mark to windows path | @echo off
REM Reference: http://www.wilsonmar.com/1envvars.htm
set home=%USERPROFILE%
copy /Y .\dist\ctags_lang %home%\.ctags
copy /Y .vimrc %home%\.vimrc
copy /Y .vimrc.plugins %home%\.vimrc.plugins
copy /Y .vimrc.local %home%\.vimrc.local
copy /Y .vimrc.plugins.local %home%\.vimrc.plugins.local
rmdir /S /Q %home%\.vim
xcopy /Y /E vimfiles %home%\.vim\
@echo on
| @echo off
REM Reference: http://www.wilsonmar.com/1envvars.htm
set home=%USERPROFILE%
copy /Y .\dist\ctags_lang "%home%\.ctags"
copy /Y .vimrc "%home%\.vimrc"
copy /Y .vimrc.plugins "%home%\.vimrc.plugins"
copy /Y .vimrc.local "%home%\.vimrc.local"
copy /Y .vimrc.plugins.local "%home%\.vimrc.plugins.local"
rmdir /S /Q "%home%\.vim"
xcopy /Y /E vimfiles "%home%\.vim\"
@echo on
|
Install checks for a connection |
:: Checks in which DB2 version the utility will be installed.
:: DB2 v10.1 is the default version.
if "%1" EQU "" goto v10.1
if /I "%1" EQU "-v10.1" goto v10.1
if /I "%1" EQU "-v9.7" goto v9.7
:: DB2 v10.1.
:v10.1
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER.sql
db2 -td@ -f Trigger.sql
goto exit
:: DB2 v9.7
:v9.7
echo Installing application for DB2 v9.7
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER_v9_7.sql
db2 -td@ -f Trigger.sql
goto exit
:exit | :: Checks if there is already a connection established
db2 connect
if %ERRORLEVEL% EQU 0 (
goto version
) else (
echo Please connect to a database before the execution of the installation.
goto exit
)
:version
:: Checks in which DB2 version the utility will be installed.
:: DB2 v10.1 is the default version.
if "%1" EQU "" goto v10.1
if /I "%1" EQU "-v10.1" goto v10.1
if /I "%1" EQU "-v9.7" goto v9.7
:: DB2 v10.1.
:v10.1
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER.sql
db2 -td@ -f Trigger.sql
goto exit
:: DB2 v9.7
:v9.7
echo Installing application for DB2 v9.7
db2 -tf Tables.sql
db2 -tf Objects.sql
db2 -td@ -f Tools.sql
db2 -td@ -f AdminHeader.sql
db2 -td@ -f AdminBody.sql
db2 -td@ -f LOG.sql
db2 -td@ -f GET_LOGGER_v9_7.sql
db2 -td@ -f Trigger.sql
goto exit
:exit |
Add batch file to autobuild spotify-json | cd lib\spotify-json
git submodule update --init
rmdir build32 /S /Q
mkdir build32
cd build32
cmake .. -DBoost_NO_BOOST_CMAKE=TRUE ^
-DBOOST_ROOT=..\..\..\packages\boost.1.62.0.0\lib\native
cmake --build . --config Debug
cmake --build . --config Release
cd ..\..\.. | |
Use xcopy instead of cp | @echo off
setlocal
echo ====================
echo TWC -- Build Batch
echo ====================
echo.
set DEFINES=
set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204
set LIBS= libcurl.lib
IF NOT EXIST build mkdir build
pushd build
cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2
call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c
cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c
IF NOT EXIST win64 mkdir win64
lib /nologo twitter.obj /out:win64/libtwc.lib
:: IF NOT EXIST win32 mkdir win32
:: lib /nologo twitter.obj /out:win32/libtwc.lib
cp ../code/twitter_api.h ../code/twitter.h ../code/types.h ../include
cp win64/libtwc.lib ../lib/win64/libtwc.lib
popd
| @echo off
setlocal
echo ====================
echo TWC -- Build Batch
echo ====================
echo.
set DEFINES=
set CCFLAGS= /MT %DEFINES% /Gm- /WX /W4 /wd4201 /wd4100 /wd4189 /wd4505 /wd4706 /wd4996 /wd4127 /wd4244 /wd4200 /wd4204
set LIBS= libcurl.lib
IF NOT EXIST build mkdir build
pushd build
cl /nologo /I../include %CCFLAGS% ../code/json.c ../code/codegen.c /link /incremental:no /opt:ref /out:twc_codegen.exe /subsystem:console,5.2
call twc_codegen.exe ../code/twitter.c ../api.json ../code/twitter_api.h ../code/twitter_api.c
cl /nologo /c /I../include %CCFLAGS% ../code/twitter.c
IF NOT EXIST win64 mkdir win64
lib /nologo twitter.obj /out:win64/libtwc.lib
:: IF NOT EXIST win32 mkdir win32
:: lib /nologo twitter.obj /out:win32/libtwc.lib
xcopy ..\code\twitter_api.h ..\code\twitter.h ..\code\types.h ..\include
xcopy win64\libtwc.lib ..\lib\win64\libtwc.lib
popd
|
Reset GHC_PACKAGE_PATH varialbe (5th try). | @mkdir .shake 2> nul
@set ghcArgs=--make ^
-Wall ^
src/Main.hs ^
-isrc ^
-rtsopts ^
-with-rtsopts=-I0 ^
-outputdir=.shake ^
-j ^
-O ^
-o .shake/build
@set shakeArgs=--lint ^
--directory ^
".." ^
%*
@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
@set GHC_PACKAGE_PATH=
@ghc %ghcArgs% && .shake\build %shakeArgs%
| @mkdir .shake 2> nul
@set ghcArgs=--make ^
-Wall ^
src/Main.hs ^
-isrc ^
-rtsopts ^
-with-rtsopts=-I0 ^
-outputdir=.shake ^
-j ^
-O ^
-o .shake/build
@set shakeArgs=--lint ^
--directory ^
".." ^
%*
@ghc %ghcArgs%
@if %ERRORLEVEL% EQU 0 (
@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains
@set GHC_PACKAGE_PATH=
@.shake\build %shakeArgs%
)
|
Add a DOS .bat script to run CI build |
set MSBUILD_EXE=C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild
cd 3rd-party\UnitTest++
%MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Debug /target:Clean
%MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Release /target:Clean
%MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Debug
%MSBUILD_EXE% UnitTest++.vsnet2008.sln /p:Configuration=Release
cd ..\..
cmake CMakeLists.txt
%MSBUILD_EXE% libamqp.sln /p:Configuration=Debug /target:Clean
%MSBUILD_EXE% libamqp.sln /p:Configuration=Release /target:Clean
%MSBUILD_EXE% libamqp.sln /p:Configuration=Debug
| |
Change arrow to match original. | @echo off
if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1
for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf =^> %%i)
| @echo off
if not exist "%~dp0marks\*.mark" echo No marks exist.&&exit /b 1
for /f "delims=" %%f in ('dir /b "%~dp0marks\*.mark"') do (for /F "usebackq delims=" %%i in ("%~dp0marks\%%f") do echo %%~nf -^> %%i)
|
Stop script breaking on XP. Thanks to Chanshin Lee | @echo off
setlocal
Rem ----- set the current working dir as the PROJECT_HOME variable ----
call "%FORREST_HOME%\bin\setpwdvar.bat"
set PROJECT_HOME="%PWD%"
Rem ----- use the location of this script to infer $FORREST_HOME -------
set FORREST_HOME=%~dp0\..
Rem ----- set the ant file to use --------------------------------------
set ANTFILE="%FORREST_HOME%\forrest.build.xml"
Rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME="%FORREST_HOME%\ant"
echo "Apache Forrest. Run 'forrest -projecthelp' to list options"
echo
Rem ----- call ant.. ---------------------------------------------------
call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9
Rem ---- Restore old ANT_HOME
set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%
endlocal
| @echo off
setlocal
Rem ----- set the current working dir as the PROJECT_HOME variable ----
call "%FORREST_HOME%\bin\setpwdvar.bat"
set PROJECT_HOME="%PWD%"
Rem ----- use the location of this script to infer $FORREST_HOME -------
set FORREST_HOME=%~dp0\..
Rem ----- set the ant file to use --------------------------------------
set ANTFILE="%FORREST_HOME%\forrest.build.xml"
Rem ----- Save old ANT_HOME --------------------------------------------
set OLD_ANT_HOME=%ANT_HOME%
set ANT_HOME="%FORREST_HOME%\ant"
echo "Apache Forrest. Run 'forrest -projecthelp' to list options"
Rem ----- call ant.. ---------------------------------------------------
call "%ANT_HOME%\bin\ant" -buildfile %ANTFILE% -Dbasedir="%PROJECT_HOME%" -Dproject.home="%PROJECT_HOME%" -Dforrest.home="%FORREST_HOME%" -emacs -logger org.apache.tools.ant.NoBannerLogger %1 %2 %3 %4 %5 %6 %7 %8 %9
Rem ---- Restore old ANT_HOME
set ANT_HOME=%OLD_ANT_HOME%
set CLASSPATH=%OLD_CLASSPATH%
endlocal
|
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 ..
| |
Address Sysem isn't working for me in the REXX script on OS/2. Also the line endings were not being interpretted by CMD.EXE. | /* REXX script to get the svn revision and display it. */
Trace o
fn = 'SVN.REV'
Address System 'svnversion . | rxqueue > nul:'
/* default version to 0, if svnversion doesn't exist or no .svn here */
ver = 0
If Queued() \= 0 Then
Do
/* Using PARSE PULL preserves case */
/* If it is a double value get the first value only */
Parse Pull sval ver ':' .
If Strip( ver ) = '' Then ver = sval
If ver = 'exported' Then ver = 0
If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 )
End
Call Stream fn, 'C', 'OPEN'
Call Lineout fn,'VERREV='ver
Call Stream fn, 'C', 'CLOSE'
Exit 0
| /* REXX script to get the svn revision and display it. */
Trace o
fn = 'SVN.REV'
'svnversion . | rxqueue > nul:'
/* default version to 0, if svnversion doesn't exist or no .svn here */
ver = 0
If Queued() \= 0 Then
Do
/* Using PARSE PULL preserves case */
/* If it is a double value get the first value only */
Parse Pull sval ver ':' .
If Strip( ver ) = '' Then ver = sval
If ver = 'exported' Then ver = 0
If Datatype( Right( ver, 1 ) ) \= 'NUM' Then ver = Substr( ver, 1, Length( ver) - 1 )
End
Call Stream fn, 'C', 'OPEN'
Call Lineout fn,'VERREV='ver
Call Stream fn, 'C', 'CLOSE'
Exit 0
|
Update of script on dev branch | @echo off
setlocal
call before-branch.bat
echo.
echo.
:: crate new feature branch locally
echo Create new Feature branch locally
SET /P feature_branch_name="Please enter the name of the feature branch: feature-"
SET /P feature_version="Please enter the version of the feature:"
git checkout -b feature-%feature_branch_name% develop
echo.
echo.
:: increase version on feature branch
echo Increasing version of feature branch
call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true
echo.
echo.
echo Commiting update POM Files
:: commit the pom file with the updated version
git commit -m "changing feature version to new version" *pom.xml
echo ... done
echo.
echo.
:: publish the feature branch to github, so that everybody sees it
echo Pushing Feature branch to Github
SET /P confirm="Should the feature branch be pushed to gitgub [y/n]"
IF "%confirm%" == "y" git push origin feature-%feature_branch_name%
endlocal
:exit
echo Feature Branch batch job ended
| @echo off
setlocal
call script\before-branch.bat
echo.
echo.
:: crate new feature branch locally
echo Create new Feature branch locally
SET /P feature_branch_name="Please enter the name of the feature branch: feature-"
SET /P feature_version="Please enter the version of the feature:"
git checkout -b feature-%feature_branch_name% develop
echo.
echo.
:: increase version on feature branch
echo Increasing version of feature branch
call "%M2_HOME%/bin/mvn" versions:set -DnewVersion=%feature_version%-SNAPSHOT -DprocessAllModules=true
echo.
echo.
echo Commiting update POM Files
:: commit the pom file with the updated version
git commit -m "changing feature version to new version" *pom.xml
echo ... done
echo.
echo.
:: publish the feature branch to github, so that everybody sees it
echo Pushing Feature branch to Github
SET /P confirm="Should the feature branch be pushed to gitgub [y/n]"
IF "%confirm%" == "y" git push origin feature-%feature_branch_name%
endlocal
:exit
echo Feature Branch batch job ended
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.