Instruction stringlengths 14 778 | input_code stringlengths 0 4.24k | output_code stringlengths 1 5.44k |
|---|---|---|
Fix helper script (update path) | @echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\resharper-reformatutils\bin\Release\* ReformatUtils
| @echo off
setlocal enableextensions
mkdir ReformatUtils 2> NUL
copy /y ..\src\ReformatUtils\bin\Release\* ReformatUtils
|
Optimize build output on windows. | CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
powershell Compress-Archive -Force -... | CALL .\.venv\Scripts\activate
pip install -r .\requirements.txt
set PYTHONOPTIMIZE=1 && pyinstaller .\rocketleagueminimapgenerator\main.py --onefile
MOVE /Y .\dist\main.exe .\dist\rocketleagueminimapgenerator.exe
COPY /Y .\README.md .\dist\README.txt
DEL /S /Q .\dist\assets
COPY /Y .\assets .\dist\assets
powershell C... |
Make a Microsoft import library for the x64 csound64.dll. | @echo CREATING MICROSOFT IMPORT LIBRARY FOR CSOUND64.DLL FOR X64
dumpbin /exports csound-mingw64/csound64.dll > exports.txt
@echo LIBRARY CSOUND64 >> csound64.def
@echo EXPORTS >> csound64.def
FOR /F "skip=19 tokens=4" %%l in (exports.txt) do @echo %%l >> csound64.def
lib /def:csound64.def /out:csound64.lib /machine:x6... | |
Disable examples and static libs | :: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ..
if errorlevel 1 exit 1
cmake --build . --config Release --target install
if errorlevel 1 exit 1
| :: Fix for https://github.com/jkriege2/JKQtPlotter/issues/35
set "CXXFLAGS= -MD"
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DJKQtPlotter_BUILD_EXAMPLES=OFF -DJKQtPlotter_BUILD_STATIC_LIBS=OFF ..
if errorlevel 1 exit 1
cmake --build . --config Release --targ... |
Increase waiting time before screenshot taking. |
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 20000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
|
start fgautopilot-0.0.3/fgautopilot.exe
curl -fsS -o nircmd.zip http://www.nirsoft.net/utils/nircmd.zip
7z x nircmd.zip
dir
nircmd.exe cmdwait 60000 savescreenshot "shot.png"
dir
taskkill /f /im "fgautopilot.exe"
|
Add correct PATH for cygwin32 batch script. | @ECHO OFF
REM Test default configuration against full suite on windows.
REM WORKSPACE is always set inside our testing environment. If this is run
REM outside that environment, the caller is responsible for setting it.
IF "%WORKSPACE%"=="" GOTO ErrExit
REM NOTE: This is pretty messy, but it is the only way I could fi... | @ECHO OFF
REM Test default configuration against full suite on windows.
REM WORKSPACE is always set inside our testing environment. If this is run
REM outside that environment, the caller is responsible for setting it.
IF "%WORKSPACE%"=="" GOTO ErrExit
REM NOTE: This is pretty messy, but it is the only way I could fi... |
Update Windows scripts for unicode support | @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
java -jar -Duser.language=en "%~dp0\apktool.jar" %*
| @echo off
if "%PATH_BASE%" == "" set PATH_BASE=%PATH%
set PATH=%CD%;%PATH_BASE%;
chcp 65001 2>nul >nul
java -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0\apktool.jar" %*
|
Revert "the integration package is not in the cli resource" | SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites .
| SET GOPATH=%CD%\gopath
SET PATH=C:\Go\bin;C:\Program Files\Git\cmd\;%GOPATH%\bin;%PATH%
cd %GOPATH%\src\code.cloudfoundry.org\cli
powershell -command set-executionpolicy remotesigned
go get github.com/onsi/ginkgo/ginkgo
ginkgo -r -randomizeAllSpecs -randomizeSuites -skipPackage integration .
|
Use vcbuild for VS 2009. | @rem Used by the buildbot "buildmsi" step.
cmd /c Tools\buildbot\external.bat
@rem build release versions of things
call "%VS90COMNTOOLS%vsvars32.bat"
if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib (
devenv ..\db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
)
@rem build Python
c... | @rem Used by the buildbot "buildmsi" step.
cmd /c Tools\buildbot\external.bat
@rem build release versions of things
call "%VS90COMNTOOLS%vsvars32.bat"
if not exist ..\db-4.4.20\build_win32\release\libdb44s.lib (
vcbuild db-4.4.20\build_win32\Berkeley_DB.sln /build Release /project db_static
)
@rem build Python
cmd ... |
Remove code that deletes build directory every time in conda recipe. Incremental builds are supported now. | cd %RECIPE_DIR%
cd ..
:: Remove the build directory since incremental builds aren't currently supported.
rd /s /q build
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
| cd %RECIPE_DIR%
cd ..
python setup.py install || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
|
Enable to set external SDK path | ::set PSDK_INC_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Include
::set PSDK_LIB_PATH=C:\PROGRA~1\MI2578~1\Windows\v6.0A\Lib
@echo off
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
goto :eof
:set... | @echo off
call :set_sdk_path
call :setshortpath PSDK_INC_PATH %__sdk_path__%\Include
call :setshortpath PSDK_LIB_PATH %__sdk_path__%\Lib
call :clean_sdk_path
goto :eof
:setshortpath
set %1=%~s2
goto :eof
:set_sdk_path
set __sdk_path__="C:\Program Files\Microsoft SDKs\Windows\v6.0A"
if NOT "%SDK_PATH%"=="" set __sdk_p... |
Replace "setup.py test" to "-m pip install -vv ." | "%PYTHON%" setup.py install
"%PYTHON%" setup.py test
if errorlevel 1 exit 1
| "%PYTHON%" setup.py install
"%PYTHON%" -m pip install -vv .
if errorlevel 1 exit 1
|
Revert "switching to 7z as well, sourceforge still broke" | SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\7-Zip;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%
SET /p DOMAIN=<%CD%\bosh-... | SET GOPATH=%CD%\gopath
SET GATSPATH=%GOPATH%\src\github.com\cloudfoundry\cli-acceptance-tests
SET PATH=C:\Go\bin;%PATH%
SET PATH=C:\Program Files\Git\cmd\;%PATH%
SET PATH=%GOPATH%\bin;%PATH%
SET PATH=C:\Program Files\GnuWin32\bin;%PATH%
SET PATH=C:\Program Files\cURL\bin;%PATH%
SET PATH=%CD%;%PATH%
SET /p DOMAIN=<%CD... |
Remove extra space in project gen script | @echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -A x64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy_files
REM o... | @echo off
if not exist build-x64 mkdir build-x64
cd build-x64
REM Update your dependency directories below as necessary
cmake -G"Visual Studio 12" -Ax64 -DOpenCV_DIR="C:\libs\opencv-2.4.10\build-x64" -DSFML_ROOT="C:\libs\SFML-2.3.2-64" -DPROTOBUF_SRC_ROOT_FOLDER="C:\libs\protobuf-2.6.1" .. && goto :copy_files
REM on... |
Remove empty external dirs if present | git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
git submodule add --depth 1 -- https://github.com/onqtam/doctest.git
cd ..
| git init
touch README.md
git add README.md
git add .gitignore
git commit -m"initial commit"
cd external
rmdir fmt
git submodule add --depth 1 -- https://github.com/fmtlib/fmt.git
rmdir spdlog
git submodule add --depth 1 -- https://github.com/gabime/spdlog.git
rmdir doctest
git submodule add --depth 1 -- https://github.... |
Fix a build package for Windows fails on AppVeyor CI | @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST... | @echo off
set BIN_NAME=sqlitebiter
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST_DIR_NAME%/%BIN_NAME%.exe
set ARCHIVE_PATH=%DIST_DIR_NAME%... |
Package restore script fixes (possibly some due to PowerShell 4 compatibility issues) | @echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "Get-Content '%packages_path%\repositories.config' | Select-Xml //rep... | @echo off
setlocal
for %%i in (NuGet.exe) do set nuget_path=%%~dpnx$PATH:i
if "%nuget_path%"=="" goto :nonuget
set packages_path=%~dp0packages
if exist "%packages_path%\repositories.config" (
for /f "usebackq delims=" %%p in (`PowerShell -C "[xml](Get-Content '%packages_path%\repositories.config') | Select-Xm... |
Add log message for when the script is done. | @echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0
if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc
:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing ... | @echo off
pushd %cd%
%~d0
cd %~dp0
echo Temporarily changing directory to %~dp0
if exist %USERPROFILE%\_vimrc goto GVIMRC
echo Installing _vimrc
echo set rtp+=%CD%\vim> %USERPROFILE%\_vimrc
echo source %CD%\vim\vimrc >> %USERPROFILE%\_vimrc
:GVIMRC
if exist %USERPROFILE%\_gvimrc goto END
echo Installing ... |
Add error check to build script | rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLAT... | rem CMake/MinGW workaround - remove sh.exe from PATH
where sh
set MINGW=C:\Qt\Tools\mingw530_32
set QTDIR=C:\Qt\5.7\mingw53_32
set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
set CMAKE_PREFIX_PATH=%QTDIR%
set PATH=%MINGW%\bin;%PATH%;%QTDIR%\bin
:: Qt needs to find the windows platform plugin to run tests
set QT_QPA_PLAT... |
Add "mock" to the installed packages | @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
| @ECHO OFF
IF NOT EXIST virtualenv GOTO DIRNOTEXISTS
:DIREXISTS
call virtualenv\scripts\activate
pip install --use-mirrors argparse coverage doxypy lockfile mock pyserial unittest-xml-reporting
GOTO DONE
:DIRNOTEXISTS
python virtualenv.py virtualenv
GOTO DIREXISTS
:DONE
|
Add a small script for debugging on windows | @echo off
if "%OS%" == "Windows_NT" setlocal
if NOT DEFINED JAVA_HOME goto :err
REM Ensure that any user defined CLASSPATH variables are not used on startup
set CLASSPATH=
REM For each jar in the lib directory call append to build the CLASSPATH variable.
for %%i in ("..\output\jardist\*.jar") do call :append "%%i"
... | |
Correct environment variable in build script | xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe %OXYPLOT_FTP_SERVER% %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PASSWORD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1 | xcopy ..\icons\favicon.ico ..\Web /Y
mkdir ..\Web\Examples
xcopy ..\documentation\images\series ..\Web\Examples /Y
..\Tools\Lynx\FtpUpload.exe ftp.oxyplot.org %OXYPLOT_FTP_USER% %OXYPLOT_FTP_PWD% ..\Web\*.* %OXYPLOT_FTP_FOLDER% /t=1 |
Update Windows build to deal with newline issue | mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% \
.
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
| mkdir build
cd build
:: Configure.
cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%PREFIX% .
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
|
Remove unbuilt tests on Windows CE. | set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubs... | set QT=%1
set CETEST=%QT%\bin\cetest.exe
set CETEST_ARGS=-cache %QT%\.qmake.cache -libpath \Windows -f
%CETEST% %CETEST_ARGS% tests\auto\qvaluespace\qvaluespace.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespaceprovider\qvaluespaceprovider.pro
%CETEST% %CETEST_ARGS% tests\auto\qvaluespacesubscriber\tst_qvaluespacesubs... |
Revert script pollution that was accidentally pushed | call "%VS%\VC\vcvarsall.bat" x86
@echo on
cov-build --dir cov_dir msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
cov-analyze --dir cov_dir -j auto --aggressiveness-level high --security --concurrency --preview --all --rule --enable... | call "%VS%\VC\vcvarsall.bat" x86
@echo on
msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE%
if errorlevel 1 goto error
exit 0
:error
exit 1
|
Stop doing "Test" builds for now | @echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Test
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem Release variables
rem... | @echo off
rem =======================================================
rem Settings
rem =======================================================
set Platform=Win64
set BuildMode=Development
set SessioName=Release
set SessionOwner=AutoBuild
rem =======================================================
rem Release variab... |
Update a build script for Windows | @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST... | @echo off
set BIN_NAME=sqlitebiter
pip install --upgrade pip
pip install --upgrade .[build]
echo "----- start build -----"
pyinstaller cli.py --onefile --name %BIN_NAME% --clean --noconfirm --specpath build
echo "----- complete build -----"
echo "----- start compress -----"
set DIST_DIR_NAME=dist
set BIN_PATH=%DIST... |
Add a batch file to build for Unity (release 2.0, with alternate output directories) | setlocal
pushd %~dp0
set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v4.0.30319
call %msBuildDir%\msbuild.exe ClientKit\ClientKit.csproj /p:Configuration=Release20 /p:OutputPath=..\Managed-OSVR-Unity /p:NativeOutputSuffix32=x86 /p:NativeOutputSuffix64=x86_64%*
endlocal
| |
Add windows ssh wrapper batch file | @echo off
set opts="-oStrictHostKeyChecking=no -oPasswordAuthentication=no -oKbdInteractiveAuthentication=no -oChallengeResponseAuthentication=no"
if "%GIT_IDENTITY%" == "" goto NOIDENT
set opts="%opts% -i %GIT_IDENTITY%"
:NOIDENT
%GIT_SSH% %opts% %*
| |
Add pause to golang bat for testing | pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
| pushd ..
if [%1] == [] (
rem === BUILDING GolangSDK ===
node generate.js golangSDK=..\sdks\GolangSDK -apiSpecPath
) else (
rem === BUILDING GolangSDK with params %* ===
node generate.js golangSDK=..\sdks\GolangSDK %*
)
popd
pause |
Revert "Fix error propagation in T4 batch script" | @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%
| @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
|
Remove pause in dfu bat file | Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
pause | Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 erase
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 get
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 flash Debug\MegaFly2.hex --suppress-bootloader-mem
Library\DFU-programmer\DFU\dfu-programmer at32uc3c1512 reset
REM pause |
Remove code for legacy OSes | setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:XP_X86,Server2003_X86,XP_X64,Server2003_X64,Vista_X86,Server2008_X86,Vista_X64,Server2008_X64,7_X86,7_X64,Server2008R2_X64,8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X... | setlocal
call clean.bat
call ..\Tools\SetVsEnv x86
mkdir Install\rhel
copy qemupciserial.* .\Install\
inf2cat /driver:Install /uselocaltime /os:8_X86,8_X64,Server8_X64,6_3_X86,6_3_X64,Server6_3_X64,10_X86,10_X64,Server10_X64
copy rhel\qemupciserial.* .\Install\rhel
inf2cat /driver:Install\rhel /uselocaltime /os:8_X8... |
Change npm install api for installing azure-cli as the tarball api seems to be broken. | @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist node_modules\azure-cli\bin\azure (
cmd /c npm update https://github.com/amitapl/azure-sdk-tools-xplat/tarball/kudu_s21_5
) else (
cmd /c npm install https:/... | @echo off
setlocal enabledelayedexpansion
pushd %1
set attempts=5
set counter=0
:retry
set /a counter+=1
echo Attempt %counter% out of %attempts%
if exist node_modules\azure-cli\bin\azure (
cmd /c npm update git://github.com/amitapl/azure-sdk-tools-xplat.git#kudu_s21_5
) else (
cmd /c npm install git://github.... |
Remove ctest that doesn't do anything | mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Test.
ctest
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
| mkdir build
cd build
cmake -G "NMake Makefiles" ^
-DCMAKE_INSTALL_PREFIX="%PREFIX%" ^
-DCMAKE_BUILD_TYPE=Release ^
%SRC_DIR%
if errorlevel 1 exit 1
:: Build.
nmake
if errorlevel 1 exit 1
:: Install.
nmake install
if errorlevel 1 exit 1
|
Add cURL to the path for windows32 CATS tests | git submodule update --init
SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main
SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /... | git submodule update --init
SET CLIPATH=c:\jenkins\workspace\go-cli-tests-windows32Bit
SET GOPATH=%CLIPATH%
c:\Go\bin\go build -v -o cf-windows-386.exe main
SET GOPATH=c:\Users\Administrator\go
SET CATSPATH=%GOPATH%\src\github.com\cloudfoundry\cf-acceptance-tests
copy %CLIPATH%\cf-windows-386.exe %CATSPATH%\gcf.exe /... |
Update PATH before calling build command. | @echo off
git rev-parse HEAD > version.txt
bundle exec middleman build %*
| @echo off
SET PATH=%PATH%;D:\home\site\deployments\tools\r\ruby-2.2.2-x64-mingw32\bin
git rev-parse HEAD > version.txt
bundle exec middleman build %*
|
Add third-party add-on creation and management infrastructure | @echo off
if not "%ROO_CLASSPATH_FILE%" == "" goto ok
echo Must set ROO_CLASSPATH_FILE to X:\checkout\spring-roo\bootstrap\target\roo_classpath.txt
exit /b
:ok
rem echo Using Roo classpath file [%ROO_CLASSPATH_FILE%]
rem Will be only one line, but the following obvious form doesn't work
rem set /p ROO_CP=< ... | @echo off
if not "%ROO_CLASSPATH_FILE%" == "" goto ok
echo Must set ROO_CLASSPATH_FILE to X:\checkout\spring-roo\bootstrap\target\roo_classpath.txt
exit /b
:ok
rem echo Using Roo classpath file [%ROO_CLASSPATH_FILE%]
rem Will be only one line, but the following obvious form doesn't work
rem set /p ROO_CP=< ... |
Remove wildcard from del statement | rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
rmdir /q /s dist\*.*
del /s /q dist\*.*
rem ****** Compile our executable and core zipfile
python setup.py py2e... | rem Tool to assemble Windows builds
rem Requirements are 7-zip, py2exe, and FreeExtractor
PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
rem ****** Clean out the old junk
del /s /f /q dist
rem ****** Compile our executable and core zipfile
python setup.py py2exe
rem ****** Remove... |
Remove run E2E tests options from Windows C build | @REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all... | @REM Copyright (c) Microsoft. All rights reserved.
@REM Licensed under the MIT license. See LICENSE file in the project root for full license information.
setlocal
set build-root=%~dp0..
rem // resolve to fully qualified path
for %%i in ("%build-root%") do set build-root=%%~fi
REM -- C --
cd %build-root%\c\build_all... |
Kill server on build failure too. | call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true
if ERRORLEVEL 1 (
echo Build failed
exit /b 1
)
REM Kill any instances of VBCSCompiler.exe to release locked files;
REM otherwise future CI runs may fail while trying to delete thos... | call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
msbuild /v:m /m BuildAndTest.proj /p:CIBuild=true
if ERRORLEVEL 1 (
taskkill /F /IM vbcscompiler.exe
echo Build failed
exit /b 1
)
REM Kill any instances of VBCSCompiler.exe to release locked files;
REM otherwise future CI runs... |
Patch for version 0.74 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.73" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.74" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
|
Fix build script for MS Windows x86 | set project=clibudp
rem //expected build dir structure
set buildexp=build\\Visual_Studio_12_2013\\x86
set currentdir=%cd%
set builddir=.\\%buildexp%
mkdir %builddir%
rem //get path to clibcdc libs
set clibcdc=..\\..\\clibcdc\\%buildexp%
pushd %clibcdc%
set clibcdc=%cd%
popd
rem //launch cmake to generate build env... | set project=clibudp
rem //expected build dir structure
set buildexp=build\\Visual_Studio_12_2013\\x86
set currentdir=%cd%
set builddir=.\\%buildexp%
set libsdir=..\\libs
mkdir %builddir%
rem //get path to clibcdc libs
set clibcdc=%libsdir%\\clibcdc\\%buildexp%
pushd %clibcdc%
set clibcdc=%cd%
popd
rem //get path t... |
Set default port in .bat to what it should be | @echo off
cls
:start
echo Starting server...
TheForest -batchmode -nographics -ip 0.0.0.0 -port 27000 -maxplayers 10 -hostname "My Oxide Server" -friendsonly 0
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
TheForest -batchmode -nographics -ip 0.0.0.0 -port 27016 -maxplayers 10 -hostname "My Oxide Server" -friendsonly 0
echo.
echo Restarting server...
echo.
goto start
|
Replace absolute path of python | @echo off
set PYTHONPATH=%CD%
C:\Python27\python.exe reader_browser\reader_browser.py %*
| @echo off
set PYTHONPATH=%CD%
python reader_browser\reader_browser.py %*
|
Use velocity and jdom that was copied from jakarta-site2 | @echo off
echo.
echo James Build System
echo -------------------
set ANT_HOME=tools
set CLASSPATH=lib\xerces.jar
%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
goto cleanup
:cleanup
set ANT_HOME=
| @echo off
echo.
echo James Build System
echo -------------------
set ANT_HOME=tools
set CLASSPATH=lib\xerces-1.4.3.jar;tools\lib\velocity-1.3-dev.jar;tools\lib\jdom-b7.jar
%ANT_HOME%\bin\ant.bat -emacs %1 %2 %3 %4 %5 %6 %7 %8
goto cleanup
:cleanup
set ANT_HOME=
|
Use powershell instead of bitsadmin for download genie.exe | @echo off
if not exist "genie.exe" (
echo Downloading genie...
bitsadmin /transfer "genie" "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" "%~dp0\genie.exe"
)
IF "%1"=="" (
echo No argument set
echo Exemple : build.bat vs2015
exit 1
)
genie.exe %*
| @echo off
if not exist "genie.exe" (
echo Downloading genie...
rem bitsadmin /transfer "genie" "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" "%~dp0\genie.exe"
powershell Invoke-WebRequest -Uri "https://github.com/bkaradzic/bx/raw/master/tools/bin/windows/genie.exe" -OutFile "%~dp0\genie.e... |
Patch for version 0.92 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.91" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.92" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
echo.
goto start
|
Fix error propagation in T4 batch script | @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
| @echo off
pushd "%~dp0"
for /f "tokens=*" %%f in ('dir /s /b *.tt') do (
echo>&2 dotnet t4 "%%f"
dotnet t4 "%%f" || goto :end
)
:end
popd
exit /b %ERRORLEVEL%
|
Use pushd instead of cd | git flow version > NUL
if %ERRORLEVEL% GEQ 1 (
copy gitflow-windows-dependencies\* "C:\Program Files (x86)\Git\bin"
cd gitflow
contrib\msysgit-install.cmd "C:\Program Files (x86)\Git"
)
echo "Installing..."
copy git-release "C:\Program Files (x86)\Git\bin"
echo "Done!"
| git flow version > NUL
if %ERRORLEVEL% GEQ 1 (
copy gitflow-windows-dependencies\* "C:\Program Files (x86)\Git\bin"
pushd gitflow
contrib\msysgit-install.cmd "C:\Program Files (x86)\Git"
popd
)
echo "Installing..."
copy git-release "C:\Program Files (x86)\Git\bin"
echo "Done!"
|
Build script: Better error handling if cannot locate Visual Studio. | @REM Starts Visual Studio Developer Command Prompt.
@IF DEFINED VisualStudioVersion EXIT /B 0
@REM https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
SET "VSCMD_START_DIR=%CD%"
@REM VS2017 uses vswhere.exe for locating the installation.
FOR ... | @REM Starts Visual Studio Developer Command Prompt.
@IF DEFINED VisualStudioVersion EXIT /B 0
@REM https://developercommunity.visualstudio.com/content/problem/26780/vsdevcmdbat-changes-the-current-working-directory.html
SET "VSCMD_START_DIR=%CD%"
@REM VS2017 uses vswhere.exe for locating the installation.
FOR ... |
Patch for version 0.93 update | @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.92" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
timeout /t 10
echo.
goto start
| @echo off
cls
:start
echo Starting server...
"Nomad Server\NomadServer.exe" -name "My Oxide Server" -port 5127 -slots 10 -clientVersion "0.93" -password "" -tcpLobby "149.202.51.185" 25565
echo.
echo Restarting server...
timeout /t 10
echo.
goto start
|
Add a script to generate MDB files: those are needed for Windows-compiled Sharpmake to run on Linux | :: Script that generates Mono MDB files from Windows/.NET PDB files.
@echo off
setlocal enabledelayedexpansion
set CONFIGURATIONS=
if "%~1" equ "" (
set CONFIGURATIONS=Debug Release
) else if /i "%~1" equ "debug" (
set CONFIGURATIONS=Debug
) else if /i "%~1" equ "release" (
set CONFIGURATIONS=Release
) el... | |
Make sure the Python from the build environment is used when building dynd.nd. | cd %RECIPE_DIR%
cd ..\..\
python setup.py install --target=nd --single-version-externally-managed --record=record.txt || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
| cd %RECIPE_DIR%
cd ..\..\
%PYTHON% setup.py install --target=nd --single-version-externally-managed --record=record.txt || exit 1
rd /s /q %SP_DIR%\__pycache__
rd /s /q %SP_DIR%\numpy
rd /s /q %SP_DIR%\Cython
|
Validate if the folder passed in is a git repo and terminate if not. | @echo OFF
setlocal ENABLEDELAYEDEXPANSION
IF [%1]==[] GOTO :USAGE
set MKREPO_PATH=%1
SET MKREPO_PATH=%MKREPO_PATH:/=\%
REM Check if its fully qualified.
echo %MKREPO_PATH% | findstr /b ^\\\\ >nul
IF ERRORLEVEL 1 (
echo ERROR: "%MKREPO_PATH%" is not a fully qualified UNC share name.
exit /b 1
)
REM FI... | @echo OFF
setlocal ENABLEDELAYEDEXPANSION
IF [%1]==[] GOTO :USAGE
set MKREPO_PATH=%1
SET MKREPO_PATH=%MKREPO_PATH:/=\%
REM Check if its fully qualified.
echo %MKREPO_PATH% | findstr /b ^\\\\ >nul
IF ERRORLEVEL 1 (
echo ERROR: "%MKREPO_PATH%" is not a fully qualified UNC share name.
exit /b 1
)
REM FI... |
Revert "Add an additional Cygwin package repo with patched ninja" | set CACHE=C:\cache
set CYGWIN_MIRROR="http://cygwin.mirror.constant.com"
set CYGWIN_ADDITIONAL_REPO="http://www.dronecode.org.uk/cygwin/"
set CYGWIN_ADDITIONAL_REPO_KEY="http://www.dronecode.org.uk/cygwin/dronecode.gpg"
if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_... | set CACHE=C:\cache
set CYGWIN_MIRROR="http://cygwin.mirror.constant.com"
if _%arch%_ == _x64_ set SETUP=setup-x86_64.exe && set CYGWIN_ROOT=C:\cygwin64
if _%arch%_ == _x86_ set SETUP=setup-x86.exe && set CYGWIN_ROOT=C:\cygwin
if not exist %CACHE% mkdir %CACHE%
echo Updating Cygwin and installing ninja and test prere... |
Remove quotes from path variable definition | set SOURCE_DIR=%CD%
set BUILD_DIR="../build-sqlitewrapper"
set CMAKE_COMMAND=cmake.exe
set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
python projectfiles_unchanged.py
if %ERRORLEVEL% NEQ 0 (
RMDIR /S /Q "%BUILD_DIR%"
)
i... | set SOURCE_DIR=%CD%
set BUILD_DIR=../build-sqlitewrapper
set CMAKE_COMMAND=cmake.exe
set MAKE_COMMAND=C:\Qt\Tools\QtCreator\bin\jom.exe /J 2
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
python projectfiles_unchanged.py
if %ERRORLEVEL% NEQ 0 (
RMDIR /S /Q "%BUILD_DIR%"
)
if ... |
Build using xbuild on Windows for mono | @@@ setlocal
@@@ for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set msbuild=%windir%\Microsoft.NET\Framework\%%i\msbuild.exe
@@@ if not defined msbuild (echo MSBuild.exe not found>&2 & exit /b 42)
@@@ if defined msbuild "%msbuild%" ... | @echo off
setlocal
for %%a in (%*) do echo "%%a" | findstr /C:"mono">nul && set buildtool=xbuild.bat
if not defined buildtool for /f %%i in ('dir /b /ad /on "%windir%\Microsoft.NET\Framework\v*"') do @if exist "%windir%\Microsoft.NET\Framework\%%i\msbuild".exe set buildtool=%windir%\Microsoft.NET\Framework\%%i\msbuild.... |
Remove what we don't need | @echo off
REM Ensure we've set things up properly
if [%1] == [] goto Fail
REM Get authentication information
set connection=%1
REM Convert the working directory to something scp can use
REM First grab the invocation directory (/bin)
set cwd=%~dp0
REM Replace \ slashes with / slashes
set cwd=%cwd:\=/%
REM Replace c: ... | @echo off
REM Ensure we've set things up properly
if [%1] == [] goto Fail
REM Get authentication information
set connection=%1
REM Convert the working directory to something scp can use
REM First grab the invocation directory (/bin)
set cwd=%~dp0
REM Replace \ slashes with / slashes
set cwd=%cwd:\=/%
REM Replace c: ... |
Build script: Run MSBuild multi-threaded | @echo off
::Compiles the Visual Studio solution.
pushd "%~dp0"
rem Project settings
set SOLUTION_FILE=NanoByte.Common.sln
rem Determine VS version
if defined VS140COMNTOOLS (
::Visual Studio 2015
call "%VS140COMNTOOLS%vsvars32.bat"
goto vs_ok
)
echo ERROR: No Visual Studio installation found. >&2
... | @echo off
::Compiles the Visual Studio solution.
pushd "%~dp0"
rem Project settings
set SOLUTION_FILE=NanoByte.Common.sln
rem Determine VS version
if defined VS140COMNTOOLS (
::Visual Studio 2015
call "%VS140COMNTOOLS%vsvars32.bat"
goto vs_ok
)
echo ERROR: No Visual Studio installation found. >&2
... |
Fix comments on .bat file | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
| :: Copyright (c) 2015-present, Facebook, Inc.
:: All rights reserved.
::
:: This source code is licensed under the BSD-style license found in the
:: LICENSE file in the root directory of this source tree. An additional grant
:: of patent rights can be found in the PATENTS file in the same directory.
|
Add jenkins build batch file. |
md build
cd build
cmake -DLIBWS_WITH_AUTOBAHN=ON ..
cmake --build .
ctest
bin\Debug\autobahntest.exe --config ..\test\autobahn\libws.cfg
| |
Update 7zip to version 9.20 | if %sentinel% NEQ __sentinel__ exit
call %tmp%\wget_and_install.bat http://downloads.sourceforge.net/sevenzip 7z465.msi %base_dir%\7z
| if %sentinel% NEQ __sentinel__ exit
call %tmp%\wget_and_install.bat http://downloads.sourceforge.net/sevenzip 7z920.msi %base_dir%\7z
|
Add a helper script to test MinGW builds locally (to help debugging the build server) | @rem MinGW build test - used to test MinGW builds locally
@rem Adapt path/versions before use
@rem This batch file must be used from the repository root
@if exist mingw.bat cd ..
@set PATH=%ProgramFiles%\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin;%PATH%
@set PATH=%ProgramFiles%\GnuWin32\bin;%PAT... | |
Change the don’t sign message log. | @echo off
rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent.
rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact.
rem To sign the Windows installer set the `SIGN_WINDOWS_INSTALLER=true` environme... | @echo off
rem This will download the Kolibri windows installer artifact at the windows-2016 buildkite agent.
rem After the installer successfully sign it will upload the signed installer at the Sign Windows installer pipeline artifact.
rem To sign the Windows installer set the `SIGN_WINDOWS_INSTALLER=true` environme... |
Fix path to SharpDX.build for certification tests. | @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86
msbuild /tv:12.0 /p:BuildSignedSharpDX=false /t:RunCertificationTests /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true... | @echo off
setlocal
set PATH=C:\Program Files (x86)\Git\bin\;%PATH%
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\vc\vcvarsall.bat" x86
msbuild /tv:12.0 /p:BuildSignedSharpDX=false /t:RunCertificationTests /verbosity:quiet /clp:ErrorsOnly /fl /flp:Summary;Verbosity=minimal;logfile=BuildErrors.log;Append=true... |
Allow more arguments to fake | REM If GitVersion is not available then run
REM cinst GitVersion.Portable
REM to install it
GitVersion.exe /output buildserver /exec scripts\lib\FAKE\tools\Fake.exe /execArgs "scripts\build.fsx %1" /l console
| REM If GitVersion is not available then run
REM cinst GitVersion.Portable
REM to install it
GitVersion.exe /output buildserver /exec scripts\lib\FAKE\tools\Fake.exe /execArgs "scripts\build.fsx %1 %2 %3 %4 %5 %6 %7 %8 %9 " /l console
|
Build script should fail for problems | @echo Off
pushd %~dp0
setlocal
:Build
call npm install
call npm run check
call npm run build
call npm run lint
call npm run coverage:teamcity
call npm run integration-test
call npm run integration-test-stdin-windows
if %ERRORLEVEL% neq 0 goto BuildFail
goto BuildSuccess
:BuildFail
echo.
echo *** BUILD FAILED ***
got... | @echo Off
pushd %~dp0
setlocal
:Build
call npm install
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run check
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run build
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run lint
if %ERRORLEVEL% neq 0 goto BuildFail
call npm run coverage:teamcity
if %ERRORLEVEL% neq 0 got... |
Reorder build script to work around unexplained error | @echo on
git submodule update --init --recursive
cd Agiil.Web
npm install
cd ..
nuget restore Agiil.sln | @echo on
git submodule update --init --recursive
nuget restore Agiil.sln
cd Agiil.Web
REM It's very strange but this has to be the last line of the script.
REM As soon as it completes, this script is terminated and nothing afterwards
REM is executed.
npm install
|
Set --silent to reduce android sdk logs (hopefully). | echo y | "%ANDROID_HOME%/tools/android.bat" update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
| echo y | "%ANDROID_HOME%/tools/android.bat" --silent update sdk --no-ui --all --filter android-10,android-23,platform-tools,tools,build-tools-23.0.3
|
Enable logging in installer on Windows | set "ROBOZONKY_EXECUTABLE=${com.github.robozonky.distribution.jar}"
set "HERE=%~dp0%"
echo Will run %ROBOZONKY_EXECUTABLE% from '%HERE%'.
rem Use Java runtime bundled with RoboZonky, if available.
set "CUSTOM_JRE_LOCATION=%HERE%runtime\"
set "JAVA_EXECUTABLE=java.exe"
IF EXIST %CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABL... | set "ROBOZONKY_EXECUTABLE=${com.github.robozonky.distribution.jar}"
set "HERE=%~dp0%"
echo Will run %ROBOZONKY_EXECUTABLE% from '%HERE%'.
rem Use Java runtime bundled with RoboZonky, if available.
set "CUSTOM_JRE_LOCATION=%HERE%runtime\"
set "JAVA_EXECUTABLE=java.exe"
IF EXIST %CUSTOM_JRE_LOCATION%bin\%JAVA_EXECUTABL... |
Allow spaces in directory paths of output dir | @echo off
for /f "delims=" %%i in ('npm config get prefix') do set output=%%i
@node %output%/node_modules/gogo/gg.js %*
echo on | @echo off
for /f "delims=" %%i in ('npm config get prefix') do set output=%%i
@node "%output%/node_modules/gogo/gg.js" %*
echo on
|
Use absolute path to conda.bat in windows image | @echo off
setlocal EnableDelayedExpansion
SET VERSIONS=2.7 3.5 3.6 3.7 3.8
SET SOURCEDIR=%cd%
REM Build packages
for %%v in (%VERSIONS%) do (
SET ENV_NAME=py%%v
REM Create and activate environment
cd %ROOT_DIR%
CALL conda create -y -n py%%v python=%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
... | @echo off
setlocal EnableDelayedExpansion
REM Initialize conda
C:\Miniconda/condabin/conda.bat init powershell
SET VERSIONS=2.7 3.5 3.6 3.7 3.8
SET SOURCEDIR=%cd%
REM Build packages
for %%v in (%VERSIONS%) do (
SET ENV_NAME=py%%v
REM Create and activate environment
cd %ROOT_DIR%
CALL C:\Miniconda/co... |
Revert "Install Visual C++ 2008 SP1 Redistributables" | powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/d/d/9/dd9a82d0-52ef-40db-8dab-795376989c03/vcredist_x86.exe', 'vcredist_x86.exe')"
if errorlevel 1 exit 1
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.microsoft.com/download/2/d/6/2d61... | for %%F in ("." "bin") do (
cmake -G "%CMAKE_GENERATOR%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES:BOOL="OFF" ^
-DCMAKE_INSTALL_DEBUG_LIBRARIES_ONLY:BOOL="OFF" ^
-DCMAKE_INSTALL_OPENMP_LIBRARIES:BOOL="ON" ^
-DCMAKE_INSTALL_SY... |
Add wrapper batch file for Jenkins to build | mkdir ..\libm2dec\Release
mkdir ..\libm2dec\Debug
mkdir ..\h264dec\Release
mkdir ..\h264dec\Debug
mkdir ..\m2dec\Release
mkdir ..\m2dec\Debug
"C:\Program Files (x86)\Renesas\Hew\hmake.exe" m2dec.mak > buildlog.txt
find "ERROR" buildlog.txt
if errorlevel 1 exit /b 0
exit /b 1
| |
Install python 2.7 on a separate prefix on Windows | setlocal enableextensions enabledelayedexpansion
git config --system core.longpaths true
set LIBRARY_PATHS=-I %LIBRARY_INC%
pushd %LIBRARY_INC%
for /F "usebackq delims=" %%F in (`dir /b /ad-h`) do (
set LIBRARY_PATHS=!LIBRARY_PATHS! -I %LIBRARY_INC%\%%F
)
popd
endlocal
set PATH=%cd%\jom;%PATH%
SET PATH=%cd%\gnu... | setlocal enableextensions enabledelayedexpansion
git config --system core.longpaths true
set LIBRARY_PATHS=-I %LIBRARY_INC%
pushd %LIBRARY_INC%
for /F "usebackq delims=" %%F in (`dir /b /ad-h`) do (
set LIBRARY_PATHS=!LIBRARY_PATHS! -I %LIBRARY_INC%\%%F
)
popd
endlocal
:: Chromium requires Python 2.7 to generat... |
Change PHPUnit script to use channel pear.symfony.com instead of pear.symfony-project.com | @ECHO OFF
ECHO Press enter to install PHPUnit for PHP
PAUSE
cmd /C pear update-channels
cmd /C pear upgrade
cmd /C pear channel-discover pear.phpunit.de
cmd /C pear channel-discover pear.symfony-project.com
cmd /C pear clear-cache
cmd /C pear install --alldeps phpunit/PHPUnit
ECHO Installation complete
PAUSE | @ECHO OFF
ECHO Press enter to install PHPUnit for PHP
PAUSE
cmd /C pear update-channels
cmd /C pear upgrade
cmd /C pear channel-discover pear.phpunit.de
cmd /C pear channel-discover pear.symfony.com
cmd /C pear clear-cache
cmd /C pear install --alldeps phpunit/PHPUnit
ECHO Installation complete
PAUSE |
Put bin and share in same place | @echo off
copy /y bin\*.dll %PREFIX%\ > nul
copy /y bin\cmake.exe %PREFIX%\ > nul
xcopy share %PREFIX%\share /E /I > nul
| @echo off
xcopy bin %LIBRARY_BIN%\bin /E /I > nul
xcopy share %LIBRARY_BIN%\share /E /I > nul
|
Call node on the folder rather than on DrathybotAlpha | call npm install
@echo off
@echo if "%%~1"=="-FIXED_CTRL_C" ( > s.bat
@echo shift >> s.bat
@echo ) else ( >> s.bat
@echo call ^<NUL %%0 -FIXED_CTRL_C %%* >> s.bat
@echo goto :EOF >> s.bat
@echo ) >> s.bat
@echo cd database >> s.bat
@echo i.vbs "start /WAIT restart.bat" >> s.bat
@echo cd .. >> s.bat
@echo sta... | call npm install
@echo off
@echo if "%%~1"=="-FIXED_CTRL_C" ( > s.bat
@echo shift >> s.bat
@echo ) else ( >> s.bat
@echo call ^<NUL %%0 -FIXED_CTRL_C %%* >> s.bat
@echo goto :EOF >> s.bat
@echo ) >> s.bat
@echo cd database >> s.bat
@echo i.vbs "start /WAIT restart.bat" >> s.bat
@echo cd .. >> s.bat
@echo sta... |
Change GUID for python 2.7.12 | @echo off
:: uninstall Python 2.7 64bit
MsiExec.exe /X {16E52445-1392-469F-9ADB-FC03AF00CD62} /QN
:: wipe the Python directory
:: DOS hack first create dir because Windows cannot test not existing without error message
md c:\Python27 1>nul 2>nul
rd /s /q c:\Python27 || echo Failure: c:\Python27 still exists, please... | @echo off
:: uninstall Python 2.7.12 64bit
MsiExec.exe /X {9DA28CE5-0AA5-429E-86D8-686ED898C666} /QN
:: wipe the Python directory
:: DOS hack first create dir because Windows cannot test not existing without error message
md c:\Python27 1>nul 2>nul
rd /s /q c:\Python27 || echo Failure: c:\Python27 still exists, ple... |
Add a easy rununitests script for WinCE | set DEPOT="%CD%"
IF NOT EXIST sfw.pro GOTO NOSOURCE
set CETESTCOMMAND=cetest -cache %QTDIR%\.qmake.cache -libpath \Windows
cd %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\servicemetadata
call %CETESTCOMMAND%
cd %DEPOT%\tests\auto\servicedatabase
call ... | |
Add a rununittests script for WinCE | set DEPOT="%CD%"
IF NOT EXIST bearermanagement.pro GOTO NOSOURCE
set CETESTCOMMAND=cetest -cache %QTDIR%\.qmake.cache -libpath \Windows
IF NOT EXIST %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\ GOTO SKIPDEPLOY
cd %DEPOT%\..\..\qa-dungeon\mainline\tests\wince\deploy\
call %CETESTCOMMAND%
:SKIPDEP... | |
Create new ref with ref count. | @ECHO OFF
:USAGE
:START
:INITIALIZE
SETLOCAL ENABLEDELAYEDEXPANSION
SET BASE_DIR=%~DP0
SET IN_VAR_NAME=%1
SET IN_VALUE=%2
SET OUT_VAR_NAME=%1
:CODE
SET GLOBALS_FILE=%BASE_DIR%\globals.txt
SET REFERENCE_COUNT=1
SET VALUE=
:WHILE_REF_EXISTS
CALL GEN-REF REFERENCE
CALL... | |
Add proper error code handling | : REM BAT-file name pk2cc5x.bat
: REM %1=C:\PK2proj\ path to the tool-chain
: REM %2=PIC16f690 pic device name
: REM %3=C:\PK2proj\Work\ path to work directory
: REM %4=hello_blink.c File name
: REM %5=hello_blink File name w... | : REM BAT-file name pk2cc5x.bat
: REM %1=C:\PK2proj\ path to the tool-chain
: REM %2=PIC16f690 pic device name
: REM %3=C:\PK2proj\Work\ path to work directory
: REM %4=hello_blink.c File name
: REM %5=hello_blink File name w... |
Add Program Files\7-Zip to path | PATH=C:\python26;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
| PATH=C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
del /q /s dist\*.*
python setup.py py2exe
cd dist
7z d library.zip jinja2\* dns\* 'graphy\*
del /s w9xpopen.exe
copy ..\README.txt .
7z a namebench_for_Windows.zip -r *
namebench -x -O 8.8.8.8 -t5 -o test.html
start test.html
cd ..
|
Add batch file to test if imports from packages work with package restore | rmdir /S /Q %~dp0packages
msbuild %~dp0src\PaketTestApp\PaketTestApp.csproj
@rem If the assembly is signed then the targets file from the StrongNamer package was included correctly
sn -T %~dp0src\PaketTestApp\bin\Debug\Octokit.dll | |
Use RUN_TESTS target with Visual Studio generator | :<<"::CMDLITERAL"
@echo off
goto :CMDSCRIPT
::CMDLITERAL
#!/bin/bash
set -euo pipefail
IFS=$$'\n\t'
script_dir=$$(cd $$(dirname $$0); pwd -P)
repo_dir=$$(dirname $$script_dir)
build_dir=$$repo_dir/_build
cmake --build $$build_dir --target test
exit $$?
:CMDSCRIPT
@echo off
setlocal
call :Main "%~f0" "%~dp0" "%~dp0.... | :<<"::CMDLITERAL"
@echo off
goto :CMDSCRIPT
::CMDLITERAL
#!/bin/bash
set -euo pipefail
IFS=$$'\n\t'
script_dir=$$(cd $$(dirname $$0); pwd -P)
repo_dir=$$(dirname $$script_dir)
build_dir=$$repo_dir/_build
cmake --build $$build_dir --target test
exit $$?
:CMDSCRIPT
@echo off
setlocal
call :Main "%~f0" "%~dp0" "%~dp0.... |
Add upgrade script for windows | echo "Upgrading Codebrag 1.2 to 2.0"
java -Dconfig.file=codebrag.conf -cp codebrag.jar com.softwaremill.codebrag.dao.sql.MigrateV1_2ToV2_0 | |
Use tdm-gcc symlink instead of tdm-gcc-4.9.2. | @rem This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.
@rem
@rem Copyright 2014 Institute of Formal and Applied Linguistics, Faculty of
@rem Mathematics and Physics, Charles University in Prague, Czech Republic.
@rem
@rem This Source Code Form is subject to the terms of the Mozilla Public
@rem Lic... | @rem This file is part of C++-Builtem <http://github.com/ufal/cpp_builtem/>.
@rem
@rem Copyright 2014 Institute of Formal and Applied Linguistics, Faculty of
@rem Mathematics and Physics, Charles University in Prague, Czech Republic.
@rem
@rem This Source Code Form is subject to the terms of the Mozilla Public
@rem Lic... |
Add database dump script to master branch | :: Start Emotion in Motion in Windows Machine
:: Imports latest dataBase dump (mongod needs to be running)
mongodump --port 27017 -d emotion-in-motion-dev --out ./mongodb-dump
mongodump --port 27017 -d emotion-in-motion-test --out ./mongodb-dump
mongodump --port 27017 -d emotion-in-motion-production --out ./mongodb-du... | |
Make .bat file work with powershell as well as cmd | @rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl6 "%~dp0\%0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_faile... | @rem = '--*-Perl-*--
@echo off
if "%OS%" == "Windows_NT" goto WinNT
perl6 "%~dp0\%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto endofperl
:WinNT
perl6 "%~dp0\%~n0" %*
if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
if %errorlevel% == 9009 echo You do not have Perl in your PATH.
if errorlevel 1 goto script_fai... |
Remove needless echo; correct directory validation when space present in path | @echo off
setlocal enabledelayedexpansion
set sourcetreepath=SourceTree\SourceTree.exe
if exist "%programfiles%\Atlassian\%sourcetreepath%" (
set sourcetreepath=%programfiles%\Atlassian\%sourcetreepath%
) else if exist "%programfiles(x86)%\Atlassian\%sourcetreepath%" (
set "sourcetreepath=%programfiles(x86)%\A... | @echo off
setlocal enabledelayedexpansion
set sourcetreepath=SourceTree\SourceTree.exe
if exist "%programfiles%\Atlassian\%sourcetreepath%" (
set sourcetreepath=%programfiles%\Atlassian\%sourcetreepath%
) else if exist "%programfiles(x86)%\Atlassian\%sourcetreepath%" (
set "sourcetreepath=%programfiles(x86)%\A... |
Add one more simple test | 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 ... | del log.txt
for %%i in (CalcEBNF, Choice, 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 Exp... |
Check Windows version is Vista+ on build. | @rem Open "Visual Studio .NET Command Prompt" to run this script
@setlocal
@set LUA=../../luajit-2.0
@set LSCOMPILE=cl /nologo /c /LD /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /I%LUA%/src
@set LSLINK=link /nologo
%LSCOMPILE% /DLUA_BUILD_AS_DLL /DWIN32_VISTA_ luasys.c sock/sys_sock.c isa/isapi/isapi_dll.c
@if err... | @rem Open "Visual Studio .NET Command Prompt" to run this script
@setlocal
@set LUA=../../luajit-2.0
@set LSCOMPILE=cl /nologo /c /LD /MD /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE /I%LUA%/src
@set LSLINK=link /nologo
@rem Check Windows Version is Vista+
@ver | findstr /i "Version 6\." > NUL
@IF %ERRORLEVEL% NEQ 0 g... |
Fix to log the test results by AppVeyor | set CONFIGURATION=%1
set OUTPUT=%2
set OPENCOVER=".\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe"
set TARGET="%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"
set TARGET_ARGS=".\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll"
set FILTER="+[*]* ... | set CONFIGURATION=%1
set OUTPUT=%2
set OPENCOVER=.\packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
set TARGET=%VSINSTALLDIR%\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe
set TARGET_ARGS=.\ThScoreFileConverterTests\bin\%CONFIGURATION%\ThScoreFileConverterTests.dll
set FILTER=+[*]* -[ThSco... |
Add a win32 env script to run before building so paths are set correctly | set PYTHONPATH=%cd%\inst\lib\python3.4\site-packages
set DXSDK_DIR=C:\Program Files\Microsoft DirectX SDK (June 2010)\
set PATH=%cd%\inst\bin;%PATH% | |
Make batch file exit at the end | SET PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;%PATH%;
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
git pull --recurse-submodules
git submodule update
msbuild /p:Configuration=Normal
CALL gsutil cp Normal/engine/engine.exe gs://grit-engine/
CALL gsutil cp... | SET PATH=C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;%PATH%;
CALL "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\VsDevCmd.bat"
git pull --recurse-submodules
git submodule update
msbuild /p:Configuration=Normal
CALL gsutil cp Normal/engine/engine.exe gs://grit-engine/
CALL gsutil cp... |
Fix VS path issue on appveyor | @call "C:\Program Files\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\Libraries\boost_1_67_0;%PATH%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_PATH%\... | @call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
SET PATH=%PROJECT_PATH%\3rdparty\bin;%MYSQL_CONNECTOR_PATH%\lib;%MYSQL_PATH%\bin;%PYTHON_PATH%\Scripts;C:\OpenSSL-v111-Win64\bin;C:\Libraries\boost_1_67_0;%PATH%
cp "%MYSQL_CONNECTOR_PATH%\lib\libmysql.dll" "%PROJECT_... |
Remove old Py2/3 setup flag Added copying of examples from SVN source, and cleanup any pycs that might by lying around | set MAKING_PYPARSING_RELEASE=1
copy ..\sourceforge\svn\trunk\src\CHANGES .
copy ..\sourceforge\svn\trunk\src\setup.py .
copy ..\sourceforge\svn\trunk\src\pyparsing.py .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_bdist .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_src .
rmdir build
rmdir dist
copy/y... | copy ..\sourceforge\svn\trunk\src\CHANGES .
copy ..\sourceforge\svn\trunk\src\setup.py .
copy ..\sourceforge\svn\trunk\src\pyparsing.py .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_bdist .
copy ..\sourceforge\svn\trunk\src\MANIFEST.in_src .
copy ..\sourceforge\svn\trunk\src\examples\* .\examples\
del .\example... |
Add batch file for running subset of tests on JDK 1.1 | ' Batch file for running tests on JDK 1.1
'
SET CLASSPATH=\java\junit3.8.1\junit.jar;\java\crimson-1.1.3\crimson.jar;\java\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;..\dist\classes;classes;resources
java junit.textui.TestRunner org.apache.log4j.CoreTestSuite
java junit.textui.TestRunner org.apache.log4j.MinimumTestCase
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.